P. \ Light for shadcn/ui

P. \ Light is a shadcn/ui theme built around a vivid green primary color (#0e953b) with light orange accents (#dcbbac). The light mode uses an orange-tinted background (#f3e7e2). Dark mode keeps the vivid green primary (#0e953b) on an orange-tinted background (#f3e7e2).

Color palette

TokenLightDark
Background
#f3e7e2linen
#f3e7e2linen
Foreground
#413825darkslategray
#413825darkslategray
Card
#f0e1dbantiquewhite
#f0e1dbantiquewhite
Card foreground
#312a1cdarkslategray
#312a1cdarkslategray
Popover
#eeded7antiquewhite
#eeded7antiquewhite
Popover foreground
#201c13black
#201c13black
Primary
#0e953bforestgreen
#0e953bforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acd2b9silver
#acd2b9silver
Secondary foreground
#1b3222darkslategray
#1b3222darkslategray
Muted
#e4dfddgainsboro
#e4dfddgainsboro
Muted foreground
#50443fdarkslategray
#50443fdarkslategray
Accent
#dcbbactan
#dcbbactan
Accent foreground
#3d241adarkslategray
#3d241adarkslategray
Destructive
#c01e02firebrick
#c01e02firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8dad4gainsboro
#e8dad4gainsboro
Input
#e3d1calightgrey
#e3d1calightgrey
Ring
#0e953bforestgreen
#0e953bforestgreen

Contrast

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

Light mode
Text on background9.55:1AAA
Text on card11.18:1AAA
Primary button3.88:1AA Large
Secondary button8.33:1AAA
Muted text7.09:1AAA
Accent8.00:1AAA
Destructive6.12:1AA
Dark mode
Text on background9.55:1AAA
Text on card11.18:1AAA
Primary button3.88:1AA Large
Secondary button8.33:1AAA
Muted text7.09:1AAA
Accent8.00:1AAA
Destructive6.12:1AA

CSS variables

Paste this into your globals.css to use P. \ Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.937 0.014 44.828);
  --foreground: oklch(0.345 0.033 85.827);
  --muted: oklch(0.907 0.006 44.91);
  --muted-foreground: oklch(0.397 0.019 44.569);
  --popover: oklch(0.913 0.02 44.768);
  --popover-foreground: oklch(0.228 0.018 85.96);
  --card: oklch(0.921 0.018 44.788);
  --card-foreground: oklch(0.288 0.026 85.883);
  --border: oklch(0.897 0.018 44.786);
  --input: oklch(0.873 0.022 44.737);
  --primary: oklch(0.586 0.167 147.68);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.83 0.054 155.869);
  --secondary-foreground: oklch(0.292 0.04 153.977);
  --accent: oklch(0.817 0.044 44.521);
  --accent-foreground: oklch(0.29 0.042 43.864);
  --destructive: oklch(0.518 0.197 31.598);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.586 0.167 147.68);
  --chart-1: oklch(0.586 0.167 147.68);
  --chart-2: oklch(0.83 0.054 155.869);
  --chart-3: oklch(0.817 0.044 44.521);
  --chart-4: oklch(0.851 0.047 156.081);
  --chart-5: oklch(0.593 0.171 147.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.937 0.014 44.828);
  --foreground: oklch(0.345 0.033 85.827);
  --muted: oklch(0.907 0.006 44.91);
  --muted-foreground: oklch(0.397 0.019 44.569);
  --popover: oklch(0.913 0.02 44.768);
  --popover-foreground: oklch(0.228 0.018 85.96);
  --card: oklch(0.921 0.018 44.788);
  --card-foreground: oklch(0.288 0.026 85.883);
  --border: oklch(0.897 0.018 44.786);
  --input: oklch(0.873 0.022 44.737);
  --primary: oklch(0.586 0.167 147.68);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.83 0.054 155.869);
  --secondary-foreground: oklch(0.292 0.04 153.977);
  --accent: oklch(0.817 0.044 44.521);
  --accent-foreground: oklch(0.29 0.042 43.864);
  --destructive: oklch(0.518 0.197 31.598);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.586 0.167 147.68);
  --chart-1: oklch(0.586 0.167 147.68);
  --chart-2: oklch(0.83 0.054 155.869);
  --chart-3: oklch(0.817 0.044 44.521);
  --chart-4: oklch(0.851 0.047 156.081);
  --chart-5: oklch(0.593 0.171 147.42);
}