Figurine for shadcn/ui

Figurine is a shadcn/ui theme built around a green primary color (#56ae24) with violet accents (#7b24ae). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the green primary (#56ae24) on a green-tinted background (#070b05).

Color palette

TokenLightDark
Background
#fcfdfbsnow
#070b05black
Foreground
#0b1505black
#f9fcf8mintcream
Card
#fcfdfbsnow
#070b05black
Card foreground
#0b1505black
#f9fcf8mintcream
Popover
#fcfdfbsnow
#070b05black
Popover foreground
#0b1505black
#f9fcf8mintcream
Primary
#56ae24olivedrab
#56ae24olivedrab
Primary foreground
#020401black
#020401black
Secondary
#7b24aerebeccapurple
#7b24aerebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1d4e8gainsboro
#24172bblack
Muted foreground
#4a3e51darkslategray
#baaec1silver
Accent
#7b24aerebeccapurple
#7b24aerebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9a0b04darkred
#fa382eorangered
Destructive foreground
#fed4d2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#56ae24olivedrab
#56ae24olivedrab

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button7.29:1AAA
Secondary button7.78:1AAA
Muted text7.01:1AAA
Accent7.78:1AAA
Destructive6.40:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button7.29:1AAA
Secondary button7.78:1AAA
Muted text8.04:1AAA
Accent7.78:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 133.625);
  --foreground: oklch(0.179 0.035 134.068);
  --muted: oklch(0.885 0.031 313.39);
  --muted-foreground: oklch(0.384 0.034 313.053);
  --popover: oklch(0.994 0.003 133.625);
  --popover-foreground: oklch(0.179 0.035 134.068);
  --card: oklch(0.994 0.003 133.625);
  --card-foreground: oklch(0.179 0.035 134.068);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.669 0.187 136.993);
  --primary-foreground: oklch(0.101 0.019 131.838);
  --secondary: oklch(0.466 0.205 309.05);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.466 0.205 309.05);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.436 0.173 29.653);
  --destructive-foreground: oklch(0.906 0.047 21.602);
  --ring: oklch(0.669 0.187 136.993);
  --chart-1: oklch(0.669 0.187 136.993);
  --chart-2: oklch(0.466 0.205 309.05);
  --chart-3: oklch(0.466 0.205 309.05);
  --chart-4: oklch(0.49 0.217 308.991);
  --chart-5: oklch(0.677 0.193 137.179);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.017 132.498);
  --foreground: oklch(0.987 0.005 133.639);
  --muted: oklch(0.231 0.043 312.418);
  --muted-foreground: oklch(0.767 0.029 313.373);
  --popover: oklch(0.141 0.017 132.498);
  --popover-foreground: oklch(0.987 0.005 133.639);
  --card: oklch(0.141 0.017 132.498);
  --card-foreground: oklch(0.987 0.005 133.639);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.669 0.187 136.993);
  --primary-foreground: oklch(0.101 0.019 131.838);
  --secondary: oklch(0.466 0.205 309.05);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.466 0.205 309.05);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.643 0.229 28.589);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.669 0.187 136.993);
  --chart-1: oklch(0.669 0.187 136.993);
  --chart-2: oklch(0.466 0.205 309.05);
  --chart-3: oklch(0.466 0.205 309.05);
  --chart-4: oklch(0.49 0.217 308.991);
  --chart-5: oklch(0.677 0.193 137.179);
}