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 faa57847_87ea_a82c_85ad_13fdbbf201c3["createSectionKey()"] ffe9c87e_35ad_f431_9625_80fc875792a7["migrate-js-config.ts"] faa57847_87ea_a82c_85ad_13fdbbf201c3 -->|defined in| ffe9c87e_35ad_f431_9625_80fc875792a7 253815a9_405f_ff30_32b6_577fe2d91fb2["migrateTheme()"] 253815a9_405f_ff30_32b6_577fe2d91fb2 -->|calls| faa57847_87ea_a82c_85ad_13fdbbf201c3 style faa57847_87ea_a82c_85ad_13fdbbf201c3 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