(theme: ARGBTheme)
| 55 | }; |
| 56 | |
| 57 | const argbThemeToRgbTheme = (theme: ARGBTheme) => { |
| 58 | return Object.fromEntries( |
| 59 | //@ts-ignore |
| 60 | Object.entries(theme).map(([key, value]) => [ |
| 61 | key, |
| 62 | //@ts-ignore |
| 63 | Color(value).rgb().string(), |
| 64 | ]) |
| 65 | ) as CSSTheme; |
| 66 | }; |
| 67 | |
| 68 | export const hexThemeFromColor = ( |
| 69 | color: string, |
no outgoing calls
no test coverage detected
searching dependent graphs…