Shadowy is a shadcn/ui theme built around a near-black primary color (#1a1e1d) with near-black accents (#1a1d1e). The light mode uses a neutral background (#fbfefd). Dark mode keeps the near-black primary (#1a1e1d) on a teal-tinted background (#050f0c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #050f0cblack |
| Foreground | #030d0ablack | #f8fcfbmintcream |
| Card | #fbfefdwhite | #050f0cblack |
| Card foreground | #030d0ablack | #f8fcfbmintcream |
| Popover | #fbfefdwhite | #050f0cblack |
| Popover foreground | #030d0ablack | #f8fcfbmintcream |
| Primary | #1a1e1dblack | #1a1e1dblack |
| Primary foreground | #b0bab7silver | #b0bab7silver |
| Secondary | #1a1e1bblack | #1a1e1bblack |
| Secondary foreground | #b0bab2darkgray | #b0bab2darkgray |
| Muted | #cae8d0lightgrey | #17351edarkgreen |
| Muted foreground | #5c615ddimgray | #9ea39fdarkgray |
| Accent | #1a1d1eblack | #1a1d1eblack |
| Accent foreground | #b0b8basilver | #b0b8basilver |
| Destructive | #9a0e09darkred | #f22d26crimson |
| Destructive foreground | #fddad8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a1e1dblack | #1a1e1dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 4.79:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Shadowy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 177.626);
--foreground: oklch(0.145 0.02 176.995);
--muted: oklch(0.902 0.045 151.817);
--muted-foreground: oklch(0.487 0.01 152.294);
--popover: oklch(0.994 0.003 177.626);
--popover-foreground: oklch(0.145 0.02 176.995);
--card: oklch(0.994 0.003 177.626);
--card-foreground: oklch(0.145 0.02 176.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.231 0.006 176.911);
--primary-foreground: oklch(0.781 0.012 177.256);
--secondary: oklch(0.23 0.008 152.04);
--secondary-foreground: oklch(0.779 0.016 152.289);
--accent: oklch(0.229 0.005 216.123);
--accent-foreground: oklch(0.777 0.01 216.068);
--destructive: oklch(0.437 0.171 29.077);
--destructive-foreground: oklch(0.916 0.039 20.24);
--ring: oklch(0.231 0.006 176.911);
--chart-1: oklch(0.231 0.006 176.911);
--chart-2: oklch(0.23 0.008 152.04);
--chart-3: oklch(0.229 0.005 216.123);
--chart-4: oklch(0.263 0.01 151.995);
--chart-5: oklch(0.232 0.009 176.571);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.018 175.431);
--foreground: oklch(0.987 0.004 177.607);
--muted: oklch(0.299 0.055 149.133);
--muted-foreground: oklch(0.711 0.009 152.417);
--popover: oklch(0.158 0.018 175.431);
--popover-foreground: oklch(0.987 0.004 177.607);
--card: oklch(0.158 0.018 175.431);
--card-foreground: oklch(0.987 0.004 177.607);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.231 0.006 176.911);
--primary-foreground: oklch(0.781 0.012 177.256);
--secondary: oklch(0.23 0.008 152.04);
--secondary-foreground: oklch(0.779 0.016 152.289);
--accent: oklch(0.229 0.005 216.123);
--accent-foreground: oklch(0.777 0.01 216.068);
--destructive: oklch(0.622 0.231 28.422);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.231 0.006 176.911);
--chart-1: oklch(0.231 0.006 176.911);
--chart-2: oklch(0.23 0.008 152.04);
--chart-3: oklch(0.229 0.005 216.123);
--chart-4: oklch(0.263 0.01 151.995);
--chart-5: oklch(0.232 0.009 176.571);
}