Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Pentagon for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button11.17:1AAA
Secondary button9.14:1AAA
Muted text5.41:1AA
Accent13.22:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button11.17:1AAA
Secondary button9.14:1AAA
Muted text6.67:1AA
Accent13.22:1AAA
Destructive4.26:1AA Large

CSS variables

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);
}