mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-26 15:00:16 +08:00
fix(components): 修复按钮Tab自适应主题颜色
This commit is contained in:
@@ -8,6 +8,14 @@ export function brightenColor(color: string) {
|
||||
return chroma(color).brighten(0.5).hex();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更浅的颜色
|
||||
* @param color
|
||||
*/
|
||||
export function shallowColor(color: string, alpha: number = 0.5) {
|
||||
return chroma(color).alpha(alpha).hex();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更暗的颜色
|
||||
* @param color
|
||||
|
||||
Reference in New Issue
Block a user