Figurine for shadcn/ui

Figurine is a shadcn/ui theme built around a near-black primary color (#05060a) with near-black accents (#060a05). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#05060a) on a blue-tinted background (#07080d).

Color palette

TokenLightDark
Background
#ffffffwhite
#07080dblack
Foreground
#050610black
#f7f7f8whitesmoke
Card
#fcfcfcsnow
#090a11black
Card foreground
#04040cblack
#f9f9faghostwhite
Popover
#ffffffwhite
#07080dblack
Popover foreground
#050610black
#f7f7f8whitesmoke
Primary
#05060ablack
#05060ablack
Primary foreground
#c5c8e2lightsteelblue
#c5c8e2lightsteelblue
Secondary
#0a0506black
#0a0506black
Secondary foreground
#c08288rosybrown
#c08288rosybrown
Muted
#f6eeefwhitesmoke
#11090ablack
Muted foreground
#534648darkslategray
#b9acaedarkgray
Accent
#060a05black
#060a05black
Accent foreground
#88c082darkseagreen
#88c082darkseagreen
Destructive
#c91913firebrick
#d21a14firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#05060ablack
#05060ablack

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.99:1AAA
Primary button12.29:1AAA
Secondary button6.54:1AA
Muted text7.88:1AAA
Accent9.40:1AAA
Destructive5.80:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.81:1AAA
Primary button12.29:1AAA
Secondary button6.54:1AA
Muted text8.98:1AAA
Accent9.40:1AAA
Destructive5.38:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.024 275.837);
  --muted: oklch(0.956 0.009 10.282);
  --muted-foreground: oklch(0.408 0.017 11.012);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.024 275.837);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.114 0.021 275.658);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.122 0.012 278.362);
  --primary-foreground: oklch(0.839 0.036 280.564);
  --secondary: oklch(0.125 0.011 10.795);
  --secondary-foreground: oklch(0.67 0.077 12.785);
  --accent: oklch(0.137 0.016 141.616);
  --accent-foreground: oklch(0.752 0.105 142.055);
  --destructive: oklch(0.533 0.207 28.954);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.012 278.362);
  --chart-1: oklch(0.122 0.012 278.362);
  --chart-2: oklch(0.125 0.011 10.795);
  --chart-3: oklch(0.137 0.016 141.616);
  --chart-4: oklch(0.161 0.018 12.685);
  --chart-5: oklch(0.121 0.013 278.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.013 278.77);
  --foreground: oklch(0.976 0.002 281.257);
  --muted: oklch(0.15 0.014 11.974);
  --muted-foreground: oklch(0.756 0.014 10.504);
  --popover: oklch(0.135 0.013 278.77);
  --popover-foreground: oklch(0.976 0.002 281.257);
  --card: oklch(0.146 0.015 279.112);
  --card-foreground: oklch(0.984 0.001 281.267);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.122 0.012 278.362);
  --primary-foreground: oklch(0.839 0.036 280.564);
  --secondary: oklch(0.125 0.011 10.795);
  --secondary-foreground: oklch(0.67 0.077 12.785);
  --accent: oklch(0.137 0.016 141.616);
  --accent-foreground: oklch(0.752 0.105 142.055);
  --destructive: oklch(0.551 0.214 28.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.012 278.362);
  --chart-1: oklch(0.122 0.012 278.362);
  --chart-2: oklch(0.125 0.011 10.795);
  --chart-3: oklch(0.137 0.016 141.616);
  --chart-4: oklch(0.161 0.018 12.685);
  --chart-5: oklch(0.121 0.013 278.027);
}