Humble is a shadcn/ui theme built around a near-black primary color (#02090d) with near-black accents (#02030d). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the near-black primary (#02090d) on a neutral background (#030608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #030608black |
| Foreground | #000000black | #f9fafaghostwhite |
| Card | #f7fbfdghostwhite | #04090bblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fbfdfewhite | #030608black |
| Popover foreground | #000000black | #f9fafaghostwhite |
| Primary | #02090dblack | #02090dblack |
| Primary foreground | #5bb1e6cornflowerblue | #5bb1e6cornflowerblue |
| Secondary | #020d0cblack | #020d0cblack |
| Secondary foreground | #1dbfaclightseagreen | #1dbfaclightseagreen |
| Muted | #d4dddcgainsboro | #222b2adarkslategray |
| Muted foreground | #3e4746darkslategray | #b8c1c0silver |
| Accent | #02030dblack | #02030dblack |
| Accent foreground | #b4bbf4lightsteelblue | #b4bbf4lightsteelblue |
| Destructive | #932a10saddlebrown | #e74a23chocolate |
| Destructive foreground | #fbe1damistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #02090dblack | #02090dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 8.47:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 11.10:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 8.47:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 11.10:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Humble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 234.546);
--foreground: oklch(0 0 0);
--muted: oklch(0.891 0.01 188.642);
--muted-foreground: oklch(0.389 0.012 188.152);
--popover: oklch(0.992 0.003 234.546);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.006 234.586);
--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.132 0.018 227.36);
--primary-foreground: oklch(0.728 0.114 238.357);
--secondary: oklch(0.147 0.021 187.227);
--secondary-foreground: oklch(0.724 0.125 182.197);
--accent: oklch(0.106 0.029 270.729);
--accent-foreground: oklch(0.806 0.081 278.576);
--destructive: oklch(0.446 0.144 34.561);
--destructive-foreground: oklch(0.929 0.03 34.304);
--ring: oklch(0.132 0.018 227.36);
--chart-1: oklch(0.132 0.018 227.36);
--chart-2: oklch(0.147 0.021 187.227);
--chart-3: oklch(0.106 0.029 270.729);
--chart-4: oklch(0.201 0.03 184.952);
--chart-5: oklch(0.132 0.019 227.191);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 228.389);
--foreground: oklch(0.985 0.001 234.52);
--muted: oklch(0.279 0.013 187.781);
--muted-foreground: oklch(0.804 0.01 188.603);
--popover: oklch(0.115 0.011 228.389);
--popover-foreground: oklch(0.985 0.001 234.52);
--card: oklch(0.132 0.012 228.864);
--card-foreground: oklch(0.992 0 234.513);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.132 0.018 227.36);
--primary-foreground: oklch(0.728 0.114 238.357);
--secondary: oklch(0.147 0.021 187.227);
--secondary-foreground: oklch(0.724 0.125 182.197);
--accent: oklch(0.106 0.029 270.729);
--accent-foreground: oklch(0.806 0.081 278.576);
--destructive: oklch(0.625 0.2 34.658);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.132 0.018 227.36);
--chart-1: oklch(0.132 0.018 227.36);
--chart-2: oklch(0.147 0.021 187.227);
--chart-3: oklch(0.106 0.029 270.729);
--chart-4: oklch(0.201 0.03 184.952);
--chart-5: oklch(0.132 0.019 227.191);
}