Vapid is a shadcn/ui theme built around a purple primary color (#dc84c6) with muted light purple accents (#ebe6e9). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#dc84c6) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #040103black |
| Foreground | #0c040ablack | #ffffffwhite |
| Card | #fcf2falavenderblush | #080207black |
| Card foreground | #080206black | #ffffffwhite |
| Popover | #fcf2falavenderblush | #080207black |
| Popover foreground | #080206black | #ffffffwhite |
| Primary | #dc84c6orchid | #dc84c6orchid |
| Primary foreground | #240a1dblack | #240a1dblack |
| Secondary | #ebe6e9lavender | #1f1f1fblack |
| Secondary foreground | #584653darkslategray | #b8b8b8silver |
| Muted | #ddd9dcgainsboro | #262222black |
| Muted foreground | #50494edarkslategray | #b6afafdarkgray |
| Accent | #ebe6e9lavender | #1f1f1fblack |
| Accent foreground | #584653darkslategray | #b8b8b8silver |
| Destructive | #631608maroon | #e73313orangered |
| Destructive foreground | #f8b2a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dc84c6orchid | #dc84c6orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Vapid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.01 334.044);
--foreground: oklch(0.124 0.024 334.758);
--muted: oklch(0.89 0.006 333.997);
--muted-foreground: oklch(0.415 0.011 334.318);
--popover: oklch(0.972 0.015 334.129);
--popover-foreground: oklch(0.108 0.021 334.533);
--card: oklch(0.972 0.015 334.129);
--card-foreground: oklch(0.108 0.021 334.533);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.136 336.795);
--primary-foreground: oklch(0.196 0.053 338.108);
--secondary: oklch(0.929 0.007 334.011);
--secondary-foreground: oklch(0.418 0.031 335.083);
--accent: oklch(0.929 0.007 334.011);
--accent-foreground: oklch(0.418 0.031 335.083);
--destructive: oklch(0.332 0.112 32.373);
--destructive-foreground: oklch(0.825 0.084 30.178);
--ring: oklch(0.727 0.136 336.795);
--chart-1: oklch(0.727 0.136 336.795);
--chart-2: oklch(0.929 0.007 334.011);
--chart-3: oklch(0.929 0.007 334.011);
--chart-4: oklch(0.952 0.005 333.964);
--chart-5: oklch(0.727 0.143 336.942);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.019 334.642);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.007 17.587);
--muted-foreground: oklch(0.76 0.007 17.31);
--popover: oklch(0.107 0.024 334.642);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.024 334.642);
--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.727 0.136 336.795);
--primary-foreground: oklch(0.196 0.053 338.108);
--secondary: oklch(0.238 0 161.565);
--secondary-foreground: oklch(0.781 0 180);
--accent: oklch(0.238 0 161.565);
--accent-foreground: oklch(0.781 0 180);
--destructive: oklch(0.604 0.219 31.994);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.727 0.136 336.795);
--chart-1: oklch(0.727 0.136 336.795);
--chart-2: oklch(0.238 0 161.565);
--chart-3: oklch(0.238 0 161.565);
--chart-4: oklch(0.27 0 180);
--chart-5: oklch(0.727 0.143 336.942);
}