style: more colors.
This commit is contained in:
@@ -50,6 +50,16 @@ export const findDarkValue = (value: string): string | null => {
|
||||
return find && find.darkValue ? find.darkValue : null
|
||||
}
|
||||
|
||||
export const findLightValue = (value: string): string | null => {
|
||||
if (!value) {
|
||||
return null
|
||||
}
|
||||
const find: IColor | undefined = colors.find(
|
||||
(color: IColor) => color.value === value
|
||||
)
|
||||
return find && find.lightValue ? find.lightValue : null
|
||||
}
|
||||
|
||||
export const toHex = (text: string): string => {
|
||||
return (
|
||||
[...text]
|
||||
|
||||
Reference in New Issue
Block a user