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.
Musty is a shadcn/ui theme built around a muted light yellow primary color (#d2cdb7) with muted light blue accents (#b7bbd2). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted light yellow primary (#d2cdb7) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #040301black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #fcfbf8snow | #040301black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #040301black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #d2cdb7silver | #d2cdb7silver |
| Primary foreground | #353221darkslategray | #353221darkslategray |
| Secondary | #b7bbd2lightsteelblue | #b7bbd2lightsteelblue |
| Secondary foreground | #212535darkslategray | #212535darkslategray |
| Muted | #f1f1f4whitesmoke | #0b0c0eblack |
| Muted foreground | #3d404cdarkslategray | #b3b5c2silver |
| Accent | #b7bbd2lightsteelblue | #b7bbd2lightsteelblue |
| Accent foreground | #212535darkslategray | #212535darkslategray |
| Destructive | #be2709firebrick | #f54f2etomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2cdb7silver | #d2cdb7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.60:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Musty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 97.323);
--foreground: oklch(0.101 0.013 101.142);
--muted: oklch(0.959 0.003 277.214);
--muted-foreground: oklch(0.373 0.022 276.378);
--popover: oklch(0.989 0.005 97.323);
--popover-foreground: oklch(0.101 0.013 101.142);
--card: oklch(0.989 0.005 97.323);
--card-foreground: oklch(0.101 0.013 101.142);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.847 0.031 97.712);
--primary-foreground: oklch(0.316 0.028 98.181);
--secondary: oklch(0.797 0.032 276.67);
--secondary-foreground: oklch(0.268 0.031 275.347);
--accent: oklch(0.797 0.032 276.67);
--accent-foreground: oklch(0.268 0.031 275.347);
--destructive: oklch(0.521 0.19 32.352);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.847 0.031 97.712);
--chart-1: oklch(0.847 0.031 97.712);
--chart-2: oklch(0.797 0.032 276.67);
--chart-3: oklch(0.797 0.032 276.67);
--chart-4: oklch(0.824 0.028 276.774);
--chart-5: oklch(0.85 0.035 97.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 100.436);
--foreground: oklch(0.993 0.001 97.269);
--muted: oklch(0.154 0.005 276.788);
--muted-foreground: oklch(0.775 0.018 276.928);
--popover: oklch(0.099 0.01 100.436);
--popover-foreground: oklch(0.993 0.001 97.269);
--card: oklch(0.099 0.01 100.436);
--card-foreground: oklch(0.993 0.001 97.269);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.847 0.031 97.712);
--primary-foreground: oklch(0.316 0.028 98.181);
--secondary: oklch(0.797 0.032 276.67);
--secondary-foreground: oklch(0.268 0.031 275.347);
--accent: oklch(0.797 0.032 276.67);
--accent-foreground: oklch(0.268 0.031 275.347);
--destructive: oklch(0.655 0.208 33.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.847 0.031 97.712);
--chart-1: oklch(0.847 0.031 97.712);
--chart-2: oklch(0.797 0.032 276.67);
--chart-3: oklch(0.797 0.032 276.67);
--chart-4: oklch(0.824 0.028 276.774);
--chart-5: oklch(0.85 0.035 97.761);
}