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

Function toVarExpr

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

Source from the content-addressed store, hash-verified

954}
955
956export 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.

Callers 2

css.test.tsFile · 0.90
transformFunction · 0.90

Calls 1

Tested by

no test coverage detected