mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
8e4f1c6836
* refactor: token update * chore: add js doc * test: fix lint * test: update test
28 lines
792 B
TypeScript
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;
|