Passion for shadcn/ui

Passion is a shadcn/ui theme built around a light green primary color (#e7f7e4) with muted light green accents (#e1e6e0). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#e7f7e4) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#020401black
Foreground
#020401black
#ffffffwhite
Card
#fcfdfcwhite
#020401black
Card foreground
#020401black
#ffffffwhite
Popover
#fcfdfcwhite
#020401black
Popover foreground
#020401black
#ffffffwhite
Primary
#e7f7e4beige
#e7f7e4beige
Primary foreground
#16330fdarkgreen
#16330fdarkgreen
Secondary
#e1e6e0gainsboro
#30322fdarkslategray
Secondary foreground
#445341darkslategray
#c8cbc8silver
Muted
#e4eee2beige
#131d11black
Muted foreground
#414441darkslategray
#bcbebbsilver
Accent
#e1e6e0gainsboro
#30322fdarkslategray
Accent foreground
#445341darkslategray
#c8cbc8silver
Destructive
#d02a01firebrick
#fe4c20orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7f7e4beige
#e7f7e4beige

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button12.40:1AAA
Secondary button6.49:1AA
Muted text8.27:1AAA
Accent6.49:1AA
Destructive5.22:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button12.40:1AAA
Secondary button7.92:1AAA
Muted text9.27:1AAA
Accent7.92:1AAA
Destructive3.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 139.989);
  --foreground: oklch(0.099 0.019 138.08);
  --muted: oklch(0.938 0.018 139.974);
  --muted-foreground: oklch(0.382 0.005 139.979);
  --popover: oklch(0.994 0.003 139.989);
  --popover-foreground: oklch(0.099 0.019 138.08);
  --card: oklch(0.994 0.003 139.989);
  --card-foreground: oklch(0.099 0.019 138.08);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.959 0.03 139.963);
  --primary-foreground: oklch(0.289 0.07 140.089);
  --secondary: oklch(0.92 0.011 139.981);
  --secondary-foreground: oklch(0.423 0.034 139.926);
  --accent: oklch(0.92 0.011 139.981);
  --accent-foreground: oklch(0.423 0.034 139.926);
  --destructive: oklch(0.556 0.205 32.972);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.959 0.03 139.963);
  --chart-1: oklch(0.959 0.03 139.963);
  --chart-2: oklch(0.92 0.011 139.981);
  --chart-3: oklch(0.92 0.011 139.981);
  --chart-4: oklch(0.942 0.008 139.984);
  --chart-5: oklch(0.959 0.032 139.961);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 138.658);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.216 0.026 139.91);
  --muted-foreground: oklch(0.799 0.004 139.986);
  --popover: oklch(0.097 0.013 138.658);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.013 138.658);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.959 0.03 139.963);
  --primary-foreground: oklch(0.289 0.07 140.089);
  --secondary: oklch(0.313 0.006 139.974);
  --secondary-foreground: oklch(0.839 0.005 139.985);
  --accent: oklch(0.313 0.006 139.974);
  --accent-foreground: oklch(0.839 0.005 139.985);
  --destructive: oklch(0.666 0.221 34.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.959 0.03 139.963);
  --chart-1: oklch(0.959 0.03 139.963);
  --chart-2: oklch(0.313 0.006 139.974);
  --chart-3: oklch(0.313 0.006 139.974);
  --chart-4: oklch(0.344 0.007 139.973);
  --chart-5: oklch(0.959 0.032 139.961);
}