🎨 (account card) add gradient
This commit is contained in:
@@ -74,10 +74,12 @@ export default [
|
||||
(color: IColor): IColor => {
|
||||
const darkValue = lightness(color.value, dark).toLowerCase()
|
||||
const lightValue = lightness(color.value, light).toLowerCase()
|
||||
const slightLightValue = lightness(color.value, 10).toLowerCase()
|
||||
return {
|
||||
...color,
|
||||
darkValue,
|
||||
lightValue,
|
||||
slightLightValue,
|
||||
constrastColor:
|
||||
fontColorContrast(color.value) === '#000000' ? darkValue : lightValue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user