Separate for shadcn/ui

Separate is a shadcn/ui theme built around a yellow primary color (#cfb981) with green accents (#becf81). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#cfb981) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#171103black
#fbfaf9snow
Card
#ffffffwhite
#040301black
Card foreground
#171103black
#fbfaf9snow
Popover
#ffffffwhite
#040301black
Popover foreground
#171103black
#fbfaf9snow
Primary
#cfb981tan
#cfb981tan
Primary foreground
#161208black
#161208black
Secondary
#cf9281rosybrown
#cf9281rosybrown
Secondary foreground
#160b08black
#160b08black
Muted
#e8dcd9gainsboro
#261a17black
Muted foreground
#575352dimgray
#ada9a8darkgray
Accent
#becf81darkkhaki
#becf81darkkhaki
Accent foreground
#131608black
#131608black
Destructive
#710805maroon
#f51b14red
Destructive foreground
#fcaeaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cfb981tan
#cfb981tan

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button9.72:1AAA
Secondary button7.46:1AAA
Muted text5.67:1AA
Accent10.88:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button9.72:1AAA
Secondary button7.46:1AAA
Muted text7.23:1AAA
Accent10.88:1AAA
Destructive4.14: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.181 0.031 90.634);
  --muted: oklch(0.903 0.013 35.969);
  --muted-foreground: oklch(0.445 0.005 35.974);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.181 0.031 90.634);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.181 0.031 90.634);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.792 0.077 88.879);
  --primary-foreground: oklch(0.185 0.02 88.949);
  --secondary: oklch(0.716 0.079 36.085);
  --secondary-foreground: oklch(0.166 0.02 36.532);
  --accent: oklch(0.825 0.103 118.693);
  --accent-foreground: oklch(0.193 0.026 118.848);
  --destructive: oklch(0.349 0.136 29.233);
  --destructive-foreground: oklch(0.825 0.091 21.417);
  --ring: oklch(0.792 0.077 88.879);
  --chart-1: oklch(0.792 0.077 88.879);
  --chart-2: oklch(0.716 0.079 36.085);
  --chart-3: oklch(0.825 0.103 118.693);
  --chart-4: oklch(0.741 0.071 36.039);
  --chart-5: oklch(0.796 0.082 88.832);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 93.874);
  --foreground: oklch(0.986 0.001 88.8);
  --muted: oklch(0.233 0.019 36.005);
  --muted-foreground: oklch(0.739 0.005 35.99);
  --popover: oklch(0.099 0.011 93.874);
  --popover-foreground: oklch(0.986 0.001 88.8);
  --card: oklch(0.099 0.011 93.874);
  --card-foreground: oklch(0.986 0.001 88.8);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.792 0.077 88.879);
  --primary-foreground: oklch(0.185 0.02 88.949);
  --secondary: oklch(0.716 0.079 36.085);
  --secondary-foreground: oklch(0.166 0.02 36.532);
  --accent: oklch(0.825 0.103 118.693);
  --accent-foreground: oklch(0.193 0.026 118.848);
  --destructive: oklch(0.617 0.243 29.109);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.792 0.077 88.879);
  --chart-1: oklch(0.792 0.077 88.879);
  --chart-2: oklch(0.716 0.079 36.085);
  --chart-3: oklch(0.825 0.103 118.693);
  --chart-4: oklch(0.741 0.071 36.039);
  --chart-5: oklch(0.796 0.082 88.832);
}