Smoking is a shadcn/ui theme built around an indigo primary color (#584ba0) with neutral gray accents (#d3d3d5). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#584ba0) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #040212black | #f9f8fcghostwhite |
| Card | #f8f7fdghostwhite | #040307black |
| Card foreground | #03020eblack | #fcfbfdsnow |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #040212black | #f9f8fcghostwhite |
| Primary | #584ba0rebeccapurple | #584ba0rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d3d3d5lightgrey | #1c1c1cblack |
| Secondary foreground | #3a393cdarkslategray | #b5b4b6silver |
| Muted | #e2e0ebgainsboro | #16141fblack |
| Muted foreground | #606062dimgray | #9d9d9fdarkgray |
| Accent | #d3d3d5lightgrey | #1c1c1cblack |
| Accent foreground | #3a393cdarkslategray | #b5b4b6silver |
| Destructive | #8d2401darkred | #fd5c26tomato |
| Destructive foreground | #fed1c2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #584ba0rebeccapurple | #584ba0rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 4.80:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.17:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 6.73:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.71:1 | AA |
Paste this into your globals.css to use Smoking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.225);
--foreground: oklch(0.11 0.043 288.349);
--muted: oklch(0.911 0.015 292.991);
--muted-foreground: oklch(0.49 0.003 293.188);
--popover: oklch(0.989 0.004 293.225);
--popover-foreground: oklch(0.11 0.043 288.349);
--card: oklch(0.978 0.009 293.142);
--card-foreground: oklch(0.099 0.037 289.496);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.469 0.132 287.06);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.867 0.002 293.254);
--secondary-foreground: oklch(0.348 0.004 293.087);
--accent: oklch(0.867 0.002 293.254);
--accent-foreground: oklch(0.348 0.004 293.087);
--destructive: oklch(0.428 0.146 35.936);
--destructive-foreground: oklch(0.897 0.055 39.26);
--ring: oklch(0.469 0.132 287.06);
--chart-1: oklch(0.469 0.132 287.06);
--chart-2: oklch(0.867 0.002 293.254);
--chart-3: oklch(0.867 0.002 293.254);
--chart-4: oklch(0.891 0.002 293.265);
--chart-5: oklch(0.463 0.142 286.318);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.01 292.399);
--foreground: oklch(0.98 0.005 293.205);
--muted: oklch(0.198 0.022 291.087);
--muted-foreground: oklch(0.697 0.003 293.23);
--popover: oklch(0.083 0.01 292.399);
--popover-foreground: oklch(0.98 0.005 293.205);
--card: oklch(0.105 0.012 292.399);
--card-foreground: oklch(0.99 0.003 293.256);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.469 0.132 287.06);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.226 0.001 293.216);
--secondary-foreground: oklch(0.772 0.002 293.255);
--accent: oklch(0.226 0.001 293.216);
--accent-foreground: oklch(0.772 0.002 293.255);
--destructive: oklch(0.681 0.206 37.364);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.469 0.132 287.06);
--chart-1: oklch(0.469 0.132 287.06);
--chart-2: oklch(0.226 0.001 293.216);
--chart-3: oklch(0.226 0.001 293.216);
--chart-4: oklch(0.258 0.001 293.209);
--chart-5: oklch(0.463 0.142 286.318);
}