transformStyleMap() — ui Function Reference
Architecture documentation for the transformStyleMap() function in transform-style-map.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 69e29c3a_597d_3ecf_b7be_50b09c93f556["transformStyleMap()"] cef4e429_7112_fef5_ae0b_a838a57ccf71["transform-style-map.ts"] 69e29c3a_597d_3ecf_b7be_50b09c93f556 -->|defined in| cef4e429_7112_fef5_ae0b_a838a57ccf71 7187d3fd_4c21_15b6_f2d3_d87a94dd4465["applyTransform()"] 7187d3fd_4c21_15b6_f2d3_d87a94dd4465 -->|calls| 69e29c3a_597d_3ecf_b7be_50b09c93f556 983d9e21_ede7_170e_88fa_6bfb84e023a1["applyToCvaCalls()"] 69e29c3a_597d_3ecf_b7be_50b09c93f556 -->|calls| 983d9e21_ede7_170e_88fa_6bfb84e023a1 e02dab01_6687_6666_d998_78768ab89830["applyToClassNameAttributes()"] 69e29c3a_597d_3ecf_b7be_50b09c93f556 -->|calls| e02dab01_6687_6666_d998_78768ab89830 6204e861_6180_95ae_9802_dd441b354a37["applyToMergePropsCalls()"] 69e29c3a_597d_3ecf_b7be_50b09c93f556 -->|calls| 6204e861_6180_95ae_9802_dd441b354a37 style 69e29c3a_597d_3ecf_b7be_50b09c93f556 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/styles/transform-style-map.ts lines 29–40
export const transformStyleMap: TransformerStyle<SourceFile> = async ({
sourceFile,
styleMap,
}) => {
const matchedClasses = new Set<string>()
applyToCvaCalls(sourceFile, styleMap, matchedClasses)
applyToClassNameAttributes(sourceFile, styleMap, matchedClasses)
applyToMergePropsCalls(sourceFile, styleMap, matchedClasses)
return sourceFile
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does transformStyleMap() do?
transformStyleMap() is a function in the ui codebase, defined in packages/shadcn/src/styles/transform-style-map.ts.
Where is transformStyleMap() defined?
transformStyleMap() is defined in packages/shadcn/src/styles/transform-style-map.ts at line 29.
What does transformStyleMap() call?
transformStyleMap() calls 3 function(s): applyToClassNameAttributes, applyToCvaCalls, applyToMergePropsCalls.
What calls transformStyleMap()?
transformStyleMap() is called by 1 function(s): applyTransform.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free