parseThemeOptions() — tailwindcss Function Reference
Architecture documentation for the parseThemeOptions() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 3e299608_50a8_ca1d_265b_5114a9836d07["parseThemeOptions()"] 95cb326e_6b59_0903_0c96_d221fca5c2b1["parseCss()"] 95cb326e_6b59_0903_0c96_d221fca5c2b1 -->|calls| 3e299608_50a8_ca1d_265b_5114a9836d07 03b8d706_a876_a776_0056_186ced5d6067["segment()"] 3e299608_50a8_ca1d_265b_5114a9836d07 -->|calls| 03b8d706_a876_a776_0056_186ced5d6067 style 3e299608_50a8_ca1d_265b_5114a9836d07 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
Calls
Called By
Source
Frequently Asked Questions
What does parseThemeOptions() do?
parseThemeOptions() is a function in the tailwindcss codebase.
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