Home / Function/ getOptions() — tailwindcss Function Reference

getOptions() — tailwindcss Function Reference

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

Function typescript Oxide Extractor calls 2 called by 4

Entity Profile

Dependency Diagram

graph TD
  45cb4617_2116_e947_4a90_d9e2642b9325["getOptions()"]
  e7a2e966_188e_28f5_d9d6_e54e27e0d0f2["Theme"]
  45cb4617_2116_e947_4a90_d9e2642b9325 -->|defined in| e7a2e966_188e_28f5_d9d6_e54e27e0d0f2
  1a695257_28e4_0604_3f02_e52886aa117e["isVariableUsed()"]
  1a695257_28e4_0604_3f02_e52886aa117e -->|calls| 45cb4617_2116_e947_4a90_d9e2642b9325
  bdec5541_c088_b3c7_4457_73a4592c6631["readFromCss()"]
  bdec5541_c088_b3c7_4457_73a4592c6631 -->|calls| 45cb4617_2116_e947_4a90_d9e2642b9325
  83e4da67_668a_2a3c_0974_1ee12d26f5ef["hasDefault()"]
  83e4da67_668a_2a3c_0974_1ee12d26f5ef -->|calls| 45cb4617_2116_e947_4a90_d9e2642b9325
  13c79f13_36f5_873e_8a2a_7d72eb200030["clearNamespace()"]
  13c79f13_36f5_873e_8a2a_7d72eb200030 -->|calls| 45cb4617_2116_e947_4a90_d9e2642b9325
  87a17ea2_6c8d_3d38_bd46_25d9267eeac0["unescape()"]
  45cb4617_2116_e947_4a90_d9e2642b9325 -->|calls| 87a17ea2_6c8d_3d38_bd46_25d9267eeac0
  c6703f6a_b776_5326_6e96_8faaab8a851f["get()"]
  45cb4617_2116_e947_4a90_d9e2642b9325 -->|calls| c6703f6a_b776_5326_6e96_8faaab8a851f
  style 45cb4617_2116_e947_4a90_d9e2642b9325 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/theme.ts lines 125–128

  getOptions(key: string) {
    key = unescape(this.#unprefixKey(key))
    return this.values.get(key)?.options ?? ThemeOptions.NONE
  }

Domain

Subdomains

Frequently Asked Questions

What does getOptions() do?
getOptions() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/theme.ts.
Where is getOptions() defined?
getOptions() is defined in packages/tailwindcss/src/theme.ts at line 125.
What does getOptions() call?
getOptions() calls 2 function(s): get, unescape.
What calls getOptions()?
getOptions() is called by 4 function(s): clearNamespace, hasDefault, isVariableUsed, readFromCss.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free