Pessimistic is a shadcn/ui theme built around a teal primary color (#5ce0b2) with pink accents (#e05c8a). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the teal primary (#5ce0b2) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #030706black |
| Foreground | #010403black | #f4faf8mintcream |
| Card | #f4fbf8mintcream | #050b09black |
| Card foreground | #000000black | #f8fcfamintcream |
| Popover | #f4fbf8mintcream | #050b09black |
| Popover foreground | #000000black | #f8fcfamintcream |
| Primary | #5ce0b2mediumaquamarine | #5ce0b2mediumaquamarine |
| Primary foreground | #020906black | #020906black |
| Secondary | #e05c8apalevioletred | #e05c8apalevioletred |
| Secondary foreground | #000000black | #000000black |
| Muted | #e1dbddgainsboro | #241e20black |
| Muted foreground | #5d4c52dimgray | #b3a2a8darkgray |
| Accent | #e05c8apalevioletred | #e05c8apalevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #a82b05firebrick | #f84b16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5ce0b2mediumaquamarine | #5ce0b2mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 12.21:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 5.85:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 12.21:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 6.73:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Pessimistic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 173.418);
--foreground: oklch(0.099 0.012 173.829);
--muted: oklch(0.896 0.007 353.801);
--muted-foreground: oklch(0.435 0.024 355.13);
--popover: oklch(0.982 0.008 173.338);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.008 173.338);
--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.821 0.134 166.886);
--primary-foreground: oklch(0.126 0.018 173.869);
--secondary: oklch(0.655 0.17 1.093);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.655 0.17 1.093);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.485 0.167 34.969);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.134 166.886);
--chart-1: oklch(0.821 0.134 166.886);
--chart-2: oklch(0.655 0.17 1.093);
--chart-3: oklch(0.655 0.17 1.093);
--chart-4: oklch(0.678 0.157 0.102);
--chart-5: oklch(0.827 0.139 166.599);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 173.754);
--foreground: oklch(0.981 0.007 173.374);
--muted: oklch(0.243 0.01 354.718);
--muted-foreground: oklch(0.73 0.021 354.395);
--popover: oklch(0.139 0.012 173.715);
--popover-foreground: oklch(0.987 0.004 173.442);
--card: oklch(0.139 0.012 173.715);
--card-foreground: oklch(0.987 0.004 173.442);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.821 0.134 166.886);
--primary-foreground: oklch(0.126 0.018 173.869);
--secondary: oklch(0.655 0.17 1.093);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.655 0.17 1.093);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.654 0.217 35.541);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.134 166.886);
--chart-1: oklch(0.821 0.134 166.886);
--chart-2: oklch(0.655 0.17 1.093);
--chart-3: oklch(0.655 0.17 1.093);
--chart-4: oklch(0.678 0.157 0.102);
--chart-5: oklch(0.827 0.139 166.599);
}