Zebra for shadcn/ui

Zebra is a shadcn/ui theme built around a vivid teal primary color (#0f9970) with muted light teal accents (#c8e0d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#0f9970) on a teal-tinted background (#050b09).

Color palette

TokenLightDark
Background
#ffffffwhite
#050b09black
Foreground
#030c0ablack
#fcfdfdwhite
Card
#ffffffwhite
#050b09black
Card foreground
#030c0ablack
#fcfdfdwhite
Popover
#ffffffwhite
#050b09black
Popover foreground
#030c0ablack
#fcfdfdwhite
Primary
#0f9970teal
#0f9970teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e7eeeclavender
#262c2adarkslategray
Secondary foreground
#192421black
#bdc7c4silver
Muted
#e2eeeblavender
#111d1ablack
Muted foreground
#596461dimgray
#9ba6a3darkgray
Accent
#c8e0d9lightgrey
#2d3e39darkslategray
Accent foreground
#2a4b41darkslategray
#c7d6d2lightgrey
Destructive
#963708saddlebrown
#f2590dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f9970teal
#0f9970teal

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button3.60:1AA Large
Secondary button13.59:1AAA
Muted text5.17:1AA
Accent6.91:1AA
Destructive7.35:1AAA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button3.60:1AA Large
Secondary button8.22:1AAA
Muted text6.88:1AA
Accent7.50:1AAA
Destructive3.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.019 176.138);
  --muted: oklch(0.94 0.015 176.201);
  --muted-foreground: oklch(0.492 0.015 175.748);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.019 176.138);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.019 176.138);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.607 0.124 165.239);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.944 0.009 176.385);
  --secondary-foreground: oklch(0.25 0.018 174.413);
  --accent: oklch(0.886 0.028 175.722);
  --accent-foreground: oklch(0.384 0.043 172.803);
  --destructive: oklch(0.467 0.138 41.418);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.124 165.239);
  --chart-1: oklch(0.607 0.124 165.239);
  --chart-2: oklch(0.944 0.009 176.385);
  --chart-3: oklch(0.886 0.028 175.722);
  --chart-4: oklch(0.965 0.005 176.492);
  --chart-5: oklch(0.614 0.127 164.867);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.012 176.745);
  --foreground: oklch(0.993 0.002 176.609);
  --muted: oklch(0.219 0.02 173.678);
  --muted-foreground: oklch(0.716 0.014 176.092);
  --popover: oklch(0.139 0.012 176.745);
  --popover-foreground: oklch(0.993 0.002 176.609);
  --card: oklch(0.139 0.012 176.745);
  --card-foreground: oklch(0.993 0.002 176.609);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.607 0.124 165.239);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.286 0.01 175.623);
  --secondary-foreground: oklch(0.82 0.011 176.246);
  --accent: oklch(0.348 0.024 174.473);
  --accent-foreground: oklch(0.864 0.018 176.044);
  --destructive: oklch(0.661 0.201 40.482);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.124 165.239);
  --chart-1: oklch(0.607 0.124 165.239);
  --chart-2: oklch(0.286 0.01 175.623);
  --chart-3: oklch(0.348 0.024 174.473);
  --chart-4: oklch(0.318 0.011 175.579);
  --chart-5: oklch(0.614 0.127 164.867);
}