Skeletal for shadcn/ui

Skeletal is a shadcn/ui theme built around a neutral gray primary color (#3b3538) with neutral gray accents (#3b3535). The light mode uses a neutral background (#fefbfc). Dark mode keeps the neutral gray primary (#3b3538) on a pink-tinted background (#0c0308).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0c0308black
Foreground
#000000black
#ffffffwhite
Card
#fdf7fasnow
#10040ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfcsnow
#0c0308black
Popover foreground
#000000black
#ffffffwhite
Primary
#3b3538darkslategray
#3b3538darkslategray
Primary foreground
#d3cfd1lightgrey
#d3cfd1lightgrey
Secondary
#3b353bdarkslategray
#3b353bdarkslategray
Secondary foreground
#d3cfd3lightgrey
#d3cfd3lightgrey
Muted
#f0ebf0whitesmoke
#140f14black
Muted foreground
#534153darkslategray
#beacbesilver
Accent
#3b3535darkslategray
#3b3535darkslategray
Accent foreground
#d3cfcflightgrey
#d3cfcflightgrey
Destructive
#c62715firebrick
#eb5342tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b3538darkslategray
#3b3538darkslategray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card19.84:1AAA
Primary button7.74:1AAA
Secondary button7.73:1AAA
Muted text7.91:1AAA
Accent7.76:1AAA
Destructive5.66:1AA
Dark mode
Text on background20.31:1AAA
Text on card20.07:1AAA
Primary button7.74:1AAA
Secondary button7.73:1AAA
Muted text8.85:1AAA
Accent7.76:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 345.243);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.009 325.644);
  --muted-foreground: oklch(0.401 0.037 326.246);
  --popover: oklch(0.991 0.004 345.243);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.008 345.343);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.337 0.009 345.842);
  --primary-foreground: oklch(0.858 0.006 345.324);
  --secondary: oklch(0.338 0.012 325.847);
  --secondary-foreground: oklch(0.859 0.008 325.646);
  --accent: oklch(0.336 0.008 17.555);
  --accent-foreground: oklch(0.858 0.005 17.256);
  --destructive: oklch(0.537 0.197 30.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.337 0.009 345.842);
  --chart-1: oklch(0.337 0.009 345.842);
  --chart-2: oklch(0.338 0.012 325.847);
  --chart-3: oklch(0.336 0.008 17.555);
  --chart-4: oklch(0.367 0.014 325.853);
  --chart-5: oklch(0.335 0.015 346.261);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.024 345.253);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.013 326.101);
  --muted-foreground: oklch(0.766 0.032 325.883);
  --popover: oklch(0.122 0.024 345.253);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.027 347.055);
  --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.337 0.009 345.842);
  --primary-foreground: oklch(0.858 0.006 345.324);
  --secondary: oklch(0.338 0.012 325.847);
  --secondary-foreground: oklch(0.859 0.008 325.646);
  --accent: oklch(0.336 0.008 17.555);
  --accent-foreground: oklch(0.858 0.005 17.256);
  --destructive: oklch(0.645 0.191 29.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.337 0.009 345.842);
  --chart-1: oklch(0.337 0.009 345.842);
  --chart-2: oklch(0.338 0.012 325.847);
  --chart-3: oklch(0.336 0.008 17.555);
  --chart-4: oklch(0.367 0.014 325.853);
  --chart-5: oklch(0.335 0.015 346.261);
}