Smoggy is a shadcn/ui theme built around a muted violet primary color (#695a77) with muted teal accents (#5a7769). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#695a77) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #08030dblack | #f7f4fawhitesmoke |
| Card | #fcfcfcsnow | #08050bblack |
| Card foreground | #050208black | #faf8fcghostwhite |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #08030dblack | #f7f4fawhitesmoke |
| Primary | #695a77dimgray | #695a77dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #77695adimgray | #77695adimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7dcd0gainsboro | #2f2418black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #5a7769dimgray | #5a7769dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d2b0dsaddlebrown | #d04716chocolate |
| Destructive foreground | #f9d1c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #695a77dimgray | #695a77dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 5.30:1 | AA |
| Muted text | 6.86:1 | AA |
| Accent | 4.90:1 | AA |
| Destructive | 6.74:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 5.30:1 | AA |
| Muted text | 7.61:1 | AAA |
| Accent | 4.90:1 | AA |
| Destructive | 4.56:1 | AA |
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.114 0.031 310.698);
--muted: oklch(0.899 0.021 69.413);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.031 310.698);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.027 311.141);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.493 0.049 308.072);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.029 69.003);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.543 0.04 163.838);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.406 0.12 38.403);
--destructive-foreground: oklch(0.891 0.049 40.988);
--ring: oklch(0.493 0.049 308.072);
--chart-1: oklch(0.493 0.049 308.072);
--chart-2: oklch(0.53 0.029 69.003);
--chart-3: oklch(0.543 0.04 163.838);
--chart-4: oklch(0.557 0.031 68.997);
--chart-5: oklch(0.488 0.06 307.825);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.015 310.197);
--foreground: oklch(0.972 0.009 309.033);
--muted: oklch(0.27 0.027 68.131);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.107 0.015 310.197);
--popover-foreground: oklch(0.972 0.009 309.033);
--card: oklch(0.122 0.017 310.167);
--card-foreground: oklch(0.982 0.006 309.065);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.493 0.049 308.072);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.029 69.003);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.543 0.04 163.838);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.584 0.181 37.779);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.493 0.049 308.072);
--chart-1: oklch(0.493 0.049 308.072);
--chart-2: oklch(0.53 0.029 69.003);
--chart-3: oklch(0.543 0.04 163.838);
--chart-4: oklch(0.557 0.031 68.997);
--chart-5: oklch(0.488 0.06 307.825);
}