(color: string)
| 33 | |
| 34 | // Should return if the given string is a valid 3 or 6 digit hex color. |
| 35 | const isValidHexColor = (color: string): boolean => { |
| 36 | return /^#([0-9a-fA-F]{3}){1,2}$/.test(color); |
| 37 | }; |
| 38 | |
| 39 | interface ColorSchemeVariant { |
| 40 | // The background color of the color scheme in hex format. |