Subdued is a shadcn/ui theme built around a green primary color (#8fd75b) with pink accents (#d75b8f). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#8fd75b) on a green-tinted background (#070c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #070c03black |
| Foreground | #000000black | #f7f8f7whitesmoke |
| Card | #f9fdf6mintcream | #091004black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fcfefbwhite | #070c03black |
| Popover foreground | #000000black | #f7f8f7whitesmoke |
| Primary | #8fd75byellowgreen | #8fd75byellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #5b8fd7cornflowerblue | #5b8fd7cornflowerblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #cdd9e9gainsboro | #162132darkslategray |
| Muted foreground | #414449darkslategray | #b6b9besilver |
| Accent | #d75b8fpalevioletred | #d75b8fpalevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #971c11brown | #e73727crimson |
| Destructive foreground | #fbe1dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8fd75byellowgreen | #8fd75byellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.73:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 6.84:1 | AA |
| Accent | 5.77:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 18.54:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.20:1 | AAA |
| Accent | 5.77:1 | AA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Subdued in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 131.766);
--foreground: oklch(0 0 0);
--muted: oklch(0.881 0.026 256.748);
--muted-foreground: oklch(0.386 0.009 256.735);
--popover: oklch(0.995 0.005 131.766);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.01 131.807);
--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.806 0.174 134.144);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.645 0.123 256.997);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.642 0.165 356.726);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.441 0.16 29.952);
--destructive-foreground: oklch(0.931 0.029 23.911);
--ring: oklch(0.806 0.174 134.144);
--chart-1: oklch(0.806 0.174 134.144);
--chart-2: oklch(0.645 0.123 256.997);
--chart-3: oklch(0.642 0.165 356.726);
--chart-4: oklch(0.671 0.113 256.935);
--chart-5: oklch(0.813 0.181 134.276);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.025 130.462);
--foreground: oklch(0.978 0.002 131.745);
--muted: oklch(0.247 0.035 256.888);
--muted-foreground: oklch(0.786 0.008 256.691);
--popover: oklch(0.145 0.025 130.462);
--popover-foreground: oklch(0.978 0.002 131.745);
--card: oklch(0.162 0.029 131.484);
--card-foreground: oklch(0.986 0.002 131.738);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.806 0.174 134.144);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.645 0.123 256.997);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.642 0.165 356.726);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.609 0.214 29.767);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.806 0.174 134.144);
--chart-1: oklch(0.806 0.174 134.144);
--chart-2: oklch(0.645 0.123 256.997);
--chart-3: oklch(0.642 0.165 356.726);
--chart-4: oklch(0.671 0.113 256.935);
--chart-5: oklch(0.813 0.181 134.276);
}