Separate for shadcn/ui

Separate is a shadcn/ui theme built around a neutral gray primary color (#bdb7bd) with neutral gray accents (#b8bdb7). The light mode uses a neutral background (#fefbfe). Dark mode keeps the neutral gray primary (#bdb7bd) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#0d020dblack
#fcf8fcsnow
Card
#fcf7fcsnow
#080208black
Card foreground
#080209black
#fdfcfdwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#0d020dblack
#fcf8fcsnow
Primary
#bdb7bdsilver
#bdb7bdsilver
Primary foreground
#222022black
#222022black
Secondary
#b8bdb7silver
#b8bdb7silver
Secondary foreground
#202220black
#202220black
Muted
#deeddegainsboro
#122112black
Muted foreground
#3b4a3bdarkslategray
#b6c4b5silver
Accent
#b8bdb7silver
#b8bdb7silver
Accent foreground
#202220black
#202220black
Destructive
#8f2504saddlebrown
#f74008orangered
Destructive foreground
#fdd5c9bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdb7bdsilver
#bdb7bdsilver

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.46:1AAA
Primary button8.24:1AAA
Secondary button8.37:1AAA
Muted text7.76:1AAA
Accent8.37:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.74:1AAA
Text on card20.05:1AAA
Primary button8.24:1AAA
Secondary button8.37:1AAA
Muted text9.21:1AAA
Accent8.37:1AAA
Destructive3.68:1AA Large

CSS variables

Paste this into your globals.css to use Separate in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 324.645);
  --foreground: oklch(0.122 0.036 326.522);
  --muted: oklch(0.931 0.026 144.439);
  --muted-foreground: oklch(0.39 0.03 144.104);
  --popover: oklch(0.991 0.004 324.645);
  --popover-foreground: oklch(0.122 0.036 326.522);
  --card: oklch(0.983 0.008 324.671);
  --card-foreground: oklch(0.106 0.031 326.628);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.787 0.01 324.697);
  --primary-foreground: oklch(0.247 0.006 324.778);
  --secondary: oklch(0.792 0.01 144.54);
  --secondary-foreground: oklch(0.25 0.006 144.458);
  --accent: oklch(0.792 0.01 144.54);
  --accent-foreground: oklch(0.25 0.006 144.458);
  --destructive: oklch(0.433 0.147 35.288);
  --destructive-foreground: oklch(0.904 0.049 37.595);
  --ring: oklch(0.787 0.01 324.697);
  --chart-1: oklch(0.787 0.01 324.697);
  --chart-2: oklch(0.792 0.01 144.54);
  --chart-3: oklch(0.792 0.01 144.54);
  --chart-4: oklch(0.816 0.009 144.551);
  --chart-5: oklch(0.785 0.017 324.755);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.019 326.218);
  --foreground: oklch(0.983 0.006 324.656);
  --muted: oklch(0.23 0.035 143.566);
  --muted-foreground: oklch(0.805 0.025 144.413);
  --popover: oklch(0.086 0.019 326.218);
  --popover-foreground: oklch(0.983 0.006 324.656);
  --card: oklch(0.108 0.025 326.218);
  --card-foreground: oklch(0.992 0.003 324.637);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.787 0.01 324.697);
  --primary-foreground: oklch(0.247 0.006 324.778);
  --secondary: oklch(0.792 0.01 144.54);
  --secondary-foreground: oklch(0.25 0.006 144.458);
  --accent: oklch(0.792 0.01 144.54);
  --accent-foreground: oklch(0.25 0.006 144.458);
  --destructive: oklch(0.643 0.226 34.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.01 324.697);
  --chart-1: oklch(0.787 0.01 324.697);
  --chart-2: oklch(0.792 0.01 144.54);
  --chart-3: oklch(0.792 0.01 144.54);
  --chart-4: oklch(0.816 0.009 144.551);
  --chart-5: oklch(0.785 0.017 324.755);
}