Recess is a shadcn/ui theme built around a blue primary color (#3c9dcd) with neutral gray accents (#dee1e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3c9dcd) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010305black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010305black | #fcfdfdwhite |
| Primary | #3c9dcdsteelblue | #3c9dcdsteelblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #dee1e3gainsboro | #232424black |
| Secondary foreground | #42494cdarkslategray | #bcbdbdsilver |
| Muted | #e2eaeelavender | #11191dblack |
| Muted foreground | #4e5d65dimgray | #9aaab1darkgray |
| Accent | #dee1e3gainsboro | #232424black |
| Accent foreground | #42494cdarkslategray | #bcbdbdsilver |
| Destructive | #be2a13firebrick | #df3116orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c9dcdsteelblue | #3c9dcdsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.99:1 | AA |
| Muted text | 5.60:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 5.94:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.41:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Recess in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.013 220.652);
--muted: oklch(0.932 0.011 228.905);
--muted-foreground: oklch(0.469 0.023 229.498);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.013 220.652);
--card: oklch(0.992 0 161.565);
--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.659 0.114 234.192);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.908 0.004 228.803);
--secondary-foreground: oklch(0.401 0.01 229.111);
--accent: oklch(0.908 0.004 228.803);
--accent-foreground: oklch(0.401 0.01 229.111);
--destructive: oklch(0.524 0.188 31.582);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.659 0.114 234.192);
--chart-1: oklch(0.659 0.114 234.192);
--chart-2: oklch(0.908 0.004 228.803);
--chart-3: oklch(0.908 0.004 228.803);
--chart-4: oklch(0.931 0.003 228.789);
--chart-5: oklch(0.663 0.118 234.62);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 228.76);
--muted: oklch(0.207 0.015 230.016);
--muted-foreground: oklch(0.727 0.021 229.152);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 228.76);
--card: oklch(0.092 0 180);
--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.659 0.114 234.192);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.259 0.001 228.793);
--secondary-foreground: oklch(0.798 0.001 228.77);
--accent: oklch(0.259 0.001 228.793);
--accent-foreground: oklch(0.798 0.001 228.77);
--destructive: oklch(0.588 0.213 31.548);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.659 0.114 234.192);
--chart-1: oklch(0.659 0.114 234.192);
--chart-2: oklch(0.259 0.001 228.793);
--chart-3: oklch(0.259 0.001 228.793);
--chart-4: oklch(0.291 0.001 228.795);
--chart-5: oklch(0.663 0.118 234.62);
}