Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Tugboat is a shadcn/ui theme built around a light pink primary color (#f4dde4) with light blue accents (#dde4f4). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the light pink primary (#f4dde4) on a pink-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0b0406black |
| Foreground | #100508black | #ffffffwhite |
| Card | #faf4f6whitesmoke | #0f0609black |
| Card foreground | #0c0406black | #ffffffwhite |
| Popover | #fcf8f9snow | #0b0406black |
| Popover foreground | #100508black | #ffffffwhite |
| Primary | #f4dde4mistyrose | #f4dde4mistyrose |
| Primary foreground | #772841brown | #772841brown |
| Secondary | #e4f4ddbeige | #e4f4ddbeige |
| Secondary foreground | #172a0eblack | #172a0eblack |
| Muted | #e8f3e2beige | #111d0cblack |
| Muted foreground | #646c60dimgray | #979f93darkgray |
| Accent | #dde4f4lavender | #dde4f4lavender |
| Accent foreground | #284177darkslateblue | #284177darkslateblue |
| Destructive | #771d08maroon | #f0512dtomato |
| Destructive foreground | #fac4b7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4dde4mistyrose | #f4dde4mistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.01:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 13.25:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.95:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 13.25:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Tugboat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 355.756);
--foreground: oklch(0.135 0.024 356.942);
--muted: oklch(0.951 0.025 135.54);
--muted-foreground: oklch(0.521 0.021 135.609);
--popover: oklch(0.982 0.005 355.756);
--popover-foreground: oklch(0.135 0.024 356.942);
--card: oklch(0.973 0.007 355.829);
--card-foreground: oklch(0.121 0.02 355.512);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.917 0.027 356.449);
--primary-foreground: oklch(0.401 0.113 4.178);
--secondary: oklch(0.948 0.035 135.588);
--secondary-foreground: oklch(0.261 0.055 136.751);
--accent: oklch(0.918 0.023 265.878);
--accent-foreground: oklch(0.383 0.097 263.725);
--destructive: oklch(0.378 0.128 33.607);
--destructive-foreground: oklch(0.864 0.065 32.879);
--ring: oklch(0.917 0.027 356.449);
--chart-1: oklch(0.917 0.027 356.449);
--chart-2: oklch(0.948 0.035 135.588);
--chart-3: oklch(0.918 0.023 265.878);
--chart-4: oklch(0.965 0.023 135.531);
--chart-5: oklch(0.916 0.029 356.499);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 355.449);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.035 136.309);
--muted-foreground: oklch(0.693 0.02 135.553);
--popover: oklch(0.124 0.016 355.449);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.018 356.719);
--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.917 0.027 356.449);
--primary-foreground: oklch(0.401 0.113 4.178);
--secondary: oklch(0.948 0.035 135.588);
--secondary-foreground: oklch(0.261 0.055 136.751);
--accent: oklch(0.918 0.023 265.878);
--accent-foreground: oklch(0.383 0.097 263.725);
--destructive: oklch(0.65 0.202 34.016);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.917 0.027 356.449);
--chart-1: oklch(0.917 0.027 356.449);
--chart-2: oklch(0.948 0.035 135.588);
--chart-3: oklch(0.918 0.023 265.878);
--chart-4: oklch(0.965 0.023 135.531);
--chart-5: oklch(0.916 0.029 356.499);
}