Costly March Hare Orange for shadcn/ui

Costly March Hare Orange is a shadcn/ui theme built around a vivid orange primary color (#ff781a) with near-white accents (#f1f1f1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#ff7718) on a neutral background (#0f0f10).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0f10black
Foreground
#0d0d0dblack
#fafafasnow
Card
#ffffffwhite
#0f0f10black
Card foreground
#0d0d0dblack
#fafafasnow
Popover
#ffffffwhite
#121113black
Popover foreground
#0d0d0dblack
#fafafasnow
Primary
#ff781adarkorange
#ff7718darkorange
Primary foreground
#fafafasnow
#fafafasnow
Secondary
#282828darkslategray
#dbdbdbgainsboro
Secondary foreground
#ffffffwhite
#0f0f0fblack
Muted
#e4e4e4gainsboro
#2f2f2fdarkslategray
Muted foreground
#737373dimgray
#7b7783gray
Accent
#f1f1f1whitesmoke
#2f2f2fdarkslategray
Accent foreground
#0d0d0dblack
#fafafasnow
Destructive
#fa3030crimson
#fa3030crimson
Destructive foreground
#fafafasnow
#fafafasnow
Border
#ebebeblinen
#1e1d20black
Input
#d9d9d9gainsboro
#2d2c30darkslategray
Ring
#d5d5d5lightgrey
#515151darkslategray

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button2.53:1Fail
Secondary button14.66:1AAA
Muted text3.71:1AA Large
Accent17.25:1AAA
Destructive3.63:1AA Large
Dark mode
Text on background18.35:1AAA
Text on card18.35:1AAA
Primary button2.55:1Fail
Secondary button13.83:1AAA
Muted text3.06:1AA Large
Accent12.81:1AAA
Destructive3.62:1AA Large

CSS variables

Paste this into your globals.css to use Costly March Hare Orange in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0 169.695);
  --muted: oklch(0.917 0 172.875);
  --muted-foreground: oklch(0.555 0 173.991);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0 169.695);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0 169.695);
  --border: oklch(0.939 0 180);
  --input: oklch(0.885 0 180);
  --primary: oklch(0.72 0.188 48.018);
  --primary-foreground: oklch(0.985 0 180);
  --secondary: oklch(0.279 0 206.565);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.959 0 187.595);
  --accent-foreground: oklch(0.158 0 169.695);
  --destructive: oklch(0.638 0.235 27.098);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.874 0 206.565);
  --chart-1: oklch(0.72 0.188 48.018);
  --chart-2: oklch(0.279 0 206.565);
  --chart-3: oklch(0.959 0 187.595);
  --chart-4: oklch(0.309 0 192.529);
  --chart-5: oklch(0.724 0.193 47.491);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.169 0.002 286.177);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.305 0 171.87);
  --muted-foreground: oklch(0.576 0.02 300.948);
  --popover: oklch(0.179 0.005 308.172);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.169 0.002 286.177);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.233 0.006 301.087);
  --input: oklch(0.296 0.007 297.423);
  --primary: oklch(0.719 0.19 47.791);
  --primary-foreground: oklch(0.985 0 180);
  --secondary: oklch(0.891 0 161.565);
  --secondary-foreground: oklch(0.168 0 180);
  --accent: oklch(0.305 0 171.87);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.639 0.235 27.074);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.436 0 57.744);
  --chart-1: oklch(0.719 0.19 47.791);
  --chart-2: oklch(0.891 0 161.565);
  --chart-3: oklch(0.305 0 171.87);
  --chart-4: oklch(0.915 0 158.199);
  --chart-5: oklch(0.723 0.194 47.249);
}