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

Function stripFallback

packages/extension/utils/css.ts:1059–1064  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1057}
1058
1059export function stripFallback(value: string): string {
1060 return replaceVarFunctions(value, ({ name, full, fallback }) => {
1061 if (!fallback) return full
1062 return `var(${name.trim()})`
1063 })
1064}
1065
1066export function normalizeStyleValue(raw: string): string {
1067 if (!raw) return ''

Callers 9

css.test.tsFile · 0.90
transformFunction · 0.90
preprocessRawStyleFunction · 0.90
processTokensFunction · 0.90
cleanFigmaSpecificStylesFunction · 0.90
applyDisplayModeFunction · 0.85
canonicalizeVarNameFunction · 0.85
normalizeFigmaVarNameFunction · 0.85
normalizeStyleValueFunction · 0.85

Calls 1

replaceVarFunctionsFunction · 0.85

Tested by

no test coverage detected