Courthouse for shadcn/ui

Courthouse is a shadcn/ui theme built around a teal primary color (#86c1c0) with yellow accents (#c1c086). The light mode uses a neutral background (#fbfefe). Dark mode keeps the teal primary (#86c1c0) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fbfefewhite
#030707black
Foreground
#020808black
#ffffffwhite
Card
#fbfefewhite
#030707black
Card foreground
#020808black
#ffffffwhite
Popover
#fbfefewhite
#030707black
Popover foreground
#020808black
#ffffffwhite
Primary
#86c1c0mediumaquamarine
#86c1c0mediumaquamarine
Primary foreground
#070d0dblack
#070d0dblack
Secondary
#c086c1orchid
#c086c1orchid
Secondary foreground
#0d070dblack
#0d070dblack
Muted
#e7dfe7gainsboro
#201820black
Muted foreground
#574658darkslategray
#b8a7b9darkgray
Accent
#c1c086tan
#c1c086tan
Accent foreground
#0d0d07black
#0d0d07black
Destructive
#ab3607firebrick
#eb4a0aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#86c1c0mediumaquamarine
#86c1c0mediumaquamarine

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button9.65:1AAA
Secondary button7.02:1AAA
Muted text6.63:1AA
Accent10.30:1AAA
Destructive6.43:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button9.65:1AAA
Secondary button7.02:1AAA
Muted text7.64:1AAA
Accent10.30:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 195.921);
  --foreground: oklch(0.126 0.015 194.391);
  --muted: oklch(0.912 0.014 325.209);
  --muted-foreground: oklch(0.42 0.036 325.673);
  --popover: oklch(0.994 0.003 195.921);
  --popover-foreground: oklch(0.126 0.015 194.391);
  --card: oklch(0.994 0.003 195.921);
  --card-foreground: oklch(0.126 0.015 194.391);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.061 194.65);
  --primary-foreground: oklch(0.154 0.011 194.862);
  --secondary: oklch(0.697 0.106 326.082);
  --secondary-foreground: oklch(0.141 0.018 325.982);
  --accent: oklch(0.793 0.077 107.203);
  --accent-foreground: oklch(0.158 0.014 107.072);
  --destructive: oklch(0.501 0.161 37.683);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.061 194.65);
  --chart-1: oklch(0.769 0.061 194.65);
  --chart-2: oklch(0.697 0.106 326.082);
  --chart-3: oklch(0.793 0.077 107.203);
  --chart-4: oklch(0.722 0.097 325.972);
  --chart-5: oklch(0.775 0.065 194.555);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 194.833);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.02 325.711);
  --muted-foreground: oklch(0.749 0.031 325.385);
  --popover: oklch(0.123 0.01 194.833);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.01 194.833);
  --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.769 0.061 194.65);
  --primary-foreground: oklch(0.154 0.011 194.862);
  --secondary: oklch(0.697 0.106 326.082);
  --secondary-foreground: oklch(0.141 0.018 325.982);
  --accent: oklch(0.793 0.077 107.203);
  --accent-foreground: oklch(0.158 0.014 107.072);
  --destructive: oklch(0.631 0.207 37.151);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.061 194.65);
  --chart-1: oklch(0.769 0.061 194.65);
  --chart-2: oklch(0.697 0.106 326.082);
  --chart-3: oklch(0.793 0.077 107.203);
  --chart-4: oklch(0.722 0.097 325.972);
  --chart-5: oklch(0.775 0.065 194.555);
}