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.
Silo is a shadcn/ui theme built around a muted red primary color (#c9a6ad) with muted blue accents (#a6adc9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#c9a6ad) on a red-tinted background (#0e0708).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0708black |
| Foreground | #140609black | #ffffffwhite |
| Card | #fcfcfcsnow | #11080ablack |
| Card foreground | #100507black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0708black |
| Popover foreground | #140609black | #ffffffwhite |
| Primary | #c9a6addarkgray | #c9a6addarkgray |
| Primary foreground | #26171ablack | #26171ablack |
| Secondary | #adc9a6darkgray | #adc9a6darkgray |
| Secondary foreground | #1a2617black | #1a2617black |
| Muted | #e1e7dfgainsboro | #1a2018black |
| Muted foreground | #3f483ddarkslategray | #bac2b7silver |
| Accent | #a6adc9darkgray | #a6adc9darkgray |
| Accent foreground | #171a26black | #171a26black |
| Destructive | #a32d05firebrick | #e43e07orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9a6addarkgray | #c9a6addarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.78:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.78:1 | AAA |
| Muted text | 9.11:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Silo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.026 6.089);
--muted: oklch(0.92 0.012 139.441);
--muted-foreground: oklch(0.389 0.021 139.433);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.026 6.089);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.023 4.654);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.758 0.043 4.68);
--primary-foreground: oklch(0.226 0.025 6.144);
--secondary: oklch(0.806 0.058 139.432);
--secondary-foreground: oklch(0.253 0.033 139.453);
--accent: oklch(0.751 0.042 274.281);
--accent-foreground: oklch(0.221 0.024 273.395);
--destructive: oklch(0.477 0.161 35.817);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.043 4.68);
--chart-1: oklch(0.758 0.043 4.68);
--chart-2: oklch(0.806 0.058 139.432);
--chart-3: oklch(0.751 0.042 274.281);
--chart-4: oklch(0.827 0.052 139.432);
--chart-5: oklch(0.756 0.048 4.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 4.132);
--foreground: oklch(1 0 180);
--muted: oklch(0.234 0.016 139.432);
--muted-foreground: oklch(0.804 0.017 139.439);
--popover: oklch(0.138 0.014 4.132);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.017 5.539);
--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.758 0.043 4.68);
--primary-foreground: oklch(0.226 0.025 6.144);
--secondary: oklch(0.806 0.058 139.432);
--secondary-foreground: oklch(0.253 0.033 139.453);
--accent: oklch(0.751 0.042 274.281);
--accent-foreground: oklch(0.221 0.024 273.395);
--destructive: oklch(0.607 0.209 35.251);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.043 4.68);
--chart-1: oklch(0.758 0.043 4.68);
--chart-2: oklch(0.806 0.058 139.432);
--chart-3: oklch(0.751 0.042 274.281);
--chart-4: oklch(0.827 0.052 139.432);
--chart-5: oklch(0.756 0.048 4.869);
}