Pollutant is a shadcn/ui theme built around a light yellow primary color (#ecdfb1) with light blue accents (#b1beec). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the light yellow primary (#ecdfb1) on a yellow-tinted background (#0a0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #0a0905black |
| Foreground | #141106black | #ffffffwhite |
| Card | #faf9f5whitesmoke | #0e0c07black |
| Card foreground | #100d05black | #ffffffwhite |
| Popover | #fbfbf8snow | #0a0905black |
| Popover foreground | #141106black | #ffffffwhite |
| Primary | #ecdfb1wheat | #ecdfb1wheat |
| Primary foreground | #564815darkolivegreen | #564815darkolivegreen |
| Secondary | #b1beeclightsteelblue | #b1beeclightsteelblue |
| Secondary foreground | #152356midnightblue | #152356midnightblue |
| Muted | #eff0f6whitesmoke | #090b10black |
| Muted foreground | #484b56darkslategray | #a9acb7darkgray |
| Accent | #b1beeclightsteelblue | #b1beeclightsteelblue |
| Accent foreground | #152356midnightblue | #152356midnightblue |
| Destructive | #c84c04chocolate | #f05b05orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecdfb1wheat | #ecdfb1wheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.19:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.68:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 8.69:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Pollutant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 93.901);
--foreground: oklch(0.176 0.022 95.232);
--muted: oklch(0.956 0.007 273.777);
--muted-foreground: oklch(0.414 0.019 273.295);
--popover: oklch(0.987 0.003 93.901);
--popover-foreground: oklch(0.176 0.022 95.232);
--card: oklch(0.981 0.005 93.919);
--card-foreground: oklch(0.161 0.02 96.15);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.903 0.061 94.422);
--primary-foreground: oklch(0.404 0.07 93.368);
--secondary: oklch(0.808 0.066 272.775);
--secondary-foreground: oklch(0.279 0.093 268.143);
--accent: oklch(0.808 0.066 272.775);
--accent-foreground: oklch(0.279 0.093 268.143);
--destructive: oklch(0.576 0.172 42.22);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.061 94.422);
--chart-1: oklch(0.903 0.061 94.422);
--chart-2: oklch(0.808 0.066 272.775);
--chart-3: oklch(0.808 0.066 272.775);
--chart-4: oklch(0.838 0.055 273.016);
--chart-5: oklch(0.905 0.064 94.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 96.91);
--foreground: oklch(1 0 180);
--muted: oklch(0.15 0.012 272.709);
--muted-foreground: oklch(0.745 0.016 273.608);
--popover: oklch(0.14 0.011 96.91);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.013 95.402);
--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.903 0.061 94.422);
--primary-foreground: oklch(0.404 0.07 93.368);
--secondary: oklch(0.808 0.066 272.775);
--secondary-foreground: oklch(0.279 0.093 268.143);
--accent: oklch(0.808 0.066 272.775);
--accent-foreground: oklch(0.279 0.093 268.143);
--destructive: oklch(0.659 0.198 41.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.061 94.422);
--chart-1: oklch(0.903 0.061 94.422);
--chart-2: oklch(0.808 0.066 272.775);
--chart-3: oklch(0.808 0.066 272.775);
--chart-4: oklch(0.838 0.055 273.016);
--chart-5: oklch(0.905 0.064 94.435);
}