mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): 修复主题配置
This commit is contained in:
@ -7,3 +7,11 @@ import chroma from 'chroma-js';
|
||||
export function brightenColor(color: string) {
|
||||
return chroma(color).brighten(0.5).hex();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更暗的颜色
|
||||
* @param color
|
||||
*/
|
||||
export function darkenColor(color: string) {
|
||||
return chroma(color).darken(0.5).hex();
|
||||
}
|
||||
|
@ -12,4 +12,4 @@ export {
|
||||
isMap
|
||||
} from './typeof';
|
||||
|
||||
export { brightenColor } from './color';
|
||||
export { brightenColor, darkenColor } from './color';
|
||||
|
@ -11,5 +11,6 @@ export {
|
||||
isRegExp,
|
||||
isSet,
|
||||
isMap,
|
||||
brightenColor
|
||||
brightenColor,
|
||||
darkenColor
|
||||
} from './common';
|
||||
|
Reference in New Issue
Block a user