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

Go to generator

10000+Themes for shadcn/ui

Ear for shadcn/ui

Ear is a shadcn/ui theme built around a deep red primary color (#321e1b) with muted light red accents (#e6dddb). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the deep red primary (#321e1b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf8f7snow
#000000black
Foreground
#040101black
#f9f6f6whitesmoke
Card
#fcf4f3lavenderblush
#030303black
Card foreground
#000000black
#fbf9f9snow
Popover
#fcf4f3lavenderblush
#030303black
Popover foreground
#000000black
#fbf9f9snow
Primary
#321e1bblack
#321e1bblack
Primary foreground
#d2b1acsilver
#d2b1acsilver
Secondary
#e6dddbgainsboro
#151414black
Secondary foreground
#543e3bdarkslategray
#b1abaadarkgray
Muted
#f4e8e6linen
#190d0bblack
Muted foreground
#534341darkslategray
#beafacdarkgray
Accent
#e6dddbgainsboro
#151414black
Accent foreground
#543e3bdarkslategray
#b1abaadarkgray
Destructive
#cc190ffirebrick
#ef332acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#321e1bblack
#321e1bblack

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.39:1AAA
Primary button7.96:1AAA
Secondary button7.36:1AAA
Muted text7.80:1AAA
Accent7.36:1AAA
Destructive5.65:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.71:1AAA
Primary button7.96:1AAA
Secondary button8.13:1AAA
Muted text8.99:1AAA
Accent8.13:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 27.96);
  --foreground: oklch(0.085 0.014 35.135);
  --muted: oklch(0.94 0.013 28.009);
  --muted-foreground: oklch(0.4 0.022 28.307);
  --popover: oklch(0.973 0.008 27.975);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.008 27.975);
  --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.259 0.032 29.054);
  --primary-foreground: oklch(0.789 0.039 28.269);
  --secondary: oklch(0.903 0.01 27.991);
  --secondary-foreground: oklch(0.388 0.03 28.533);
  --accent: oklch(0.903 0.01 27.991);
  --accent-foreground: oklch(0.388 0.03 28.533);
  --destructive: oklch(0.539 0.21 29.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.259 0.032 29.054);
  --chart-1: oklch(0.259 0.032 29.054);
  --chart-2: oklch(0.903 0.01 27.991);
  --chart-3: oklch(0.903 0.01 27.991);
  --chart-4: oklch(0.927 0.008 27.974);
  --chart-5: oklch(0.259 0.035 29.22);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 27.947);
  --muted: oklch(0.174 0.021 29.046);
  --muted-foreground: oklch(0.765 0.018 28.068);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.984 0.002 27.943);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 27.943);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.259 0.032 29.054);
  --primary-foreground: oklch(0.789 0.039 28.269);
  --secondary: oklch(0.192 0.002 27.997);
  --secondary-foreground: oklch(0.746 0.007 27.979);
  --accent: oklch(0.192 0.002 27.997);
  --accent-foreground: oklch(0.746 0.007 27.979);
  --destructive: oklch(0.62 0.223 28.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.259 0.032 29.054);
  --chart-1: oklch(0.259 0.032 29.054);
  --chart-2: oklch(0.192 0.002 27.997);
  --chart-3: oklch(0.192 0.002 27.997);
  --chart-4: oklch(0.225 0.003 28.006);
  --chart-5: oklch(0.259 0.035 29.22);
}