getOptions() — tailwindcss Function Reference
Architecture documentation for the getOptions() function in theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD dbf6b411_7522_4e41_ab49_f4e9c07a4751["getOptions()"] 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6["Theme"] dbf6b411_7522_4e41_ab49_f4e9c07a4751 -->|defined in| 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6 f6e5c34f_5fff_b7c4_6b4e_54ead4f7899e["isVariableUsed()"] f6e5c34f_5fff_b7c4_6b4e_54ead4f7899e -->|calls| dbf6b411_7522_4e41_ab49_f4e9c07a4751 00a6c74c_0751_dcea_d32a_e486a30355a4["readFromCss()"] 00a6c74c_0751_dcea_d32a_e486a30355a4 -->|calls| dbf6b411_7522_4e41_ab49_f4e9c07a4751 68bbe6c5_9c3c_9047_344a_8cb9610bab8e["hasDefault()"] 68bbe6c5_9c3c_9047_344a_8cb9610bab8e -->|calls| dbf6b411_7522_4e41_ab49_f4e9c07a4751 c418c4a6_69f1_be06_3756_ed0a7a88584f["clearNamespace()"] c418c4a6_69f1_be06_3756_ed0a7a88584f -->|calls| dbf6b411_7522_4e41_ab49_f4e9c07a4751 dfc91ad5_bcf3_d363_efd7_01a5223f7b74["unescape()"] dbf6b411_7522_4e41_ab49_f4e9c07a4751 -->|calls| dfc91ad5_bcf3_d363_efd7_01a5223f7b74 378e03e8_d700_b258_53b3_5bd078db1e2b["get()"] dbf6b411_7522_4e41_ab49_f4e9c07a4751 -->|calls| 378e03e8_d700_b258_53b3_5bd078db1e2b style dbf6b411_7522_4e41_ab49_f4e9c07a4751 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
Defined In
Calls
Source
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