Depressive is a shadcn/ui theme built around a near-black primary color (#0a0a0b) with near-black accents (#0a0b0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0a0b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b0316black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #090312black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #090312black | #ffffffwhite |
| Primary | #0a0a0bblack | #0a0a0bblack |
| Primary foreground | #a29ea9darkgray | #a29ea9darkgray |
| Secondary | #0b0a0ablack | #0b0a0ablack |
| Secondary foreground | #a9a29edarkgray | #a9a29edarkgray |
| Muted | #e2d8d0gainsboro | #2f251ddarkslategray |
| Muted foreground | #665d57dimgray | #a8a099darkgray |
| Accent | #0a0b0ablack | #0a0b0ablack |
| Accent foreground | #9ea9a2darkgray | #9ea9a2darkgray |
| Destructive | #71250amaroon | #eb5119orangered |
| Destructive foreground | #f8c6b4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0a0bblack | #0a0a0bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 4.56:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Depressive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.046 303.387);
--muted: oklch(0.887 0.016 60.039);
--muted-foreground: oklch(0.486 0.015 59.853);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.041 305.294);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.041 305.294);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.144 0.003 305.619);
--primary-foreground: oklch(0.706 0.017 305.425);
--secondary: oklch(0.146 0.002 60.498);
--secondary-foreground: oklch(0.718 0.01 60.092);
--accent: oklch(0.147 0.003 161.539);
--accent-foreground: oklch(0.723 0.015 161.29);
--destructive: oklch(0.377 0.113 38.275);
--destructive-foreground: oklch(0.867 0.063 40.926);
--ring: oklch(0.144 0.003 305.619);
--chart-1: oklch(0.144 0.003 305.619);
--chart-2: oklch(0.146 0.002 60.498);
--chart-3: oklch(0.147 0.003 161.539);
--chart-4: oklch(0.182 0.003 60.077);
--chart-5: oklch(0.143 0.004 305.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.274 0.021 59.136);
--muted-foreground: oklch(0.71 0.014 60.018);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.144 0.003 305.619);
--primary-foreground: oklch(0.706 0.017 305.425);
--secondary: oklch(0.146 0.002 60.498);
--secondary-foreground: oklch(0.718 0.01 60.092);
--accent: oklch(0.147 0.003 161.539);
--accent-foreground: oklch(0.723 0.015 161.29);
--destructive: oklch(0.64 0.199 37.688);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.144 0.003 305.619);
--chart-1: oklch(0.144 0.003 305.619);
--chart-2: oklch(0.146 0.002 60.498);
--chart-3: oklch(0.147 0.003 161.539);
--chart-4: oklch(0.182 0.003 60.077);
--chart-5: oklch(0.143 0.004 305.587);
}