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.
Monokai Vibrant is a shadcn/ui theme built around a muted light blue primary color (#d7dae0) with muted deep blue accents (#373a49). The light mode uses a blue-tinted background (#16171d). Dark mode keeps the muted light blue primary (#d7dae0) on a blue-tinted background (#16171d).
| Token | Light | Dark |
|---|---|---|
| Background | #16171dblack | #16171dblack |
| Foreground | #f8f8f1whitesmoke | #f8f8f1whitesmoke |
| Card | #121217black | #121217black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #0f1014black | #0f1014black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #d7dae0gainsboro | #d7dae0gainsboro |
| Primary foreground | #3a3f4bdarkslategray | #3a3f4bdarkslategray |
| Secondary | #3e3f42darkslategray | #3e3f42darkslategray |
| Secondary foreground | #d8d8dagainsboro | #d8d8dagainsboro |
| Muted | #22232bdarkslategray | #22232bdarkslategray |
| Muted foreground | #9b9eb0darkgray | #9b9eb0darkgray |
| Accent | #373a49darkslategray | #373a49darkslategray |
| Accent foreground | #d3d5delightgrey | #d3d5delightgrey |
| Destructive | #f04a38tomato | #f04a38tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #252528darkslategray | #252528darkslategray |
| Input | #2c2d30darkslategray | #2c2d30darkslategray |
| Ring | #d7dae0gainsboro | #d7dae0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.76:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.65:1 | AA Large |
| Text on background | 16.76:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Monokai Vibrant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.206 0.012 277.394);
--foreground: oklch(0.979 0.01 106.577);
--muted: oklch(0.258 0.015 277.423);
--muted-foreground: oklch(0.703 0.027 277.74);
--popover: oklch(0.175 0.009 277.532);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.185 0.01 277.479);
--card-foreground: oklch(1 0 180);
--border: oklch(0.266 0.005 278.049);
--input: oklch(0.296 0.006 278.036);
--primary: oklch(0.887 0.009 264.517);
--primary-foreground: oklch(0.369 0.021 264.27);
--secondary: oklch(0.368 0.005 264.508);
--secondary-foreground: oklch(0.883 0.002 264.543);
--accent: oklch(0.35 0.027 277.095);
--accent-foreground: oklch(0.874 0.013 278.107);
--destructive: oklch(0.643 0.205 29.973);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.009 264.517);
--chart-1: oklch(0.887 0.009 264.517);
--chart-2: oklch(0.368 0.005 264.508);
--chart-3: oklch(0.35 0.027 277.095);
--chart-4: oklch(0.396 0.005 264.507);
--chart-5: oklch(0.886 0.011 264.508);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.206 0.012 277.394);
--foreground: oklch(0.979 0.01 106.577);
--muted: oklch(0.258 0.015 277.423);
--muted-foreground: oklch(0.703 0.027 277.74);
--popover: oklch(0.175 0.009 277.532);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.185 0.01 277.479);
--card-foreground: oklch(1 0 180);
--border: oklch(0.266 0.005 278.049);
--input: oklch(0.296 0.006 278.036);
--primary: oklch(0.887 0.009 264.517);
--primary-foreground: oklch(0.369 0.021 264.27);
--secondary: oklch(0.368 0.005 264.508);
--secondary-foreground: oklch(0.883 0.002 264.543);
--accent: oklch(0.35 0.027 277.095);
--accent-foreground: oklch(0.874 0.013 278.107);
--destructive: oklch(0.643 0.205 29.973);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.009 264.517);
--chart-1: oklch(0.887 0.009 264.517);
--chart-2: oklch(0.368 0.005 264.508);
--chart-3: oklch(0.35 0.027 277.095);
--chart-4: oklch(0.396 0.005 264.507);
--chart-5: oklch(0.886 0.011 264.508);
}