Separate for shadcn/ui

Separate is a shadcn/ui theme built around a violet primary color (#9781ca) with purple accents (#bc81ca). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#9781ca) on a violet-tinted background (#08060e).

Color palette

TokenLightDark
Background
#fcfbfewhite
#08060eblack
Foreground
#090415black
#f9f9fbghostwhite
Card
#fcfbfewhite
#08060eblack
Card foreground
#090415black
#f9f9fbghostwhite
Popover
#fcfbfewhite
#08060eblack
Popover foreground
#090415black
#f9f9fbghostwhite
Primary
#9781camediumpurple
#9781camediumpurple
Primary foreground
#000000black
#000000black
Secondary
#8190camediumpurple
#8190camediumpurple
Secondary foreground
#080a12black
#080a12black
Muted
#e1e3eagainsboro
#15171eblack
Muted foreground
#48494bdarkslategray
#b4b4b7silver
Accent
#bc81caorchid
#bc81caorchid
Accent foreground
#100812black
#100812black
Destructive
#d05416chocolate
#eb7a42coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9781camediumpurple
#9781camediumpurple

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button6.32:1AA
Secondary button6.37:1AA
Muted text7.03:1AAA
Accent6.69:1AA
Destructive4.24:1AA Large
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button6.32:1AA
Secondary button6.37:1AA
Muted text8.64:1AAA
Accent6.69:1AA
Destructive7.40:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 299.988);
  --foreground: oklch(0.131 0.04 296.956);
  --muted: oklch(0.917 0.009 274.913);
  --muted-foreground: oklch(0.406 0.004 274.913);
  --popover: oklch(0.99 0.003 299.988);
  --popover-foreground: oklch(0.131 0.04 296.956);
  --card: oklch(0.99 0.003 299.988);
  --card-foreground: oklch(0.131 0.04 296.956);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.653 0.109 297.082);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.664 0.089 272.993);
  --secondary-foreground: oklch(0.145 0.019 272.104);
  --accent: oklch(0.688 0.122 319.442);
  --accent-foreground: oklch(0.15 0.026 319.598);
  --destructive: oklch(0.6 0.171 42.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.109 297.082);
  --chart-1: oklch(0.653 0.109 297.082);
  --chart-2: oklch(0.664 0.089 272.993);
  --chart-3: oklch(0.688 0.122 319.442);
  --chart-4: oklch(0.694 0.08 273.309);
  --chart-5: oklch(0.648 0.117 296.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.021 299.196);
  --foreground: oklch(0.982 0.003 299.981);
  --muted: oklch(0.206 0.013 274.153);
  --muted-foreground: oklch(0.771 0.003 274.98);
  --popover: oklch(0.131 0.021 299.196);
  --popover-foreground: oklch(0.982 0.003 299.981);
  --card: oklch(0.131 0.021 299.196);
  --card-foreground: oklch(0.982 0.003 299.981);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.653 0.109 297.082);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.664 0.089 272.993);
  --secondary-foreground: oklch(0.145 0.019 272.104);
  --accent: oklch(0.688 0.122 319.442);
  --accent-foreground: oklch(0.15 0.026 319.598);
  --destructive: oklch(0.699 0.156 45.388);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.653 0.109 297.082);
  --chart-1: oklch(0.653 0.109 297.082);
  --chart-2: oklch(0.664 0.089 272.993);
  --chart-3: oklch(0.688 0.122 319.442);
  --chart-4: oklch(0.694 0.08 273.309);
  --chart-5: oklch(0.648 0.117 296.82);
}