Tugboat is a shadcn/ui theme built around a vivid violet primary color (#5e17ab) with vivid green accents (#63ab17). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#5e17ab) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #030104black |
| Foreground | #050208black | #fcfcfdwhite |
| Card | #faf7fdghostwhite | #030104black |
| Card foreground | #050208black | #fcfcfdwhite |
| Popover | #faf7fdghostwhite | #030104black |
| Popover foreground | #050208black | #fcfcfdwhite |
| Primary | #5e17abrebeccapurple | #5e17abrebeccapurple |
| Primary foreground | #faf6feghostwhite | #faf6feghostwhite |
| Secondary | #63ab17olivedrab | #63ab17olivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #dbded9gainsboro | #242621black |
| Muted foreground | #666a62dimgray | #999d95darkgray |
| Accent | #63ab17olivedrab | #63ab17olivedrab |
| Accent foreground | #000000black | #000000black |
| Destructive | #b03403firebrick | #fc6022tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e17abrebeccapurple | #5e17abrebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 8.98:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 4.06:1 | AA Large |
| Accent | 7.33:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 8.98:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use Tugboat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 307.701);
--foreground: oklch(0.101 0.023 309.369);
--muted: oklch(0.897 0.007 127.884);
--muted-foreground: oklch(0.519 0.013 128.097);
--popover: oklch(0.98 0.007 307.701);
--popover-foreground: oklch(0.101 0.023 309.369);
--card: oklch(0.98 0.007 307.701);
--card-foreground: oklch(0.101 0.023 309.369);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.417 0.207 297.96);
--primary-foreground: oklch(0.978 0.011 307.658);
--secondary: oklch(0.667 0.182 133.461);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.667 0.182 133.461);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.507 0.168 37.121);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.417 0.207 297.96);
--chart-1: oklch(0.417 0.207 297.96);
--chart-2: oklch(0.667 0.182 133.461);
--chart-3: oklch(0.667 0.182 133.461);
--chart-4: oklch(0.705 0.193 133.516);
--chart-5: oklch(0.418 0.211 297.364);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.017 309.202);
--foreground: oklch(0.991 0.002 307.77);
--muted: oklch(0.265 0.01 128.226);
--muted-foreground: oklch(0.691 0.013 128.004);
--popover: oklch(0.082 0.017 309.202);
--popover-foreground: oklch(0.991 0.002 307.77);
--card: oklch(0.082 0.017 309.202);
--card-foreground: oklch(0.991 0.002 307.77);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.417 0.207 297.96);
--primary-foreground: oklch(0.978 0.011 307.658);
--secondary: oklch(0.667 0.182 133.461);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.667 0.182 133.461);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.684 0.202 39.196);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.417 0.207 297.96);
--chart-1: oklch(0.417 0.207 297.96);
--chart-2: oklch(0.667 0.182 133.461);
--chart-3: oklch(0.667 0.182 133.461);
--chart-4: oklch(0.705 0.193 133.516);
--chart-5: oklch(0.418 0.211 297.364);
}