themes-styles.tsx — ui Source File
Architecture documentation for themes-styles.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 13d890e8_b41f_7c4d_34cd_f52fd093ad72["themes-styles.tsx"] 4301cef0_efc0_0be1_8523_bd5b8e946772["use-themes-config"] 13d890e8_b41f_7c4d_34cd_f52fd093ad72 --> 4301cef0_efc0_0be1_8523_bd5b8e946772 style 13d890e8_b41f_7c4d_34cd_f52fd093ad72 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { useThemesConfig } from "@/hooks/use-themes-config"
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
Functions
Dependencies
- use-themes-config
Source
Frequently Asked Questions
What does themes-styles.tsx do?
themes-styles.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in themes-styles.tsx?
themes-styles.tsx defines 1 function(s): ThemesStyle.
What does themes-styles.tsx depend on?
themes-styles.tsx imports 1 module(s): use-themes-config.
Where is themes-styles.tsx in the architecture?
themes-styles.tsx is located at deprecated/www/components/themes-styles.tsx (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free