Expectation is a shadcn/ui theme built around a purple primary color (#9f3c88) with pink accents (#9f3c57). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the purple primary (#9f3c88) on a purple-tinted background (#10050d).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #10050dblack |
| Foreground | #0c030ablack | #fdfcfdwhite |
| Card | #fcf3falavenderblush | #140610black |
| Card foreground | #080207black | #ffffffwhite |
| Popover | #fcf3falavenderblush | #140610black |
| Popover foreground | #080207black | #ffffffwhite |
| Primary | #9f3c88mediumvioletred | #9f3c88mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #853c9frebeccapurple | #853c9frebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3d3e9gainsboro | #26162cblack |
| Muted foreground | #695770dimgray | #a28fa8darkgray |
| Accent | #9f3c57sienna | #9f3c57sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b82d14firebrick | #e63c1eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9f3c88mediumvioletred | #9f3c88mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 4.60:1 | AA |
| Accent | 6.43:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 5.69:1 | AA |
| Accent | 6.43:1 | AA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Expectation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 333.383);
--foreground: oklch(0.123 0.028 334.455);
--muted: oklch(0.886 0.035 317.099);
--muted-foreground: oklch(0.483 0.047 316.965);
--popover: oklch(0.973 0.013 333.456);
--popover-foreground: oklch(0.107 0.024 334.072);
--card: oklch(0.973 0.013 333.456);
--card-foreground: oklch(0.107 0.024 334.072);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.519 0.158 337.862);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.495 0.164 315.986);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.501 0.133 6.776);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.515 0.179 32.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.519 0.158 337.862);
--chart-1: oklch(0.519 0.158 337.862);
--chart-2: oklch(0.495 0.164 315.986);
--chart-3: oklch(0.501 0.133 6.776);
--chart-4: oklch(0.52 0.173 315.971);
--chart-5: oklch(0.521 0.167 338.134);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.029 335.358);
--foreground: oklch(0.991 0.003 333.284);
--muted: oklch(0.233 0.048 316.643);
--muted-foreground: oklch(0.674 0.043 317.043);
--popover: oklch(0.15 0.033 336.043);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.033 336.043);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.519 0.158 337.862);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.495 0.164 315.986);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.501 0.133 6.776);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.611 0.211 32.278);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.519 0.158 337.862);
--chart-1: oklch(0.519 0.158 337.862);
--chart-2: oklch(0.495 0.164 315.986);
--chart-3: oklch(0.501 0.133 6.776);
--chart-4: oklch(0.52 0.173 315.971);
--chart-5: oklch(0.521 0.167 338.134);
}