Separate for shadcn/ui

Separate is a shadcn/ui theme built around a teal primary color (#7bc1a3) with teal accents (#7bbcc1). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the teal primary (#7bc1a3) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f6fdfamintcream
#020303black
Foreground
#03170eblack
#fbfdfdwhite
Card
#f2fdf8mintcream
#030705black
Card foreground
#02120bblack
#ffffffwhite
Popover
#f2fdf8mintcream
#030705black
Popover foreground
#02120bblack
#ffffffwhite
Primary
#7bc1a3mediumaquamarine
#7bc1a3mediumaquamarine
Primary foreground
#030705black
#030705black
Secondary
#7bc180darkseagreen
#7bc180darkseagreen
Secondary foreground
#030704black
#030704black
Muted
#d5ddd5gainsboro
#222a23darkslategray
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#7bbcc1mediumaquamarine
#7bbcc1mediumaquamarine
Accent foreground
#030707black
#030707black
Destructive
#df2e07orangered
#f84820orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7bc1a3mediumaquamarine
#7bc1a3mediumaquamarine

Contrast

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

Light mode
Text on background18.02:1AAA
Text on card18.40:1AAA
Primary button9.64:1AAA
Secondary button9.44:1AAA
Muted text6.36:1AA
Accent9.48:1AAA
Destructive4.63:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.26:1AAA
Primary button9.64:1AAA
Secondary button9.44:1AAA
Muted text7.18:1AAA
Accent9.48:1AAA
Destructive3.53: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.989 0.008 168.498);
  --foreground: oklch(0.183 0.034 163.782);
  --muted: oklch(0.888 0.013 147.404);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.984 0.012 168.376);
  --popover-foreground: oklch(0.165 0.03 165.574);
  --card: oklch(0.984 0.012 168.376);
  --card-foreground: oklch(0.165 0.03 165.574);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.756 0.083 165.107);
  --primary-foreground: oklch(0.121 0.01 168.898);
  --secondary: oklch(0.748 0.116 145.84);
  --secondary-foreground: oklch(0.12 0.015 146.658);
  --accent: oklch(0.754 0.067 201.57);
  --accent-foreground: oklch(0.121 0.009 200.61);
  --destructive: oklch(0.586 0.215 32.596);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.756 0.083 165.107);
  --chart-1: oklch(0.756 0.083 165.107);
  --chart-2: oklch(0.748 0.116 145.84);
  --chart-3: oklch(0.754 0.067 201.57);
  --chart-4: oklch(0.767 0.107 146.033);
  --chart-5: oklch(0.761 0.09 164.807);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 168.894);
  --foreground: oklch(0.994 0.002 168.665);
  --muted: oklch(0.275 0.017 146.918);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.121 0.01 168.894);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.01 168.894);
  --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.756 0.083 165.107);
  --primary-foreground: oklch(0.121 0.01 168.898);
  --secondary: oklch(0.748 0.116 145.84);
  --secondary-foreground: oklch(0.12 0.015 146.658);
  --accent: oklch(0.754 0.067 201.57);
  --accent-foreground: oklch(0.121 0.009 200.61);
  --destructive: oklch(0.652 0.218 33.669);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.756 0.083 165.107);
  --chart-1: oklch(0.756 0.083 165.107);
  --chart-2: oklch(0.748 0.116 145.84);
  --chart-3: oklch(0.754 0.067 201.57);
  --chart-4: oklch(0.767 0.107 146.033);
  --chart-5: oklch(0.761 0.09 164.807);
}