MCPcopy
hub / github.com/tailwindlabs/tailwindcss / markUsedVariable

Method markUsedVariable

packages/tailwindcss/src/theme.ts:210–217  ·  packages/tailwindcss/src/theme.ts::Theme.markUsedVariable
(themeKey: string)

Source from the content-addressed store, hash-verified

208 }
209
210 markUsedVariable(themeKey: string): boolean {
211 let key = unescape(this.#unprefixKey(themeKey))
212 let value = this.values.get(key)
213 if (!value) return false
214 let isUsed = value.options & ThemeOptions.USED
215 value.options |= ThemeOptions.USED
216 return !isUsed
217 }
218
219 resolve(
220 candidateValue: string | null,

Callers 2

buildFunction · 0.80
buildDesignSystemFunction · 0.80

Calls 3

#unprefixKeyMethod · 0.95
unescapeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected