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

Go to generator

10000+Themes for shadcn/ui

Nurse for shadcn/ui

Nurse is a shadcn/ui theme built around a vivid green primary color (#07a21e) with vivid purple accents (#a2078a). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#07a21e) on a green-tinted background (#050b06).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#050b06black
Foreground
#010401black
#ffffffwhite
Card
#f8fbf9mintcream
#060e07black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fbf9mintcream
#060e07black
Popover foreground
#000000black
#ffffffwhite
Primary
#07a21eforestgreen
#07a21eforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a2078adarkmagenta
#a2078adarkmagenta
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4d3e1gainsboro
#2c1b29darkslategray
Muted foreground
#494148darkslategray
#beb6bdsilver
Accent
#a2078adarkmagenta
#a2078adarkmagenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9e4410saddlebrown
#d15a15chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07a21eforestgreen
#07a21eforestgreen

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button3.40:1AA Large
Secondary button7.17:1AAA
Muted text6.89:1AA
Accent7.17:1AAA
Destructive6.40:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.54:1AAA
Primary button3.40:1AA Large
Secondary button7.17:1AAA
Muted text8.16:1AAA
Accent7.17:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 150.216);
  --foreground: oklch(0.098 0.018 149.071);
  --muted: oklch(0.885 0.026 330.62);
  --muted-foreground: oklch(0.385 0.016 330.774);
  --popover: oklch(0.986 0.005 150.184);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.005 150.184);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.617 0.2 143.658);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.487 0.211 336.532);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.487 0.211 336.532);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.498 0.134 45.108);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.617 0.2 143.658);
  --chart-1: oklch(0.617 0.2 143.658);
  --chart-2: oklch(0.487 0.211 336.532);
  --chart-3: oklch(0.487 0.211 336.532);
  --chart-4: oklch(0.519 0.226 336.586);
  --chart-5: oklch(0.624 0.204 143.558);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 149.519);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.035 331.945);
  --muted-foreground: oklch(0.785 0.013 330.466);
  --popover: oklch(0.153 0.019 149.173);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.019 149.173);
  --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.617 0.2 143.658);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.487 0.211 336.532);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.487 0.211 336.532);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.609 0.167 44.596);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.617 0.2 143.658);
  --chart-1: oklch(0.617 0.2 143.658);
  --chart-2: oklch(0.487 0.211 336.532);
  --chart-3: oklch(0.487 0.211 336.532);
  --chart-4: oklch(0.519 0.226 336.586);
  --chart-5: oklch(0.624 0.204 143.558);
}