color-palette.tsx — ui Source File
Architecture documentation for color-palette.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b67d35c7_52e9_adcc_f607_978c4358de1c["color-palette.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] b67d35c7_52e9_adcc_f607_978c4358de1c --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 5281a958_99ee_42f0_65d8_3fb6d850517a["colors"] b67d35c7_52e9_adcc_f607_978c4358de1c --> 5281a958_99ee_42f0_65d8_3fb6d850517a 76152437_4b94_3a04_04d2_9dbe676d4974["color"] b67d35c7_52e9_adcc_f607_978c4358de1c --> 76152437_4b94_3a04_04d2_9dbe676d4974 1143d438_9fec_71cd_8036_70ccdbda6c4e["color-format-selector"] b67d35c7_52e9_adcc_f607_978c4358de1c --> 1143d438_9fec_71cd_8036_70ccdbda6c4e style b67d35c7_52e9_adcc_f607_978c4358de1c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { type ColorPalette } from "@/lib/colors"
import { Color } from "@/components/color"
import {
ColorFormatSelector,
ColorFormatSelectorSkeleton,
} from "@/components/color-format-selector"
export function ColorPalette({ colorPalette }: { colorPalette: ColorPalette }) {
return (
<div
id={colorPalette.name}
className="rounded-lg shadow-sm ring-1 ring-border"
>
<div className="flex items-center p-2 pb-0">
<div className="flex-1 pl-1 text-sm font-medium">
<h2 className="capitalize">{colorPalette.name}</h2>
</div>
<React.Suspense fallback={<ColorFormatSelectorSkeleton />}>
<ColorFormatSelector
color={colorPalette.colors[0]}
className="ml-auto"
/>
</React.Suspense>
</div>
<div className="flex flex-col gap-1 p-2 sm:flex-row sm:gap-2">
{colorPalette.colors.map((color) => (
<Color key={color.hex} color={color} />
))}
</div>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- color
- color-format-selector
- colors
- react
Source
Frequently Asked Questions
What does color-palette.tsx do?
color-palette.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 color-palette.tsx?
color-palette.tsx defines 1 function(s): ColorPalette.
What does color-palette.tsx depend on?
color-palette.tsx imports 4 module(s): color, color-format-selector, colors, react.
Where is color-palette.tsx in the architecture?
color-palette.tsx is located at deprecated/www/components/color-palette.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