markUsedVariable() — tailwindcss Function Reference
Architecture documentation for the markUsedVariable() function in theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 31c8f8e4_0e98_63f8_a45c_113e0f57308b["markUsedVariable()"] 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6["Theme"] 31c8f8e4_0e98_63f8_a45c_113e0f57308b -->|defined in| 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6 9b965fd7_d8e9_0b43_cd5d_c9294ab598ed["buildDesignSystem()"] 9b965fd7_d8e9_0b43_cd5d_c9294ab598ed -->|calls| 31c8f8e4_0e98_63f8_a45c_113e0f57308b ae5a4f96_ffbe_5d6f_324b_4caa358fe1fb["compileAst()"] ae5a4f96_ffbe_5d6f_324b_4caa358fe1fb -->|calls| 31c8f8e4_0e98_63f8_a45c_113e0f57308b dfc91ad5_bcf3_d363_efd7_01a5223f7b74["unescape()"] 31c8f8e4_0e98_63f8_a45c_113e0f57308b -->|calls| dfc91ad5_bcf3_d363_efd7_01a5223f7b74 378e03e8_d700_b258_53b3_5bd078db1e2b["get()"] 31c8f8e4_0e98_63f8_a45c_113e0f57308b -->|calls| 378e03e8_d700_b258_53b3_5bd078db1e2b style 31c8f8e4_0e98_63f8_a45c_113e0f57308b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/theme.ts lines 210–217
markUsedVariable(themeKey: string): boolean {
let key = unescape(this.#unprefixKey(themeKey))
let value = this.values.get(key)
if (!value) return false
let isUsed = value.options & ThemeOptions.USED
value.options |= ThemeOptions.USED
return !isUsed
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does markUsedVariable() do?
markUsedVariable() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/theme.ts.
Where is markUsedVariable() defined?
markUsedVariable() is defined in packages/tailwindcss/src/theme.ts at line 210.
What does markUsedVariable() call?
markUsedVariable() calls 2 function(s): get, unescape.
What calls markUsedVariable()?
markUsedVariable() is called by 2 function(s): buildDesignSystem, compileAst.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free