Unfortunate is a shadcn/ui theme built around a near-black primary color (#080402) with near-black accents (#040208). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#080402) on an orange-tinted background (#0c0604).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0604black |
| Foreground | #140905black | #fbf9f8snow |
| Card | #ffffffwhite | #0c0604black |
| Card foreground | #140905black | #fbf9f8snow |
| Popover | #ffffffwhite | #0c0604black |
| Popover foreground | #140905black | #fbf9f8snow |
| Primary | #080402black | #080402black |
| Primary foreground | #d2846adarksalmon | #d2846adarksalmon |
| Secondary | #020804black | #020804black |
| Secondary foreground | #31a54eseagreen | #31a54eseagreen |
| Muted | #e3f2e7honeydew | #0d1c11black |
| Muted foreground | #58745fdimgray | #8ba792darkseagreen |
| Accent | #040208black | #040208black |
| Accent foreground | #c5b8ealightsteelblue | #c5b8ealightsteelblue |
| Destructive | #a61b11firebrick | #d42316firebrick |
| Destructive foreground | #fdeeedseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #080402black | #080402black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 4.43:1 | AA Large |
| Accent | 11.21:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 11.21:1 | AAA |
| Destructive | 5.17:1 | AA |
Paste this into your globals.css to use Unfortunate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.155 0.022 42.885);
--muted: oklch(0.947 0.021 153.5);
--muted-foreground: oklch(0.531 0.047 152.255);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.155 0.022 42.885);
--card: oklch(1 0 180);
--card-foreground: oklch(0.155 0.022 42.885);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.112 0.013 46.59);
--primary-foreground: oklch(0.689 0.104 39.18);
--secondary: oklch(0.123 0.019 153.237);
--secondary-foreground: oklch(0.638 0.162 147.918);
--accent: oklch(0.099 0.02 297.499);
--accent-foreground: oklch(0.81 0.07 296.259);
--destructive: oklch(0.468 0.175 29.546);
--destructive-foreground: oklch(0.96 0.017 22.417);
--ring: oklch(0.112 0.013 46.59);
--chart-1: oklch(0.112 0.013 46.59);
--chart-2: oklch(0.123 0.019 153.237);
--chart-3: oklch(0.099 0.02 297.499);
--chart-4: oklch(0.173 0.03 151.409);
--chart-5: oklch(0.112 0.014 47.1);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 46.171);
--foreground: oklch(0.984 0.002 39.491);
--muted: oklch(0.207 0.029 151.151);
--muted-foreground: oklch(0.701 0.044 152.751);
--popover: oklch(0.128 0.015 46.171);
--popover-foreground: oklch(0.984 0.002 39.491);
--card: oklch(0.128 0.015 46.171);
--card-foreground: oklch(0.984 0.002 39.491);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.112 0.013 46.59);
--primary-foreground: oklch(0.689 0.104 39.18);
--secondary: oklch(0.123 0.019 153.237);
--secondary-foreground: oklch(0.638 0.162 147.918);
--accent: oklch(0.099 0.02 297.499);
--accent-foreground: oklch(0.81 0.07 296.259);
--destructive: oklch(0.56 0.212 29.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.013 46.59);
--chart-1: oklch(0.112 0.013 46.59);
--chart-2: oklch(0.123 0.019 153.237);
--chart-3: oklch(0.099 0.02 297.499);
--chart-4: oklch(0.173 0.03 151.409);
--chart-5: oklch(0.112 0.014 47.1);
}