Both is a shadcn/ui theme built around a deep violet primary color (#210f2e) with deep purple accents (#2e0f2b). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#210f2e) on a neutral background (#050407).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #050407black |
| Foreground | #030104black | #faf8fcghostwhite |
| Card | #faf8fcghostwhite | #08050ablack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #050407black |
| Popover foreground | #030104black | #faf8fcghostwhite |
| Primary | #210f2eblack | #210f2eblack |
| Primary foreground | #be94dbplum | #be94dbplum |
| Secondary | #120f2eblack | #120f2eblack |
| Secondary foreground | #9a94dbmediumpurple | #9a94dbmediumpurple |
| Muted | #d3d2e5gainsboro | #1c1a2dblack |
| Muted foreground | #3c3b4fdarkslategray | #b2b0c4silver |
| Accent | #2e0f2bblack | #2e0f2bblack |
| Accent foreground | #db94d5plum | #db94d5plum |
| Destructive | #aa3409firebrick | #f24a0dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #210f2eblack | #210f2eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 7.30:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 8.01:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Both in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 311.698);
--foreground: oklch(0.082 0.019 313.619);
--muted: oklch(0.87 0.026 289.668);
--muted-foreground: oklch(0.361 0.035 288.302);
--popover: oklch(0.991 0.003 311.698);
--popover-foreground: oklch(0.082 0.019 313.619);
--card: oklch(0.981 0.006 311.672);
--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.213 0.061 309.049);
--primary-foreground: oklch(0.73 0.11 310.485);
--secondary: oklch(0.194 0.059 283.121);
--secondary-foreground: oklch(0.699 0.104 287.211);
--accent: oklch(0.231 0.066 330.757);
--accent-foreground: oklch(0.758 0.121 329.606);
--destructive: oklch(0.496 0.161 36.991);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.213 0.061 309.049);
--chart-1: oklch(0.213 0.061 309.049);
--chart-2: oklch(0.194 0.059 283.121);
--chart-3: oklch(0.231 0.066 330.757);
--chart-4: oklch(0.217 0.072 282.421);
--chart-5: oklch(0.212 0.065 308.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.012 312.625);
--foreground: oklch(0.982 0.005 311.684);
--muted: oklch(0.23 0.037 286.932);
--muted-foreground: oklch(0.765 0.029 289.515);
--popover: oklch(0.109 0.012 312.625);
--popover-foreground: oklch(0.982 0.005 311.684);
--card: oklch(0.125 0.013 312.625);
--card-foreground: oklch(0.991 0.002 311.705);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.213 0.061 309.049);
--primary-foreground: oklch(0.73 0.11 310.485);
--secondary: oklch(0.194 0.059 283.121);
--secondary-foreground: oklch(0.699 0.104 287.211);
--accent: oklch(0.231 0.066 330.757);
--accent-foreground: oklch(0.758 0.121 329.606);
--destructive: oklch(0.644 0.213 36.489);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.213 0.061 309.049);
--chart-1: oklch(0.213 0.061 309.049);
--chart-2: oklch(0.194 0.059 283.121);
--chart-3: oklch(0.231 0.066 330.757);
--chart-4: oklch(0.217 0.072 282.421);
--chart-5: oklch(0.212 0.065 308.835);
}