Horla for shadcn/ui

Horla is a shadcn/ui theme built around a vivid blue primary color (#007acc) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#f0f0f0). Dark mode keeps the vivid blue primary (#007acc) on a neutral background (#f0f0f0).

Color palette

TokenLightDark
Background
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Foreground
#333333darkslategray
#333333darkslategray
Card
#ebebeblinen
#ebebeblinen
Card foreground
#262626darkslategray
#262626darkslategray
Popover
#e8e8e8lavender
#e8e8e8lavender
Popover foreground
#1a1a1ablack
#1a1a1ablack
Primary
#007accdodgerblue
#007accdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acc3d2lightsteelblue
#acc3d2lightsteelblue
Secondary foreground
#1b2932darkslategray
#1b2932darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#c9c9c9silver
#c9c9c9silver
Accent foreground
#303030darkslategray
#303030darkslategray
Destructive
#7a1306maroon
#7a1306maroon
Destructive foreground
#fcbeb6lightpink
#fcbeb6lightpink
Border
#e3e3e3gainsboro
#e3e3e3gainsboro
Input
#dbdbdbgainsboro
#dbdbdbgainsboro
Ring
#007accdodgerblue
#007accdodgerblue

Contrast

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

Light mode
Text on background11.05:1AAA
Text on card12.64:1AAA
Primary button4.49:1AA Large
Secondary button8.15:1AAA
Muted text7.22:1AAA
Accent8.00:1AAA
Destructive6.85:1AA
Dark mode
Text on background11.05:1AAA
Text on card12.64:1AAA
Primary button4.49:1AA Large
Secondary button8.15:1AAA
Muted text7.22:1AAA
Accent8.00:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.954 0 180);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.931 0 180);
  --popover-foreground: oklch(0.216 0 180);
  --card: oklch(0.939 0 180);
  --card-foreground: oklch(0.27 0 180);
  --border: oklch(0.916 0 180);
  --input: oklch(0.892 0 180);
  --primary: oklch(0.568 0.154 248.339);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0.033 237.063);
  --secondary-foreground: oklch(0.271 0.025 238.108);
  --accent: oklch(0.837 0 171.254);
  --accent-foreground: oklch(0.311 0 180);
  --destructive: oklch(0.375 0.138 31.138);
  --destructive-foreground: oklch(0.855 0.072 27.233);
  --ring: oklch(0.568 0.154 248.339);
  --chart-1: oklch(0.568 0.154 248.339);
  --chart-2: oklch(0.805 0.033 237.063);
  --chart-3: oklch(0.837 0 171.254);
  --chart-4: oklch(0.829 0.029 236.962);
  --chart-5: oklch(0.571 0.158 248.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.954 0 180);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.931 0 180);
  --popover-foreground: oklch(0.216 0 180);
  --card: oklch(0.939 0 180);
  --card-foreground: oklch(0.27 0 180);
  --border: oklch(0.916 0 180);
  --input: oklch(0.892 0 180);
  --primary: oklch(0.568 0.154 248.339);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0.033 237.063);
  --secondary-foreground: oklch(0.271 0.025 238.108);
  --accent: oklch(0.837 0 171.254);
  --accent-foreground: oklch(0.311 0 180);
  --destructive: oklch(0.375 0.138 31.138);
  --destructive-foreground: oklch(0.855 0.072 27.233);
  --ring: oklch(0.568 0.154 248.339);
  --chart-1: oklch(0.568 0.154 248.339);
  --chart-2: oklch(0.805 0.033 237.063);
  --chart-3: oklch(0.837 0 171.254);
  --chart-4: oklch(0.829 0.029 236.962);
  --chart-5: oklch(0.571 0.158 248.749);
}