Smooth is a shadcn/ui theme built around a purple primary color (#894878) with green accents (#488959). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the purple primary (#894878) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #070306black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcf8fbsnow | #070306black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcf8fbsnow | #070306black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #894878dimgray | #894878dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #488959seagreen | #488959seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1f3f2whitesmoke | #0c0e0cblack |
| Muted foreground | #465349darkslategray | #acb9afdarkgray |
| Accent | #488959seagreen | #488959seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #861104darkred | #ed1e07red |
| Destructive foreground | #fdc5bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #894878dimgray | #894878dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 4.20:1 | AA Large |
| Muted text | 7.27:1 | AAA |
| Accent | 4.20:1 | AA Large |
| Destructive | 6.66:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 4.20:1 | AA Large |
| Muted text | 9.52:1 | AAA |
| Accent | 4.20:1 | AA Large |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Smooth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 334.626);
--foreground: oklch(0 0 0);
--muted: oklch(0.963 0.003 154.474);
--muted-foreground: oklch(0.428 0.024 153.497);
--popover: oklch(0.983 0.006 334.626);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.006 334.626);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.108 338.026);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.574 0.099 150.852);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.099 150.852);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.397 0.151 30.702);
--destructive-foreground: oklch(0.871 0.065 25.774);
--ring: oklch(0.498 0.108 338.026);
--chart-1: oklch(0.498 0.108 338.026);
--chart-2: oklch(0.574 0.099 150.852);
--chart-3: oklch(0.574 0.099 150.852);
--chart-4: oklch(0.604 0.105 150.823);
--chart-5: oklch(0.498 0.117 338.342);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.014 334.931);
--foreground: oklch(0.991 0.003 334.574);
--muted: oklch(0.16 0.005 154.013);
--muted-foreground: oklch(0.773 0.021 154.044);
--popover: oklch(0.111 0.014 334.931);
--popover-foreground: oklch(0.991 0.003 334.574);
--card: oklch(0.111 0.014 334.931);
--card-foreground: oklch(0.991 0.003 334.574);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.498 0.108 338.026);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.574 0.099 150.852);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.099 150.852);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.603 0.236 30.333);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.108 338.026);
--chart-1: oklch(0.498 0.108 338.026);
--chart-2: oklch(0.574 0.099 150.852);
--chart-3: oklch(0.574 0.099 150.852);
--chart-4: oklch(0.604 0.105 150.823);
--chart-5: oklch(0.498 0.117 338.342);
}