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.
Syntax Dark is a shadcn/ui theme built around a near-black primary color (#171717) with neutral gray accents (#3d3d3d). The light mode uses a neutral background (#171717). Dark mode keeps the near-black primary (#171717) on a neutral background (#171717).
| Token | Light | Dark |
|---|---|---|
| Background | #171717black | #171717black |
| Foreground | #bfbfbfsilver | #bfbfbfsilver |
| Card | #121212black | #121212black |
| Card foreground | #cccccclightgrey | #cccccclightgrey |
| Popover | #0f0f0fblack | #0f0f0fblack |
| Popover foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Primary | #171717black | #171717black |
| Primary foreground | #b0b0b0darkgray | #b0b0b0darkgray |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #2b2222darkslategray | #2b2222darkslategray |
| Muted foreground | #b09b9brosybrown | #b09b9brosybrown |
| Accent | #3d3d3ddarkslategray | #3d3d3ddarkslategray |
| Accent foreground | #d6d6d6lightgrey | #d6d6d6lightgrey |
| Destructive | #eb4d42tomato | #eb4d42tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #242424darkslategray | #242424darkslategray |
| Input | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Ring | #171717black | #171717black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.75:1 | AAA |
| Text on card | 11.67:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 3.69:1 | AA Large |
| Text on background | 9.75:1 | AAA |
| Text on card | 11.67:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Syntax Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.204 0 180);
--foreground: oklch(0.805 0 169.695);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.17 0 180);
--popover-foreground: oklch(0.885 0 180);
--card: oklch(0.182 0 164.055);
--card-foreground: oklch(0.845 0 164.055);
--border: oklch(0.259 0 167.471);
--input: oklch(0.29 0 180);
--primary: oklch(0.204 0 180);
--primary-foreground: oklch(0.757 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.361 0 180);
--accent-foreground: oklch(0.877 0 180);
--destructive: oklch(0.639 0.196 28.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.204 0 180);
--chart-1: oklch(0.204 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.361 0 180);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.203 0.002 17.337);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.204 0 180);
--foreground: oklch(0.805 0 169.695);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.17 0 180);
--popover-foreground: oklch(0.885 0 180);
--card: oklch(0.182 0 164.055);
--card-foreground: oklch(0.845 0 164.055);
--border: oklch(0.259 0 167.471);
--input: oklch(0.29 0 180);
--primary: oklch(0.204 0 180);
--primary-foreground: oklch(0.757 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.361 0 180);
--accent-foreground: oklch(0.877 0 180);
--destructive: oklch(0.639 0.196 28.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.204 0 180);
--chart-1: oklch(0.204 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.361 0 180);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.203 0.002 17.337);
}