Humming is a shadcn/ui theme built around a near-black primary color (#020303) with near-black accents (#030202). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the near-black primary (#020303) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfdmintcream | #000000black |
| Foreground | #020808black | #f5fafamintcream |
| Card | #f3fbfbmintcream | #030303black |
| Card foreground | #010404black | #f8fcfcmintcream |
| Popover | #f7fdfdmintcream | #000000black |
| Popover foreground | #020808black | #f5fafamintcream |
| Primary | #020303black | #020303black |
| Primary foreground | #8cababdarkgray | #8cababdarkgray |
| Secondary | #030202black | #030202black |
| Secondary foreground | #ab8c8crosybrown | #ab8c8crosybrown |
| Muted | #f0eaealinen | #150f0fblack |
| Muted foreground | #5e4545darkolivegreen | #baa1a1darkgray |
| Accent | #030202black | #030202black |
| Accent foreground | #ab8c8crosybrown | #ab8c8crosybrown |
| Destructive | #65170bmaroon | #e9513atomato |
| Destructive foreground | #f6b6aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020303black | #020303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 7.34:1 | AAA |
| Accent | 6.76:1 | AA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.93:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 7.85:1 | AAA |
| Accent | 6.76:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Humming in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 197.063);
--foreground: oklch(0.127 0.016 195.347);
--muted: oklch(0.943 0.006 17.259);
--muted-foreground: oklch(0.418 0.034 18.601);
--popover: oklch(0.989 0.006 197.063);
--popover-foreground: oklch(0.127 0.016 195.347);
--card: oklch(0.983 0.009 197.015);
--card-foreground: oklch(0.101 0.013 195.347);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.094 0.003 196.594);
--primary-foreground: oklch(0.719 0.035 196.402);
--secondary: oklch(0.089 0.004 17.851);
--secondary-foreground: oklch(0.668 0.039 18.165);
--accent: oklch(0.089 0.004 17.851);
--accent-foreground: oklch(0.668 0.039 18.165);
--destructive: oklch(0.337 0.113 31.654);
--destructive-foreground: oklch(0.833 0.076 28.673);
--ring: oklch(0.094 0.003 196.594);
--chart-1: oklch(0.094 0.003 196.594);
--chart-2: oklch(0.089 0.004 17.851);
--chart-3: oklch(0.089 0.004 17.851);
--chart-4: oklch(0.142 0.006 17.87);
--chart-5: oklch(0.095 0.004 196.5);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.006 197.067);
--muted: oklch(0.176 0.009 18.047);
--muted-foreground: oklch(0.731 0.029 17.831);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.006 197.067);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.004 197.098);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.003 196.594);
--primary-foreground: oklch(0.719 0.035 196.402);
--secondary: oklch(0.089 0.004 17.851);
--secondary-foreground: oklch(0.668 0.039 18.165);
--accent: oklch(0.089 0.004 17.851);
--accent-foreground: oklch(0.668 0.039 18.165);
--destructive: oklch(0.639 0.192 31.434);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.003 196.594);
--chart-1: oklch(0.094 0.003 196.594);
--chart-2: oklch(0.089 0.004 17.851);
--chart-3: oklch(0.089 0.004 17.851);
--chart-4: oklch(0.142 0.006 17.87);
--chart-5: oklch(0.095 0.004 196.5);
}