🎨 (account card) add gradient
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user