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

Go to generator

10000+Themes for shadcn/ui

Pleasing for shadcn/ui

Pleasing is a shadcn/ui theme built around a neutral gray primary color (#878787) with neutral gray accents (#878787). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#878787) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#080202black
#f8f7f7whitesmoke
Card
#fefbfbsnow
#040101black
Card foreground
#080202black
#f8f7f7whitesmoke
Popover
#fefbfbsnow
#040101black
Popover foreground
#080202black
#f8f7f7whitesmoke
Primary
#878787gray
#878787gray
Primary foreground
#000000black
#000000black
Secondary
#878787gray
#878787gray
Secondary foreground
#000000black
#000000black
Muted
#e7dfdfgainsboro
#201818black
Muted foreground
#6b6161dimgray
#9e9494rosybrown
Accent
#878787gray
#878787gray
Accent foreground
#000000black
#000000black
Destructive
#c52902firebrick
#ed3102orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#878787gray
#878787gray

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button5.85:1AA
Secondary button5.85:1AA
Muted text4.57:1AA
Accent5.85:1AA
Destructive5.69:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button5.85:1AA
Secondary button5.85:1AA
Muted text5.89:1AA
Accent5.85:1AA
Destructive4.15:1AA Large

CSS variables

Paste this into your globals.css to use Pleasing in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.221);
  --foreground: oklch(0.105 0.016 20.126);
  --muted: oklch(0.91 0.008 17.303);
  --muted-foreground: oklch(0.502 0.013 17.597);
  --popover: oklch(0.99 0.004 17.221);
  --popover-foreground: oklch(0.105 0.016 20.126);
  --card: oklch(0.99 0.004 17.221);
  --card-foreground: oklch(0.105 0.016 20.126);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.624 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.624 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.624 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.535 0.196 33.11);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0 180);
  --chart-1: oklch(0.624 0 180);
  --chart-2: oklch(0.624 0 180);
  --chart-3: oklch(0.624 0 180);
  --chart-4: oklch(0.649 0 169.695);
  --chart-5: oklch(0.618 0.009 17.392);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 19.87);
  --foreground: oklch(0.976 0.002 17.189);
  --muted: oklch(0.22 0.012 18.079);
  --muted-foreground: oklch(0.675 0.012 17.457);
  --popover: oklch(0.084 0.012 19.87);
  --popover-foreground: oklch(0.976 0.002 17.189);
  --card: oklch(0.084 0.012 19.87);
  --card-foreground: oklch(0.976 0.002 17.189);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.624 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.624 0 180);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.624 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.614 0.226 32.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0 180);
  --chart-1: oklch(0.624 0 180);
  --chart-2: oklch(0.624 0 180);
  --chart-3: oklch(0.624 0 180);
  --chart-4: oklch(0.649 0 169.695);
  --chart-5: oklch(0.618 0.009 17.392);
}