shadcn base colors explained, from Neutral to Taupe
October 23, 2026 · 5 min read
Every Shadcn UI preset has a base color. It's easy to overlook because it's grey, but it covers most of the screen: the page itself, card surfaces, dividers, form fields and secondary text. Pick a different base and the same layout can feel clinical, warm, technical or soft before you've touched the accent color. This guide explains what a base color controls, how the seven options differ, and which accents work well with each.
What a base color controls
A preset splits color into two layers. The base color sets the neutral surfaces and text. The theme color sets the accent.
The base color sets these CSS variables:
--backgroundand--foreground--cardand--card-foreground--mutedand--muted-foreground--border,--inputand--ring--secondaryand--accent(the subtle hover and selected surfaces, not the brand accent)
The theme color overrides --primary, --primary-foreground and --sidebar-primary, and in some cases --secondary. Buttons, focus states and active items pick up the theme, and everything else stays on the base.
Here's what the Neutral base looks like in light mode:
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--muted-foreground: oklch(0.556 0 0);
--border: oklch(0.922 0 0);
}
The middle number in each oklch() value is chroma, meaning how saturated the color is. Neutral has zero chroma everywhere, so it's pure grey. The other bases add a small amount of chroma at a particular hue. That's what gives them their tint.
Base color vs theme color
If you choose a theme that matches the base (for example, a Stone theme with the Stone base), the accent stays in the grey family and the result is monochrome. Neutral-family themes only work on their matching base color. You can't put a Zinc theme on a Stone base.
The seven base colors
| Base | Tint | Mood | Good accents |
|---|---|---|---|
| Neutral | None, pure grey | Clean, objective | Anything, especially red, orange, blue |
| Stone | Warm, hint of brown | Earthy, editorial | Amber, orange, red, yellow, green |
| Zinc | Cool, slight blue | Technical, crisp | Blue, indigo, sky, violet, lime |
| Mauve | Soft purple | Moody, creative | Purple, fuchsia, pink, cyan |
| Olive | Earthy green | Natural, calm | Green, lime, teal, orange |
| Mist | Cool blue-green | Airy, calm | Blue, teal, sky, violet, lime |
| Taupe | Warm, sandy | Soft, hospitable | Amber, orange, rose, yellow |
Neutral
Neutral is untinted grey. It doesn't push a mood, so the accent color does all the work. That makes it a safe default for products where the brand color has to read exactly as specified. It can feel a little sterile on its own, but a strong accent fixes that. Amber Terminal uses Neutral with an amber accent for a stark developer look.
Stone
Stone is a warm grey with a hint of brown. Backgrounds read like paper rather than screen white, so it suits editorial sites, food, hospitality and anything that should feel crafted. It works best with warm accents: amber, orange, red and yellow.
Amber Gazette
Sera · Amber + Stone · Noto Serif / Public Sans
b5AzLdyGzDZinc
Zinc is a cool grey with a slight blue cast. It's the go-to for dashboards, SaaS products and developer tools, where cool neutrals read as precise. Blue, indigo and sky feel at home on it, and so does a lime or green accent for a terminal feel. Indigo Monitor is a typical Zinc dashboard setup.
Mauve
Mauve is grey with a soft purple tint. It's the most "designed" of the bases, and it works well for creative tools, portfolios and products that want a bit of atmosphere. Purple, violet and fuchsia blend into it. Cyan and lime make a sharper, retro contrast, as in Cyan Joystick.
Olive
Olive is grey with an earthy green tint. It's subtle in light mode and more noticeable in dark mode, where surfaces take on a mossy depth. It pairs naturally with green, lime and teal for nature, wellness and sustainability products. Orange is a good complementary choice if you want more energy.
Green Harvest
Maia · Green + Olive · Merriweather / Nunito Sans
b4X0OYj3BJMist
Mist is a cool grey with a soft blue-green tint. It's slightly softer than Zinc, so it feels calm rather than strictly technical. It works for SaaS, health and productivity apps. Blue, teal, sky and violet all sit comfortably on it. Teal Lagoon is a good example.
Taupe
Taupe is a warm, sandy grey, a little lighter and softer than Stone. It suits lifestyle brands, boutiques and anything that should feel welcoming. Amber, orange, rose and yellow look natural on it. Amber Bakery uses Taupe with an amber accent.
How to choose
Start with the feeling you want, not the accent:
- Precise and technical: Zinc or Neutral
- Calm and approachable: Mist or Olive
- Warm and editorial: Stone or Taupe
- Creative and moody: Mauve
Then choose an accent that shares the base's temperature (warm with warm, cool with cool) for a harmonious result, or one from the opposite side for contrast. Check dark mode before you commit. Tints that are barely visible on a white background become more obvious on dark surfaces.
What about Gray?
The preset encoder knows about a Gray base color, but the shadcn registry rejects it, so presets using it won't install. Use Zinc or Mist for a cool grey instead.
Changing the base color in an existing project
If you like a preset's colors but not its fonts or style, you can apply only the theme part:
npx shadcn@latest apply --preset <code> --only theme
This updates your CSS variables (base color, theme color and chart color) and leaves everything else alone. To try base colors side by side with real components, use the preset builder. It renders real shadcnblocks blocks, so you can see how each grey looks on a full landing page or dashboard. For a full breakdown of how base and theme combine, see shadcn preset vs theme.
FAQ
Which base color does shadcn use by default?
Neutral is the most common starting point, and it's a fine choice, but it isn't required. Any of the seven bases works with any style.
Can I use one base color in light mode and another in dark mode?
Not within a single preset. Each base color defines both a light and a dark set of variables. If you need something custom, start from a preset and edit the CSS variables by hand.
Does the base color affect charts?
No. Charts use the chart color, which sets --chart-1 through --chart-5 as a five-step ramp. You can set it to the base color for monochrome charts or to any accent.
Which base color is best for accessibility?
Base colors aren't where contrast problems usually start. Foreground text on each base is very dark in light mode and very light in dark mode. Problems more often come from bright accents or from muted text used at small sizes. See accessible shadcn themes for how to check.