🎨 (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

@@ -70,6 +70,16 @@ export const findLightValue = (value: string): string | null => {
return find && find.lightValue ? find.lightValue : null
}
export const findSlightLightValue = (value: string): string | null => {
if (!value) {
return null
}
const find: IColor | undefined = colors.find(
(color: IColor) => color.value === value
)
return find && find.slightLightValue ? find.slightLightValue : null
}
export const toHex = (text: string): string => {
return (
[...text]