Pessimistic is a shadcn/ui theme built around a vivid light violet primary color (#d2a7f6) with vivid light teal accents (#a7f6d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#d2a7f6) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #000000black | #f8f6f9whitesmoke |
| Card | #ffffffwhite | #050307black |
| Card foreground | #000000black | #f8f6f9whitesmoke |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #000000black | #f8f6f9whitesmoke |
| Primary | #d2a7f6plum | #d2a7f6plum |
| Primary foreground | #3a0a61indigo | #3a0a61indigo |
| Secondary | #f6d2a7navajowhite | #f6d2a7navajowhite |
| Secondary foreground | #613a0asaddlebrown | #613a0asaddlebrown |
| Muted | #f1e9e0antiquewhite | #1f180eblack |
| Muted foreground | #5c5347darkolivegreen | #b8aea3darkgray |
| Accent | #a7f6d2paleturquoise | #a7f6d2paleturquoise |
| Accent foreground | #0a613adarkslategray | #0a613adarkslategray |
| Destructive | #a30d05darkred | #f81d12red |
| Destructive foreground | #fededcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2a7f6plum | #d2a7f6plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 6.26:1 | AA |
| Accent | 6.01:1 | AA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 8.04:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Pessimistic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.015 73.096);
--muted-foreground: oklch(0.447 0.022 72.749);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.796 0.117 309.04);
--primary-foreground: oklch(0.288 0.137 302.92);
--secondary: oklch(0.885 0.069 72.335);
--secondary-foreground: oklch(0.387 0.08 65.204);
--accent: oklch(0.912 0.091 164.637);
--accent-foreground: oklch(0.435 0.1 156.832);
--destructive: oklch(0.454 0.18 29.581);
--destructive-foreground: oklch(0.927 0.035 21.405);
--ring: oklch(0.796 0.117 309.04);
--chart-1: oklch(0.796 0.117 309.04);
--chart-2: oklch(0.885 0.069 72.335);
--chart-3: oklch(0.912 0.091 164.637);
--chart-4: oklch(0.903 0.058 72.554);
--chart-5: oklch(0.794 0.122 308.982);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.013 311.419);
--foreground: oklch(0.974 0.005 310.389);
--muted: oklch(0.215 0.021 71.929);
--muted-foreground: oklch(0.757 0.02 73.007);
--popover: oklch(0.108 0.013 311.419);
--popover-foreground: oklch(0.974 0.005 310.389);
--card: oklch(0.108 0.013 311.419);
--card-foreground: oklch(0.974 0.005 310.389);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.796 0.117 309.04);
--primary-foreground: oklch(0.288 0.137 302.92);
--secondary: oklch(0.885 0.069 72.335);
--secondary-foreground: oklch(0.387 0.08 65.204);
--accent: oklch(0.912 0.091 164.637);
--accent-foreground: oklch(0.435 0.1 156.832);
--destructive: oklch(0.622 0.244 29.441);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.796 0.117 309.04);
--chart-1: oklch(0.796 0.117 309.04);
--chart-2: oklch(0.885 0.069 72.335);
--chart-3: oklch(0.912 0.091 164.637);
--chart-4: oklch(0.903 0.058 72.554);
--chart-5: oklch(0.794 0.122 308.982);
}