Disappointment is a shadcn/ui theme built around a deep purple primary color (#260e2a) with deep pink accents (#2a0e21). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#260e2a) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070208black |
| Foreground | #000000black | #fbf9fbsnow |
| Card | #fcfcfcsnow | #0b030cblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #0b030cblack |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #260e2ablack | #260e2ablack |
| Primary foreground | #ce8fdbplum | #ce8fdbplum |
| Secondary | #170e2ablack | #170e2ablack |
| Secondary foreground | #a88fdbmediumpurple | #a88fdbmediumpurple |
| Muted | #ecebf0lavender | #110f14black |
| Muted foreground | #3f384cdarkslategray | #b9b3c7silver |
| Accent | #2a0e21black | #2a0e21black |
| Accent foreground | #db8fc2plum | #db8fc2plum |
| Destructive | #74190bmaroon | #eb4f37tomato |
| Destructive foreground | #f8c2b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #260e2ablack | #260e2ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 9.39:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 9.35:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Disappointment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.007 301.375);
--muted-foreground: oklch(0.357 0.035 299.897);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.214 0.062 320.722);
--primary-foreground: oklch(0.739 0.126 320.743);
--secondary: oklch(0.193 0.056 296.138);
--secondary-foreground: oklch(0.702 0.111 298.847);
--accent: oklch(0.216 0.056 342.099);
--accent-foreground: oklch(0.743 0.111 340.072);
--destructive: oklch(0.369 0.127 31.657);
--destructive-foreground: oklch(0.859 0.064 28.497);
--ring: oklch(0.214 0.062 320.722);
--chart-1: oklch(0.214 0.062 320.722);
--chart-2: oklch(0.193 0.056 296.138);
--chart-3: oklch(0.216 0.056 342.099);
--chart-4: oklch(0.219 0.068 295.574);
--chart-5: oklch(0.214 0.065 320.7);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.026 322.483);
--foreground: oklch(0.983 0.004 320.538);
--muted: oklch(0.174 0.011 300.518);
--muted-foreground: oklch(0.778 0.029 300.896);
--popover: oklch(0.121 0.029 322.153);
--popover-foreground: oklch(0.992 0.002 320.535);
--card: oklch(0.121 0.029 322.153);
--card-foreground: oklch(0.992 0.002 320.535);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.214 0.062 320.722);
--primary-foreground: oklch(0.739 0.126 320.743);
--secondary: oklch(0.193 0.056 296.138);
--secondary-foreground: oklch(0.702 0.111 298.847);
--accent: oklch(0.216 0.056 342.099);
--accent-foreground: oklch(0.743 0.111 340.072);
--destructive: oklch(0.641 0.196 31.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.214 0.062 320.722);
--chart-1: oklch(0.214 0.062 320.722);
--chart-2: oklch(0.193 0.056 296.138);
--chart-3: oklch(0.216 0.056 342.099);
--chart-4: oklch(0.219 0.068 295.574);
--chart-5: oklch(0.214 0.065 320.7);
}