theme-customizer.tsx — ui Source File
Architecture documentation for theme-customizer.tsx, a tsx file in the ui codebase. 19 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 140c7d1e_fab6_452b_6086_5ea5d9731e35["theme-customizer.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 5114a58f_1c1e_01f8_fc73_9dc86ff2bf5c["template"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 5114a58f_1c1e_01f8_fc73_9dc86ff2bf5c d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 75d25ec8_fe84_91a4_54c6_20dabb286f91["next-themes"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 75d25ec8_fe84_91a4_54c6_20dabb286f91 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 8c6845ea_e0db_55db_4a65_df2f64d9e581["use-config"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 8c6845ea_e0db_55db_4a65_df2f64d9e581 402113bd_a10d_0255_fccf_87fa40fd281a["copy-button"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 402113bd_a10d_0255_fccf_87fa40fd281a 4fac0cf8_c0bd_8298_eafb_426ab7500040["theme-wrapper"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 4fac0cf8_c0bd_8298_eafb_426ab7500040 aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e["dialog"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e 79b170ee_6170_9271_c7a0_b5527f29a7e1["drawer"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 79b170ee_6170_9271_c7a0_b5527f29a7e1 fa665cdb_5f79_b81a_95ab_12ba182fc175["label"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> fa665cdb_5f79_b81a_95ab_12ba182fc175 e33b0d79_0534_28ec_a112_ac16ee736e09["popover"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> e33b0d79_0534_28ec_a112_ac16ee736e09 0ef877d6_b768_4222_bd20_50d875ac5e58["separator"] 140c7d1e_fab6_452b_6086_5ea5d9731e35 --> 0ef877d6_b768_4222_bd20_50d875ac5e58 style 140c7d1e_fab6_452b_6086_5ea5d9731e35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import template from "lodash/template"
import { Check, ClipboardIcon, Copy } from "lucide-react"
import { useTheme } from "next-themes"
import { cn } from "@/lib/utils"
import { useConfig } from "@/hooks/use-config"
import { copyToClipboardWithMeta } from "@/components/copy-button"
import { ThemeWrapper } from "@/components/theme-wrapper"
import { Button } from "@/registry/new-york/ui/button"
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/new-york/ui/dialog"
import {
Drawer,
DrawerContent,
DrawerDescription,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
} from "@/registry/new-york/ui/drawer"
import { Label } from "@/registry/new-york/ui/label"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/registry/new-york/ui/popover"
import { Separator } from "@/registry/new-york/ui/separator"
import { Skeleton } from "@/registry/new-york/ui/skeleton"
import {
BaseColor,
baseColors,
baseColorsOKLCH,
} from "@/registry/registry-base-colors"
import "@/styles/mdx.css"
import { toast } from "sonner"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/registry/new-york/ui/tabs"
interface BaseColorOKLCH {
light: Record<string, string>
dark: Record<string, string>
}
export function ThemeCustomizer() {
const [config, setConfig] = useConfig()
const { resolvedTheme: mode } = useTheme()
// ... (520 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- button
- copy-button
- dialog
- drawer
- label
- lucide-react
- mdx.css
- next-themes
- popover
- react
- registry-base-colors
- separator
- skeleton
- sonner
- tabs
- template
- theme-wrapper
- use-config
- utils
Source
Frequently Asked Questions
What does theme-customizer.tsx do?
theme-customizer.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in theme-customizer.tsx?
theme-customizer.tsx defines 6 function(s): CopyCodeButton, Customizer, CustomizerCode, ThemeCustomizer, getThemeCode, getThemeCodeOKLCH.
What does theme-customizer.tsx depend on?
theme-customizer.tsx imports 19 module(s): button, copy-button, dialog, drawer, label, lucide-react, mdx.css, next-themes, and 11 more.
Where is theme-customizer.tsx in the architecture?
theme-customizer.tsx is located at deprecated/www/components/theme-customizer.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free