Skeletal for shadcn/ui

Skeletal is a shadcn/ui theme built around a deep indigo primary color (#07060e) with deep green accents (#060e07). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep indigo primary (#07060e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#05040cblack
#fcfcfdwhite
Card
#fcfbfewhite
#000000black
Card foreground
#05040cblack
#fcfcfdwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#05040cblack
#fcfcfdwhite
Primary
#07060eblack
#07060eblack
Primary foreground
#cac5e7thistle
#cac5e7thistle
Secondary
#0e0706black
#0e0706black
Secondary foreground
#c9887erosybrown
#c9887erosybrown
Muted
#f0efefwhitesmoke
#100f0fblack
Muted foreground
#434242darkslategray
#bdbcbcsilver
Accent
#060e07black
#060e07black
Accent foreground
#7ec988darkseagreen
#7ec988darkseagreen
Destructive
#761f04maroon
#f75322orangered
Destructive foreground
#fcc2b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07060eblack
#07060eblack

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button12.14:1AAA
Secondary button6.93:1AA
Muted text8.74:1AAA
Accent9.85:1AAA
Destructive6.85:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button12.14:1AAA
Secondary button6.93:1AA
Muted text10.11:1AAA
Accent9.85:1AAA
Destructive3.37: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.99 0.003 292.485);
  --foreground: oklch(0.112 0.023 290.534);
  --muted: oklch(0.954 0.001 27.941);
  --muted-foreground: oklch(0.379 0.002 27.954);
  --popover: oklch(0.99 0.003 292.485);
  --popover-foreground: oklch(0.112 0.023 290.534);
  --card: oklch(0.99 0.003 292.485);
  --card-foreground: oklch(0.112 0.023 290.534);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.129 0.02 290.656);
  --primary-foreground: oklch(0.839 0.047 291.48);
  --secondary: oklch(0.14 0.014 30.955);
  --secondary-foreground: oklch(0.689 0.082 29.002);
  --accent: oklch(0.154 0.021 148.521);
  --accent-foreground: oklch(0.769 0.119 147.519);
  --destructive: oklch(0.379 0.126 35.793);
  --destructive-foreground: oklch(0.862 0.072 37.599);
  --ring: oklch(0.129 0.02 290.656);
  --chart-1: oklch(0.129 0.02 290.656);
  --chart-2: oklch(0.14 0.014 30.955);
  --chart-3: oklch(0.154 0.021 148.521);
  --chart-4: oklch(0.174 0.023 29.13);
  --chart-5: oklch(0.128 0.021 290.469);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 292.53);
  --muted: oklch(0.169 0.002 28.004);
  --muted-foreground: oklch(0.797 0.001 27.942);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 292.53);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 292.53);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.129 0.02 290.656);
  --primary-foreground: oklch(0.839 0.047 291.48);
  --secondary: oklch(0.14 0.014 30.955);
  --secondary-foreground: oklch(0.689 0.082 29.002);
  --accent: oklch(0.154 0.021 148.521);
  --accent-foreground: oklch(0.769 0.119 147.519);
  --destructive: oklch(0.662 0.208 36.227);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.129 0.02 290.656);
  --chart-1: oklch(0.129 0.02 290.656);
  --chart-2: oklch(0.14 0.014 30.955);
  --chart-3: oklch(0.154 0.021 148.521);
  --chart-4: oklch(0.174 0.023 29.13);
  --chart-5: oklch(0.128 0.021 290.469);
}