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.
Pentagon is a shadcn/ui theme built around a light green primary color (#effaf3) with light orange accents (#faf3ef). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#effaf3) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020402black |
| Foreground | #010502black | #f9fafaghostwhite |
| Card | #ffffffwhite | #020402black |
| Card foreground | #010502black | #f9fafaghostwhite |
| Popover | #ffffffwhite | #020402black |
| Popover foreground | #010502black | #f9fafaghostwhite |
| Primary | #effaf3honeydew | #effaf3honeydew |
| Primary foreground | #133f22darkgreen | #133f22darkgreen |
| Secondary | #f3effawhitesmoke | #f3effawhitesmoke |
| Secondary foreground | #4d2a8ddarkslateblue | #4d2a8ddarkslateblue |
| Muted | #e2e0e6gainsboro | #1b191fblack |
| Muted foreground | #5a5760dimgray | #a29fa8darkgray |
| Accent | #faf3efseashell | #faf3efseashell |
| Accent foreground | #3f2213black | #3f2213black |
| Destructive | #7f0a0amaroon | #ed2626crimson |
| Destructive foreground | #fac2c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #effaf3honeydew | #effaf3honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 11.17:1 | AAA |
| Secondary button | 9.14:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 13.22:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 11.17:1 | AAA |
| Secondary button | 9.14:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 13.22:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Pentagon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.019 157.6);
--muted: oklch(0.91 0.008 302.078);
--muted-foreground: oklch(0.464 0.015 301.7);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.019 157.6);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.019 157.6);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.976 0.015 157.661);
--primary-foreground: oklch(0.328 0.07 151.95);
--secondary: oklch(0.959 0.015 301.965);
--secondary-foreground: oklch(0.39 0.155 294.096);
--accent: oklch(0.969 0.009 50.536);
--accent-foreground: oklch(0.287 0.051 48.156);
--destructive: oklch(0.381 0.148 28.126);
--destructive-foreground: oklch(0.863 0.065 18.488);
--ring: oklch(0.976 0.015 157.661);
--chart-1: oklch(0.976 0.015 157.661);
--chart-2: oklch(0.959 0.015 301.965);
--chart-3: oklch(0.969 0.009 50.536);
--chart-4: oklch(0.99 0.004 302.154);
--chart-5: oklch(0.976 0.016 157.642);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 157.776);
--foreground: oklch(0.985 0.002 157.953);
--muted: oklch(0.219 0.011 301.411);
--muted-foreground: oklch(0.707 0.014 301.91);
--popover: oklch(0.096 0.01 157.776);
--popover-foreground: oklch(0.985 0.002 157.953);
--card: oklch(0.096 0.01 157.776);
--card-foreground: oklch(0.985 0.002 157.953);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.976 0.015 157.661);
--primary-foreground: oklch(0.328 0.07 151.95);
--secondary: oklch(0.959 0.015 301.965);
--secondary-foreground: oklch(0.39 0.155 294.096);
--accent: oklch(0.969 0.009 50.536);
--accent-foreground: oklch(0.287 0.051 48.156);
--destructive: oklch(0.609 0.23 27.59);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.015 157.661);
--chart-1: oklch(0.976 0.015 157.661);
--chart-2: oklch(0.959 0.015 301.965);
--chart-3: oklch(0.969 0.009 50.536);
--chart-4: oklch(0.99 0.004 302.154);
--chart-5: oklch(0.976 0.016 157.642);
}