ant-design/components/layout/style/light.ts
MadCcc 8e4f1c6836
refactor: token update (#36279)
* refactor: token update

* chore: add js doc

* test: fix lint

* test: update test
2022-06-28 20:33:01 +08:00

28 lines
792 B
TypeScript

import type { CSSObject } from '@ant-design/cssinjs';
import type { LayoutToken } from '.';
import type { GenerateStyle } from '../../theme';
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
const { componentCls, colorBgContainer, colorBgBody, colorText } = token;
return {
[`${componentCls}-sider-light`]: {
background: colorBgContainer,
[`${componentCls}-sider-trigger`]: {
color: colorText,
background: colorBgContainer,
},
[`${componentCls}-sider-zero-width-trigger`]: {
color: colorText,
background: colorBgContainer,
border: `1px solid ${colorBgBody}`, // Safe to modify to any other color
borderInlineStart: 0,
},
},
};
};
export default genLayoutLightStyle;