Tobacco is a shadcn/ui theme built around a muted deep orange primary color (#48403c) with muted deep yellow accents (#48463c). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted deep orange primary (#48403c) on a neutral background (#080402).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #080402black |
| Foreground | #130a06black | #fdfcfcsnow |
| Card | #fefcfbsnow | #080402black |
| Card foreground | #130a06black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #080402black |
| Popover foreground | #130a06black | #fdfcfcsnow |
| Primary | #48403cdarkslategray | #48403cdarkslategray |
| Primary foreground | #dfdad8gainsboro | #dfdad8gainsboro |
| Secondary | #483c3fdarkslategray | #483c3fdarkslategray |
| Secondary foreground | #dfd8d9gainsboro | #dfd8d9gainsboro |
| Muted | #f3edeewhitesmoke | #120c0eblack |
| Muted foreground | #5f5356dimgray | #aca0a2darkgray |
| Accent | #48463cdarkslategray | #48463cdarkslategray |
| Accent foreground | #dfddd8gainsboro | #dfddd8gainsboro |
| Destructive | #742407maroon | #f2551corangered |
| Destructive foreground | #fbc5b2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #48403cdarkslategray | #48403cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Tobacco in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 44.956);
--foreground: oklch(0.157 0.019 46.985);
--muted: oklch(0.95 0.006 3.367);
--muted-foreground: oklch(0.455 0.017 4.172);
--popover: oklch(0.992 0.003 44.956);
--popover-foreground: oklch(0.157 0.019 46.985);
--card: oklch(0.992 0.003 44.956);
--card-foreground: oklch(0.157 0.019 46.985);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.378 0.013 44.664);
--primary-foreground: oklch(0.891 0.006 44.917);
--secondary: oklch(0.371 0.017 4.405);
--secondary-foreground: oklch(0.888 0.007 3.404);
--accent: oklch(0.393 0.016 95.46);
--accent-foreground: oklch(0.898 0.007 95.126);
--destructive: oklch(0.38 0.118 37.84);
--destructive-foreground: oklch(0.866 0.067 40.912);
--ring: oklch(0.378 0.013 44.664);
--chart-1: oklch(0.378 0.013 44.664);
--chart-2: oklch(0.371 0.017 4.405);
--chart-3: oklch(0.393 0.016 95.46);
--chart-4: oklch(0.399 0.019 4.429);
--chart-5: oklch(0.378 0.017 44.573);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.012 52.259);
--foreground: oklch(0.992 0 44.978);
--muted: oklch(0.164 0.01 4.833);
--muted-foreground: oklch(0.716 0.015 3.745);
--popover: oklch(0.114 0.012 52.259);
--popover-foreground: oklch(0.992 0 44.978);
--card: oklch(0.114 0.012 52.259);
--card-foreground: oklch(0.992 0 44.978);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.378 0.013 44.664);
--primary-foreground: oklch(0.891 0.006 44.917);
--secondary: oklch(0.371 0.017 4.405);
--secondary-foreground: oklch(0.888 0.007 3.404);
--accent: oklch(0.393 0.016 95.46);
--accent-foreground: oklch(0.898 0.007 95.126);
--destructive: oklch(0.656 0.202 37.869);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.378 0.013 44.664);
--chart-1: oklch(0.378 0.013 44.664);
--chart-2: oklch(0.371 0.017 4.405);
--chart-3: oklch(0.393 0.016 95.46);
--chart-4: oklch(0.399 0.019 4.429);
--chart-5: oklch(0.378 0.017 44.573);
}