resolveValue() — tailwindcss Function Reference
Architecture documentation for the resolveValue() function in theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD d238f217_f342_fe65_082c_b17252edf6de["resolveValue()"] e7a2e966_188e_28f5_d9d6_e54e27e0d0f2["Theme"] d238f217_f342_fe65_082c_b17252edf6de -->|defined in| e7a2e966_188e_28f5_d9d6_e54e27e0d0f2 9f2a64dc_05ff_3425_1af8_f2dbd33c3b9a["optimizeAst()"] 9f2a64dc_05ff_3425_1af8_f2dbd33c3b9a -->|calls| d238f217_f342_fe65_082c_b17252edf6de dabb13bc_6018_934b_19c4_595b7bea686d["createThemeFn()"] dabb13bc_6018_934b_19c4_595b7bea686d -->|calls| d238f217_f342_fe65_082c_b17252edf6de 876035d0_94a8_cf2f_314a_d520aaae6e4b["createVariants()"] 876035d0_94a8_cf2f_314a_d520aaae6e4b -->|calls| d238f217_f342_fe65_082c_b17252edf6de c6703f6a_b776_5326_6e96_8faaab8a851f["get()"] d238f217_f342_fe65_082c_b17252edf6de -->|calls| c6703f6a_b776_5326_6e96_8faaab8a851f style d238f217_f342_fe65_082c_b17252edf6de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/theme.ts lines 237–243
resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null {
let themeKey = this.#resolveKey(candidateValue, themeKeys)
if (!themeKey) return null
return this.values.get(themeKey)!.value
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does resolveValue() do?
resolveValue() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/theme.ts.
Where is resolveValue() defined?
resolveValue() is defined in packages/tailwindcss/src/theme.ts at line 237.
What does resolveValue() call?
resolveValue() calls 1 function(s): get.
What calls resolveValue()?
resolveValue() is called by 3 function(s): createThemeFn, createVariants, optimizeAst.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free