Build your theme

Starting point

Optional — defaults to fresh

A new globals.css built on the shadcn defaults. Override the colors you care about below — the rest is derived.

Your base palette
  • Light and dark generated together
  • Every variable filled in — drop it straight into your project
Drop globals.css here, or

Reads any :root block, top-level or in @layer base. Only the colors you change are rewritten — comments, formatting, and untouched .dark values are preserved exactly.

Writes back in oklch() · hsl() · rgb() · hex

Core colors

Core colors
Light
Dark

Primary buttons, links, and active states.

Light
Dark

Secondary buttons and subdued UI surfaces.

Light
Dark

Highlighted/hover surfaces and accent UI elements.

Charts

Charts
Light
Dark

Base color for the 5-step chart scale. Starts at whatever --chart-1 is; change it and all five (--chart-1 through --chart-5) are regenerated.

Matches AccentEnter a color to set it separately.

Surfaces

Surfaces
Light
Dark

Page background color.

Light
Dark

Text sitting directly on the page background — headings, paragraphs, sheet/dialog titles, and outline/ghost button labels. Cards and popovers use their own foreground instead.

Light
Dark

Card surface background color.

Light
Dark

Popover/dropdown surface background color.

Light
Dark

Subtle background fills, e.g. disabled states.

Light
Dark

Default border color for cards, dividers, table rows, and outline buttons. Form inputs use Input border instead.

Form Inputs & Feedback

Form Inputs & Feedback
Light
Dark

Outlines inputs, textareas, selects, checkboxes and radios. The fields themselves are transparent, taking their fill from whatever surface they sit on, so this is their edge and not their background. It does fill one thing: a toggle switch in its off position.

Light
Dark

Replaces the border, plus a soft glow, on whatever has keyboard focus — inputs and selects, but also buttons, tabs and sliders.

Light
Dark

Destructive actions like delete buttons and error states.

Sidebar

Sidebar
Light
Dark

Sidebar background color.

Light
Dark

Active/branded elements inside the sidebar, like a workspace badge.

Matches PrimaryEnter a color to set it separately.

Light
Dark

Hovered and selected sidebar nav items.

Matches SecondaryEnter a color to set it separately.

Light
Dark

Sidebar border color.

Light
Dark

Sidebar focus ring color.

Generated globals.css

104 vars · 134 lines