Skeletal for shadcn/ui

Skeletal is a shadcn/ui theme built around a muted green primary color (#808c73) with muted pink accents (#8c7380). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#808c73) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f7f9f6whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fafbf9snow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fafbf9snow
Primary
#808c73gray
#808c73gray
Primary foreground
#000000black
#000000black
Secondary
#73808cslategray
#73808cslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3e8edlavender
#12171cblack
Muted foreground
#454d54darkslategray
#abb3badarkgray
Accent
#8c7380gray
#8c7380gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c44a03chocolate
#fb6209orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#808c73gray
#808c73gray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.92:1AA
Secondary button4.06:1AA Large
Muted text6.97:1AA
Accent4.31:1AA Large
Destructive4.86:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.92:1AAA
Primary button5.92:1AA
Secondary button4.06:1AA Large
Muted text8.49:1AAA
Accent4.31:1AA Large
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.009 247.92);
  --muted-foreground: oklch(0.414 0.016 248.218);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.623 0.04 129.203);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.592 0.025 248.244);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.037 346.716);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.567 0.169 42.124);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.623 0.04 129.203);
  --chart-1: oklch(0.623 0.04 129.203);
  --chart-2: oklch(0.592 0.025 248.244);
  --chart-3: oklch(0.583 0.037 346.716);
  --chart-4: oklch(0.618 0.023 248.199);
  --chart-5: oklch(0.631 0.052 129.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.004 128.51);
  --muted: oklch(0.201 0.013 248.461);
  --muted-foreground: oklch(0.761 0.014 248.011);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.003 128.493);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.003 128.493);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.623 0.04 129.203);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.592 0.025 248.244);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.037 346.716);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.685 0.203 42.194);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.623 0.04 129.203);
  --chart-1: oklch(0.623 0.04 129.203);
  --chart-2: oklch(0.592 0.025 248.244);
  --chart-3: oklch(0.583 0.037 346.716);
  --chart-4: oklch(0.618 0.023 248.199);
  --chart-5: oklch(0.631 0.052 129.42);
}