feat(projects): 新增主题配置

This commit is contained in:
Soybean
2021-08-18 12:02:59 +08:00
parent 09a28d8e1d
commit ed67b797c2
30 changed files with 528 additions and 47 deletions

View File

@ -0,0 +1,9 @@
import chroma from 'chroma-js';
/**
* 更亮的颜色
* @param color
*/
export function brightenColor(color: string) {
return chroma(color).brighten(0.5).hex();
}

View File

@ -11,3 +11,5 @@ export {
isSet,
isMap
} from './typeof';
export { brightenColor } from './color';

View File

@ -10,5 +10,6 @@ export {
isDate,
isRegExp,
isSet,
isMap
isMap,
brightenColor
} from './common';