Recess is a shadcn/ui theme built around a deep blue primary color (#2c4b5e) with deep orange accents (#5e3f2c). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the deep blue primary (#2c4b5e) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fbfdghostwhite | #020608black |
| Foreground | #020608black | #ffffffwhite |
| Card | #f2f9fdaliceblue | #04090cblack |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #f6fbfdghostwhite | #020608black |
| Popover foreground | #020608black | #ffffffwhite |
| Primary | #2c4b5edarkslategray | #2c4b5edarkslategray |
| Primary foreground | #d2e1eagainsboro | #d2e1eagainsboro |
| Secondary | #5e3f2cdarkolivegreen | #5e3f2cdarkolivegreen |
| Secondary foreground | #eadbd2gainsboro | #eadbd2gainsboro |
| Muted | #eeeae7linen | #181311black |
| Muted foreground | #695f59dimgray | #a69c96darkgray |
| Accent | #5e3f2cdarkolivegreen | #5e3f2cdarkolivegreen |
| Accent foreground | #eadbd2gainsboro | #eadbd2gainsboro |
| Destructive | #8d310csaddlebrown | #e64f14orangered |
| Destructive foreground | #fbdcd0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c4b5edarkslategray | #2c4b5edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 5.18:1 | AA |
| Accent | 7.00:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 20.36:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 7.00:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Recess in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.006 234.591);
--foreground: oklch(0.115 0.012 227.608);
--muted: oklch(0.939 0.007 54.409);
--muted-foreground: oklch(0.493 0.015 54.082);
--popover: oklch(0.985 0.006 234.591);
--popover-foreground: oklch(0.115 0.012 227.608);
--card: oklch(0.977 0.009 234.635);
--card-foreground: oklch(0.092 0.01 227.608);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.396 0.049 237.07);
--primary-foreground: oklch(0.9 0.02 234.837);
--secondary: oklch(0.398 0.052 52.538);
--secondary-foreground: oklch(0.901 0.02 54.197);
--accent: oklch(0.398 0.052 52.538);
--accent-foreground: oklch(0.901 0.02 54.197);
--destructive: oklch(0.442 0.133 38.97);
--destructive-foreground: oklch(0.917 0.038 42.812);
--ring: oklch(0.396 0.049 237.07);
--chart-1: oklch(0.396 0.049 237.07);
--chart-2: oklch(0.398 0.052 52.538);
--chart-3: oklch(0.398 0.052 52.538);
--chart-4: oklch(0.427 0.057 52.494);
--chart-5: oklch(0.397 0.052 237.367);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 228.164);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.01 53.827);
--muted-foreground: oklch(0.7 0.014 54.23);
--popover: oklch(0.115 0.011 228.164);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.013 228.723);
--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.396 0.049 237.07);
--primary-foreground: oklch(0.9 0.02 234.837);
--secondary: oklch(0.398 0.052 52.538);
--secondary-foreground: oklch(0.901 0.02 54.197);
--accent: oklch(0.398 0.052 52.538);
--accent-foreground: oklch(0.901 0.02 54.197);
--destructive: oklch(0.63 0.196 38.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.396 0.049 237.07);
--chart-1: oklch(0.396 0.049 237.07);
--chart-2: oklch(0.398 0.052 52.538);
--chart-3: oklch(0.398 0.052 52.538);
--chart-4: oklch(0.427 0.057 52.494);
--chart-5: oklch(0.397 0.052 237.367);
}