我需要我的原色是一种特殊的绿色
更新令牌属性后,我仍然拥有不同的组件,如布局和菜单,默认 colored颜色 设置为#001529
为什么?
示例:规则
:where(.css-dev-only-do-not-override-154n70z).ant-layout .ant-layout-sider {
position: relative;
min-width: 0;
background: #001529;
transition: all 0.2s,background 0s;
}
代码片段:
<ConfigProvider
theme={{
token: {
// Seed Token
colorPrimary: '#1bb470',
colorInfo: '#1bb470',
fontFamily: 'Lato, sans-serif',
},
components: {
Layout: {
colorBgHeader: '#fff',
},
Menu: {
colorItemBg: '#fff', // colorBgBase -3% lightness
colorSubItemBg: '#fff', // colorBgBase -3% lightness
},
},
}}
>