Court for shadcn/ui

Court is a shadcn/ui theme built around a light blue primary color (#a6bde8) with neutral gray accents (#d1d3d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#a6bde8) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#050a15black
#f6f7f9whitesmoke
Card
#ffffffwhite
#030407black
Card foreground
#050a15black
#f6f7f9whitesmoke
Popover
#ffffffwhite
#030407black
Popover foreground
#050a15black
#f6f7f9whitesmoke
Primary
#a6bde8lightsteelblue
#a6bde8lightsteelblue
Primary foreground
#132649midnightblue
#132649midnightblue
Secondary
#d1d3d6lightgrey
#151619black
Secondary foreground
#383a3edarkslategray
#aaaeb6darkgray
Muted
#e7e9eelavender
#111318black
Muted foreground
#4e5665dimgray
#9aa2b1darkgray
Accent
#d1d3d6lightgrey
#151619black
Accent foreground
#383a3edarkslategray
#aaaeb6darkgray
Destructive
#d92a02orangered
#fd4117orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a6bde8lightsteelblue
#a6bde8lightsteelblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button7.89:1AAA
Secondary button7.60:1AAA
Muted text6.10:1AA
Accent7.60:1AAA
Destructive4.90:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button7.89:1AAA
Secondary button8.11:1AAA
Muted text7.22:1AAA
Accent8.11:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.025 258.874);
  --muted: oklch(0.935 0.007 263.04);
  --muted-foreground: oklch(0.451 0.027 262.844);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.025 258.874);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.025 258.874);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.796 0.066 262.71);
  --primary-foreground: oklch(0.273 0.07 261.612);
  --secondary: oklch(0.866 0.004 263.045);
  --secondary-foreground: oklch(0.347 0.007 263.006);
  --accent: oklch(0.866 0.004 263.045);
  --accent-foreground: oklch(0.347 0.007 263.006);
  --destructive: oklch(0.572 0.213 32.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.796 0.066 262.71);
  --chart-1: oklch(0.796 0.066 262.71);
  --chart-2: oklch(0.866 0.004 263.045);
  --chart-3: oklch(0.866 0.004 263.045);
  --chart-4: oklch(0.89 0.003 263.047);
  --chart-5: oklch(0.794 0.07 262.683);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.01 257.413);
  --foreground: oklch(0.975 0.003 263.048);
  --muted: oklch(0.188 0.011 262.86);
  --muted-foreground: oklch(0.711 0.024 262.962);
  --popover: oklch(0.11 0.01 257.413);
  --popover-foreground: oklch(0.975 0.003 263.048);
  --card: oklch(0.11 0.01 257.413);
  --card-foreground: oklch(0.975 0.003 263.048);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.796 0.066 262.71);
  --primary-foreground: oklch(0.273 0.07 261.612);
  --secondary: oklch(0.202 0.005 262.99);
  --secondary-foreground: oklch(0.75 0.013 263.017);
  --accent: oklch(0.202 0.005 262.99);
  --accent-foreground: oklch(0.75 0.013 263.017);
  --destructive: oklch(0.653 0.229 33.269);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.796 0.066 262.71);
  --chart-1: oklch(0.796 0.066 262.71);
  --chart-2: oklch(0.202 0.005 262.99);
  --chart-3: oklch(0.202 0.005 262.99);
  --chart-4: oklch(0.234 0.007 262.981);
  --chart-5: oklch(0.794 0.07 262.683);
}