Subdued is a shadcn/ui theme built around a deep green primary color (#3b4823) with deep violet accents (#302348). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#3b4823) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #000000black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fbfcf8snow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfdfbsnow | #000000black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #3b4823darkolivegreen | #3b4823darkolivegreen |
| Primary foreground | #d4e0belightgrey | #d4e0belightgrey |
| Secondary | #302348darkslategray | #302348darkslategray |
| Secondary foreground | #c9bee0thistle | #c9bee0thistle |
| Muted | #f2f1f4whitesmoke | #0c0b0eblack |
| Muted foreground | #4a4554darkslategray | #b0abbadarkgray |
| Accent | #302348darkslategray | #302348darkslategray |
| Accent foreground | #c9bee0thistle | #c9bee0thistle |
| Destructive | #80330asaddlebrown | #ee651bchocolate |
| Destructive foreground | #fad5c1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b4823darkolivegreen | #3b4823darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.74:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Subdued in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 122.258);
--foreground: oklch(0.102 0.015 121.783);
--muted: oklch(0.959 0.004 302.156);
--muted-foreground: oklch(0.401 0.026 301.183);
--popover: oklch(0.994 0.003 122.258);
--popover-foreground: oklch(0.102 0.015 121.783);
--card: oklch(0.989 0.006 122.304);
--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.381 0.061 125.029);
--primary-foreground: oklch(0.887 0.047 123.059);
--secondary: oklch(0.29 0.068 298.225);
--secondary-foreground: oklch(0.821 0.049 301.282);
--accent: oklch(0.29 0.068 298.225);
--accent-foreground: oklch(0.821 0.049 301.282);
--destructive: oklch(0.424 0.117 43.603);
--destructive-foreground: oklch(0.9 0.05 50.002);
--ring: oklch(0.381 0.061 125.029);
--chart-1: oklch(0.381 0.061 125.029);
--chart-2: oklch(0.29 0.068 298.225);
--chart-3: oklch(0.29 0.068 298.225);
--chart-4: oklch(0.315 0.076 298.09);
--chart-5: oklch(0.386 0.065 125.251);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 122.252);
--muted: oklch(0.154 0.006 301.648);
--muted-foreground: oklch(0.75 0.022 301.744);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 122.252);
--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.381 0.061 125.029);
--primary-foreground: oklch(0.887 0.047 123.059);
--secondary: oklch(0.29 0.068 298.225);
--secondary-foreground: oklch(0.821 0.049 301.282);
--accent: oklch(0.29 0.068 298.225);
--accent-foreground: oklch(0.821 0.049 301.282);
--destructive: oklch(0.669 0.186 43.536);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.381 0.061 125.029);
--chart-1: oklch(0.381 0.061 125.029);
--chart-2: oklch(0.29 0.068 298.225);
--chart-3: oklch(0.29 0.068 298.225);
--chart-4: oklch(0.315 0.076 298.09);
--chart-5: oklch(0.386 0.065 125.251);
}