Smoggy is a shadcn/ui theme built around a blue primary color (#588bbb) with indigo accents (#585abb). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#588bbb) on a blue-tinted background (#04080b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #04080bblack |
| Foreground | #04080cblack | #fcfcfdwhite |
| Card | #f4f7fbghostwhite | #060a0eblack |
| Card foreground | #020508black | #ffffffwhite |
| Popover | #f8fafcghostwhite | #04080bblack |
| Popover foreground | #04080cblack | #fcfcfdwhite |
| Primary | #588bbbsteelblue | #588bbbsteelblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #58bbb9mediumaquamarine | #58bbb9mediumaquamarine |
| Secondary foreground | #000000black | #000000black |
| Muted | #dbebeblavender | #142424black |
| Muted foreground | #5c6161dimgray | #9ea3a3darkgray |
| Accent | #585abbslateblue | #585abbslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a73b02saddlebrown | #f75802orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #588bbbsteelblue | #588bbbsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 9.22:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 5.83:1 | AA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 9.22:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 5.83:1 | AA |
| Destructive | 3.29:1 | AA Large |
Paste this into your globals.css to use Smoggy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 246.012);
--foreground: oklch(0.129 0.013 239.274);
--muted: oklch(0.928 0.017 195.662);
--muted-foreground: oklch(0.488 0.007 195.722);
--popover: oklch(0.984 0.004 246.012);
--popover-foreground: oklch(0.129 0.013 239.274);
--card: oklch(0.976 0.006 246.036);
--card-foreground: oklch(0.113 0.011 238.843);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.622 0.091 247.907);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.733 0.092 193.857);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.517 0.149 279.098);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.5 0.152 41.285);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.622 0.091 247.907);
--chart-1: oklch(0.622 0.091 247.907);
--chart-2: oklch(0.733 0.092 193.857);
--chart-3: oklch(0.517 0.149 279.098);
--chart-4: oklch(0.749 0.088 194.005);
--chart-5: oklch(0.622 0.097 248.095);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.01 240.242);
--foreground: oklch(0.992 0.002 245.985);
--muted: oklch(0.246 0.021 194.524);
--muted-foreground: oklch(0.712 0.006 195.815);
--popover: oklch(0.13 0.01 240.242);
--popover-foreground: oklch(0.992 0.002 245.985);
--card: oklch(0.143 0.012 243.433);
--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.622 0.091 247.907);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.733 0.092 193.857);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.517 0.149 279.098);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.667 0.208 40.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.622 0.091 247.907);
--chart-1: oklch(0.622 0.091 247.907);
--chart-2: oklch(0.733 0.092 193.857);
--chart-3: oklch(0.517 0.149 279.098);
--chart-4: oklch(0.749 0.088 194.005);
--chart-5: oklch(0.622 0.097 248.095);
}