Footstool for shadcn/ui

Footstool is a shadcn/ui theme built around a green primary color (#787f34) with indigo accents (#3a347f). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the green primary (#787f34) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#060703black
Foreground
#0f1005black
#fafaf4floralwhite
Card
#fdfdfcwhite
#060703black
Card foreground
#0f1005black
#fafaf4floralwhite
Popover
#fdfdfcwhite
#060703black
Popover foreground
#0f1005black
#fafaf4floralwhite
Primary
#787f34olivedrab
#787f34olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3a347fdarkslateblue
#3a347fdarkslateblue
Secondary foreground
#eeedf8lavender
#eeedf8lavender
Muted
#efeef6whitesmoke
#0a0911black
Muted foreground
#474653darkslategray
#adacb9darkgray
Accent
#3a347fdarkslateblue
#3a347fdarkslateblue
Accent foreground
#eeedf8lavender
#eeedf8lavender
Destructive
#cc1f0ffirebrick
#df2211crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#787f34olivedrab
#787f34olivedrab

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card18.84:1AAA
Primary button4.30:1AA Large
Secondary button9.18:1AAA
Muted text8.05:1AAA
Accent9.18:1AAA
Destructive5.57:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button4.30:1AA Large
Secondary button9.18:1AAA
Muted text8.85:1AAA
Accent9.18:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 110.287);
  --foreground: oklch(0.166 0.022 112.336);
  --muted: oklch(0.953 0.01 290.044);
  --muted-foreground: oklch(0.399 0.023 289.133);
  --popover: oklch(0.994 0.002 110.287);
  --popover-foreground: oklch(0.166 0.022 112.336);
  --card: oklch(0.994 0.002 110.287);
  --card-foreground: oklch(0.166 0.022 112.336);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.099 113.479);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.375 0.122 282.511);
  --secondary-foreground: oklch(0.95 0.014 289.961);
  --accent: oklch(0.375 0.122 282.511);
  --accent-foreground: oklch(0.95 0.014 289.961);
  --destructive: oklch(0.542 0.207 30.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.099 113.479);
  --chart-1: oklch(0.574 0.099 113.479);
  --chart-2: oklch(0.375 0.122 282.511);
  --chart-3: oklch(0.375 0.122 282.511);
  --chart-4: oklch(0.396 0.131 282.389);
  --chart-5: oklch(0.582 0.104 113.629);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 111.19);
  --foreground: oklch(0.984 0.008 110.396);
  --muted: oklch(0.144 0.017 288.118);
  --muted-foreground: oklch(0.748 0.02 289.749);
  --popover: oklch(0.125 0.011 111.19);
  --popover-foreground: oklch(0.984 0.008 110.396);
  --card: oklch(0.125 0.011 111.19);
  --card-foreground: oklch(0.984 0.008 110.396);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.099 113.479);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.375 0.122 282.511);
  --secondary-foreground: oklch(0.95 0.014 289.961);
  --accent: oklch(0.375 0.122 282.511);
  --accent-foreground: oklch(0.95 0.014 289.961);
  --destructive: oklch(0.579 0.222 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.099 113.479);
  --chart-1: oklch(0.574 0.099 113.479);
  --chart-2: oklch(0.375 0.122 282.511);
  --chart-3: oklch(0.375 0.122 282.511);
  --chart-4: oklch(0.396 0.131 282.389);
  --chart-5: oklch(0.582 0.104 113.629);
}