Subdued is a shadcn/ui theme built around a green primary color (#6dd096) with orange accents (#d0966d). The light mode uses a neutral background (#f6fdf9). Dark mode keeps the green primary (#6dd096) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf9mintcream | #000000black |
| Foreground | #030c07black | #fcfdfcwhite |
| Card | #f6fdf9mintcream | #000000black |
| Card foreground | #030c07black | #fcfdfcwhite |
| Popover | #f6fdf9mintcream | #000000black |
| Popover foreground | #030c07black | #fcfdfcwhite |
| Primary | #6dd096mediumaquamarine | #6dd096mediumaquamarine |
| Primary foreground | #020805black | #020805black |
| Secondary | #966dd0mediumpurple | #966dd0mediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #e0dde4gainsboro | #1e1b22black |
| Muted foreground | #443f4bdarkslategray | #b9b4c0silver |
| Accent | #d0966ddarksalmon | #d0966ddarksalmon |
| Accent foreground | #080502black | #080502black |
| Destructive | #b04007saddlebrown | #dc5009chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6dd096mediumaquamarine | #6dd096mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 10.64:1 | AAA |
| Secondary button | 5.37:1 | AA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 5.86:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 10.64:1 | AAA |
| Secondary button | 5.37:1 | AA |
| Muted text | 8.38:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Subdued in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 160.797);
--foreground: oklch(0.142 0.02 160.674);
--muted: oklch(0.901 0.01 304.885);
--muted-foreground: oklch(0.376 0.022 304.241);
--popover: oklch(0.989 0.009 160.797);
--popover-foreground: oklch(0.142 0.02 160.674);
--card: oklch(0.989 0.009 160.797);
--card-foreground: oklch(0.142 0.02 160.674);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.781 0.126 156.295);
--primary-foreground: oklch(0.123 0.016 160.951);
--secondary: oklch(0.617 0.149 301.411);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.719 0.089 56.312);
--accent-foreground: oklch(0.117 0.011 65.935);
--destructive: oklch(0.522 0.158 40.76);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.126 156.295);
--chart-1: oklch(0.781 0.126 156.295);
--chart-2: oklch(0.617 0.149 301.411);
--chart-3: oklch(0.719 0.089 56.312);
--chart-4: oklch(0.647 0.137 301.934);
--chart-5: oklch(0.786 0.132 156.023);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 160.977);
--muted: oklch(0.229 0.015 304.156);
--muted-foreground: oklch(0.778 0.018 304.721);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 160.977);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.002 160.977);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.781 0.126 156.295);
--primary-foreground: oklch(0.123 0.016 160.951);
--secondary: oklch(0.617 0.149 301.411);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.719 0.089 56.312);
--accent-foreground: oklch(0.117 0.011 65.935);
--destructive: oklch(0.614 0.188 40.303);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.126 156.295);
--chart-1: oklch(0.781 0.126 156.295);
--chart-2: oklch(0.617 0.149 301.411);
--chart-3: oklch(0.719 0.089 56.312);
--chart-4: oklch(0.647 0.137 301.934);
--chart-5: oklch(0.786 0.132 156.023);
}