Divide is a shadcn/ui theme built around a muted red primary color (#6e4e53) with neutral gray accents (#d7d6d6). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted red primary (#6e4e53) on a red-tinted background (#0b0506).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0b0506black |
| Foreground | #0d0304black | #f9f6f6whitesmoke |
| Card | #fcf8f9snow | #0b0506black |
| Card foreground | #0d0304black | #f9f6f6whitesmoke |
| Popover | #fcf8f9snow | #0b0506black |
| Popover foreground | #0d0304black | #f9f6f6whitesmoke |
| Primary | #6e4e53dimgray | #6e4e53dimgray |
| Primary foreground | #f9f6f6whitesmoke | #f9f6f6whitesmoke |
| Secondary | #d7d6d6lightgrey | #3a2c2edarkslategray |
| Secondary foreground | #3e3d3ddarkslategray | #d3c5c7lightgrey |
| Muted | #e7dfe0gainsboro | #201819black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #d7d6d6lightgrey | #3a2c2edarkslategray |
| Accent foreground | #3e3d3ddarkslategray | #d3c5c7lightgrey |
| Destructive | #cd4e04chocolate | #fb7c32coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e4e53dimgray | #6e4e53dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 4.48:1 | AA Large |
| Text on background | 18.85:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 8.00:1 | AAA |
Paste this into your globals.css to use Divide in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 6.697);
--foreground: oklch(0.117 0.026 7.878);
--muted: oklch(0.911 0.008 6.818);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.982 0.004 6.697);
--popover-foreground: oklch(0.117 0.026 7.878);
--card: oklch(0.982 0.004 6.697);
--card-foreground: oklch(0.117 0.026 7.878);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.461 0.044 8.972);
--primary-foreground: oklch(0.975 0.003 6.668);
--secondary: oklch(0.876 0.001 6.621);
--secondary-foreground: oklch(0.36 0.002 6.715);
--accent: oklch(0.876 0.001 6.621);
--accent-foreground: oklch(0.36 0.002 6.715);
--destructive: oklch(0.587 0.175 42.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.461 0.044 8.972);
--chart-1: oklch(0.461 0.044 8.972);
--chart-2: oklch(0.876 0.001 6.621);
--chart-3: oklch(0.876 0.001 6.621);
--chart-4: oklch(0.9 0.001 6.616);
--chart-5: oklch(0.458 0.052 9.442);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 7.106);
--foreground: oklch(0.975 0.004 6.698);
--muted: oklch(0.22 0.012 7.932);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.124 0.014 7.106);
--popover-foreground: oklch(0.975 0.004 6.698);
--card: oklch(0.124 0.014 7.106);
--card-foreground: oklch(0.975 0.004 6.698);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.461 0.044 8.972);
--primary-foreground: oklch(0.975 0.003 6.668);
--secondary: oklch(0.31 0.021 8.314);
--secondary-foreground: oklch(0.835 0.016 7.084);
--accent: oklch(0.31 0.021 8.314);
--accent-foreground: oklch(0.835 0.016 7.084);
--destructive: oklch(0.722 0.176 46.92);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.461 0.044 8.972);
--chart-1: oklch(0.461 0.044 8.972);
--chart-2: oklch(0.31 0.021 8.314);
--chart-3: oklch(0.31 0.021 8.314);
--chart-4: oklch(0.338 0.024 8.368);
--chart-5: oklch(0.458 0.052 9.442);
}