MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / normalizeStyleValues

Function normalizeStyleValues

packages/extension/utils/css.ts:337–346  ·  view source on GitHub ↗
(
  style: Record<string, string>,
  config: CodegenConfig
)

Source from the content-addressed store, hash-verified

335}
336
337export 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
348export function simplifyColorMixToRgba(input: string): string {
349 if (!input || !input.includes('color-mix(')) return input

Callers 2

css.test.tsFile · 0.90
styleToClassNamesFunction · 0.90

Calls 1

normalizeCssValueFunction · 0.85

Tested by

no test coverage detected