Depression is a shadcn/ui theme built around a blue primary color (#2d70a4) with green accents (#70a42d). The light mode uses a neutral background (#f7fafd). Dark mode keeps the blue primary (#2d70a4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #000000black |
| Foreground | #000000black | #f6f8f8whitesmoke |
| Card | #f3f8fcaliceblue | #030303black |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #f3f8fcaliceblue | #030303black |
| Popover foreground | #000000black | #f9fafbghostwhite |
| Primary | #2d70a4steelblue | #2d70a4steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a42d70mediumvioletred | #a42d70mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3e3eclinen | #1c0c15black |
| Muted foreground | #635f61dimgray | #a09c9edarkgray |
| Accent | #70a42dolivedrab | #70a42dolivedrab |
| Accent foreground | #030401black | #030401black |
| Destructive | #a83c05saddlebrown | #f25607orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d70a4steelblue | #2d70a4steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 5.26:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 5.07:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.26:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 6.93:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Depression in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 240.35);
--foreground: oklch(0 0 0);
--muted: oklch(0.93 0.021 342.339);
--muted-foreground: oklch(0.49 0.006 342.098);
--popover: oklch(0.976 0.007 240.385);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.976 0.007 240.385);
--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.528 0.106 245.009);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.501 0.168 350.114);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.659 0.157 130.305);
--accent-foreground: oklch(0.101 0.016 124.87);
--destructive: oklch(0.503 0.153 40.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.528 0.106 245.009);
--chart-1: oklch(0.528 0.106 245.009);
--chart-2: oklch(0.501 0.168 350.114);
--chart-3: oklch(0.659 0.157 130.305);
--chart-4: oklch(0.527 0.178 350.185);
--chart-5: oklch(0.53 0.11 245.391);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.002 240.31);
--muted: oklch(0.184 0.031 345.604);
--muted-foreground: oklch(0.697 0.005 341.995);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.985 0.001 240.301);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.001 240.301);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.528 0.106 245.009);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.501 0.168 350.114);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.659 0.157 130.305);
--accent-foreground: oklch(0.101 0.016 124.87);
--destructive: oklch(0.657 0.204 39.801);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.528 0.106 245.009);
--chart-1: oklch(0.528 0.106 245.009);
--chart-2: oklch(0.501 0.168 350.114);
--chart-3: oklch(0.659 0.157 130.305);
--chart-4: oklch(0.527 0.178 350.185);
--chart-5: oklch(0.53 0.11 245.391);
}