parseThemeOptions() — tailwindcss Function Reference
Architecture documentation for the parseThemeOptions() function in index.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 0ef86956_958f_0964_f743_f08841ce9378["parseThemeOptions()"] 26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c["parseCss()"] 26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c -->|calls| 0ef86956_958f_0964_f743_f08841ce9378 2a20ea29_c850_cd61_5600_aeebbe3dda66["segment()"] 0ef86956_958f_0964_f743_f08841ce9378 -->|calls| 2a20ea29_c850_cd61_5600_aeebbe3dda66 style 0ef86956_958f_0964_f743_f08841ce9378 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