( style: Record<string, string>, config: CodegenConfig )
| 335 | } |
| 336 | |
| 337 | export function normalizeStyleValues( |
| 338 | style: Record<string, string>, |
| 339 | config: CodegenConfig |
| 340 | ): Record<string, string> { |
| 341 | const normalized: Record<string, string> = {} |
| 342 | for (const [key, value] of Object.entries(style)) { |
| 343 | normalized[key] = normalizeCssValue(value, config, key) |
| 344 | } |
| 345 | return normalized |
| 346 | } |
| 347 | |
| 348 | export function simplifyColorMixToRgba(input: string): string { |
| 349 | if (!input || !input.includes('color-mix(')) return input |
no test coverage detected