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

Function normalizeCustomPropertyName

packages/extension/utils/css.ts:976–978  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

974}
975
976export function normalizeCustomPropertyName(name: string): string {
977 return `--${normalizeCustomPropertyBody(name)}`
978}
979
980// Normalize Figma variable names to CSS custom property names (matches getCSSAsync behavior).
981export function normalizeFigmaVarName(input: string): string {

Callers 6

rewriteInlineVarsFunction · 0.90
css.test.tsFile · 0.90
extractVarNamesFunction · 0.85
getVariableSyntaxFunction · 0.85
canonicalizeVarNameFunction · 0.85
toVarExprFunction · 0.85

Calls 1

Tested by

no test coverage detected