mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 新增主题配置
This commit is contained in:
9
src/utils/common/color.ts
Normal file
9
src/utils/common/color.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import chroma from 'chroma-js';
|
||||
|
||||
/**
|
||||
* 更亮的颜色
|
||||
* @param color
|
||||
*/
|
||||
export function brightenColor(color: string) {
|
||||
return chroma(color).brighten(0.5).hex();
|
||||
}
|
@ -11,3 +11,5 @@ export {
|
||||
isSet,
|
||||
isMap
|
||||
} from './typeof';
|
||||
|
||||
export { brightenColor } from './color';
|
||||
|
@ -10,5 +10,6 @@ export {
|
||||
isDate,
|
||||
isRegExp,
|
||||
isSet,
|
||||
isMap
|
||||
isMap,
|
||||
brightenColor
|
||||
} from './common';
|
||||
|
Reference in New Issue
Block a user