shadcn presets explained
October 23, 2026 · 5 min read
Pass b5owWMfJ8l to the shadcn CLI and you get a project with a specific component style, palette, font pairing, icon set and corner radius already in place. That string is a preset. Instead of copying a block of CSS variables, picking a font, swapping an icon library and adjusting border radius by hand, you pass one code to the shadcn CLI and it configures the project for you. This guide explains what a preset contains, how it differs from a theme or a style, where to find good ones and how to use them.
The short definition
A preset is a compact, shareable description of how a Shadcn UI project should look and feel. It records every design decision the shadcn builder exposes, from the component style down to how dropdown menus are colored, and packs them into a string of about ten characters.
Because the code is small, it travels well. You can paste it into a README, a pull request, a tweet or a Slack message, and anyone with the shadcn CLI can reproduce the exact same setup.
What a preset code encodes
When you decode a preset, you get ten fields back. Here is what b5owWMfJ8l contains:
| Field | Value | What it controls |
|---|---|---|
style | mira | Component geometry, spacing and density |
baseColor | mauve | Neutral palette for backgrounds, borders and muted text |
theme | mauve | Accent color for primary buttons, focus rings and active states |
chartColor | amber | The color ramp used for --chart-1 through --chart-5 |
iconLibrary | hugeicons | Which icon set components import |
font | inter | Body font |
fontHeading | oxanium | Heading font (or inherit to reuse the body font) |
radius | large | Corner radius (0.875rem in this case) |
menuAccent | subtle | How strongly the active menu item is highlighted |
menuColor | inverted-translucent | Menu surface color and translucency |
That single code is enough to rebuild the whole configuration. The format is covered in more depth in how shadcn preset codes work.
Presets, themes and styles side by side
These three words get used interchangeably, but they mean different things in Shadcn UI.
- Style changes how components are built: padding, spacing, corner geometry, density and overall feel. Vega, Nova, Maia, Lyra, Mira, Luma, Sera and Rhea are styles. A style does not set colors.
- Theme is a set of CSS variables for colors and radius, in light and dark mode:
--background,--primary,--chart-1and so on. It only affects what things look like, not how components are structured. - Preset is the whole package: a style, a theme (base color, accent and chart colors, radius), fonts, an icon library and menu settings.
Put simply, a theme is one part of a preset, and a style is another part. If you only want new colors, you want a theme. If you want a project to look like a finished design, you want a preset. There is a dedicated article on presets vs themes, and a full breakdown of each style in shadcn styles compared.
Why presets exist
Before presets, sharing a Shadcn UI design meant sharing several things at once: a globals.css file, a font import, a components.json with the right style, and instructions about which icon package to install. It was easy to miss a step.
Presets solve that by turning the design into data. The CLI knows how to apply each field, so the result is consistent across machines and teammates. They are also useful as a starting point. You can apply a preset, then tweak individual pieces, rather than designing a system from scratch.
Finding presets worth using
There are a few good places to find preset codes:
- Our preset gallery has hundreds of curated presets, each previewed on real page layouts, with the code and install command ready to copy.
- The preset builder lets you pick every option yourself and see the result live before copying the code.
- The preset finder asks a few questions about your project and suggests presets that fit.
- The random preset tool is handy when you want inspiration.
- The official shadcn builder at ui.shadcn.com/create generates codes too.
Here are a couple from the gallery to give you a feel for the range:
Mauve Velvet
Luma · Mauve mono · EB Garamond / Montserrat
b864QDw6PbOur previews are built with real blocks from shadcnblocks, so you see how a preset handles hero sections, pricing tables and dashboards, not just a single button.
How to use a preset
You apply a preset with the shadcn CLI. The examples use npx, but pnpm dlx, bunx and yarn dlx work the same way.
For a new project:
npx shadcn@latest init --preset b5owWMfJ8l
For an existing project that already uses Shadcn UI:
npx shadcn@latest apply --preset b5owWMfJ8l
If you only want part of a preset, use --only:
npx shadcn@latest apply --preset b5owWMfJ8l --only theme
npx shadcn@latest apply --preset b5owWMfJ8l --only font
To see what a code contains before applying it:
npx shadcn@latest preset decode b5owWMfJ8l
The full walkthrough, including templates, bases and troubleshooting, is in how to apply a shadcn preset.
Tip
Run npx shadcn@latest preset resolve inside an existing project to print the preset code that matches its current setup. It is an easy way to share your configuration with someone else.
What a preset does not include
A preset describes design settings, not content. It will not add pages, components you have not installed, or your own custom CSS. It also only covers the options shadcn exposes, so a very specific brand color that is not one of the built-in theme colors needs to be set by editing your CSS variables after applying the preset.
If accessibility is a priority, check contrast after applying any preset. Our contrast audit and accessible presets can help.
FAQ
Is a shadcn preset the same as a theme?
No. A theme only covers color and radius CSS variables. A preset includes a theme plus the component style, fonts, icon library and menu settings.
Are shadcn presets free?
Yes. Preset codes are just strings, and the shadcn CLI is open source. Every preset in our gallery is free to copy and use.
Can I change a preset after applying it?
Yes. Applying a preset writes normal files to your project: CSS variables, components.json settings and font imports. You can edit any of them afterward, or apply a different preset.
Do presets work with Tailwind CSS v4?
Yes. Current versions of Shadcn UI use Tailwind v4, and presets write colors as CSS variables in oklch that Tailwind picks up through your theme configuration.
Where can I see what a preset looks like before installing it?
Browse the preset gallery or open the preset builder, which renders real blocks in the selected style, colors and fonts.