Figurine for shadcn/ui

Figurine is a shadcn/ui theme built around a muted deep red primary color (#141010) with muted deep yellow accents (#141310). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted deep red primary (#141010) on a red-tinted background (#0e0806).

Color palette

TokenLightDark
Background
#fcf9f8snow
#0e0806black
Foreground
#0b0504black
#fbf9f9snow
Card
#faf6f5whitesmoke
#110a08black
Card foreground
#080403black
#fdfcfcsnow
Popover
#fcf9f8snow
#0e0806black
Popover foreground
#0b0504black
#fbf9f9snow
Primary
#141010black
#141010black
Primary foreground
#b6a4a0darkgray
#b6a4a0darkgray
Secondary
#141011black
#141011black
Secondary foreground
#b6a0a6darkgray
#b6a0a6darkgray
Muted
#e4d3d8gainsboro
#2c1b20black
Muted foreground
#454041darkslategray
#bfbabcsilver
Accent
#141310black
#141310black
Accent foreground
#b6afa0darkgray
#b6afa0darkgray
Destructive
#86280esaddlebrown
#de4217orangered
Destructive foreground
#fad6ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141010black
#141010black

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card18.98:1AAA
Primary button7.90:1AAA
Secondary button7.72:1AAA
Muted text7.07:1AAA
Accent8.52:1AAA
Destructive6.70:1AA
Dark mode
Text on background18.96:1AAA
Text on card19.14:1AAA
Primary button7.90:1AAA
Secondary button7.72:1AAA
Muted text8.50:1AAA
Accent8.52:1AAA
Destructive4.29: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.984 0.003 34.311);
  --foreground: oklch(0.127 0.014 39.952);
  --muted: oklch(0.882 0.019 357.28);
  --muted-foreground: oklch(0.376 0.008 357.242);
  --popover: oklch(0.984 0.003 34.311);
  --popover-foreground: oklch(0.127 0.014 39.952);
  --card: oklch(0.975 0.005 34.309);
  --card-foreground: oklch(0.111 0.012 40.1);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.179 0.007 34.308);
  --primary-foreground: oklch(0.733 0.021 34.301);
  --secondary: oklch(0.177 0.008 357.957);
  --secondary-foreground: oklch(0.727 0.027 357.71);
  --accent: oklch(0.186 0.007 87.558);
  --accent-foreground: oklch(0.756 0.023 87.543);
  --destructive: oklch(0.419 0.133 35.427);
  --destructive-foreground: oklch(0.904 0.042 35.945);
  --ring: oklch(0.179 0.007 34.308);
  --chart-1: oklch(0.179 0.007 34.308);
  --chart-2: oklch(0.177 0.008 357.957);
  --chart-3: oklch(0.186 0.007 87.558);
  --chart-4: oklch(0.21 0.011 358.158);
  --chart-5: oklch(0.179 0.008 34.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.012 37.195);
  --foreground: oklch(0.984 0.002 34.313);
  --muted: oklch(0.247 0.027 359.679);
  --muted-foreground: oklch(0.794 0.006 356.888);
  --popover: oklch(0.142 0.012 37.195);
  --popover-foreground: oklch(0.984 0.002 34.313);
  --card: oklch(0.154 0.014 35.48);
  --card-foreground: oklch(0.992 0.001 34.315);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.179 0.007 34.308);
  --primary-foreground: oklch(0.733 0.021 34.301);
  --secondary: oklch(0.177 0.008 357.957);
  --secondary-foreground: oklch(0.727 0.027 357.71);
  --accent: oklch(0.186 0.007 87.558);
  --accent-foreground: oklch(0.756 0.023 87.543);
  --destructive: oklch(0.602 0.199 35.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.179 0.007 34.308);
  --chart-1: oklch(0.179 0.007 34.308);
  --chart-2: oklch(0.177 0.008 357.957);
  --chart-3: oklch(0.186 0.007 87.558);
  --chart-4: oklch(0.21 0.011 358.158);
  --chart-5: oklch(0.179 0.008 34.323);
}