Pneumonia is a shadcn/ui theme built around a muted deep yellow primary color (#302d21) with muted deep green accents (#2c3021). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#302d21) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #040301black | #ffffffwhite |
| Card | #fcfcfcsnow | #070603black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070603black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #302d21darkslategray | #302d21darkslategray |
| Primary foreground | #cdc8b7silver | #cdc8b7silver |
| Secondary | #302621darkslategray | #302621darkslategray |
| Secondary foreground | #cdbdb7silver | #cdbdb7silver |
| Muted | #f1efeewhitesmoke | #110f0eblack |
| Muted foreground | #574f4cdarkslategray | #b3aba8darkgray |
| Accent | #2c3021darkslategray | #2c3021darkslategray |
| Accent foreground | #c7cdb7silver | #c7cdb7silver |
| Destructive | #9d2802saddlebrown | #fd5821orangered |
| Destructive foreground | #ffddd2blanchedalmond | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #302d21darkslategray | #302d21darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Pneumonia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.012 98.345);
--muted: oklch(0.954 0.002 43.11);
--muted-foreground: oklch(0.435 0.012 42.901);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.297 0.02 94.427);
--primary-foreground: oklch(0.832 0.024 94.155);
--secondary: oklch(0.278 0.018 42.687);
--secondary-foreground: oklch(0.81 0.02 42.924);
--accent: oklch(0.301 0.026 120.824);
--accent-foreground: oklch(0.837 0.031 119.937);
--destructive: oklch(0.46 0.158 35.655);
--destructive-foreground: oklch(0.922 0.041 39.301);
--ring: oklch(0.297 0.02 94.427);
--chart-1: oklch(0.297 0.02 94.427);
--chart-2: oklch(0.278 0.018 42.687);
--chart-3: oklch(0.301 0.026 120.824);
--chart-4: oklch(0.308 0.02 42.673);
--chart-5: oklch(0.299 0.023 94.465);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 97.655);
--foreground: oklch(1 0 180);
--muted: oklch(0.169 0.003 42.964);
--muted-foreground: oklch(0.747 0.011 43.006);
--popover: oklch(0.124 0.013 97.655);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.013 97.655);
--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.297 0.02 94.427);
--primary-foreground: oklch(0.832 0.024 94.155);
--secondary: oklch(0.278 0.018 42.687);
--secondary-foreground: oklch(0.81 0.02 42.924);
--accent: oklch(0.301 0.026 120.824);
--accent-foreground: oklch(0.837 0.031 119.937);
--destructive: oklch(0.676 0.21 37.064);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.297 0.02 94.427);
--chart-1: oklch(0.297 0.02 94.427);
--chart-2: oklch(0.278 0.018 42.687);
--chart-3: oklch(0.301 0.026 120.824);
--chart-4: oklch(0.308 0.02 42.673);
--chart-5: oklch(0.299 0.023 94.465);
}