fix(projects): 修复主题配置

This commit is contained in:
Soybean
2021-08-27 12:00:09 +08:00
parent eda87f041d
commit ff24fda5ee
10 changed files with 78 additions and 10 deletions

View File

@@ -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();
}