color-palette.tsx — ui Source File
Architecture documentation for color-palette.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 14015396_b876_3e21_a020_dc3960774764["color-palette.tsx"] 5281a958_99ee_42f0_65d8_3fb6d850517a["colors"] 14015396_b876_3e21_a020_dc3960774764 --> 5281a958_99ee_42f0_65d8_3fb6d850517a 76152437_4b94_3a04_04d2_9dbe676d4974["color"] 14015396_b876_3e21_a020_dc3960774764 --> 76152437_4b94_3a04_04d2_9dbe676d4974 1143d438_9fec_71cd_8036_70ccdbda6c4e["color-format-selector"] 14015396_b876_3e21_a020_dc3960774764 --> 1143d438_9fec_71cd_8036_70ccdbda6c4e style 14015396_b876_3e21_a020_dc3960774764 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { type ColorPalette } from "@/lib/colors"
import { Color } from "@/components/color"
import { ColorFormatSelector } from "@/components/color-format-selector"
export function ColorPalette({ colorPalette }: { colorPalette: ColorPalette }) {
return (
<div id={colorPalette.name} className="scroll-mt-20 rounded-lg">
<div className="flex items-center px-4">
<div className="flex-1 pl-1 text-sm font-medium">
<h2 className="capitalize">{colorPalette.name}</h2>
</div>
<ColorFormatSelector
color={colorPalette.colors[0]}
className="ml-auto"
/>
</div>
<div className="flex flex-col gap-4 py-4 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
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 Internationalization domain, RTLLayout 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 3 module(s): color, color-format-selector, colors.
Where is color-palette.tsx in the architecture?
color-palette.tsx is located at apps/v4/components/color-palette.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free