Passionate for shadcn/ui

Passionate is a shadcn/ui theme built around a green primary color (#536d31) with muted green accents (#b7c4a6). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#536d31) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#060901black
#fafbf9snow
Card
#fafdf6mintcream
#030303black
Card foreground
#030501black
#fdfdfcwhite
Popover
#fafdf6mintcream
#030303black
Popover foreground
#030501black
#fdfdfcwhite
Primary
#536d31darkolivegreen
#536d31darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdd2c6lightgrey
#323928darkslategray
Secondary foreground
#34392ddarkslategray
#cbd3c0lightgrey
Muted
#e2e9d8gainsboro
#202716black
Muted foreground
#464e3bdarkslategray
#bbc4b1silver
Accent
#b7c4a6silver
#4c5c37darkolivegreen
Accent foreground
#1d2216black
#ffffffwhite
Destructive
#6f1c0cmaroon
#e73b18orangered
Destructive foreground
#f7c0b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#536d31darkolivegreen
#536d31darkolivegreen

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card20.00:1AAA
Primary button5.82:1AA
Secondary button7.70:1AAA
Muted text7.00:1AAA
Accent8.85:1AAA
Destructive7.13:1AAA
Dark mode
Text on background20.23:1AAA
Text on card20.31:1AAA
Primary button5.82:1AA
Secondary button7.77:1AAA
Muted text8.50:1AAA
Accent7.20:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 125.806);
  --foreground: oklch(0.131 0.027 124.593);
  --muted: oklch(0.924 0.025 126.104);
  --muted-foreground: oklch(0.412 0.033 126.846);
  --popover: oklch(0.991 0.01 125.873);
  --popover-foreground: oklch(0.104 0.021 124.593);
  --card: oklch(0.991 0.01 125.873);
  --card-foreground: oklch(0.104 0.021 124.593);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.5 0.092 128.691);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.857 0.018 126.016);
  --secondary-foreground: oklch(0.336 0.022 126.641);
  --accent: oklch(0.802 0.043 126.471);
  --accent-foreground: oklch(0.242 0.022 127.001);
  --destructive: oklch(0.362 0.119 33.091);
  --destructive-foreground: oklch(0.855 0.066 31.394);
  --ring: oklch(0.5 0.092 128.691);
  --chart-1: oklch(0.5 0.092 128.691);
  --chart-2: oklch(0.857 0.018 126.016);
  --chart-3: oklch(0.802 0.043 126.471);
  --chart-4: oklch(0.878 0.015 125.967);
  --chart-5: oklch(0.506 0.098 128.917);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 125.791);
  --muted: oklch(0.262 0.033 127.59);
  --muted-foreground: oklch(0.808 0.028 126.209);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 125.765);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 125.765);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.5 0.092 128.691);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.333 0.031 127.058);
  --secondary-foreground: oklch(0.855 0.028 126.176);
  --accent: oklch(0.453 0.06 127.691);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.61 0.213 32.789);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.092 128.691);
  --chart-1: oklch(0.5 0.092 128.691);
  --chart-2: oklch(0.333 0.031 127.058);
  --chart-3: oklch(0.453 0.06 127.691);
  --chart-4: oklch(0.366 0.035 127.098);
  --chart-5: oklch(0.506 0.098 128.917);
}