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 Dark Soda is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#4a4a4a). The light mode uses a neutral background (#242424). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#242424).
| Token | Light | Dark |
|---|---|---|
| Background | #242424darkslategray | #242424darkslategray |
| Foreground | #f8f8f2whitesmoke | #f8f8f2whitesmoke |
| Card | #1f1f1fblack | #1f1f1fblack |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #1c1c1cblack | #1c1c1cblack |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #332828darkslategray | #332828darkslategray |
| Muted foreground | #b7a4a4darkgray | #b7a4a4darkgray |
| Accent | #4a4a4adarkslategray | #4a4a4adarkslategray |
| Accent foreground | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Destructive | #dd260efirebrick | #dd260efirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #303030darkslategray | #303030darkslategray |
| Input | #383838darkslategray | #383838darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.61:1 | AAA |
| Text on card | 16.55:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 4.83:1 | AA |
| Text on background | 14.61:1 | AAA |
| Text on card | 16.55:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 4.83:1 | AA |
Paste this into your globals.css to use Monokai Dark Soda in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.259 0 167.471);
--foreground: oklch(0.977 0.008 106.548);
--muted: oklch(0.291 0.016 18.142);
--muted-foreground: oklch(0.734 0.023 17.686);
--popover: oklch(0.227 0 164.055);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.238 0 161.565);
--card-foreground: oklch(1 0 180);
--border: oklch(0.311 0 180);
--input: oklch(0.341 0 158.199);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.409 0 190.305);
--accent-foreground: oklch(0.916 0 180);
--destructive: oklch(0.577 0.218 30.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.409 0 190.305);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.259 0 167.471);
--foreground: oklch(0.977 0.008 106.548);
--muted: oklch(0.291 0.016 18.142);
--muted-foreground: oklch(0.734 0.023 17.686);
--popover: oklch(0.227 0 164.055);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.238 0 161.565);
--card-foreground: oklch(1 0 180);
--border: oklch(0.311 0 180);
--input: oklch(0.341 0 158.199);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.409 0 190.305);
--accent-foreground: oklch(0.916 0 180);
--destructive: oklch(0.577 0.218 30.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.409 0 190.305);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}