(key: string)
| 30 | /^(?:#[0-9A-Fa-f]{3,8}|(?:rgb|hsl)a?\(\s*[-+0-9.%]+\s*(?:,\s*[-+0-9.%]+\s*){2}(?:,\s*[-+0-9.]+\s*)?\)|(?:rgb|hsl)a?\(\s*[-+0-9.%]+\s+[-+0-9.%]+\s+[-+0-9.%]+(?:\s*\/\s*[-+0-9.%]+)?\s*\)|[A-Za-z]+|var\(--[A-Za-z0-9_-]+\))$/; |
| 31 | |
| 32 | export const chartCssVariableName = (key: string): string | null => |
| 33 | cssIdentifierPattern.test(key) ? `--color-${key}` : null; |
| 34 | |
| 35 | export const chartCssColorValue = (color: string): string | null => { |
| 36 | const trimmed = color.trim(); |
no outgoing calls
no test coverage detected