Stumbling for shadcn/ui

Stumbling is a shadcn/ui theme built around a muted deep green primary color (#434c34) with muted deep violet accents (#3c344c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#434c34) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#101603black
#f8faf4whitesmoke
Card
#fcfcfcsnow
#060703black
Card foreground
#0c1203black
#fafcf8snow
Popover
#fcfcfcsnow
#060703black
Popover foreground
#0c1203black
#fafcf8snow
Primary
#434c34darkslategray
#434c34darkslategray
Primary foreground
#dbe0d1gainsboro
#dbe0d1gainsboro
Secondary
#3c344cdarkslategray
#3c344cdarkslategray
Secondary foreground
#d7d1e0gainsboro
#d7d1e0gainsboro
Muted
#efedf2whitesmoke
#0e0d12black
Muted foreground
#4f4d51darkslategray
#afaeb2darkgray
Accent
#3c344cdarkslategray
#3c344cdarkslategray
Accent foreground
#d7d1e0gainsboro
#d7d1e0gainsboro
Destructive
#83290bsaddlebrown
#eb511echocolate
Destructive foreground
#fad4c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#434c34darkslategray
#434c34darkslategray

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.62:1AAA
Primary button6.72:1AA
Secondary button7.90:1AAA
Muted text7.18:1AAA
Accent7.90:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.55:1AAA
Primary button6.72:1AA
Secondary button7.90:1AAA
Muted text8.78:1AAA
Accent7.90:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.188 0.037 124.731);
  --muted: oklch(0.949 0.008 302.088);
  --muted-foreground: oklch(0.424 0.005 302.016);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.17 0.033 123.755);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.17 0.033 123.755);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.401 0.04 123.863);
  --primary-foreground: oklch(0.899 0.02 122.568);
  --secondary: oklch(0.343 0.043 300.205);
  --secondary-foreground: oklch(0.871 0.021 301.844);
  --accent: oklch(0.343 0.043 300.205);
  --accent-foreground: oklch(0.871 0.021 301.844);
  --destructive: oklch(0.416 0.129 37.053);
  --destructive-foreground: oklch(0.898 0.047 39.28);
  --ring: oklch(0.401 0.04 123.863);
  --chart-1: oklch(0.401 0.04 123.863);
  --chart-2: oklch(0.343 0.043 300.205);
  --chart-3: oklch(0.343 0.043 300.205);
  --chart-4: oklch(0.369 0.047 300.16);
  --chart-5: oklch(0.406 0.046 124.104);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.012 121.863);
  --foreground: oklch(0.983 0.008 122.34);
  --muted: oklch(0.162 0.012 301.061);
  --muted-foreground: oklch(0.754 0.005 302.117);
  --popover: oklch(0.126 0.015 121.863);
  --popover-foreground: oklch(0.988 0.005 122.297);
  --card: oklch(0.126 0.015 121.863);
  --card-foreground: oklch(0.988 0.005 122.297);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.401 0.04 123.863);
  --primary-foreground: oklch(0.899 0.02 122.568);
  --secondary: oklch(0.343 0.043 300.205);
  --secondary-foreground: oklch(0.871 0.021 301.844);
  --accent: oklch(0.343 0.043 300.205);
  --accent-foreground: oklch(0.871 0.021 301.844);
  --destructive: oklch(0.641 0.199 37.063);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.04 123.863);
  --chart-1: oklch(0.401 0.04 123.863);
  --chart-2: oklch(0.343 0.043 300.205);
  --chart-3: oklch(0.343 0.043 300.205);
  --chart-4: oklch(0.369 0.047 300.16);
  --chart-5: oklch(0.406 0.046 124.104);
}