Humble for shadcn/ui

Humble is a shadcn/ui theme built around a green primary color (#31a056) with orange accents (#a05631). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#31a056) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fbfefcwhite
#020302black
Foreground
#000000black
#f9fafaghostwhite
Card
#f7fcf9mintcream
#030705black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f7fcf9mintcream
#030705black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#31a056seagreen
#31a056seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5631a0rebeccapurple
#5631a0rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7e5eblavender
#16141ablack
Muted foreground
#645f6ddimgray
#9792a0darkgray
Accent
#a05631sienna
#a05631sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d74e04chocolate
#fa5e0aorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#31a056seagreen
#31a056seagreen

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.31:1AAA
Primary button3.33:1AA Large
Secondary button8.95:1AAA
Muted text4.93:1AA
Accent5.42:1AA
Destructive4.21:1AA Large
Dark mode
Text on background19.72:1AAA
Text on card19.87:1AAA
Primary button3.33:1AA Large
Secondary button8.95:1AAA
Muted text6.04:1AA
Accent5.42:1AA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 157.194);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.925 0.009 301.338);
  --muted-foreground: oklch(0.494 0.023 300.737);
  --popover: oklch(0.988 0.007 157.121);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.007 157.121);
  --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.626 0.148 150.498);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.425 0.169 293.138);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.11 45.918);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.603 0.184 40.854);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.626 0.148 150.498);
  --chart-1: oklch(0.626 0.148 150.498);
  --chart-2: oklch(0.425 0.169 293.138);
  --chart-3: oklch(0.534 0.11 45.918);
  --chart-4: oklch(0.447 0.179 293.039);
  --chart-5: oklch(0.633 0.154 150.157);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.009 157.05);
  --foreground: oklch(0.985 0.001 157.236);
  --muted: oklch(0.196 0.013 300.405);
  --muted-foreground: oklch(0.668 0.021 300.975);
  --popover: oklch(0.12 0.011 157.05);
  --popover-foreground: oklch(0.993 0.001 157.251);
  --card: oklch(0.12 0.011 157.05);
  --card-foreground: oklch(0.993 0.001 157.251);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.626 0.148 150.498);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.425 0.169 293.138);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.11 45.918);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.679 0.205 41.18);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.626 0.148 150.498);
  --chart-1: oklch(0.626 0.148 150.498);
  --chart-2: oklch(0.425 0.169 293.138);
  --chart-3: oklch(0.534 0.11 45.918);
  --chart-4: oklch(0.447 0.179 293.039);
  --chart-5: oklch(0.633 0.154 150.157);
}