Home / Function/ resolveValue() — tailwindcss Function Reference

resolveValue() — tailwindcss Function Reference

Architecture documentation for the resolveValue() function in theme.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  c16f096b_35b2_0695_2909_f85c627abd1e["resolveValue()"]
  734cf7ec_fb2a_2532_7b20_b3a815c7e3e6["Theme"]
  c16f096b_35b2_0695_2909_f85c627abd1e -->|defined in| 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6
  47b4c875_7e44_6ff9_fb06_16ecf9254223["optimizeAst()"]
  47b4c875_7e44_6ff9_fb06_16ecf9254223 -->|calls| c16f096b_35b2_0695_2909_f85c627abd1e
  d30151e4_eee8_a868_f516_c653088f4a03["createThemeFn()"]
  d30151e4_eee8_a868_f516_c653088f4a03 -->|calls| c16f096b_35b2_0695_2909_f85c627abd1e
  c1a769fc_95ca_ceea_62f9_aedeeedf7c66["createVariants()"]
  c1a769fc_95ca_ceea_62f9_aedeeedf7c66 -->|calls| c16f096b_35b2_0695_2909_f85c627abd1e
  378e03e8_d700_b258_53b3_5bd078db1e2b["get()"]
  c16f096b_35b2_0695_2909_f85c627abd1e -->|calls| 378e03e8_d700_b258_53b3_5bd078db1e2b
  style c16f096b_35b2_0695_2909_f85c627abd1e 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

Calls

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