Your shadcn theme, built as a preset.
Pick a style, colors, fonts, radius, icons and menus, or start from one of 59 presets. See it on real components, then take one code to your project.
Build your preset
Pick each part of your preset, or shuffle. Every pick shows at once on real components, in light or dark, and only combinations shadcn's CLI builds are on offer.
Not in the code: shadcn's CLI installs on it (--base).
Reduced padding and margins.
Use your preset
One code holds every pick. Start a project with it, restyle one you have, or copy its CSS. shadcn's CLI reads it as it is.
Preset code
b8OmNERHTE
Nova · Taupe base · Amber accent · Amber charts · DM Sans and Instrument Serif · Lucide
This site
Use it on shadcn.io: its style, base color, accent and radius, saved in this browser. Fonts, icons, charts and menus stay the site's.
A new project, on Base UI
bunx --bun shadcn@latest init --preset b8OmNERHTE --base baseThe CLI asks for a template (Next.js, Vite, React Router, Astro and more), then writes components.json, the variables, the fonts and the icon package. Every component you add after comes in this preset.
Everything: components, colors, fonts and icons
bunx --bun shadcn@latest apply b8OmNERHTEOnly the colors and radius
bunx --bun shadcn@latest apply b8OmNERHTE --only themeapp/globals.css
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.147 0.004 49.3);
--card: oklch(1 0 0);
--card-foreground: oklch(0.147 0.004 49.3);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.147 0.004 49.3);
--primary: oklch(0.555 0.163 48.998);
--primary-foreground: oklch(0.987 0.022 95.277);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.96 0.002 17.2);
--muted-foreground: oklch(0.547 0.021 43.1);
--accent: oklch(0.96 0.002 17.2);
--accent-foreground: oklch(0.214 0.009 43.1);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0.005 34.3);
--input: oklch(0.922 0.005 34.3);
--ring: oklch(0.714 0.014 41.2);
--chart-1: oklch(0.879 0.169 91.605);
--chart-2: oklch(0.769 0.188 70.08);
--chart-3: oklch(0.666 0.179 58.318);
--chart-4: oklch(0.555 0.163 48.998);
--chart-5: oklch(0.473 0.137 46.201);
--radius: 0.45rem;
--sidebar: oklch(0.986 0.002 67.8);
--sidebar-foreground: oklch(0.147 0.004 49.3);
--sidebar-primary: oklch(0.666 0.179 58.318);
--sidebar-primary-foreground: oklch(0.987 0.022 95.277);
--sidebar-accent: oklch(0.96 0.002 17.2);
--sidebar-accent-foreground: oklch(0.214 0.009 43.1);
--sidebar-border: oklch(0.922 0.005 34.3);
--sidebar-ring: oklch(0.714 0.014 41.2);
}
.dark {
--background: oklch(0.147 0.004 49.3);
--foreground: oklch(0.986 0.002 67.8);
--card: oklch(0.214 0.009 43.1);
--card-foreground: oklch(0.986 0.002 67.8);
--popover: oklch(0.214 0.009 43.1);
--popover-foreground: oklch(0.986 0.002 67.8);
--primary: oklch(0.473 0.137 46.201);
--primary-foreground: oklch(0.987 0.022 95.277);
--secondary: oklch(0.274 0.006 286.033);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.268 0.011 36.5);
--muted-foreground: oklch(0.714 0.014 41.2);
--accent: oklch(0.268 0.011 36.5);
--accent-foreground: oklch(0.986 0.002 67.8);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.547 0.021 43.1);
--chart-1: oklch(0.879 0.169 91.605);
--chart-2: oklch(0.769 0.188 70.08);
--chart-3: oklch(0.666 0.179 58.318);
--chart-4: oklch(0.555 0.163 48.998);
--chart-5: oklch(0.473 0.137 46.201);
--sidebar: oklch(0.214 0.009 43.1);
--sidebar-foreground: oklch(0.986 0.002 67.8);
--sidebar-primary: oklch(0.769 0.188 70.08);
--sidebar-primary-foreground: oklch(0.279 0.077 45.635);
--sidebar-accent: oklch(0.268 0.011 36.5);
--sidebar-accent-foreground: oklch(0.986 0.002 67.8);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.547 0.021 43.1);
}
@theme inline {
--font-sans: 'DM Sans Variable', sans-serif;
--font-heading: 'Instrument Serif', serif;
}The variables shadcn's CLI writes, light on :root and dark on .dark. Install the fonts yourself; the style and icons come with the CLI.
The Vue, Svelte and Solid CLIs don't read a preset yet: their setup installs shadcn.io's own theme. Run it, then paste this preset's CSS over the theme's variables. The colors, charts and radius carry over; the style, fonts and icon library are for shadcn's React CLI.
Start from a preset
shadcn.io's 59 themes, as presets. Open one in the generator and make it yours: every field stays yours to change.
Build it with Pro
The generator is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds with your theme.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Frequently asked questions
Presets, the rules shadcn's CLI keeps, and how to take your theme to a project.
A free tool that builds a shadcn/ui preset: you pick the style, base color, accent, chart color, body and heading fonts, radius, icon library and menu, watch them on real components, and take one short code to your project. shadcn turned themes into presets (its /themes page now opens /create), so a preset is how a shadcn theme travels.
A short code, like b0, that packs ten choices: the style, base color, accent, chart color, body font, heading font, radius, icon library, menu color and menu accent. shadcn's CLI reads it (`shadcn init --preset <code>`, `shadcn apply <code>`) and ui.shadcn.com/create opens it, so the same code works everywhere.
A theme is colors and a radius, written as CSS variables. A preset carries those and more: the style the components are drawn in (spacing, shapes, borders), the fonts and the icon library, so the CLI installs components that already look like your design, not the default with new colors.
Yes. There's no account and nothing to install: every pick, the preview and the output run in your browser. The codes are shadcn's own, so they work with the shadcn CLI whether or not you use anything else from shadcn.io.
Yes. The preview is the registry's own components (on Base UI) in a frame of their own, with the preset's style sheet, its colors exactly as shadcn's CLI writes them, its fonts loaded from Google Fonts and its icon library's drawings. The site's own theme and mode never reach it, so what you see is the preset.
The style is how the components are drawn: spacing, shapes, borders and type. There are 8: Vega (clean, neutral, and familiar), Nova (reduced padding and margins), Maia (rounded, with generous spacing), Lyra (boxy and sharp. for mono fonts), Mira (made for compact interfaces), Luma (fluid, luminous, and soft), Sera (editorial and typographic), Rhea (like luma but compact). Colors, fonts and radius sit on top of whichever you pick.
shadcn's builder takes a neutral accent or chart color (neutral, stone, zinc, mauve, olive, mist or taupe) only with its own base color: ui.shadcn.com/init refuses a taupe accent on a stone base. So each base color offers its own neutral and the 17 colors, and changing the base moves a neutral accent to the new base's own. Every code the generator gives you builds.
Lyra and Sera are square by design (their components are drawn with no radius), so their radius is none. Rhea has no large radius. The generator keeps those locks, so the code always says what the components show.
Lyra is boxy and sharp, made for a mono face, so the generator keeps its body font to JetBrains Mono or Geist Mono, as shadcn's shuffle gives it JetBrains Mono. Pick a heading font of any kind on top.
The menu color is how every menu, select and popover list is drawn: default or inverted (a dark menu on a light page), solid or translucent (blurred over what's behind it). The menu accent is the highlighted row: subtle, in the muted color, or bold, in the primary color. A translucent menu keeps a subtle accent, as shadcn's builder does.
The preset's chart color sets the five chart variables (--chart-1 to --chart-5) every chart reads. The preview draws them in bars, an area and a donut. Shuffle pairs an accent with chart colors that contrast with it, as shadcn's does.
A preset of shadcn's own making, with its rules: any style, a base color it has, an accent that base takes, the accent's paired chart colors, Lyra in JetBrains Mono, Rhea never large, headings in the body's font seven times in ten, and a translucent menu with a subtle accent. Undo brings back the one before.
Copy the new-project command: `npx shadcn@latest init --preset <code> --base <library>`. The CLI asks for a template (Next.js, Vite, React Router, Astro and more), then writes components.json, the CSS variables, the fonts and the icon package, and every component you add later comes in your preset.
Run `npx shadcn@latest apply <code>` in a project that has components.json: it restyles the components you have, the colors, fonts and icons. `apply <code> --only theme` changes only the colors and radius and leaves your components and fonts alone.
Base UI, Radix or React Aria: shadcn's CLI installs the components on the one you pick (`--base`). A preset looks the same on each; the code doesn't carry the library, so the generator adds it to the command and to the share link.
Yes. Copy CSS gives the light variables on :root, the dark ones on .dark and the fonts' lines for @theme inline, the same the CLI writes. Install the fonts yourself (their Fontsource packages); the style and icon library are the CLI's to install.
Not as a code yet: the Vue, Svelte and Solid CLIs set up shadcn.io's own theme and don't read a preset. Run the framework's setup, then paste the preset's CSS over the theme's variables: the colors, charts and radius carry over. The style, fonts and icon library are for shadcn's React CLI.
Use on this site applies the preset's style, base color, accent and radius to shadcn.io, the way Customize does, saved in your browser, so the docs and demos show your look. Fonts, icons, charts and menus stay the site's. Customize sets it back.
Copy the link: it opens the generator on your preset (/theme-generator?preset=<code>, with &base= when it isn't Base UI). The address bar keeps it up to date as you pick, and ui.shadcn.com/create?preset=<code> opens the same code.
Paste it into Open a code: a bare code, a --preset flag or a link with ?preset= all work. A code from before shadcn's current rules, such as a neutral chart color on a tinted base, opens as the nearest preset that builds.
Yes: Start from opens any of the 59 presets, from brands like Vercel and Claude to retro, night and warm ones, each a shadcn preset you can change from there.
4.9 out of 5 from 150+ developers
Your theme on every block
Every block and template is built on the same tokens, so it takes your colors and radius. The generator stays free.
Get Pro