Separate is a shadcn/ui theme built around a near-white primary color (#ededed) with near-white accents (#ece9e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ededed) on a red-tinted background (#0e0707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0707black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #110808black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0707black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #edededwhitesmoke | #edededwhitesmoke |
| Primary foreground | #545454dimgray | #545454dimgray |
| Secondary | #ece9e9linen | #2e2929darkslategray |
| Secondary foreground | #574c4cdarkslategray | #c8c1c1silver |
| Muted | #f2eeeewhitesmoke | #110d0dblack |
| Muted foreground | #605252dimgray | #ad9f9fdarkgray |
| Accent | #ece9e9linen | #2e2929darkslategray |
| Accent foreground | #574c4cdarkslategray | #c8c1c1silver |
| Destructive | #b42104firebrick | #f52d05orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edededwhitesmoke | #edededwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.84:1 | AA |
| Muted text | 6.43:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Separate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.015 20.998);
--muted: oklch(0.951 0.004 17.232);
--muted-foreground: oklch(0.453 0.019 17.874);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.015 20.998);
--card: oklch(0.992 0 161.565);
--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.947 0 180);
--primary-foreground: oklch(0.446 0 180);
--secondary: oklch(0.937 0.003 17.212);
--secondary-foreground: oklch(0.428 0.015 17.768);
--accent: oklch(0.937 0.003 17.212);
--accent-foreground: oklch(0.428 0.015 17.768);
--destructive: oklch(0.498 0.185 32.209);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.947 0 180);
--chart-1: oklch(0.947 0 180);
--chart-2: oklch(0.937 0.003 17.212);
--chart-3: oklch(0.937 0.003 17.212);
--chart-4: oklch(0.961 0.002 17.191);
--chart-5: oklch(0.946 0.001 17.178);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.014 19.072);
--foreground: oklch(0.992 0.001 17.179);
--muted: oklch(0.166 0.007 17.859);
--muted-foreground: oklch(0.714 0.017 17.552);
--popover: oklch(0.137 0.014 19.072);
--popover-foreground: oklch(0.992 0.001 17.179);
--card: oklch(0.149 0.017 19.244);
--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.947 0 180);
--primary-foreground: oklch(0.446 0 180);
--secondary: oklch(0.286 0.008 17.611);
--secondary-foreground: oklch(0.816 0.008 17.318);
--accent: oklch(0.286 0.008 17.611);
--accent-foreground: oklch(0.816 0.008 17.318);
--destructive: oklch(0.625 0.235 31.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.947 0 180);
--chart-1: oklch(0.947 0 180);
--chart-2: oklch(0.286 0.008 17.611);
--chart-3: oklch(0.286 0.008 17.611);
--chart-4: oklch(0.315 0.009 17.63);
--chart-5: oklch(0.946 0.001 17.178);
}