Recreation is a shadcn/ui theme built around a deep yellow primary color (#3b2d11) with deep violet accents (#2d113b). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep yellow primary (#3b2d11) on a yellow-tinted background (#0d0b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0d0b07black |
| Foreground | #0d0903black | #f9f8f6whitesmoke |
| Card | #fcfbf8snow | #110e09black |
| Card foreground | #090602black | #fbfaf9snow |
| Popover | #fdfdfcwhite | #0d0b07black |
| Popover foreground | #0d0903black | #f9f8f6whitesmoke |
| Primary | #3b2d11darkslategray | #3b2d11darkslategray |
| Primary foreground | #e2cb9cburlywood | #e2cb9cburlywood |
| Secondary | #113b2ddarkslategray | #113b2ddarkslategray |
| Secondary foreground | #4dcba1mediumaquamarine | #4dcba1mediumaquamarine |
| Muted | #e1efealavender | #101e19black |
| Muted foreground | #525655dimgray | #a9adabdarkgray |
| Accent | #2d113bmidnightblue | #2d113bmidnightblue |
| Accent foreground | #cb9ce2plum | #cb9ce2plum |
| Destructive | #912808saddlebrown | #f45d2ftomato |
| Destructive foreground | #fcd9cfbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b2d11darkslategray | #3b2d11darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 6.12:1 | AA |
| Muted text | 6.30:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 18.49:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 6.12:1 | AA |
| Muted text | 7.55:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.44:1 | AA |
Paste this into your globals.css to use Recreation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 84.556);
--foreground: oklch(0.143 0.02 90.603);
--muted: oklch(0.941 0.017 174.057);
--muted-foreground: oklch(0.449 0.005 174.282);
--popover: oklch(0.993 0.002 84.556);
--popover-foreground: oklch(0.143 0.02 90.603);
--card: oklch(0.987 0.004 84.561);
--card-foreground: oklch(0.125 0.017 91.589);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.307 0.047 82.678);
--primary-foreground: oklch(0.85 0.067 84.404);
--secondary: oklch(0.32 0.053 167.635);
--secondary-foreground: oklch(0.762 0.128 167.524);
--accent: oklch(0.244 0.081 312.686);
--accent-foreground: oklch(0.761 0.11 314.107);
--destructive: oklch(0.439 0.146 35.507);
--destructive-foreground: oklch(0.913 0.042 37.602);
--ring: oklch(0.307 0.047 82.678);
--chart-1: oklch(0.307 0.047 82.678);
--chart-2: oklch(0.32 0.053 167.635);
--chart-3: oklch(0.244 0.081 312.686);
--chart-4: oklch(0.36 0.061 167.321);
--chart-5: oklch(0.31 0.049 82.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.01 85.983);
--foreground: oklch(0.979 0.003 84.558);
--muted: oklch(0.221 0.023 171.108);
--muted-foreground: oklch(0.743 0.004 174.425);
--popover: oklch(0.152 0.01 85.983);
--popover-foreground: oklch(0.979 0.003 84.558);
--card: oklch(0.166 0.012 84.667);
--card-foreground: oklch(0.986 0.002 84.556);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.307 0.047 82.678);
--primary-foreground: oklch(0.85 0.067 84.404);
--secondary: oklch(0.32 0.053 167.635);
--secondary-foreground: oklch(0.762 0.128 167.524);
--accent: oklch(0.244 0.081 312.686);
--accent-foreground: oklch(0.761 0.11 314.107);
--destructive: oklch(0.669 0.195 36.858);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.307 0.047 82.678);
--chart-1: oklch(0.307 0.047 82.678);
--chart-2: oklch(0.32 0.053 167.635);
--chart-3: oklch(0.244 0.081 312.686);
--chart-4: oklch(0.36 0.061 167.321);
--chart-5: oklch(0.31 0.049 82.414);
}