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

Function extractVarNames

packages/extension/utils/css.ts:191–204  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

189}
190
191export function extractVarNames(input: string): Set<string> {
192 const out = new Set<string>()
193 if (!input) return out
194
195 replaceVarFunctions(input, ({ name, full }) => {
196 const trimmed = name.trim()
197 if (trimmed.startsWith('--')) {
198 out.add(normalizeCustomPropertyName(trimmed))
199 }
200 return full
201 })
202
203 return out
204}
205
206export function formatHexAlpha(
207 color: { r: number; g: number; b: number },

Callers 2

css.test.tsFile · 0.90
transformFunction · 0.90

Calls 2

replaceVarFunctionsFunction · 0.85

Tested by

no test coverage detected