Set is a shadcn/ui theme built around a light purple primary color (#f2deee) with muted light purple accents (#cabac6). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light purple primary (#f2deee) on a purple-tinted background (#0f050d).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0f050dblack |
| Foreground | #090107black | #fdfcfdwhite |
| Card | #fdfcfdwhite | #0f050dblack |
| Card foreground | #090107black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #0f050dblack |
| Popover foreground | #090107black | #fdfcfdwhite |
| Primary | #f2deeelavender | #f2deeelavender |
| Primary foreground | #702e62rebeccapurple | #702e62rebeccapurple |
| Secondary | #d9d3d8lightgrey | #2e292ddarkslategray |
| Secondary foreground | #413940darkslategray | #c8c1c6silver |
| Muted | #e1d5dfgainsboro | #2a1e27darkslategray |
| Muted foreground | #5e4559dimgray | #baa1b4darkgray |
| Accent | #cabac6silver | #483744darkslategray |
| Accent foreground | #2e232cdarkslategray | #ded4dcgainsboro |
| Destructive | #c83d0efirebrick | #ef4c15orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2deeelavender | #f2deeelavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 5.08:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Set in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 332.659);
--foreground: oklch(0.105 0.03 333.709);
--muted: oklch(0.886 0.018 332.936);
--muted-foreground: oklch(0.425 0.045 334.157);
--popover: oklch(0.991 0.003 332.659);
--popover-foreground: oklch(0.105 0.03 333.709);
--card: oklch(0.991 0.003 332.659);
--card-foreground: oklch(0.105 0.03 333.709);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.922 0.029 333.096);
--primary-foreground: oklch(0.413 0.116 336.644);
--secondary: oklch(0.874 0.009 332.77);
--secondary-foreground: oklch(0.356 0.016 333.312);
--accent: oklch(0.805 0.025 333.085);
--accent-foreground: oklch(0.274 0.022 333.789);
--destructive: oklch(0.559 0.184 36.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.922 0.029 333.096);
--chart-1: oklch(0.922 0.029 333.096);
--chart-2: oklch(0.874 0.009 332.77);
--chart-3: oklch(0.805 0.025 333.085);
--chart-4: oklch(0.898 0.007 332.738);
--chart-5: oklch(0.921 0.031 333.13);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.027 334.57);
--foreground: oklch(0.992 0.001 332.637);
--muted: oklch(0.252 0.025 334.087);
--muted-foreground: oklch(0.737 0.039 333.413);
--popover: oklch(0.138 0.027 334.57);
--popover-foreground: oklch(0.992 0.001 332.637);
--card: oklch(0.138 0.027 334.57);
--card-foreground: oklch(0.992 0.001 332.637);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.922 0.029 333.096);
--primary-foreground: oklch(0.413 0.116 336.644);
--secondary: oklch(0.287 0.01 333.171);
--secondary-foreground: oklch(0.818 0.011 332.822);
--accent: oklch(0.362 0.031 333.905);
--accent-foreground: oklch(0.879 0.015 332.881);
--destructive: oklch(0.64 0.208 36.408);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.922 0.029 333.096);
--chart-1: oklch(0.922 0.029 333.096);
--chart-2: oklch(0.287 0.01 333.171);
--chart-3: oklch(0.362 0.031 333.905);
--chart-4: oklch(0.317 0.012 333.192);
--chart-5: oklch(0.921 0.031 333.13);
}