Smooth is a shadcn/ui theme built around a muted deep green primary color (#3a3d34) with muted light green accents (#d5d8cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#3a3d34) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060703black |
| Foreground | #060802black | #fdfdfbsnow |
| Card | #fcfcfcsnow | #090b04black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #ffffffwhite | #060703black |
| Popover foreground | #060802black | #fdfdfbsnow |
| Primary | #3a3d34darkslategray | #3a3d34darkslategray |
| Primary foreground | #d2d5cdlightgrey | #d2d5cdlightgrey |
| Secondary | #d5d8cflightgrey | #1d1f19black |
| Secondary foreground | #3d4134darkslategray | #b8bdadsilver |
| Muted | #e9e9e7linen | #171816black |
| Muted foreground | #484e3cdarkslategray | #bdc3b1silver |
| Accent | #d5d8cflightgrey | #1d1f19black |
| Accent foreground | #3d4134darkslategray | #b8bdadsilver |
| Destructive | #a02a0dfirebrick | #ef613etomato |
| Destructive foreground | #fde8e3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a3d34darkslategray | #3a3d34darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 8.64:1 | AAA |
| Muted text | 9.81:1 | AAA |
| Accent | 8.64:1 | AAA |
| Destructive | 6.46:1 | AA |
Paste this into your globals.css to use Smooth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.02 121.134);
--muted: oklch(0.934 0.004 121.558);
--muted-foreground: oklch(0.412 0.03 122.684);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.02 121.134);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.103 0.016 121.134);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.353 0.016 122.216);
--primary-foreground: oklch(0.868 0.01 121.684);
--secondary: oklch(0.878 0.013 121.738);
--secondary-foreground: oklch(0.367 0.022 122.482);
--accent: oklch(0.878 0.013 121.738);
--accent-foreground: oklch(0.367 0.022 122.482);
--destructive: oklch(0.47 0.159 34.191);
--destructive-foreground: oklch(0.946 0.024 34.298);
--ring: oklch(0.353 0.016 122.216);
--chart-1: oklch(0.353 0.016 122.216);
--chart-2: oklch(0.878 0.013 121.738);
--chart-3: oklch(0.878 0.013 121.738);
--chart-4: oklch(0.9 0.011 121.688);
--chart-5: oklch(0.357 0.021 122.474);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 121.215);
--foreground: oklch(0.994 0.003 121.535);
--muted: oklch(0.208 0.006 121.92);
--muted-foreground: oklch(0.808 0.025 122.004);
--popover: oklch(0.126 0.015 121.215);
--popover-foreground: oklch(0.994 0.003 121.535);
--card: oklch(0.144 0.017 121.33);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.353 0.016 122.216);
--primary-foreground: oklch(0.868 0.01 121.684);
--secondary: oklch(0.235 0.012 122.317);
--secondary-foreground: oklch(0.79 0.023 121.97);
--accent: oklch(0.235 0.012 122.317);
--accent-foreground: oklch(0.79 0.023 121.97);
--destructive: oklch(0.669 0.183 35.165);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.353 0.016 122.216);
--chart-1: oklch(0.353 0.016 122.216);
--chart-2: oklch(0.235 0.012 122.317);
--chart-3: oklch(0.235 0.012 122.317);
--chart-4: oklch(0.27 0.015 122.377);
--chart-5: oklch(0.357 0.021 122.474);
}