What's the difference between shadcn presets and themes?
October 23, 2026 · 5 min read
"Theme" and "preset" both come up when you customize Shadcn UI, and they are easy to mix up. They overlap, but they are not the same thing. A theme changes colors and corner radius. A preset changes the whole design system, and a theme is one part of it. Knowing the difference helps you pick the right tool and avoid overwriting more of your project than you meant to.
The one-sentence answer
A theme is a set of CSS variables for colors and radius. A preset bundles that palette with everything else the CLI can set up: component style, fonts, icon library and menu settings, all stored in one code.
What a theme contains
A Shadcn UI theme is pure CSS. It defines the semantic color variables that every component reads from, in light and dark mode, plus the base radius. Values are written in oklch.
Here is a trimmed example for a neutral base with a blue accent and blue charts:
:root {
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--primary: oklch(0.488 0.243 264.376);
--primary-foreground: oklch(0.97 0.014 254.604);
--border: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.809 0.105 251.813);
--chart-2: oklch(0.623 0.214 259.815);
--chart-3: oklch(0.546 0.245 262.881);
--chart-4: oklch(0.488 0.243 264.376);
--chart-5: oklch(0.424 0.199 265.638);
--sidebar-primary: oklch(0.546 0.245 262.881);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--primary: oklch(0.424 0.199 265.638);
--primary-foreground: oklch(0.97 0.014 254.604);
}
A full theme also includes --card, --popover, --secondary, --muted, --accent, --destructive, --input and the rest of the sidebar variables. That is everything. A theme does not know about fonts, icons or how much padding a button has.
Our themes pages show these variable sets on their own, ready to copy into your global CSS.
What a preset contains
A preset includes the inputs that produce a theme, plus everything else:
| Part | In a theme? | In a preset? |
|---|---|---|
| Base color (neutral, stone, zinc, mauve, olive, mist, taupe) | Yes | Yes |
| Theme / accent color | Yes | Yes |
| Chart colors | Yes | Yes |
| Radius | Yes | Yes |
| Component style (Vega, Nova, Maia, Lyra, Mira, Luma, Sera, Rhea) | No | Yes |
| Body and heading fonts | No | Yes |
| Icon library | No | Yes |
| Menu accent and menu color | No | Yes |
So the colors-and-radius part of a preset is effectively a theme. The rest controls structure and typography. For a deeper look at each field, see what is a shadcn preset?.
How they are applied
Because a theme is plain CSS, you can apply it by pasting variables into your global stylesheet. No CLI is required.
A preset is applied through the shadcn CLI:
npx shadcn@latest apply --preset b2D1aZwJt
That command can update components.json, your global CSS, font setup, icon dependencies and component files to match the preset.
Using a preset as a theme with --only theme
You do not have to choose one or the other. If you like a preset's colors but want to keep your current style, fonts and icons, apply only its theme:
npx shadcn@latest apply --preset b2D1aZwJt --only theme
This writes the color and radius variables and leaves everything else alone. There is a matching --only font if you want a preset's typography without its colors.
Prefer CSS?
Paste any preset code into the preset decoder to get its theme as copy-ready :root and .dark blocks. It is useful when your project is not managed by the shadcn CLI.
When to use a theme
A theme is the right choice when:
- You already have a component style and fonts you are happy with
- You heavily customized component files and do not want them touched
- You need a quick brand recolor
- You are working outside the shadcn CLI, for example in a design prototype or a project that copies components manually
When to use a preset
A preset makes more sense when:
- You are starting a new project and want a complete, coherent look in one step
- You want to try a different component style, like switching from Vega to Luma
- You want fonts, icons and colors chosen to work together
- You want to share an exact setup with a teammate using a single code
Color rules that apply to both
Some combinations are not valid, whether you think of them as a theme or as part of a preset.
The base colors are neutral, stone, zinc, mauve, olive, mist and taupe. The theme can be the same as the base color, or one of the accent colors: amber, blue, cyan, emerald, fuchsia, green, indigo, lime, orange, pink, purple, red, rose, sky, teal, violet or yellow. A neutral-family theme such as stone or zinc only works on its matching base color, so a stone theme requires a stone base.
Chart colors follow the same pattern: the preset's base color, or any accent color. Read more in shadcn base colors explained.
Examples
These presets show how much more a preset changes than a theme. Sky Haven and Purple Lumen both use the Luma style, but differ in base, accent, font and icon library:
You can compare any preset on full pages in the preset builder, which uses real shadcnblocks blocks.
If contrast matters for your users, check our accessible presets and the guide to accessible shadcn themes.
FAQ
Is a shadcn theme part of a preset?
Yes. The base color, theme color, chart color and radius in a preset together produce a theme.
Can I apply just the colors from a preset?
Yes. Run npx shadcn@latest apply --preset <code> --only theme.
Does a theme change fonts?
No. Themes only contain color and radius variables. Fonts are part of a preset.
Can I convert a theme into a preset code?
Only if your colors match one of the built-in base and accent combinations. In that case, pick the same options in the preset builder to get a code. Custom colors outside the built-in options cannot be encoded in a preset.
Where can I browse shadcn themes?
See our themes for color-only options, or the preset gallery for complete setups.