Divide is a shadcn/ui theme built around a vivid deep purple primary color (#65065a) with vivid deep cyan accents (#065a65). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the vivid deep purple primary (#65065a) on a purple-tinted background (#0c040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fcsnow | #0c040bblack |
| Foreground | #080208black | #fdfbfdsnow |
| Card | #fcf7fcsnow | #0c040bblack |
| Card foreground | #080208black | #fdfbfdsnow |
| Popover | #fcf7fcsnow | #0c040bblack |
| Popover foreground | #080208black | #fdfbfdsnow |
| Primary | #65065apurple | #65065apurple |
| Primary foreground | #f9a4efplum | #f9a4efplum |
| Secondary | #5a6506darkolivegreen | #5a6506darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ecece9linen | #151613black |
| Muted foreground | #585a49darkolivegreen | #b4b6a5darkgray |
| Accent | #065a65teal | #065a65teal |
| Accent foreground | #a4eff9paleturquoise | #a4eff9paleturquoise |
| Destructive | #ca5212chocolate | #d85813chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #65065apurple | #65065apurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.39:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 4.44:1 | AA Large |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.39:1 | AA |
| Muted text | 8.81:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Divide in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 329.228);
--foreground: oklch(0.107 0.028 330.515);
--muted: oklch(0.942 0.003 111.845);
--muted-foreground: oklch(0.46 0.026 112.815);
--popover: oklch(0.982 0.008 329.228);
--popover-foreground: oklch(0.107 0.028 330.515);
--card: oklch(0.982 0.008 329.228);
--card-foreground: oklch(0.107 0.028 330.515);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.15 334.192);
--primary-foreground: oklch(0.826 0.138 330.939);
--secondary: oklch(0.48 0.108 117.04);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.428 0.072 209.559);
--accent-foreground: oklch(0.907 0.075 206.331);
--destructive: oklch(0.588 0.167 43.005);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.15 334.192);
--chart-1: oklch(0.351 0.15 334.192);
--chart-2: oklch(0.48 0.108 117.04);
--chart-3: oklch(0.428 0.072 209.559);
--chart-4: oklch(0.527 0.119 117.133);
--chart-5: oklch(0.354 0.153 334.3);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.025 330.422);
--foreground: oklch(0.991 0.003 329.169);
--muted: oklch(0.197 0.005 112.235);
--muted-foreground: oklch(0.769 0.023 112.333);
--popover: oklch(0.125 0.025 330.422);
--popover-foreground: oklch(0.991 0.003 329.169);
--card: oklch(0.125 0.025 330.422);
--card-foreground: oklch(0.991 0.003 329.169);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.15 334.192);
--primary-foreground: oklch(0.826 0.138 330.939);
--secondary: oklch(0.48 0.108 117.04);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.428 0.072 209.559);
--accent-foreground: oklch(0.907 0.075 206.331);
--destructive: oklch(0.618 0.176 42.893);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.15 334.192);
--chart-1: oklch(0.351 0.15 334.192);
--chart-2: oklch(0.48 0.108 117.04);
--chart-3: oklch(0.428 0.072 209.559);
--chart-4: oklch(0.527 0.119 117.133);
--chart-5: oklch(0.354 0.153 334.3);
}