Compact variant
Display colors in a simple grid layout with color names and values.blue-500
#3B82F6
blue-600
#2563EB
blue-700
#1D4ED8
blue-800
#1E40AF
Compact example
Table variant
Organize colors into labeled rows for design system documentation.Primary
Secondary
Table example
Color formats
The component supports all CSS color formats including hex, rgb, rgba, hsl, and oklch.hex
#FF5733
rgb
rgb(51, 255, 87)
rgba
rgba(51, 87, 255, 0.7)
hsl
hsl(180, 70%, 55%)
oklch
oklch(70% 0.2 145)
Color formats example
Theme-aware colors
Define different colors for light and dark modes using an object withlight and dark properties.
bg-primary
bg-secondary
text-primary
Theme-aware example
Properties
Color
string
required
Display style for the color palette. Options:
compact or table.Color.Item | Color.Row
required
Color items or rows to display.
Color.Row
string
Label for the row of colors.
Color.Item
required
Color items to display in the row.
Color.Item
string
Name or label for the color.
string | { light: string, dark: string }
required
Color value in any CSS format, or an object with light and dark mode values.