Midori Zebra for shadcn/ui

Midori Zebra is a shadcn/ui theme built around a deep green primary color (#2c633c) with deep purple accents (#632c53). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#2c633c) on a green-tinted background (#050a07).

Color palette

TokenLightDark
Background
#fbfefcwhite
#050a07black
Foreground
#010903black
#fcfdfcwhite
Card
#fbfefcwhite
#050a07black
Card foreground
#010903black
#fcfdfcwhite
Popover
#fbfefcwhite
#050a07black
Popover foreground
#010903black
#fcfdfcwhite
Primary
#2c633cdarkslategray
#2c633cdarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#632c53darkslategray
#632c53darkslategray
Secondary foreground
#ecd5e5gainsboro
#ecd5e5gainsboro
Muted
#eedde9mistyrose
#22111dblack
Muted foreground
#5b4d57dimgray
#b2a4aedarkgray
Accent
#632c53darkslategray
#632c53darkslategray
Accent foreground
#ecd5e5gainsboro
#ecd5e5gainsboro
Destructive
#752b06saddlebrown
#f67a3ccoral
Destructive foreground
#fbcab1peachpuff
#000000black
Border
#ebefecwhitesmoke
#161d18black
Input
#ebefecwhitesmoke
#161d18black
Ring
#2c633cdarkslategray
#2c633cdarkslategray

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.14:1AAA
Secondary button7.55:1AAA
Muted text6.10:1AA
Accent7.55:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button7.14:1AAA
Secondary button7.55:1AAA
Muted text7.56:1AAA
Accent7.55:1AAA
Destructive7.76:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 155.123);
  --foreground: oklch(0.125 0.025 154.487);
  --muted: oklch(0.914 0.026 335.696);
  --muted-foreground: oklch(0.439 0.023 336.131);
  --popover: oklch(0.994 0.004 155.123);
  --popover-foreground: oklch(0.125 0.025 154.487);
  --card: oklch(0.994 0.004 155.123);
  --card-foreground: oklch(0.125 0.025 154.487);
  --border: oklch(0.949 0.007 155.063);
  --input: oklch(0.949 0.007 155.063);
  --primary: oklch(0.45 0.086 150.823);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.382 0.094 339.345);
  --secondary-foreground: oklch(0.896 0.034 335.862);
  --accent: oklch(0.382 0.094 339.345);
  --accent-foreground: oklch(0.896 0.034 335.862);
  --destructive: oklch(0.392 0.113 42.021);
  --destructive-foreground: oklch(0.876 0.066 47.951);
  --ring: oklch(0.45 0.086 150.823);
  --chart-1: oklch(0.45 0.086 150.823);
  --chart-2: oklch(0.382 0.094 339.345);
  --chart-3: oklch(0.382 0.094 339.345);
  --chart-4: oklch(0.41 0.103 339.408);
  --chart-5: oklch(0.455 0.092 150.497);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.012 154.89);
  --foreground: oklch(0.993 0.003 155.143);
  --muted: oklch(0.207 0.037 338.2);
  --muted-foreground: oklch(0.733 0.021 335.693);
  --popover: oklch(0.137 0.012 154.89);
  --popover-foreground: oklch(0.993 0.003 155.143);
  --card: oklch(0.137 0.012 154.89);
  --card-foreground: oklch(0.993 0.003 155.143);
  --border: oklch(0.221 0.013 154.023);
  --input: oklch(0.221 0.013 154.023);
  --primary: oklch(0.45 0.086 150.823);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.382 0.094 339.345);
  --secondary-foreground: oklch(0.896 0.034 335.862);
  --accent: oklch(0.382 0.094 339.345);
  --accent-foreground: oklch(0.896 0.034 335.862);
  --destructive: oklch(0.713 0.169 44.87);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.45 0.086 150.823);
  --chart-1: oklch(0.45 0.086 150.823);
  --chart-2: oklch(0.382 0.094 339.345);
  --chart-3: oklch(0.382 0.094 339.345);
  --chart-4: oklch(0.41 0.103 339.408);
  --chart-5: oklch(0.455 0.092 150.497);
}