Expectancy is a shadcn/ui theme built around a vivid light purple primary color (#fdc3eb) with vivid light red accents (#fdc3ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#fdc3eb) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #090107black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #070306black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #ffffffwhite | #040103black |
| Popover foreground | #090107black | #fdfcfdwhite |
| Primary | #fdc3ebpink | #fdc3ebpink |
| Primary foreground | #8b0460purple | #8b0460purple |
| Secondary | #f3c3fdlavender | #f3c3fdlavender |
| Secondary foreground | #72048bpurple | #72048bpurple |
| Muted | #ded7dfgainsboro | #262028darkslategray |
| Muted foreground | #604f64dimgray | #ad9bb0darkgray |
| Accent | #fdc3cepink | #fdc3cepink |
| Accent foreground | #8b041cdarkred | #8b041cdarkred |
| Destructive | #ce3512firebrick | #dd3813orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdc3ebpink | #fdc3ebpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 6.52:1 | AA |
| Destructive | 5.06:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.52:1 | AA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Expectancy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.031 337.199);
--muted: oklch(0.888 0.013 320.004);
--muted-foreground: oklch(0.452 0.041 320.067);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.031 337.199);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.082 0.024 337.199);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.083 338.306);
--primary-foreground: oklch(0.424 0.177 347.085);
--secondary: oklch(0.878 0.093 320.077);
--secondary-foreground: oklch(0.408 0.195 318.156);
--accent: oklch(0.873 0.068 6.324);
--accent-foreground: oklch(0.404 0.161 22.048);
--destructive: oklch(0.562 0.195 33.352);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.083 338.306);
--chart-1: oklch(0.882 0.083 338.306);
--chart-2: oklch(0.878 0.093 320.077);
--chart-3: oklch(0.873 0.068 6.324);
--chart-4: oklch(0.908 0.07 320.057);
--chart-5: oklch(0.881 0.086 338.36);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 336.944);
--foreground: oklch(0.992 0.001 336.579);
--muted: oklch(0.253 0.017 320.051);
--muted-foreground: oklch(0.712 0.036 320.037);
--popover: oklch(0.086 0.014 336.944);
--popover-foreground: oklch(0.992 0.001 336.579);
--card: oklch(0.109 0.018 336.944);
--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.882 0.083 338.306);
--primary-foreground: oklch(0.424 0.177 347.085);
--secondary: oklch(0.878 0.093 320.077);
--secondary-foreground: oklch(0.408 0.195 318.156);
--accent: oklch(0.873 0.068 6.324);
--accent-foreground: oklch(0.404 0.161 22.048);
--destructive: oklch(0.59 0.206 33.313);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.083 338.306);
--chart-1: oklch(0.882 0.083 338.306);
--chart-2: oklch(0.878 0.093 320.077);
--chart-3: oklch(0.873 0.068 6.324);
--chart-4: oklch(0.908 0.07 320.057);
--chart-5: oklch(0.881 0.086 338.36);
}