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

Method get

packages/tailwindcss/src/theme.ts:110–119  ·  packages/tailwindcss/src/theme.ts::Theme.get
(themeKeys: ThemeKey[])

Source from the content-addressed store, hash-verified

108 }
109
110 get(themeKeys: ThemeKey[]): string | null {
111 for (let key of themeKeys) {
112 let value = this.values.get(key)
113 if (value) {
114 return value.value
115 }
116 }
117
118 return null
119 }
120
121 hasDefault(key: string): boolean {
122 return (this.getOptions(key) & ThemeOptions.DEFAULT) === ThemeOptions.DEFAULT

Callers 15

sortFractionsLastFunction · 0.45
getClassOrderFunction · 0.45
parseCssFunction · 0.45
isIgnoredThemeKeyFunction · 0.45
addMethod · 0.45
getOptionsMethod · 0.45
clearNamespaceMethod · 0.45
#varMethod · 0.45
markUsedVariableMethod · 0.45
resolveMethod · 0.45
resolveValueMethod · 0.45
resolveWithMethod · 0.45

Calls

no outgoing calls

Tested by 1

expectCanonicalizationFunction · 0.36