Tobacco is a shadcn/ui theme built around an indigo primary color (#4935bb) with violet accents (#8c35bb). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the indigo primary (#4935bb) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #020104black |
| Foreground | #05040cblack | #ffffffwhite |
| Card | #f8f7fdghostwhite | #020104black |
| Card foreground | #05040cblack | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #020104black |
| Popover foreground | #05040cblack | #ffffffwhite |
| Primary | #4935bbrebeccapurple | #4935bbrebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3564bbsteelblue | #3564bbsteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0e6f0lavender | #0f151fblack |
| Muted foreground | #3e3f42darkslategray | #bdbfc1silver |
| Accent | #8c35bbdarkorchid | #8c35bbdarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d13105firebrick | #e03506orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4935bbrebeccapurple | #4935bbrebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 5.70:1 | AA |
| Muted text | 8.37:1 | AAA |
| Accent | 6.29:1 | AA |
| Destructive | 5.05:1 | AA |
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 5.70:1 | AA |
| Muted text | 9.95:1 | AAA |
| Accent | 6.29:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Tobacco in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.008 293.147);
--foreground: oklch(0.113 0.022 291.606);
--muted: oklch(0.923 0.015 263.018);
--muted-foreground: oklch(0.368 0.005 263.029);
--popover: oklch(0.978 0.008 293.147);
--popover-foreground: oklch(0.113 0.022 291.606);
--card: oklch(0.978 0.008 293.147);
--card-foreground: oklch(0.113 0.022 291.606);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.442 0.199 281.378);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.516 0.147 261.494);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.204 310.917);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.563 0.201 33.834);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.442 0.199 281.378);
--chart-1: oklch(0.442 0.199 281.378);
--chart-2: oklch(0.516 0.147 261.494);
--chart-3: oklch(0.515 0.204 310.917);
--chart-4: oklch(0.54 0.155 261.488);
--chart-5: oklch(0.439 0.207 280.408);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.012 292.114);
--foreground: oklch(1 0 180);
--muted: oklch(0.193 0.023 262.485);
--muted-foreground: oklch(0.803 0.004 263.046);
--popover: oklch(0.081 0.012 292.114);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.081 0.012 292.114);
--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.442 0.199 281.378);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.516 0.147 261.494);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.204 310.917);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.593 0.212 33.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.442 0.199 281.378);
--chart-1: oklch(0.442 0.199 281.378);
--chart-2: oklch(0.516 0.147 261.494);
--chart-3: oklch(0.515 0.204 310.917);
--chart-4: oklch(0.54 0.155 261.488);
--chart-5: oklch(0.439 0.207 280.408);
}