Shadowy is a shadcn/ui theme built around a muted blue primary color (#5f6377) with muted yellow accents (#77735f). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted blue primary (#5f6377) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #010209black | #f6f6f9whitesmoke |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #010209black | #f6f6f9whitesmoke |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #010209black | #f6f6f9whitesmoke |
| Primary | #5f6377dimgray | #5f6377dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #77735fdimgray | #77735fdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f0e2beige | #1d1a0cblack |
| Muted foreground | #4a4945darkslategray | #babab5silver |
| Accent | #77735fdimgray | #77735fdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #dc2c09orangered | #f53a14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f6377dimgray | #5f6377dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 4.75:1 | AA |
| Muted text | 7.89:1 | AAA |
| Accent | 4.75:1 | AA |
| Destructive | 4.74:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 4.75:1 | AA |
| Muted text | 8.94:1 | AAA |
| Accent | 4.75:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Shadowy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 278.267);
--foreground: oklch(0.092 0.026 266.797);
--muted: oklch(0.954 0.019 98.584);
--muted-foreground: oklch(0.406 0.008 98.589);
--popover: oklch(0.99 0.003 278.267);
--popover-foreground: oklch(0.092 0.026 266.797);
--card: oklch(0.99 0.003 278.267);
--card-foreground: oklch(0.092 0.026 266.797);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.503 0.032 277.311);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.554 0.03 99.005);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.554 0.03 99.005);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.58 0.214 32.18);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.032 277.311);
--chart-1: oklch(0.503 0.032 277.311);
--chart-2: oklch(0.554 0.03 99.005);
--chart-3: oklch(0.554 0.03 99.005);
--chart-4: oklch(0.582 0.032 99.009);
--chart-5: oklch(0.497 0.041 276.98);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 278.276);
--muted: oklch(0.217 0.025 99.474);
--muted-foreground: oklch(0.787 0.007 98.439);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.003 278.276);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.003 278.276);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.503 0.032 277.311);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.554 0.03 99.005);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.554 0.03 99.005);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.634 0.227 32.557);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.032 277.311);
--chart-1: oklch(0.503 0.032 277.311);
--chart-2: oklch(0.554 0.03 99.005);
--chart-3: oklch(0.554 0.03 99.005);
--chart-4: oklch(0.582 0.032 99.009);
--chart-5: oklch(0.497 0.041 276.98);
}