Onsen Hare for shadcn/ui

Onsen Hare is a shadcn/ui theme built around a vivid teal primary color (#63eec2) with vivid yellow accents (#eec263). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the vivid teal primary (#63eec2) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#030706black
Foreground
#04100cblack
#ffffffwhite
Card
#f8fcfbmintcream
#050b09black
Card foreground
#030c09black
#ffffffwhite
Popover
#fbfdfdwhite
#030706black
Popover foreground
#04100cblack
#ffffffwhite
Primary
#63eec2aquamarine
#63eec2aquamarine
Primary foreground
#031c14black
#031c14black
Secondary
#c263eemediumorchid
#c263eemediumorchid
Secondary foreground
#000000black
#000000black
Muted
#dfdbe1gainsboro
#221e24black
Muted foreground
#66536edimgray
#a391acdarkgray
Accent
#eec263sandybrown
#eec263sandybrown
Accent foreground
#1c1403black
#1c1403black
Destructive
#650806maroon
#eb130fred
Destructive foreground
#f9a5a4lightpink
#ffffffwhite
Border
#edeeedwhitesmoke
#1b1d1cblack
Input
#edeeedwhitesmoke
#1b1d1cblack
Ring
#63eec2aquamarine
#63eec2aquamarine

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.12:1AAA
Primary button12.28:1AAA
Secondary button6.29:1AA
Muted text5.07:1AA
Accent10.85:1AAA
Destructive6.89:1AA
Dark mode
Text on background20.24:1AAA
Text on card19.88:1AAA
Primary button12.28:1AAA
Secondary button6.29:1AA
Muted text5.60:1AA
Accent10.85:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 175.551);
  --foreground: oklch(0.161 0.022 172.946);
  --muted: oklch(0.896 0.008 315.389);
  --muted-foreground: oklch(0.472 0.049 314.992);
  --popover: oklch(0.994 0.002 175.551);
  --popover-foreground: oklch(0.161 0.022 172.946);
  --card: oklch(0.987 0.004 175.486);
  --card-foreground: oklch(0.144 0.018 175.181);
  --border: oklch(0.947 0.001 175.59);
  --input: oklch(0.947 0.001 175.59);
  --primary: oklch(0.86 0.137 169.113);
  --primary-foreground: oklch(0.202 0.035 169.52);
  --secondary: oklch(0.668 0.212 313.672);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.833 0.124 84.626);
  --accent-foreground: oklch(0.195 0.033 86.423);
  --destructive: oklch(0.323 0.124 28.475);
  --destructive-foreground: oklch(0.805 0.1 20.567);
  --ring: oklch(0.86 0.137 169.113);
  --chart-1: oklch(0.86 0.137 169.113);
  --chart-2: oklch(0.668 0.212 313.672);
  --chart-3: oklch(0.833 0.124 84.626);
  --chart-4: oklch(0.693 0.195 313.979);
  --chart-5: oklch(0.866 0.141 168.877);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 175.771);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.011 315.233);
  --muted-foreground: oklch(0.68 0.044 315.153);
  --popover: oklch(0.122 0.011 175.771);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.012 175.712);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.228 0.002 175.38);
  --input: oklch(0.228 0.002 175.38);
  --primary: oklch(0.86 0.137 169.113);
  --primary-foreground: oklch(0.202 0.035 169.52);
  --secondary: oklch(0.668 0.212 313.672);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.833 0.124 84.626);
  --accent-foreground: oklch(0.195 0.033 86.423);
  --destructive: oklch(0.595 0.238 28.968);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.137 169.113);
  --chart-1: oklch(0.86 0.137 169.113);
  --chart-2: oklch(0.668 0.212 313.672);
  --chart-3: oklch(0.833 0.124 84.626);
  --chart-4: oklch(0.693 0.195 313.979);
  --chart-5: oklch(0.866 0.141 168.877);
}