Unfortunate is a shadcn/ui theme built around a deep yellow primary color (#654e1f) with deep blue accents (#1f3765). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#654e1f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #000000black |
| Foreground | #0d0902black | #fbfaf9snow |
| Card | #fefdfbsnow | #000000black |
| Card foreground | #0d0902black | #fbfaf9snow |
| Popover | #fefdfbsnow | #000000black |
| Popover foreground | #0d0902black | #fbfaf9snow |
| Primary | #654e1fdarkolivegreen | #654e1fdarkolivegreen |
| Primary foreground | #eee2c8bisque | #eee2c8bisque |
| Secondary | #1f3765midnightblue | #1f3765midnightblue |
| Secondary foreground | #c8d5eepowderblue | #c8d5eepowderblue |
| Muted | #eff1f6whitesmoke | #090c10black |
| Muted foreground | #464a53darkslategray | #acb0b9darkgray |
| Accent | #1f3765midnightblue | #1f3765midnightblue |
| Accent foreground | #c8d5eepowderblue | #c8d5eepowderblue |
| Destructive | #9c2411brown | #ea553etomato |
| Destructive foreground | #fce7e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #654e1fdarkolivegreen | #654e1fdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Unfortunate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 84.557);
--foreground: oklch(0.144 0.021 90.822);
--muted: oklch(0.958 0.007 264.528);
--muted-foreground: oklch(0.409 0.016 264.376);
--popover: oklch(0.994 0.002 84.557);
--popover-foreground: oklch(0.144 0.021 90.822);
--card: oklch(0.994 0.002 84.557);
--card-foreground: oklch(0.144 0.021 90.822);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.439 0.071 82.249);
--primary-foreground: oklch(0.915 0.036 84.585);
--secondary: oklch(0.343 0.087 262.672);
--secondary-foreground: oklch(0.871 0.038 264.36);
--accent: oklch(0.343 0.087 262.672);
--accent-foreground: oklch(0.871 0.038 264.36);
--destructive: oklch(0.456 0.159 31.644);
--destructive-foreground: oklch(0.943 0.024 28.078);
--ring: oklch(0.439 0.071 82.249);
--chart-1: oklch(0.439 0.071 82.249);
--chart-2: oklch(0.343 0.087 262.672);
--chart-3: oklch(0.343 0.087 262.672);
--chart-4: oklch(0.368 0.096 262.637);
--chart-5: oklch(0.442 0.074 81.919);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 84.557);
--muted: oklch(0.152 0.011 264.023);
--muted-foreground: oklch(0.757 0.014 264.484);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.002 84.557);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.002 84.557);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.439 0.071 82.249);
--primary-foreground: oklch(0.915 0.036 84.585);
--secondary: oklch(0.343 0.087 262.672);
--secondary-foreground: oklch(0.871 0.038 264.36);
--accent: oklch(0.343 0.087 262.672);
--accent-foreground: oklch(0.871 0.038 264.36);
--destructive: oklch(0.645 0.188 31.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.071 82.249);
--chart-1: oklch(0.439 0.071 82.249);
--chart-2: oklch(0.343 0.087 262.672);
--chart-3: oklch(0.343 0.087 262.672);
--chart-4: oklch(0.368 0.096 262.637);
--chart-5: oklch(0.442 0.074 81.919);
}