Dismal is a shadcn/ui theme built around a purple primary color (#ea8fea) with pink accents (#ea8fbd). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#ea8fea) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #040104black |
| Foreground | #140614black | #fdfcfdwhite |
| Card | #fefbfewhite | #040104black |
| Card foreground | #140614black | #fdfcfdwhite |
| Popover | #fefbfewhite | #040104black |
| Popover foreground | #140614black | #fdfcfdwhite |
| Primary | #ea8feaviolet | #ea8feaviolet |
| Primary foreground | #3c0b3cmidnightblue | #3c0b3cmidnightblue |
| Secondary | #bd8feaplum | #bd8feaplum |
| Secondary foreground | #240b3cmidnightblue | #240b3cmidnightblue |
| Muted | #dbd8dfgainsboro | #242027black |
| Muted foreground | #47444bdarkslategray | #b8b4bbsilver |
| Accent | #ea8fbdplum | #ea8fbdplum |
| Accent foreground | #3c0b24black | #3c0b24black |
| Destructive | #df0501red | #fe322fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ea8feaviolet | #ea8feaviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 5.03:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 7.84:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Dismal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 325.605);
--foreground: oklch(0.152 0.038 327.237);
--muted: oklch(0.886 0.01 308.33);
--muted-foreground: oklch(0.392 0.013 308.1);
--popover: oklch(0.991 0.004 325.605);
--popover-foreground: oklch(0.152 0.038 327.237);
--card: oklch(0.991 0.004 325.605);
--card-foreground: oklch(0.152 0.038 327.237);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.775 0.159 326.976);
--primary-foreground: oklch(0.262 0.1 327.978);
--secondary: oklch(0.728 0.137 306.286);
--secondary-foreground: oklch(0.222 0.089 302.427);
--accent: oklch(0.758 0.123 349.089);
--accent-foreground: oklch(0.248 0.081 354.073);
--destructive: oklch(0.569 0.232 29.348);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.775 0.159 326.976);
--chart-1: oklch(0.775 0.159 326.976);
--chart-2: oklch(0.728 0.137 306.286);
--chart-3: oklch(0.758 0.123 349.089);
--chart-4: oklch(0.759 0.121 306.651);
--chart-5: oklch(0.775 0.166 327.026);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.019 327.083);
--foreground: oklch(0.992 0.002 325.589);
--muted: oklch(0.251 0.014 307.833);
--muted-foreground: oklch(0.775 0.011 308.306);
--popover: oklch(0.086 0.019 327.083);
--popover-foreground: oklch(0.992 0.002 325.589);
--card: oklch(0.086 0.019 327.083);
--card-foreground: oklch(0.992 0.002 325.589);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.775 0.159 326.976);
--primary-foreground: oklch(0.262 0.1 327.978);
--secondary: oklch(0.728 0.137 306.286);
--secondary-foreground: oklch(0.222 0.089 302.427);
--accent: oklch(0.758 0.123 349.089);
--accent-foreground: oklch(0.248 0.081 354.073);
--destructive: oklch(0.646 0.237 27.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.775 0.159 326.976);
--chart-1: oklch(0.775 0.159 326.976);
--chart-2: oklch(0.728 0.137 306.286);
--chart-3: oklch(0.758 0.123 349.089);
--chart-4: oklch(0.759 0.121 306.651);
--chart-5: oklch(0.775 0.166 327.026);
}