Coordination for shadcn/ui

Coordination is a shadcn/ui theme built around a light indigo primary color (#c9c8f4) with light green accents (#c8f4c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#c9c8f4) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#020204black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#020204black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#c9c8f4thistle
#c9c8f4thistle
Primary foreground
#1a1773midnightblue
#1a1773midnightblue
Secondary
#f4c9c8pink
#f4c9c8pink
Secondary foreground
#731a17maroon
#731a17maroon
Muted
#e7d5d4gainsboro
#2b1818black
Muted foreground
#554a4adarkslategray
#b5abaadarkgray
Accent
#c8f4c9lightgrey
#c8f4c9lightgrey
Accent foreground
#061e07black
#061e07black
Destructive
#722804saddlebrown
#f9722ftomato
Destructive foreground
#fcc6abnavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9c8f4thistle
#c9c8f4thistle

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.20:1AAA
Secondary button7.43:1AAA
Muted text6.03:1AA
Accent14.40:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button9.20:1AAA
Secondary button7.43:1AAA
Muted text7.51:1AAA
Accent14.40:1AAA
Destructive7.47:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.888 0.021 19.94);
  --muted-foreground: oklch(0.419 0.014 20.11);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.847 0.062 286.534);
  --primary-foreground: oklch(0.289 0.15 273.221);
  --secondary: oklch(0.873 0.049 20.454);
  --secondary-foreground: oklch(0.369 0.124 27.237);
  --accent: oklch(0.925 0.074 145.817);
  --accent-foreground: oklch(0.208 0.053 144.061);
  --destructive: oklch(0.383 0.113 41.871);
  --destructive-foreground: oklch(0.868 0.072 47.868);
  --ring: oklch(0.847 0.062 286.534);
  --chart-1: oklch(0.847 0.062 286.534);
  --chart-2: oklch(0.873 0.049 20.454);
  --chart-3: oklch(0.925 0.074 145.817);
  --chart-4: oklch(0.902 0.037 20.212);
  --chart-5: oklch(0.845 0.064 286.462);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.08 0.012 285.381);
  --foreground: oklch(0.991 0.002 287.901);
  --muted: oklch(0.235 0.03 21.775);
  --muted-foreground: oklch(0.749 0.012 19.84);
  --popover: oklch(0.08 0.012 285.381);
  --popover-foreground: oklch(0.991 0.002 287.901);
  --card: oklch(0.08 0.012 285.381);
  --card-foreground: oklch(0.991 0.002 287.901);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.847 0.062 286.534);
  --primary-foreground: oklch(0.289 0.15 273.221);
  --secondary: oklch(0.873 0.049 20.454);
  --secondary-foreground: oklch(0.369 0.124 27.237);
  --accent: oklch(0.925 0.074 145.817);
  --accent-foreground: oklch(0.208 0.053 144.061);
  --destructive: oklch(0.705 0.182 43.913);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.847 0.062 286.534);
  --chart-1: oklch(0.847 0.062 286.534);
  --chart-2: oklch(0.873 0.049 20.454);
  --chart-3: oklch(0.925 0.074 145.817);
  --chart-4: oklch(0.902 0.037 20.212);
  --chart-5: oklch(0.845 0.064 286.462);
}