Dark Low Contrast Cold is a shadcn/ui theme built around a neutral gray primary color (#d1d1d6) with muted deep indigo accents (#42424d). The light mode uses an indigo-tinted background (#1e1e24). Dark mode keeps the neutral gray primary (#d1d1d6) on an indigo-tinted background (#1e1e24).
| Token | Light | Dark |
|---|---|---|
| Background | #1e1e24black | #1e1e24black |
| Foreground | #b0b0b5darkgray | #b0b0b5darkgray |
| Card | #1a1a1eblack | #1a1a1eblack |
| Card foreground | #bdbdc1silver | #bdbdc1silver |
| Popover | #17171cblack | #17171cblack |
| Popover foreground | #cacacelightgrey | #cacacelightgrey |
| Primary | #d1d1d6lightgrey | #d1d1d6lightgrey |
| Primary foreground | #37373edarkslategray | #37373edarkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #262631darkslategray | #262631darkslategray |
| Muted foreground | #a1a1b5darkgray | #a1a1b5darkgray |
| Accent | #42424ddarkslategray | #42424ddarkslategray |
| Accent foreground | #dedee3gainsboro | #dedee3gainsboro |
| Destructive | #f73826orangered | #f73826orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Input | #363636darkslategray | #363636darkslategray |
| Ring | #d1d1d6lightgrey | #d1d1d6lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.63:1 | AAA |
| Text on card | 9.27:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 3.78:1 | AA Large |
| Text on background | 7.63:1 | AAA |
| Text on card | 9.27:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Dark Low Contrast Cold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.239 0.01 285.616);
--foreground: oklch(0.759 0.006 286.244);
--muted: oklch(0.274 0.019 285.067);
--muted-foreground: oklch(0.715 0.029 285.64);
--popover: oklch(0.208 0.008 285.685);
--popover-foreground: oklch(0.841 0.004 286.309);
--card: oklch(0.219 0.009 285.659);
--card-foreground: oklch(0.801 0.005 286.279);
--border: oklch(0.301 0 189.462);
--input: oklch(0.331 0 180);
--primary: oklch(0.862 0.007 286.25);
--primary-foreground: oklch(0.34 0.012 285.733);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.382 0.019 285.452);
--accent-foreground: oklch(0.902 0.007 286.266);
--destructive: oklch(0.638 0.228 29.874);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.007 286.25);
--chart-1: oklch(0.862 0.007 286.25);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.382 0.019 285.452);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.859 0.011 286.173);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.239 0.01 285.616);
--foreground: oklch(0.759 0.006 286.244);
--muted: oklch(0.274 0.019 285.067);
--muted-foreground: oklch(0.715 0.029 285.64);
--popover: oklch(0.208 0.008 285.685);
--popover-foreground: oklch(0.841 0.004 286.309);
--card: oklch(0.219 0.009 285.659);
--card-foreground: oklch(0.801 0.005 286.279);
--border: oklch(0.301 0 189.462);
--input: oklch(0.331 0 180);
--primary: oklch(0.862 0.007 286.25);
--primary-foreground: oklch(0.34 0.012 285.733);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.382 0.019 285.452);
--accent-foreground: oklch(0.902 0.007 286.266);
--destructive: oklch(0.638 0.228 29.874);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.007 286.25);
--chart-1: oklch(0.862 0.007 286.25);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.382 0.019 285.452);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.859 0.011 286.173);
}