Smoggy is a shadcn/ui theme built around a yellow primary color (#d2bf83) with green accents (#bfd283). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d2bf83) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #141006black | #faf8f5whitesmoke |
| Card | #ffffffwhite | #040301black |
| Card foreground | #141006black | #faf8f5whitesmoke |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #141006black | #faf8f5whitesmoke |
| Primary | #d2bf83tan | #d2bf83tan |
| Primary foreground | #1a1609black | #1a1609black |
| Secondary | #d29783darksalmon | #d29783darksalmon |
| Secondary foreground | #1a0e09black | #1a0e09black |
| Muted | #ebe3e0gainsboro | #1f1714black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #bfd283darkkhaki | #bfd283darkkhaki |
| Accent foreground | #161a09black | #161a09black |
| Destructive | #8b1c09darkred | #f25236tomato |
| Destructive foreground | #fcd2capink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2bf83tan | #d2bf83tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 9.89:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 10.78:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 9.89:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 9.40:1 | AAA |
| Accent | 10.78:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Smoggy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.021 92.583);
--muted: oklch(0.921 0.01 39.44);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.021 92.583);
--card: oklch(1 0 180);
--card-foreground: oklch(0.175 0.021 92.583);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.806 0.08 91.771);
--primary-foreground: oklch(0.201 0.024 91.656);
--secondary: oklch(0.729 0.077 39.212);
--secondary-foreground: oklch(0.179 0.023 39.227);
--accent: oklch(0.832 0.105 120.177);
--accent-foreground: oklch(0.209 0.031 120.641);
--destructive: oklch(0.416 0.149 32.119);
--destructive-foreground: oklch(0.897 0.049 29.757);
--ring: oklch(0.806 0.08 91.771);
--chart-1: oklch(0.806 0.08 91.771);
--chart-2: oklch(0.729 0.077 39.212);
--chart-3: oklch(0.832 0.105 120.177);
--chart-4: oklch(0.753 0.069 39.221);
--chart-5: oklch(0.811 0.085 91.744);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.013 96.605);
--foreground: oklch(0.98 0.005 91.45);
--muted: oklch(0.213 0.015 39.247);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.1 0.013 96.605);
--popover-foreground: oklch(0.98 0.005 91.45);
--card: oklch(0.1 0.013 96.605);
--card-foreground: oklch(0.98 0.005 91.45);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.806 0.08 91.771);
--primary-foreground: oklch(0.201 0.024 91.656);
--secondary: oklch(0.729 0.077 39.212);
--secondary-foreground: oklch(0.179 0.023 39.227);
--accent: oklch(0.832 0.105 120.177);
--accent-foreground: oklch(0.209 0.031 120.641);
--destructive: oklch(0.654 0.201 32.356);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.806 0.08 91.771);
--chart-1: oklch(0.806 0.08 91.771);
--chart-2: oklch(0.729 0.077 39.212);
--chart-3: oklch(0.832 0.105 120.177);
--chart-4: oklch(0.753 0.069 39.221);
--chart-5: oklch(0.811 0.085 91.744);
}