Components
A polished color palette component with smooth hover expansion animations and a copy-to-clipboard feature.
Loading preview...
import { ColorSwatch } from "@/components/ui/color-swatch"
const colors = ["#FF5722", "#A85432", "#7A5044", "#5A5050", "#707070", "#9E9E9E", "#C8C8C8", "#F5F5F5"]
export default function Page() {
return (
<div className="min-h-screen bg-background w-full flex items-center justify-center p-8">
<div className="flex items-center">
{colors.map((color, index) => (
<ColorSwatch key={color} color={color} index={index} totalColors={colors.length} />
))}
</div>
</div>
)
}