Humble for shadcn/ui

Humble is a shadcn/ui theme built around a red primary color (#7e3e47) with neutral gray accents (#dddada). The light mode uses a neutral background (#fefbfc). Dark mode keeps the red primary (#7e3e47) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0b0505black
Foreground
#000000black
#f9f5f6whitesmoke
Card
#fcf7f8snow
#0e0607black
Card foreground
#000000black
#fbf8f9snow
Popover
#fefbfcsnow
#0b0505black
Popover foreground
#000000black
#f9f5f6whitesmoke
Primary
#7e3e47sienna
#7e3e47sienna
Primary foreground
#faf5f5whitesmoke
#faf5f5whitesmoke
Secondary
#dddadagainsboro
#242323black
Secondary foreground
#463f40darkslategray
#bebbbcsilver
Muted
#edd9dbgainsboro
#261214black
Muted foreground
#5c4d4fdimgray
#b2a3a5darkgray
Accent
#dddadagainsboro
#242323black
Accent foreground
#463f40darkslategray
#bebbbcsilver
Destructive
#610805maroon
#e5120bred
Destructive foreground
#faa19elightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7e3e47sienna
#7e3e47sienna

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card19.86:1AAA
Primary button7.25:1AAA
Secondary button7.36:1AAA
Muted text5.90:1AA
Accent7.36:1AAA
Destructive6.88:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.96:1AAA
Primary button7.25:1AAA
Secondary button8.21:1AAA
Muted text7.35:1AAA
Accent8.21:1AAA
Destructive4.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 7.815);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.902 0.023 8.376);
  --muted-foreground: oklch(0.435 0.021 8.898);
  --popover: oklch(0.991 0.003 7.815);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 7.884);
  --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.449 0.089 12.927);
  --primary-foreground: oklch(0.974 0.006 7.891);
  --secondary: oklch(0.89 0.004 7.858);
  --secondary-foreground: oklch(0.375 0.009 8.349);
  --accent: oklch(0.89 0.004 7.858);
  --accent-foreground: oklch(0.375 0.009 8.349);
  --destructive: oklch(0.316 0.122 29.142);
  --destructive-foreground: oklch(0.797 0.107 21.9);
  --ring: oklch(0.449 0.089 12.927);
  --chart-1: oklch(0.449 0.089 12.927);
  --chart-2: oklch(0.89 0.004 7.858);
  --chart-3: oklch(0.89 0.004 7.858);
  --chart-4: oklch(0.914 0.003 7.832);
  --chart-5: oklch(0.448 0.097 13.492);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 8.388);
  --foreground: oklch(0.974 0.005 7.866);
  --muted: oklch(0.212 0.035 11.909);
  --muted-foreground: oklch(0.73 0.018 8.344);
  --popover: oklch(0.124 0.014 8.388);
  --popover-foreground: oklch(0.974 0.005 7.866);
  --card: oklch(0.137 0.016 9.044);
  --card-foreground: oklch(0.983 0.003 7.826);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.449 0.089 12.927);
  --primary-foreground: oklch(0.974 0.006 7.891);
  --secondary: oklch(0.258 0.002 7.954);
  --secondary-foreground: oklch(0.795 0.003 7.842);
  --accent: oklch(0.258 0.002 7.954);
  --accent-foreground: oklch(0.795 0.003 7.842);
  --destructive: oklch(0.583 0.233 29.258);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.449 0.089 12.927);
  --chart-1: oklch(0.449 0.089 12.927);
  --chart-2: oklch(0.258 0.002 7.954);
  --chart-3: oklch(0.258 0.002 7.954);
  --chart-4: oklch(0.289 0.003 7.965);
  --chart-5: oklch(0.448 0.097 13.492);
}