UNPKG

ncb-component

Version:

NCB design system

33 lines (32 loc) 1.19 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { default as ConfigProviderAntd, } from "antd/es/config-provider"; const primaryColor = "#004e96"; export function ConfigProvider({ children, configProviderProps, }) { return (_jsx(ConfigProviderAntd, Object.assign({ theme: { components: { Layout: { headerBg: primaryColor, }, Button: { primaryShadow: "none", }, Menu: { itemSelectedBg: primaryColor, itemSelectedColor: "white", colorBgTextHover: primaryColor, itemHoverColor: "white", colorInfoTextHover: "white", itemActiveBg: primaryColor, controlHeight: 20, collapsedWidth: 60, itemHeight: 30, }, }, token: { colorPrimary: primaryColor, controlHeight: 36, fontSize: 14, }, } }, configProviderProps, { children: children }))); } export default ConfigProvider;