feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -57,6 +57,14 @@ const DAYJS_LOCALES = {
|
||||
const PROTOTYPE_DARK_PRIMARY = '#d1963a';
|
||||
const PROTOTYPE_DARK_SEED = '#f2ad41';
|
||||
|
||||
// 页面局部“品牌强调色”(原型 --brand):等于当前主题的种子色。
|
||||
// 浅色与自定义主色时即 colorPrimary;仅默认暗色主色 #d1963a 时回到原型种子 #f2ad41,
|
||||
// 保证浅色 / 深色 / 自定义主题色三态都只由主题 token 推导,不在页面里另写颜色。
|
||||
export const brandAccentFromToken = (colorPrimary, dark) =>
|
||||
dark && colorPrimary?.toLowerCase() === PROTOTYPE_DARK_PRIMARY
|
||||
? PROTOTYPE_DARK_SEED
|
||||
: colorPrimary;
|
||||
|
||||
export const prototypeTheme = (dark) => ({
|
||||
algorithm: (seed, map) => {
|
||||
const derive =
|
||||
|
||||
Reference in New Issue
Block a user