Colors
Each swatch shows the token and its value in the current theme. A token is used as a utility such as bg-primary.
Surfaces
The page, and the panels that sit on it.
Aa
--background
The page.
Aa
--card
Cards and other raised panels.
Aa
--popover
Popovers, dropdowns and select lists.
Actions and emphasis
Fills for buttons and for quieter areas.
Aa
--primary
The main action: primary buttons, links, the checked state.
Aa
--secondary
A second, quieter button.
Aa
--accent
Hover and active fills in menus.
Aa
--muted
A soft fill behind secondary content.
Aa
--muted-foreground
Secondary text. Shown here as a fill; it is used as a text colour.
Status
Used as text and border, and as a faint tint behind them.
Aa
--success
Something worked or is healthy.
Aa
--warning
Needs attention.
Aa
--destructive
An error, or an action that deletes.
Aa
--info
Neutral information.
Lines and fields
Borders and the controls of a form.
Aa
--border
Borders and dividers.
Aa
--input
The border of a field.
Aa
--control
The fill of a field.
Aa
--ring
The focus ring.
Charts
Series colours, lightest to darkest.
Aa
--chart-1
Aa
--chart-2
Aa
--chart-3
Aa
--chart-4
Aa
--chart-5
Sidebar
The sidebar and the sub navigation have their own set, so they can differ from the page.
Aa
--sidebar
The sidebar's surface.
Aa
--sidebar-accent
The current item, and an item under the pointer.
Aa
--sidebar-primary
A strong fill inside the sidebar.
Aa
--sidebar-border
Lines inside the sidebar.
Aa
--sidebar-ring
The focus ring inside the sidebar.
States of each colour
Each swatch is drawn with the utilities the components use.
Primary
Solid fills with white text.
Aa
Colour
bg-primary
Primary buttons and badges, the checked state.
Aa
Hover
bg-primary/80
A primary button or badge under the pointer.
Aa
Text
text-primary
Links.
Secondary
A quiet grey fill with dark text.
Aa
Colour
bg-secondary
Secondary buttons and badges.
Aa
Hover, button
secondary mixed with 5% foreground
A secondary button under the pointer.
Aa
Hover, badge
bg-secondary/80
A secondary badge that is a link, under the pointer.
Success
Something worked or is healthy.
Aa
Colour
bg-success
The token itself.
Aa
Text
text-success
Text and icons on the page.
Aa
Soft fill and border
border-success/25 bg-success/8
Alerts and status items. The fill is 15% in dark.
Aa
Badge fill
bg-success/10
Badges. 20% in dark.
Aa
Badge fill, hover
bg-success/20
A badge that is a link, under the pointer.
Warning
Needs attention.
Aa
Colour
bg-warning
The token itself.
Aa
Text
text-warning
Text and icons on the page.
Aa
Soft fill and border
border-warning/25 bg-warning/8
Alerts and status items. The fill is 15% in dark.
Aa
Badge fill
bg-warning/10
Badges. 20% in dark.
Aa
Badge fill, hover
bg-warning/20
A badge that is a link, under the pointer.
Info
Neutral information.
Aa
Colour
bg-info
The token itself.
Aa
Text
text-info
Text and icons on the page.
Aa
Soft fill and border
border-info/25 bg-info/8
Alerts and status items. The fill is 15% in dark.
Aa
Badge fill
bg-info/10
Badges. 20% in dark.
Aa
Badge fill, hover
bg-info/20
A badge that is a link, under the pointer.
Destructive (danger)
An error, or an action that deletes.
Aa
Colour
bg-destructive
The token itself.
Aa
Text
text-destructive
Text and icons on the page.
Aa
Soft fill and border
border-destructive/25 bg-destructive/8
Alerts and status items. The fill is 15% in dark.
Aa
Badge fill
bg-destructive/10
Badges and destructive buttons. 20% in dark.
Aa
Badge fill, hover
bg-destructive/20
A destructive button or badge link under the pointer. The button is 30% in dark.