Separate is a shadcn/ui theme built around a deep green primary color (#1a2c0c) with deep pink accents (#2c0c1a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1a2c0c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f7f8f7whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #fafaf9snow |
| Primary | #1a2c0cblack | #1a2c0cblack |
| Primary foreground | #7bcb3ayellowgreen | #7bcb3ayellowgreen |
| Secondary | #0c1a2cblack | #0c1a2cblack |
| Secondary foreground | #8ab1e0skyblue | #8ab1e0skyblue |
| Muted | #dfe5eclavender | #131920black |
| Muted foreground | #3e4246darkslategray | #b9bcc1silver |
| Accent | #2c0c1ablack | #2c0c1ablack |
| Accent foreground | #e08ab1palevioletred | #e08ab1palevioletred |
| Destructive | #5e0f08maroon | #ef5243tomato |
| Destructive foreground | #f7a8a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a2c0cblack | #1a2c0cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 9.29:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 3.53: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 0 0);
--muted: oklch(0.919 0.012 253.304);
--muted-foreground: oklch(0.377 0.009 253.369);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--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.27 0.059 133.225);
--primary-foreground: oklch(0.761 0.192 134.145);
--secondary: oklch(0.217 0.041 254.349);
--secondary-foreground: oklch(0.749 0.08 253.787);
--accent: oklch(0.214 0.057 354.984);
--accent-foreground: oklch(0.734 0.114 351.786);
--destructive: oklch(0.315 0.112 29.89);
--destructive-foreground: oklch(0.807 0.094 25.099);
--ring: oklch(0.27 0.059 133.225);
--chart-1: oklch(0.27 0.059 133.225);
--chart-2: oklch(0.217 0.041 254.349);
--chart-3: oklch(0.214 0.057 354.984);
--chart-4: oklch(0.248 0.05 254.489);
--chart-5: oklch(0.272 0.061 133.38);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.002 130.461);
--muted: oklch(0.21 0.017 253.66);
--muted-foreground: oklch(0.795 0.007 253.281);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 130.453);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 130.453);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.27 0.059 133.225);
--primary-foreground: oklch(0.761 0.192 134.145);
--secondary: oklch(0.217 0.041 254.349);
--secondary-foreground: oklch(0.749 0.08 253.787);
--accent: oklch(0.214 0.057 354.984);
--accent-foreground: oklch(0.734 0.114 351.786);
--destructive: oklch(0.65 0.195 28.76);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.27 0.059 133.225);
--chart-1: oklch(0.27 0.059 133.225);
--chart-2: oklch(0.217 0.041 254.349);
--chart-3: oklch(0.214 0.057 354.984);
--chart-4: oklch(0.248 0.05 254.489);
--chart-5: oklch(0.272 0.061 133.38);
}