(name: string)
| 954 | } |
| 955 | |
| 956 | export function toVarExpr(name: string): string { |
| 957 | return `var(${normalizeCustomPropertyName(name)})` |
| 958 | } |
| 959 | |
| 960 | // Normalize a CSS custom property name (the portion after "--"). |
| 961 | // Custom property names are more permissive than regular CSS identifiers. |
no test coverage detected