Separate for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button6.47:1AA
Secondary button6.84:1AA
Muted text6.43:1AA
Accent6.84:1AA
Destructive6.64:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.74:1AAA
Primary button6.47:1AA
Secondary button8.11:1AAA
Muted text7.55:1AAA
Accent8.11:1AAA
Destructive3.99:1AA Large

CSS variables

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);
}