parseThemeOptions() — tailwindcss Function Reference
Architecture documentation for the parseThemeOptions() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 875b206d_86d2_8abe_a990_a42e9a16c03d["parseThemeOptions()"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a["index.ts"] 875b206d_86d2_8abe_a990_a42e9a16c03d -->|defined in| 5af9cd3c_2cf4_9dee_376e_fc39122d865a 3970218d_3d6c_e455_87cc_45b4a094f0e9["parseCss()"] 3970218d_3d6c_e455_87cc_45b4a094f0e9 -->|calls| 875b206d_86d2_8abe_a990_a42e9a16c03d f712ed47_45d4_4e5a_dd73_fdefa1da71da["segment()"] 875b206d_86d2_8abe_a990_a42e9a16c03d -->|calls| f712ed47_45d4_4e5a_dd73_fdefa1da71da style 875b206d_86d2_8abe_a990_a42e9a16c03d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/index.ts lines 85–104
function parseThemeOptions(params: string) {
let options = ThemeOptions.NONE
let prefix = null
for (let option of segment(params, ' ')) {
if (option === 'reference') {
options |= ThemeOptions.REFERENCE
} else if (option === 'inline') {
options |= ThemeOptions.INLINE
} else if (option === 'default') {
options |= ThemeOptions.DEFAULT
} else if (option === 'static') {
options |= ThemeOptions.STATIC
} else if (option.startsWith('prefix(') && option.endsWith(')')) {
prefix = option.slice(7, -1)
}
}
return [options, prefix] as const
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does parseThemeOptions() do?
parseThemeOptions() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/index.ts.
Where is parseThemeOptions() defined?
parseThemeOptions() is defined in packages/tailwindcss/src/index.ts at line 85.
What does parseThemeOptions() call?
parseThemeOptions() calls 1 function(s): segment.
What calls parseThemeOptions()?
parseThemeOptions() is called by 1 function(s): parseCss.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free