Zealous for shadcn/ui

Zealous is a shadcn/ui theme built around a vivid blue primary color (#76bafe) with muted light blue accents (#d5dbe2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#76bafe) on a blue-tinted background (#050a10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a10black
Foreground
#020509black
#f9fafbghostwhite
Card
#ffffffwhite
#050a10black
Card foreground
#020509black
#f9fafbghostwhite
Popover
#ffffffwhite
#050a10black
Popover foreground
#020509black
#f9fafbghostwhite
Primary
#76bafelightskyblue
#76bafelightskyblue
Primary foreground
#002142midnightblue
#002142midnightblue
Secondary
#d5dbe2gainsboro
#191c1fblack
Secondary foreground
#36424fdarkslategray
#acb5besilver
Muted
#e7edf3lavender
#0c1218black
Muted foreground
#394047darkslategray
#b8bfc6silver
Accent
#d5dbe2gainsboro
#191c1fblack
Accent foreground
#36424fdarkslategray
#acb5besilver
Destructive
#79210bmaroon
#eb4b24chocolate
Destructive foreground
#f9cabepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#76bafelightskyblue
#76bafelightskyblue

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button7.90:1AAA
Secondary button7.35:1AAA
Muted text8.92:1AAA
Accent7.35:1AAA
Destructive6.95:1AA
Dark mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button7.90:1AAA
Secondary button8.23:1AAA
Muted text10.14:1AAA
Accent8.23:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.111 0.015 238.028);
  --muted: oklch(0.944 0.01 247.931);
  --muted-foreground: oklch(0.367 0.015 248.244);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.111 0.015 238.028);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.111 0.015 238.028);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.771 0.12 249.633);
  --primary-foreground: oklch(0.247 0.073 251.787);
  --secondary: oklch(0.889 0.012 247.961);
  --secondary-foreground: oklch(0.374 0.027 248.558);
  --accent: oklch(0.889 0.012 247.961);
  --accent-foreground: oklch(0.374 0.027 248.558);
  --destructive: oklch(0.388 0.126 34.545);
  --destructive-foreground: oklch(0.876 0.057 34.376);
  --ring: oklch(0.771 0.12 249.633);
  --chart-1: oklch(0.771 0.12 249.633);
  --chart-2: oklch(0.889 0.012 247.961);
  --chart-3: oklch(0.889 0.012 247.961);
  --chart-4: oklch(0.913 0.009 247.928);
  --chart-5: oklch(0.771 0.124 249.708);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.016 243.99);
  --foreground: oklch(0.984 0.002 247.838);
  --muted: oklch(0.178 0.015 248.669);
  --muted-foreground: oklch(0.802 0.013 247.984);
  --popover: oklch(0.142 0.016 243.99);
  --popover-foreground: oklch(0.984 0.002 247.838);
  --card: oklch(0.142 0.016 243.99);
  --card-foreground: oklch(0.984 0.002 247.838);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.771 0.12 249.633);
  --primary-foreground: oklch(0.247 0.073 251.787);
  --secondary: oklch(0.225 0.008 248.197);
  --secondary-foreground: oklch(0.769 0.016 248.038);
  --accent: oklch(0.225 0.008 248.197);
  --accent-foreground: oklch(0.769 0.016 248.038);
  --destructive: oklch(0.634 0.202 34.664);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.771 0.12 249.633);
  --chart-1: oklch(0.771 0.12 249.633);
  --chart-2: oklch(0.225 0.008 248.197);
  --chart-3: oklch(0.225 0.008 248.197);
  --chart-4: oklch(0.257 0.01 248.226);
  --chart-5: oklch(0.771 0.124 249.708);
}