( color: string, type: 'light' | 'dark' = 'light' )
| 41 | ]; |
| 42 | |
| 43 | const argbThemeFromColor = ( |
| 44 | color: string, |
| 45 | type: 'light' | 'dark' = 'light' |
| 46 | ) => { |
| 47 | return themeFromSourceColor(argbFromHex(color)).schemes[type].toJSON(); |
| 48 | }; |
| 49 | |
| 50 | const argbThemeToHexTheme = (theme: ARGBTheme) => { |
| 51 | return Object.fromEntries( |
no outgoing calls
no test coverage detected
searching dependent graphs…