Cavernous is a shadcn/ui theme built around a light green primary color (#f5fae6) with light indigo accents (#eae6fa). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the light green primary (#f5fae6) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #030401black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #fafbf3floralwhite | #060803black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fafbf3floralwhite | #060803black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f5fae6oldlace | #f5fae6oldlace |
| Primary foreground | #303b0cdarkgreen | #303b0cdarkgreen |
| Secondary | #eae6falavender | #eae6falavender |
| Secondary foreground | #381d90darkslateblue | #381d90darkslateblue |
| Muted | #e1e0e6gainsboro | #1b191fblack |
| Muted foreground | #4e4a59darkslategray | #a9a6b5darkgray |
| Accent | #eae6falavender | #eae6falavender |
| Accent foreground | #381d90darkslateblue | #381d90darkslateblue |
| Destructive | #ab4307saddlebrown | #dc5709chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5fae6oldlace | #f5fae6oldlace |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 11.19:1 | AAA |
| Secondary button | 9.82:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 9.82:1 | AAA |
| Destructive | 5.90:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 11.19:1 | AAA |
| Secondary button | 9.82:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 9.82:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Cavernous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 117.213);
--foreground: oklch(0.105 0.018 117.457);
--muted: oklch(0.91 0.008 296.927);
--muted-foreground: oklch(0.419 0.024 296.016);
--popover: oklch(0.986 0.011 117.28);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.011 117.28);
--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.976 0.027 117.576);
--primary-foreground: oklch(0.332 0.07 121.71);
--secondary: oklch(0.933 0.028 296.547);
--secondary-foreground: oklch(0.354 0.173 283.944);
--accent: oklch(0.933 0.028 296.547);
--accent-foreground: oklch(0.354 0.173 283.944);
--destructive: oklch(0.519 0.149 43.245);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.027 117.576);
--chart-1: oklch(0.976 0.027 117.576);
--chart-2: oklch(0.933 0.028 296.547);
--chart-3: oklch(0.933 0.028 296.547);
--chart-4: oklch(0.967 0.014 296.826);
--chart-5: oklch(0.977 0.028 117.598);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.013 117.355);
--foreground: oklch(0.994 0.002 117.116);
--muted: oklch(0.218 0.011 296.165);
--muted-foreground: oklch(0.733 0.021 296.556);
--popover: oklch(0.127 0.016 117.355);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.016 117.355);
--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.976 0.027 117.576);
--primary-foreground: oklch(0.332 0.07 121.71);
--secondary: oklch(0.933 0.028 296.547);
--secondary-foreground: oklch(0.354 0.173 283.944);
--accent: oklch(0.933 0.028 296.547);
--accent-foreground: oklch(0.354 0.173 283.944);
--destructive: oklch(0.623 0.182 42.67);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.027 117.576);
--chart-1: oklch(0.976 0.027 117.576);
--chart-2: oklch(0.933 0.028 296.547);
--chart-3: oklch(0.933 0.028 296.547);
--chart-4: oklch(0.967 0.014 296.826);
--chart-5: oklch(0.977 0.028 117.598);
}