keysInNamespaces() — tailwindcss Function Reference
Architecture documentation for the keysInNamespaces() function in theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 43b980e4_33bc_5e85_f71f_8016b6d2e809["keysInNamespaces()"] 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6["Theme"] 43b980e4_33bc_5e85_f71f_8016b6d2e809 -->|defined in| 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6 6b36dfc9_f213_8083_55ea_8d0541032f05["collapseCandidates()"] 6b36dfc9_f213_8083_55ea_8d0541032f05 -->|calls| 43b980e4_33bc_5e85_f71f_8016b6d2e809 75cdf0b0_3569_52fd_7186_577645fd4872["createCssUtility()"] 75cdf0b0_3569_52fd_7186_577645fd4872 -->|calls| 43b980e4_33bc_5e85_f71f_8016b6d2e809 1e748440_c17d_5c46_57bf_ba35ee3e3c39["isIgnoredThemeKey()"] 43b980e4_33bc_5e85_f71f_8016b6d2e809 -->|calls| 1e748440_c17d_5c46_57bf_ba35ee3e3c39 style 43b980e4_33bc_5e85_f71f_8016b6d2e809 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/theme.ts lines 88–108
keysInNamespaces(themeKeys: Iterable<ThemeKey>): string[] {
let keys: string[] = []
for (let namespace of themeKeys) {
let prefix = `${namespace}-`
for (let key of this.values.keys()) {
if (!key.startsWith(prefix)) continue
if (key.indexOf('--', 2) !== -1) continue
if (isIgnoredThemeKey(key as ThemeKey, namespace)) {
continue
}
keys.push(key.slice(prefix.length))
}
}
return keys
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does keysInNamespaces() do?
keysInNamespaces() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/theme.ts.
Where is keysInNamespaces() defined?
keysInNamespaces() is defined in packages/tailwindcss/src/theme.ts at line 88.
What does keysInNamespaces() call?
keysInNamespaces() calls 1 function(s): isIgnoredThemeKey.
What calls keysInNamespaces()?
keysInNamespaces() is called by 2 function(s): collapseCandidates, createCssUtility.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free