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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 4.75:1 | AA |
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);
}