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.
Insubstantial is a shadcn/ui theme built around a red primary color (#bf6e7d) with muted light red accents (#e9e2e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#bf6e7d) on a red-tinted background (#0b0506).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0506black |
| Foreground | #140508black | #fbf9f9snow |
| Card | #fcfcfcsnow | #0e0608black |
| Card foreground | #100406black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #0e0608black |
| Popover foreground | #100406black | #fdfcfcsnow |
| Primary | #bf6e7dpalevioletred | #bf6e7dpalevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #e9e2e3gainsboro | #2f2225darkslategray |
| Secondary foreground | #574246darkslategray | #ccb8bcsilver |
| Muted | #e9d8dbgainsboro | #271619black |
| Muted foreground | #4b4949darkslategray | #b6b4b5silver |
| Accent | #e9e2e3gainsboro | #2f2225darkslategray |
| Accent foreground | #574246darkslategray | #ccb8bcsilver |
| Destructive | #ca4012firebrick | #eb4a14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bf6e7dpalevioletred | #bf6e7dpalevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 6.51:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 4.95:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.37:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Insubstantial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.029 7.396);
--muted: oklch(0.896 0.019 4.879);
--muted-foreground: oklch(0.408 0.002 4.443);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.133 0.025 6.021);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.133 0.025 6.021);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.104 8.721);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.919 0.008 4.541);
--secondary-foreground: oklch(0.403 0.03 6.261);
--accent: oklch(0.919 0.008 4.541);
--accent-foreground: oklch(0.403 0.03 6.261);
--destructive: oklch(0.565 0.182 36.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.104 8.721);
--chart-1: oklch(0.632 0.104 8.721);
--chart-2: oklch(0.919 0.008 4.541);
--chart-3: oklch(0.919 0.008 4.541);
--chart-4: oklch(0.943 0.006 4.467);
--chart-5: oklch(0.63 0.113 9.116);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 4.603);
--foreground: oklch(0.983 0.003 4.381);
--muted: oklch(0.225 0.028 7.612);
--muted-foreground: oklch(0.772 0.002 4.371);
--popover: oklch(0.137 0.016 5.437);
--popover-foreground: oklch(0.992 0.001 4.346);
--card: oklch(0.137 0.016 5.437);
--card-foreground: oklch(0.992 0.001 4.346);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.632 0.104 8.721);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.27 0.02 6.274);
--secondary-foreground: oklch(0.8 0.023 5.06);
--accent: oklch(0.27 0.02 6.274);
--accent-foreground: oklch(0.8 0.023 5.06);
--destructive: oklch(0.631 0.205 36.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.104 8.721);
--chart-1: oklch(0.632 0.104 8.721);
--chart-2: oklch(0.27 0.02 6.274);
--chart-3: oklch(0.27 0.02 6.274);
--chart-4: oklch(0.299 0.024 6.363);
--chart-5: oklch(0.63 0.113 9.116);
}