docs/colors
Sections
Components
Utilities
Forms
Hooks
Copy Markdown
Color palette and color system.
Tokens mirror Tailwind color conventions, so names align with utility classes and stay predictable in your project.
The UI draws from one of nine neutral gray scales. The scale you choose sets backgrounds, borders, and muted tones for the whole theme.
The default palette is neutral, anchored at neutral-50 in light mode and neutral-950 in dark mode. Preview another scale with the swatches below:
Slate
500
Gray
500
Zinc
500
Neutral
500
Stone
500
Mauve
500
Olive
500
Mist
500
Taupe
500
Click a swatch to switch the neutral scale and preview the theme across the docs. Subtle differences between grays are easiest to judge in dark mode.
Build your own color palette
Try the Theme editor to visually customize primary, neutral colors and radius.
These tokens live in your CSS file under :root and .dark.
The default app background and text color for the page shell, page sections, and default text.
--background--foregroundElevated surfaces and the content inside them, including Card, dashboard panels, and settings panels.
--card--card-foregroundFloating surfaces and the content inside them, such as Popover, DropdownMenu, ContextMenu, and other overlays.
--popover--popover-foregroundHigh-emphasis actions and brand surfaces, including the default Button, selected states, badges, and active accents.
--primary--primary-foregroundLower-emphasis filled actions and supporting surfaces, such as secondary buttons, secondary badges, and supporting UI.
--secondary--secondary-foregroundSubtle surfaces and lower-emphasis content for descriptions, placeholders, empty states, helper text, and subdued surfaces.
--muted--muted-foregroundInteractive hover, focus, and active surfaces for ghost buttons, menu highlight states, hovered rows, and selected items.
--accent--accent-foregroundDestructive actions and error emphasis for destructive buttons, invalid states, and destructive menu items.
--destructive--destructive-foregroundInformational actions and emphasis for informational buttons, badges, alerts, status, etc.
--info--info-foregroundSuccess actions and emphasis for success buttons, badges, alerts, status, etc.
--success--success-foregroundWarning actions and emphasis for warning buttons, badges, alerts, status, etc.
--warning--warning-foregroundDefault borders and separators on cards, menus, tables, separators, and layout dividers.
--border--border-foregroundForm control borders and input surface treatment on Input, Textarea, Select, and outline-style controls.
--input--input-foregroundFocus rings and outlines on buttons, inputs, checkboxes, menus, and other focusable controls. It follows the primary color.
--ring--ring-foregroundThe base sidebar surface and default sidebar text on the Sidebar container and its default content.
--sidebar--sidebar-foregroundHigh-emphasis actions inside the sidebar for active items, icon tiles, badges, and sidebar CTAs.
--sidebar-primary--sidebar-primary-foregroundHover and selected states inside the sidebar for menu hover states, open items, and interactive rows.
--sidebar-accent--sidebar-accent-foregroundSidebar-specific borders and separators on sidebar headers, groups, and internal dividers.
--sidebar-borderSidebar-specific focus rings on focused controls inside the sidebar. It follows the primary color.
--sidebar-ringThe base corner radius scale for cards, inputs, buttons, popovers, and the derived radius-* tokens.
Preset theme classes are documented in Styling.
[
Previous page
Styling ](/docs/styling)[
Next page
Forms ](/docs/forms)
On This Page
OverviewCore conceptsTheme Tokensbackground / foregroundcardpopoverprimarysecondarymutedaccentdestructiveinfosuccesswarningborderinputringsidebarsidebar-primarysidebar-accentsidebar-bordersidebar-ringradius