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

Method prefixKey

packages/tailwindcss/src/theme.ts:139–142  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

137 }
138
139 prefixKey(key: string) {
140 if (!this.prefix) return key
141 return `--${this.prefix}-${key.slice(2)}`
142 }
143
144 #unprefixKey(key: string) {
145 if (!this.prefix) return key

Callers 3

entriesMethod · 0.95
#varMethod · 0.95
optimizeAstFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected