(raw: string)
| 158 | * Validate a hex color string. Accepts #RGB, #RGBA, #RRGGBB, and #RRGGBBAA. |
| 159 | */ |
| 160 | export function isValidColor(raw: string): boolean { |
| 161 | return parseCssColor(raw) !== null; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Validate a dimension string uses a spec-standard unit (px or rem only). |
no test coverage detected
searching dependent graphs…