createSectionKey() — tailwindcss Function Reference
Architecture documentation for the createSectionKey() function in migrate-js-config.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 3f896f94_ed93_09c7_7ca5_c686b3dda89f["createSectionKey()"] b2ba3368_7330_fe20_4543_9cafa8cfedc0["migrate-js-config.ts"] 3f896f94_ed93_09c7_7ca5_c686b3dda89f -->|defined in| b2ba3368_7330_fe20_4543_9cafa8cfedc0 e26bfad3_530e_6523_7463_161205321110["migrateTheme()"] e26bfad3_530e_6523_7463_161205321110 -->|calls| 3f896f94_ed93_09c7_7ca5_c686b3dda89f style 3f896f94_ed93_09c7_7ca5_c686b3dda89f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts lines 328–339
function createSectionKey(key: string[]): string {
let sectionSegments = []
for (let i = 0; i < key.length - 1; i++) {
let segment = key[i]
// Ignore tuples
if (key[i + 1][0] === '-') {
break
}
sectionSegments.push(segment)
}
return sectionSegments.join('-')
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does createSectionKey() do?
createSectionKey() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts.
Where is createSectionKey() defined?
createSectionKey() is defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts at line 328.
What calls createSectionKey()?
createSectionKey() is called by 1 function(s): migrateTheme.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free