Smooth is a shadcn/ui theme built around a vivid light indigo primary color (#bab5f7) with vivid light green accents (#b5f7ba). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid light indigo primary (#bab5f7) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #010104black |
| Foreground | #04040cblack | #f5f5f9whitesmoke |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #030208black | #f9f8fbghostwhite |
| Popover | #fbfbfeghostwhite | #010104black |
| Popover foreground | #04040cblack | #f5f5f9whitesmoke |
| Primary | #bab5f7lightsteelblue | #bab5f7lightsteelblue |
| Primary foreground | #120c6fmidnightblue | #120c6fmidnightblue |
| Secondary | #f7bab5lightpink | #f7bab5lightpink |
| Secondary foreground | #6f120cmaroon | #6f120cmaroon |
| Muted | #f1e5e4linen | #1b0f0eblack |
| Muted foreground | #585150dimgray | #afa7a7darkgray |
| Accent | #b5f7bapalegreen | #b5f7bapalegreen |
| Accent foreground | #021203black | #021203black |
| Destructive | #913d0dsaddlebrown | #e15f14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bab5f7lightsteelblue | #bab5f7lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 15.59:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 15.59:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Smooth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 289.412);
--foreground: oklch(0.112 0.022 286.518);
--muted: oklch(0.931 0.013 22.379);
--muted-foreground: oklch(0.441 0.01 22.493);
--popover: oklch(0.989 0.004 289.412);
--popover-foreground: oklch(0.112 0.022 286.518);
--card: oklch(0.979 0.007 289.344);
--card-foreground: oklch(0.098 0.019 286.572);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.801 0.093 287.153);
--primary-foreground: oklch(0.265 0.156 271.129);
--secondary: oklch(0.843 0.072 23.367);
--secondary-foreground: oklch(0.352 0.127 29.324);
--accent: oklch(0.917 0.106 146.312);
--accent-foreground: oklch(0.163 0.044 145.174);
--destructive: oklch(0.468 0.127 44.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.801 0.093 287.153);
--chart-1: oklch(0.801 0.093 287.153);
--chart-2: oklch(0.843 0.072 23.367);
--chart-3: oklch(0.917 0.106 146.312);
--chart-4: oklch(0.871 0.058 23.07);
--chart-5: oklch(0.798 0.096 287.05);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.077 0.016 286.395);
--foreground: oklch(0.972 0.006 289.369);
--muted: oklch(0.184 0.021 23.842);
--muted-foreground: oklch(0.735 0.009 22.356);
--popover: oklch(0.077 0.016 286.395);
--popover-foreground: oklch(0.972 0.006 289.369);
--card: oklch(0.097 0.02 286.395);
--card-foreground: oklch(0.981 0.004 289.406);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.801 0.093 287.153);
--primary-foreground: oklch(0.265 0.156 271.129);
--secondary: oklch(0.843 0.072 23.367);
--secondary-foreground: oklch(0.352 0.127 29.324);
--accent: oklch(0.917 0.106 146.312);
--accent-foreground: oklch(0.163 0.044 145.174);
--destructive: oklch(0.642 0.179 44.112);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.801 0.093 287.153);
--chart-1: oklch(0.801 0.093 287.153);
--chart-2: oklch(0.843 0.072 23.367);
--chart-3: oklch(0.917 0.106 146.312);
--chart-4: oklch(0.871 0.058 23.07);
--chart-5: oklch(0.798 0.096 287.05);
}