ThemesStyle() — ui Function Reference
Architecture documentation for the ThemesStyle() function in themes-styles.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7435a0f0_93c0_c4fd_79ab_2b89282552d0["ThemesStyle()"] 13d890e8_b41f_7c4d_34cd_f52fd093ad72["themes-styles.tsx"] 7435a0f0_93c0_c4fd_79ab_2b89282552d0 -->|defined in| 13d890e8_b41f_7c4d_34cd_f52fd093ad72 style 7435a0f0_93c0_c4fd_79ab_2b89282552d0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/components/themes-styles.tsx lines 5–31
export function ThemesStyle() {
const { themesConfig } = useThemesConfig()
if (!themesConfig.activeTheme) {
return null
}
return (
<style>
{`
.themes-wrapper,
[data-chart] {
${Object.entries(themesConfig.activeTheme.cssVars.light)
.map(([key, value]) => `${key}: ${value};`)
.join("\n")}
}
.dark .themes-wrapper,
.dark [data-chart] {
${Object.entries(themesConfig.activeTheme.cssVars.dark)
.map(([key, value]) => `${key}: ${value};`)
.join("\n")}
}
`}
</style>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ThemesStyle() do?
ThemesStyle() is a function in the ui codebase, defined in deprecated/www/components/themes-styles.tsx.
Where is ThemesStyle() defined?
ThemesStyle() is defined in deprecated/www/components/themes-styles.tsx at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free