Dark Cavern Raccoon is a shadcn/ui theme built around a neutral gray primary color (#57514c) with neutral gray accents (#4c5257). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the neutral gray primary (#57514c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #000000black |
| Foreground | #040201black | #fcfaf8snow |
| Card | #fdf9f7snow | #000000black |
| Card foreground | #040201black | #fcfaf8snow |
| Popover | #fdf9f7snow | #000000black |
| Popover foreground | #040201black | #fcfaf8snow |
| Primary | #57514cdarkolivegreen | #57514cdarkolivegreen |
| Primary foreground | #eceae9linen | #eceae9linen |
| Secondary | #4c5257darkslategray | #4c5257darkslategray |
| Secondary foreground | #e9ebeclavender | #e9ebeclavender |
| Muted | #d9dcddgainsboro | #222426darkslategray |
| Muted foreground | #56626cdimgray | #93a0a9darkgray |
| Accent | #4c5257darkslategray | #4c5257darkslategray |
| Accent foreground | #e9ebeclavender | #e9ebeclavender |
| Destructive | #b70606firebrick | #f70808red |
| Destructive foreground | #fff0f0lavenderblush | #ffffffwhite |
| Border | #e9e8e7linen | #1d1c1bblack |
| Input | #e9e8e7linen | #1d1c1bblack |
| Ring | #57514cdarkolivegreen | #57514cdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 6.59:1 | AA |
| Muted text | 4.52:1 | AA |
| Accent | 6.59:1 | AA |
| Destructive | 6.23:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 6.59:1 | AA |
| Muted text | 5.82:1 | AA |
| Accent | 6.59:1 | AA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Dark Cavern Raccoon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 60.209);
--foreground: oklch(0.093 0.011 69.274);
--muted: oklch(0.892 0.004 240.34);
--muted-foreground: oklch(0.49 0.021 240.895);
--popover: oklch(0.986 0.005 60.209);
--popover-foreground: oklch(0.093 0.011 69.274);
--card: oklch(0.986 0.005 60.209);
--card-foreground: oklch(0.093 0.011 69.274);
--border: oklch(0.931 0.001 60.266);
--input: oklch(0.931 0.001 60.266);
--primary: oklch(0.439 0.012 59.915);
--primary-foreground: oklch(0.939 0.002 60.248);
--secondary: oklch(0.436 0.012 240.657);
--secondary-foreground: oklch(0.939 0.002 240.319);
--accent: oklch(0.436 0.012 240.657);
--accent-foreground: oklch(0.939 0.002 240.319);
--destructive: oklch(0.491 0.199 28.941);
--destructive-foreground: oklch(0.967 0.016 17.426);
--ring: oklch(0.439 0.012 59.915);
--chart-1: oklch(0.439 0.012 59.915);
--chart-2: oklch(0.436 0.012 240.657);
--chart-3: oklch(0.436 0.012 240.657);
--chart-4: oklch(0.464 0.013 240.662);
--chart-5: oklch(0.44 0.017 59.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.003 60.245);
--muted: oklch(0.259 0.005 240.551);
--muted-foreground: oklch(0.698 0.019 240.671);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.985 0.003 60.245);
--card: oklch(0 0 0);
--card-foreground: oklch(0.985 0.003 60.245);
--border: oklch(0.227 0.002 60.161);
--input: oklch(0.227 0.002 60.161);
--primary: oklch(0.439 0.012 59.915);
--primary-foreground: oklch(0.939 0.002 60.248);
--secondary: oklch(0.436 0.012 240.657);
--secondary-foreground: oklch(0.939 0.002 240.319);
--accent: oklch(0.436 0.012 240.657);
--accent-foreground: oklch(0.939 0.002 240.319);
--destructive: oklch(0.615 0.25 29.032);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.012 59.915);
--chart-1: oklch(0.439 0.012 59.915);
--chart-2: oklch(0.436 0.012 240.657);
--chart-3: oklch(0.436 0.012 240.657);
--chart-4: oklch(0.464 0.013 240.662);
--chart-5: oklch(0.44 0.017 59.754);
}