Humidity is a shadcn/ui theme built around a deep blue primary color (#194571) with deep indigo accents (#191971). The light mode uses a neutral background (#f7fafd). Dark mode keeps the deep blue primary (#194571) on a blue-tinted background (#05080b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #05080bblack |
| Foreground | #060d14black | #fcfcfdwhite |
| Card | #f3f7fbaliceblue | #060a0eblack |
| Card foreground | #050a10black | #ffffffwhite |
| Popover | #f7fafdghostwhite | #05080bblack |
| Popover foreground | #060d14black | #fcfcfdwhite |
| Primary | #194571darkslategray | #194571darkslategray |
| Primary foreground | #c9def3powderblue | #c9def3powderblue |
| Secondary | #197171teal | #197171teal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cce6e6gainsboro | #193333darkslategray |
| Muted foreground | #586a6adimgray | #95a7a7darkgray |
| Accent | #191971midnightblue | #191971midnightblue |
| Accent foreground | #c9c9f3thistle | #c9c9f3thistle |
| Destructive | #632908saddlebrown | #ed6f26chocolate |
| Destructive foreground | #f8c4a5navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #194571darkslategray | #194571darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 5.77:1 | AA |
| Muted text | 4.34:1 | AA Large |
| Accent | 9.27:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 5.77:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 9.27:1 | AAA |
| Destructive | 6.92:1 | AA |
Paste this into your globals.css to use Humidity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 247.872);
--foreground: oklch(0.154 0.019 246.915);
--muted: oklch(0.905 0.027 196.677);
--muted-foreground: oklch(0.509 0.021 196.509);
--popover: oklch(0.983 0.005 247.872);
--popover-foreground: oklch(0.154 0.019 246.915);
--card: oklch(0.975 0.007 247.897);
--card-foreground: oklch(0.142 0.016 244.077);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.383 0.089 251.347);
--primary-foreground: oklch(0.891 0.037 248.243);
--secondary: oklch(0.5 0.078 194.939);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.289 0.145 272.599);
--accent-foreground: oklch(0.849 0.059 285.079);
--destructive: oklch(0.359 0.094 45.791);
--destructive-foreground: oklch(0.858 0.072 51.502);
--ring: oklch(0.383 0.089 251.347);
--chart-1: oklch(0.383 0.089 251.347);
--chart-2: oklch(0.5 0.078 194.939);
--chart-3: oklch(0.289 0.145 272.599);
--chart-4: oklch(0.539 0.085 194.929);
--chart-5: oklch(0.384 0.093 251.622);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.01 242.267);
--foreground: oklch(0.992 0.001 247.836);
--muted: oklch(0.301 0.032 195.585);
--muted-foreground: oklch(0.714 0.02 196.721);
--popover: oklch(0.129 0.01 242.267);
--popover-foreground: oklch(0.992 0.001 247.836);
--card: oklch(0.143 0.012 245.257);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.383 0.089 251.347);
--primary-foreground: oklch(0.891 0.037 248.243);
--secondary: oklch(0.5 0.078 194.939);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.289 0.145 272.599);
--accent-foreground: oklch(0.849 0.059 285.079);
--destructive: oklch(0.683 0.175 46.064);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.383 0.089 251.347);
--chart-1: oklch(0.383 0.089 251.347);
--chart-2: oklch(0.5 0.078 194.939);
--chart-3: oklch(0.289 0.145 272.599);
--chart-4: oklch(0.539 0.085 194.929);
--chart-5: oklch(0.384 0.093 251.622);
}