Cavernous is a shadcn/ui theme built around a teal primary color (#48a386) with cyan accents (#4892a3). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the teal primary (#48a386) on a teal-tinted background (#050a09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfdwhite | #050a09black |
| Foreground | #04100cblack | #ffffffwhite |
| Card | #f8fcfbmintcream | #070d0bblack |
| Card foreground | #030c09black | #ffffffwhite |
| Popover | #fbfdfdwhite | #050a09black |
| Popover foreground | #04100cblack | #ffffffwhite |
| Primary | #48a386mediumseagreen | #48a386mediumseagreen |
| Primary foreground | #091511black | #091511black |
| Secondary | #48a358mediumseagreen | #48a358mediumseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4ece5gainsboro | #131b14black |
| Muted foreground | #5d6f60dimgray | #90a293darkseagreen |
| Accent | #4892a3steelblue | #4892a3steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ad0701darkred | #fe0f06red |
| Destructive foreground | #ffe2e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #48a386mediumseagreen | #48a386mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 3.15:1 | AA Large |
| Muted text | 4.46:1 | AA Large |
| Accent | 3.54:1 | AA Large |
| Destructive | 6.15:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 3.15:1 | AA Large |
| Muted text | 6.49:1 | AA |
| Accent | 3.54:1 | AA Large |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Cavernous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 175.548);
--foreground: oklch(0.159 0.02 173.143);
--muted: oklch(0.936 0.013 151.203);
--muted-foreground: oklch(0.523 0.032 150.492);
--popover: oklch(0.994 0.002 175.548);
--popover-foreground: oklch(0.159 0.02 173.143);
--card: oklch(0.987 0.005 175.479);
--card-foreground: oklch(0.143 0.017 175.328);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.652 0.098 169.647);
--primary-foreground: oklch(0.184 0.019 172.107);
--secondary: oklch(0.642 0.14 147.511);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.62 0.078 214.374);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.471 0.19 29.602);
--destructive-foreground: oklch(0.935 0.032 20.113);
--ring: oklch(0.652 0.098 169.647);
--chart-1: oklch(0.652 0.098 169.647);
--chart-2: oklch(0.642 0.14 147.511);
--chart-3: oklch(0.62 0.078 214.374);
--chart-4: oklch(0.672 0.147 147.488);
--chart-5: oklch(0.66 0.104 169.201);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.01 175.746);
--foreground: oklch(1 0 180);
--muted: oklch(0.212 0.019 150.042);
--muted-foreground: oklch(0.694 0.03 150.772);
--popover: oklch(0.138 0.01 175.746);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.012 174.115);
--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.652 0.098 169.647);
--primary-foreground: oklch(0.184 0.019 172.107);
--secondary: oklch(0.642 0.14 147.511);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.62 0.078 214.374);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.254 29.349);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.652 0.098 169.647);
--chart-1: oklch(0.652 0.098 169.647);
--chart-2: oklch(0.642 0.14 147.511);
--chart-3: oklch(0.62 0.078 214.374);
--chart-4: oklch(0.672 0.147 147.488);
--chart-5: oklch(0.66 0.104 169.201);
}