(input: string)
| 189 | } |
| 190 | |
| 191 | export function extractVarNames(input: string): Set<string> { |
| 192 | const out = new Set<string>() |
| 193 | if (!input) return out |
| 194 | |
| 195 | replaceVarFunctions(input, ({ name, full }) => { |
| 196 | const trimmed = name.trim() |
| 197 | if (trimmed.startsWith('--')) { |
| 198 | out.add(normalizeCustomPropertyName(trimmed)) |
| 199 | } |
| 200 | return full |
| 201 | }) |
| 202 | |
| 203 | return out |
| 204 | } |
| 205 | |
| 206 | export function formatHexAlpha( |
| 207 | color: { r: number; g: number; b: number }, |
no test coverage detected