Jodhpurs Ermine for shadcn/ui

Jodhpurs Ermine is a shadcn/ui theme built around a light yellow primary color (#ebdbb2) with neutral gray accents (#4f4f4f). The light mode uses a neutral background (#292929). Dark mode keeps the light yellow primary (#ebdbb2) on a neutral background (#292929).

Color palette

TokenLightDark
Background
#292929darkslategray
#292929darkslategray
Foreground
#ebdbb2wheat
#ebdbb2wheat
Card
#242424darkslategray
#242424darkslategray
Card foreground
#f0e4c6bisque
#f0e4c6bisque
Popover
#212121black
#212121black
Popover foreground
#f6eedbantiquewhite
#f6eedbantiquewhite
Primary
#ebdbb2wheat
#ebdbb2wheat
Primary foreground
#554316darkolivegreen
#554316darkolivegreen
Secondary
#53482ddarkolivegreen
#53482ddarkolivegreen
Secondary foreground
#e4decdgainsboro
#e4decdgainsboro
Muted
#392d2ddarkslategray
#392d2ddarkslategray
Muted foreground
#bca9a9darkgray
#bca9a9darkgray
Accent
#4f4f4fdarkslategray
#4f4f4fdarkslategray
Accent foreground
#e8e8e8lavender
#e8e8e8lavender
Destructive
#fd392borangered
#fd392borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#363636darkslategray
#363636darkslategray
Input
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Ring
#ebdbb2wheat
#ebdbb2wheat

Contrast

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

Light mode
Text on background10.63:1AAA
Text on card12.32:1AAA
Primary button6.95:1AA
Secondary button6.70:1AA
Muted text5.91:1AA
Accent6.67:1AA
Destructive3.62:1AA Large
Dark mode
Text on background10.63:1AAA
Text on card12.32:1AAA
Primary button6.95:1AA
Secondary button6.70:1AA
Muted text5.91:1AA
Accent6.67:1AA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.28 0 180);
  --foreground: oklch(0.894 0.057 89.014);
  --muted: oklch(0.31 0.018 18.169);
  --muted-foreground: oklch(0.752 0.021 17.636);
  --popover: oklch(0.248 0 173.29);
  --popover-foreground: oklch(0.95 0.027 88.946);
  --card: oklch(0.259 0 167.471);
  --card-foreground: oklch(0.922 0.042 89);
  --border: oklch(0.331 0 180);
  --input: oklch(0.361 0 180);
  --primary: oklch(0.894 0.057 89.014);
  --primary-foreground: oklch(0.393 0.066 87.044);
  --secondary: oklch(0.405 0.044 88.766);
  --secondary-foreground: oklch(0.9 0.023 88.935);
  --accent: oklch(0.428 0 180);
  --accent-foreground: oklch(0.931 0 180);
  --destructive: oklch(0.649 0.232 29.256);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.057 89.014);
  --chart-1: oklch(0.894 0.057 89.014);
  --chart-2: oklch(0.405 0.044 88.766);
  --chart-3: oklch(0.428 0 180);
  --chart-4: oklch(0.438 0.049 88.746);
  --chart-5: oklch(0.896 0.059 89.012);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.28 0 180);
  --foreground: oklch(0.894 0.057 89.014);
  --muted: oklch(0.31 0.018 18.169);
  --muted-foreground: oklch(0.752 0.021 17.636);
  --popover: oklch(0.248 0 173.29);
  --popover-foreground: oklch(0.95 0.027 88.946);
  --card: oklch(0.259 0 167.471);
  --card-foreground: oklch(0.922 0.042 89);
  --border: oklch(0.331 0 180);
  --input: oklch(0.361 0 180);
  --primary: oklch(0.894 0.057 89.014);
  --primary-foreground: oklch(0.393 0.066 87.044);
  --secondary: oklch(0.405 0.044 88.766);
  --secondary-foreground: oklch(0.9 0.023 88.935);
  --accent: oklch(0.428 0 180);
  --accent-foreground: oklch(0.931 0 180);
  --destructive: oklch(0.649 0.232 29.256);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.057 89.014);
  --chart-1: oklch(0.894 0.057 89.014);
  --chart-2: oklch(0.405 0.044 88.766);
  --chart-3: oklch(0.428 0 180);
  --chart-4: oklch(0.438 0.049 88.746);
  --chart-5: oklch(0.896 0.059 89.012);
}