Dim is a shadcn/ui theme built around a muted cyan primary color (#a0aeb1) with muted red accents (#b1a2a0). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted cyan primary (#a0aeb1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #000000black |
| Foreground | #041316black | #fcfdfdwhite |
| Card | #f6fcfdmintcream | #030303black |
| Card foreground | #030f11black | #ffffffwhite |
| Popover | #f6fcfdmintcream | #030303black |
| Popover foreground | #030f11black | #ffffffwhite |
| Primary | #a0aeb1darkgray | #a0aeb1darkgray |
| Primary foreground | #0e1011black | #0e1011black |
| Secondary | #b1a2a0darkgray | #b1a2a0darkgray |
| Secondary foreground | #110e0eblack | #110e0eblack |
| Muted | #e8e4e3gainsboro | #1c1817black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #b1a2a0darkgray | #b1a2a0darkgray |
| Accent foreground | #110e0eblack | #110e0eblack |
| Destructive | #962d0dsaddlebrown | #ef6b43tomato |
| Destructive foreground | #fce1d9mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a0aeb1darkgray | #a0aeb1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Dim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 209.459);
--foreground: oklch(0.174 0.023 209.292);
--muted: oklch(0.921 0.004 29.484);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(0.988 0.006 209.451);
--popover-foreground: oklch(0.158 0.02 208.259);
--card: oklch(0.988 0.006 209.451);
--card-foreground: oklch(0.158 0.02 208.259);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.741 0.017 209.43);
--primary-foreground: oklch(0.172 0.004 209.429);
--secondary: oklch(0.725 0.018 29.569);
--secondary-foreground: oklch(0.168 0.005 29.582);
--accent: oklch(0.725 0.018 29.569);
--accent-foreground: oklch(0.168 0.005 29.582);
--destructive: oklch(0.454 0.146 35.97);
--destructive-foreground: oklch(0.93 0.031 37.623);
--ring: oklch(0.741 0.017 209.43);
--chart-1: oklch(0.741 0.017 209.43);
--chart-2: oklch(0.725 0.018 29.569);
--chart-3: oklch(0.725 0.018 29.569);
--chart-4: oklch(0.75 0.016 29.553);
--chart-5: oklch(0.744 0.022 209.43);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 209.464);
--muted: oklch(0.213 0.006 29.599);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--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.741 0.017 209.43);
--primary-foreground: oklch(0.172 0.004 209.429);
--secondary: oklch(0.725 0.018 29.569);
--secondary-foreground: oklch(0.168 0.005 29.582);
--accent: oklch(0.725 0.018 29.569);
--accent-foreground: oklch(0.168 0.005 29.582);
--destructive: oklch(0.682 0.172 37.454);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.741 0.017 209.43);
--chart-1: oklch(0.741 0.017 209.43);
--chart-2: oklch(0.725 0.018 29.569);
--chart-3: oklch(0.725 0.018 29.569);
--chart-4: oklch(0.75 0.016 29.553);
--chart-5: oklch(0.744 0.022 209.43);
}