Dismal is a shadcn/ui theme built around a neutral gray primary color (#8b8d8d) with neutral gray accents (#8b8c8d). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the neutral gray primary (#8b8d8d) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #020608black |
| Foreground | #030e11black | #f9fafbghostwhite |
| Card | #f7fbfdghostwhite | #020608black |
| Card foreground | #030e11black | #f9fafbghostwhite |
| Popover | #f7fbfdghostwhite | #020608black |
| Popover foreground | #030e11black | #f9fafbghostwhite |
| Primary | #8b8d8dgray | #8b8d8dgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #8b8d8dgray | #8b8d8dgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e3e8e7gainsboro | #171c1bblack |
| Muted foreground | #4a5e5adarkslategray | #a1b5b0darkgray |
| Accent | #8b8c8dgray | #8b8c8dgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #881007darkred | #df1a0cred |
| Destructive foreground | #fcc9c5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8b8d8dgray | #8b8d8dgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 6.31:1 | AA |
| Muted text | 5.58:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 6.31:1 | AA |
| Muted text | 7.98:1 | AAA |
| Accent | 6.21:1 | AA |
| Destructive | 4.90:1 | AA |
Paste this into your globals.css to use Dismal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 221.348);
--foreground: oklch(0.152 0.02 219.766);
--muted: oklch(0.927 0.006 180.77);
--muted-foreground: oklch(0.465 0.026 179.301);
--popover: oklch(0.986 0.005 221.348);
--popover-foreground: oklch(0.152 0.02 219.766);
--card: oklch(0.986 0.005 221.348);
--card-foreground: oklch(0.152 0.02 219.766);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.641 0.002 221.334);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.003 180.837);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.639 0.003 272.614);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.401 0.154 29.75);
--destructive-foreground: oklch(0.879 0.059 23.085);
--ring: oklch(0.641 0.002 221.334);
--chart-1: oklch(0.641 0.002 221.334);
--chart-2: oklch(0.643 0.003 180.837);
--chart-3: oklch(0.639 0.003 272.614);
--chart-4: oklch(0.668 0.003 180.851);
--chart-5: oklch(0.643 0.009 221.428);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.012 216.086);
--foreground: oklch(0.985 0.002 221.32);
--muted: oklch(0.221 0.009 179.806);
--muted-foreground: oklch(0.756 0.023 180.068);
--popover: oklch(0.119 0.012 216.086);
--popover-foreground: oklch(0.985 0.002 221.32);
--card: oklch(0.119 0.012 216.086);
--card-foreground: oklch(0.985 0.002 221.32);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.641 0.002 221.334);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.003 180.837);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.639 0.003 272.614);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.575 0.226 29.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.641 0.002 221.334);
--chart-1: oklch(0.641 0.002 221.334);
--chart-2: oklch(0.643 0.003 180.837);
--chart-3: oklch(0.639 0.003 272.614);
--chart-4: oklch(0.668 0.003 180.851);
--chart-5: oklch(0.643 0.009 221.428);
}