Use the Color component to showcase color palettes in your documentation. Display colors in a compact grid or organize them in a table with labeled rows.Documentation Index
Fetch the complete documentation index at: https://www.mintlify.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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
Display style for the color palette. Options:
compact or table.Color items or rows to display.
Color.Row
Label for the row of colors.
Color items to display in the row.
Color.Item
Name or label for the color.
Color value in any CSS format, or an object with light and dark mode values.