🎨 (account card) add gradient

This commit is contained in:
Julien Calixte
2020-03-15 17:57:53 +01:00
parent 40f7d02e5b
commit 2e91720e29
4 changed files with 21 additions and 3 deletions

View File

@@ -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
}