Purse for shadcn/ui

Purse is a shadcn/ui theme built around a muted green primary color (#90a772) with muted violet accents (#8972a7). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#90a772) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#fdfefbwhite
#030402black
Foreground
#080e02black
#ffffffwhite
Card
#fafdf7mintcream
#050703black
Card foreground
#060901black
#ffffffwhite
Popover
#fafdf7mintcream
#050703black
Popover foreground
#060901black
#ffffffwhite
Primary
#90a772darkseagreen
#90a772darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#8972a7lightslategray
#8972a7lightslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2d9edgainsboro
#1b1226black
Muted foreground
#5b595fdimgray
#a3a0a6darkgray
Accent
#8972a7lightslategray
#8972a7lightslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d33703orangered
#e23b03orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90a772darkseagreen
#90a772darkseagreen

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.53:1AAA
Primary button7.92:1AAA
Secondary button4.18:1AA Large
Muted text5.06:1AA
Accent4.18:1AA Large
Destructive4.86:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.21:1AAA
Primary button7.92:1AAA
Secondary button4.18:1AA Large
Muted text7.00:1AAA
Accent4.18:1AA Large
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 125.797);
  --foreground: oklch(0.151 0.031 125.216);
  --muted: oklch(0.898 0.028 305.325);
  --muted-foreground: oklch(0.468 0.009 305.477);
  --popover: oklch(0.99 0.009 125.854);
  --popover-foreground: oklch(0.131 0.026 124.605);
  --card: oklch(0.99 0.009 125.854);
  --card-foreground: oklch(0.131 0.026 124.605);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.696 0.078 127.342);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.593 0.083 303.845);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.593 0.083 303.845);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.572 0.199 35.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.696 0.078 127.342);
  --chart-1: oklch(0.696 0.078 127.342);
  --chart-2: oklch(0.593 0.083 303.845);
  --chart-3: oklch(0.593 0.083 303.845);
  --chart-4: oklch(0.622 0.077 304.078);
  --chart-5: oklch(0.704 0.087 127.542);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 125.131);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.04 303.027);
  --muted-foreground: oklch(0.711 0.008 305.583);
  --popover: oklch(0.124 0.013 125.131);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.013 125.131);
  --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.696 0.078 127.342);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.593 0.083 303.845);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.593 0.083 303.845);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.602 0.21 34.958);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.696 0.078 127.342);
  --chart-1: oklch(0.696 0.078 127.342);
  --chart-2: oklch(0.593 0.083 303.845);
  --chart-3: oklch(0.593 0.083 303.845);
  --chart-4: oklch(0.622 0.077 304.078);
  --chart-5: oklch(0.704 0.087 127.542);
}