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

Go to generator

10000+Themes for shadcn/ui

Drab for shadcn/ui

Drab is a shadcn/ui theme built around a muted green primary color (#84b889) with muted red accents (#b88984). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the muted green primary (#84b889) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#040b05black
Foreground
#051407black
#fcfdfcwhite
Card
#f2fcf3honeydew
#060f06black
Card foreground
#041005black
#ffffffwhite
Popover
#f2fcf3honeydew
#060f06black
Popover foreground
#041005black
#ffffffwhite
Primary
#84b889darkseagreen
#84b889darkseagreen
Primary foreground
#040604black
#040604black
Secondary
#8984b8lightslategray
#8984b8lightslategray
Secondary foreground
#000000black
#000000black
Muted
#dfdeedlavender
#131221black
Muted foreground
#5f5d69dimgray
#9796a2darkgray
Accent
#b88984rosybrown
#b88984rosybrown
Accent foreground
#060404black
#060404black
Destructive
#aa1109firebrick
#f32b20crimson
Destructive foreground
#fee8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#84b889darkseagreen
#84b889darkseagreen

Contrast

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

Light mode
Text on background18.35:1AAA
Text on card18.54:1AAA
Primary button8.92:1AAA
Secondary button6.05:1AA
Muted text4.85:1AA
Accent6.78:1AA
Destructive6.43:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.48:1AAA
Primary button8.92:1AAA
Secondary button6.05:1AA
Muted text6.33:1AA
Accent6.78:1AA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 148.473);
  --foreground: oklch(0.173 0.035 146.547);
  --muted: oklch(0.906 0.021 290.579);
  --muted-foreground: oklch(0.485 0.019 290.266);
  --popover: oklch(0.982 0.016 148.411);
  --popover-foreground: oklch(0.157 0.03 146.925);
  --card: oklch(0.982 0.016 148.411);
  --card-foreground: oklch(0.157 0.03 146.925);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.734 0.087 147.164);
  --primary-foreground: oklch(0.119 0.011 147.988);
  --secondary: oklch(0.638 0.078 288.564);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.059 25.933);
  --accent-foreground: oklch(0.112 0.007 26.961);
  --destructive: oklch(0.469 0.184 29.429);
  --destructive-foreground: oklch(0.948 0.024 21.221);
  --ring: oklch(0.734 0.087 147.164);
  --chart-1: oklch(0.734 0.087 147.164);
  --chart-2: oklch(0.638 0.078 288.564);
  --chart-3: oklch(0.675 0.059 25.933);
  --chart-4: oklch(0.667 0.071 288.902);
  --chart-5: oklch(0.739 0.096 147.009);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.021 147.539);
  --foreground: oklch(0.993 0.002 148.571);
  --muted: oklch(0.192 0.031 287.722);
  --muted-foreground: oklch(0.677 0.017 290.524);
  --popover: oklch(0.155 0.024 147.272);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.024 147.272);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.734 0.087 147.164);
  --primary-foreground: oklch(0.119 0.011 147.988);
  --secondary: oklch(0.638 0.078 288.564);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.059 25.933);
  --accent-foreground: oklch(0.112 0.007 26.961);
  --destructive: oklch(0.621 0.233 29.088);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.734 0.087 147.164);
  --chart-1: oklch(0.734 0.087 147.164);
  --chart-2: oklch(0.638 0.078 288.564);
  --chart-3: oklch(0.675 0.059 25.933);
  --chart-4: oklch(0.667 0.071 288.902);
  --chart-5: oklch(0.739 0.096 147.009);
}