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

Go to generator

10000+Themes for shadcn/ui

Live for shadcn/ui

Live is a shadcn/ui theme built around a neutral gray primary color (#443b3b) with neutral gray accents (#3b3b44). The light mode uses a neutral background (#fcf7f7). Dark mode keeps the neutral gray primary (#443b3b) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fcf7f7snow
#040101black
Foreground
#160404black
#fdfbfbsnow
Card
#fcf7f7snow
#040101black
Card foreground
#160404black
#fdfbfbsnow
Popover
#fcf7f7snow
#040101black
Popover foreground
#160404black
#fdfbfbsnow
Primary
#443b3bdarkslategray
#443b3bdarkslategray
Primary foreground
#dbd6d6gainsboro
#dbd6d6gainsboro
Secondary
#3b443bdarkslategray
#3b443bdarkslategray
Secondary foreground
#d6dbd6gainsboro
#d6dbd6gainsboro
Muted
#dae1dagainsboro
#1e251eblack
Muted foreground
#4b534bdarkslategray
#acb4acdarkgray
Accent
#3b3b44darkslategray
#3b3b44darkslategray
Accent foreground
#d6d6dbgainsboro
#d6d6dbgainsboro
Destructive
#9d3e07saddlebrown
#f67328tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#443b3bdarkslategray
#443b3bdarkslategray

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card18.85:1AAA
Primary button7.51:1AAA
Secondary button7.18:1AAA
Muted text5.99:1AA
Accent7.61:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button7.51:1AAA
Secondary button7.18:1AAA
Muted text7.40:1AAA
Accent7.61:1AAA
Destructive7.41:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 17.248);
  --foreground: oklch(0.141 0.037 23.114);
  --muted: oklch(0.904 0.013 145.471);
  --muted-foreground: oklch(0.433 0.016 145.286);
  --popover: oklch(0.981 0.005 17.248);
  --popover-foreground: oklch(0.141 0.037 23.114);
  --card: oklch(0.981 0.005 17.248);
  --card-foreground: oklch(0.141 0.037 23.114);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.363 0.012 17.742);
  --primary-foreground: oklch(0.881 0.006 17.269);
  --secondary: oklch(0.376 0.019 145.185);
  --secondary-foreground: oklch(0.887 0.009 145.497);
  --accent: oklch(0.357 0.015 285.598);
  --accent-foreground: oklch(0.878 0.007 286.249);
  --destructive: oklch(0.487 0.139 43.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.363 0.012 17.742);
  --chart-1: oklch(0.363 0.012 17.742);
  --chart-2: oklch(0.376 0.019 145.185);
  --chart-3: oklch(0.357 0.015 285.598);
  --chart-4: oklch(0.406 0.021 145.177);
  --chart-5: oklch(0.36 0.018 18.023);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.014 20.589);
  --foreground: oklch(0.991 0.002 17.192);
  --muted: oklch(0.254 0.017 145.05);
  --muted-foreground: oklch(0.761 0.014 145.434);
  --popover: oklch(0.082 0.014 20.589);
  --popover-foreground: oklch(0.991 0.002 17.192);
  --card: oklch(0.082 0.014 20.589);
  --card-foreground: oklch(0.991 0.002 17.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.363 0.012 17.742);
  --primary-foreground: oklch(0.881 0.006 17.269);
  --secondary: oklch(0.376 0.019 145.185);
  --secondary-foreground: oklch(0.887 0.009 145.497);
  --accent: oklch(0.357 0.015 285.598);
  --accent-foreground: oklch(0.878 0.007 286.249);
  --destructive: oklch(0.702 0.18 46.044);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.363 0.012 17.742);
  --chart-1: oklch(0.363 0.012 17.742);
  --chart-2: oklch(0.376 0.019 145.185);
  --chart-3: oklch(0.357 0.015 285.598);
  --chart-4: oklch(0.406 0.021 145.177);
  --chart-5: oklch(0.36 0.018 18.023);
}