Skeletal for shadcn/ui

Skeletal is a shadcn/ui theme built around a green primary color (#38a84d) with purple accents (#a83894). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#38a84d) on a green-tinted background (#050a06).

Color palette

TokenLightDark
Background
#fbfefcwhite
#050a06black
Foreground
#041006black
#fcfdfcwhite
Card
#f7fdf8mintcream
#070d08black
Card foreground
#030c05black
#ffffffwhite
Popover
#f7fdf8mintcream
#070d08black
Popover foreground
#030c05black
#ffffffwhite
Primary
#38a84dseagreen
#38a84dseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a83894mediumvioletred
#a83894mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1e9f0whitesmoke
#160e14black
Muted foreground
#584b56dimgray
#b4a7b2darkgray
Accent
#a83894mediumvioletred
#a83894mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#861104darkred
#f21f07red
Destructive foreground
#fdc5bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38a84dseagreen
#38a84dseagreen

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.19:1AAA
Primary button3.04:1AA Large
Secondary button5.72:1AA
Muted text6.92:1AA
Accent5.72:1AA
Destructive6.66:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.58:1AAA
Primary button3.04:1AA Large
Secondary button5.72:1AA
Muted text8.23:1AAA
Accent5.72:1AA
Destructive4.20: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.994 0.004 151.35);
  --foreground: oklch(0.158 0.029 149.76);
  --muted: oklch(0.943 0.011 331.578);
  --muted-foreground: oklch(0.43 0.024 332.184);
  --popover: oklch(0.988 0.008 151.291);
  --popover-foreground: oklch(0.141 0.025 150.319);
  --card: oklch(0.988 0.008 151.291);
  --card-foreground: oklch(0.141 0.025 150.319);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.165 146.583);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.534 0.179 335.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.179 335.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.397 0.151 30.702);
  --destructive-foreground: oklch(0.871 0.065 25.774);
  --ring: oklch(0.649 0.165 146.583);
  --chart-1: oklch(0.649 0.165 146.583);
  --chart-2: oklch(0.534 0.179 335.895);
  --chart-3: oklch(0.534 0.179 335.895);
  --chart-4: oklch(0.56 0.189 335.921);
  --chart-5: oklch(0.656 0.172 146.342);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 150.873);
  --foreground: oklch(0.993 0.003 151.37);
  --muted: oklch(0.177 0.017 332.731);
  --muted-foreground: oklch(0.742 0.021 331.806);
  --popover: oklch(0.152 0.016 150.504);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.016 150.504);
  --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.649 0.165 146.583);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.534 0.179 335.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.179 335.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.24 30.325);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.165 146.583);
  --chart-1: oklch(0.649 0.165 146.583);
  --chart-2: oklch(0.534 0.179 335.895);
  --chart-3: oklch(0.534 0.179 335.895);
  --chart-4: oklch(0.56 0.189 335.921);
  --chart-5: oklch(0.656 0.172 146.342);
}