clean is a shadcn/ui theme built around a muted light yellow primary color (#dbd9cc) with muted light yellow accents (#e1dfd6). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted light yellow primary (#dbd9cc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #000000black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fefdfbsnow | #000000black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fefdfbsnow | #000000black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #dbd9cclightgrey | #dbd9cclightgrey |
| Primary foreground | #454230darkslategray | #454230darkslategray |
| Secondary | #e1dfd6gainsboro | #191815black |
| Secondary foreground | #4d4938darkolivegreen | #b5b4aadarkgray |
| Muted | #f0ede0beige | #1f1c0fblack |
| Muted foreground | #484741darkslategray | #bebcb7silver |
| Accent | #e1dfd6gainsboro | #191815black |
| Accent foreground | #4d4938darkolivegreen | #b5b4aadarkgray |
| Destructive | #bb1b02firebrick | #fd3e21orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbd9cclightgrey | #dbd9cclightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.76:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 8.52:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use clean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 97.306);
--foreground: oklch(0.101 0.013 101.199);
--muted: oklch(0.946 0.018 97.507);
--muted-foreground: oklch(0.398 0.01 97.568);
--popover: oklch(0.995 0.003 97.306);
--popover-foreground: oklch(0.101 0.013 101.199);
--card: oklch(0.995 0.003 97.306);
--card-foreground: oklch(0.101 0.013 101.199);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.883 0.018 97.52);
--primary-foreground: oklch(0.376 0.029 98.095);
--secondary: oklch(0.903 0.013 97.448);
--secondary-foreground: oklch(0.405 0.029 98.047);
--accent: oklch(0.903 0.013 97.448);
--accent-foreground: oklch(0.405 0.029 98.047);
--destructive: oklch(0.507 0.195 31.208);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.883 0.018 97.52);
--chart-1: oklch(0.883 0.018 97.52);
--chart-2: oklch(0.903 0.013 97.448);
--chart-3: oklch(0.903 0.013 97.448);
--chart-4: oklch(0.924 0.01 97.405);
--chart-5: oklch(0.886 0.021 97.56);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.024 98.265);
--muted-foreground: oklch(0.796 0.008 97.394);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.883 0.018 97.52);
--primary-foreground: oklch(0.376 0.029 98.095);
--secondary: oklch(0.209 0.005 97.581);
--secondary-foreground: oklch(0.768 0.013 97.482);
--accent: oklch(0.209 0.005 97.581);
--accent-foreground: oklch(0.768 0.013 97.482);
--destructive: oklch(0.652 0.23 31.626);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.883 0.018 97.52);
--chart-1: oklch(0.883 0.018 97.52);
--chart-2: oklch(0.209 0.005 97.581);
--chart-3: oklch(0.209 0.005 97.581);
--chart-4: oklch(0.243 0.007 97.611);
--chart-5: oklch(0.886 0.021 97.56);
}