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

Go to generator

10000+Themes for shadcn/ui

Lighthearted for shadcn/ui

Lighthearted is a shadcn/ui theme built around a muted green primary color (#94a898) with muted teal accents (#94a8a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#94a898) on a neutral background (#020803).

Color palette

TokenLightDark
Background
#ffffffwhite
#020803black
Foreground
#000000black
#f9fbf9mintcream
Card
#ffffffwhite
#020803black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#ffffffwhite
#020803black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#94a898darkseagreen
#94a898darkseagreen
Primary foreground
#050605black
#050605black
Secondary
#9ba894darkseagreen
#9ba894darkseagreen
Secondary foreground
#050605black
#050605black
Muted
#dae8d4gainsboro
#1d2b17black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#94a8a2darkgray
#94a8a2darkgray
Accent foreground
#050605black
#050605black
Destructive
#b73110firebrick
#eb4319orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#94a898darkseagreen
#94a898darkseagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.02:1AAA
Secondary button8.11:1AAA
Muted text8.14:1AAA
Accent8.09:1AAA
Destructive6.05:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button8.02:1AAA
Secondary button8.11:1AAA
Muted text8.05:1AAA
Accent8.09:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.031 135.577);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.711 0.031 150.756);
  --primary-foreground: oklch(0.117 0.004 151.239);
  --secondary: oklch(0.715 0.031 135.621);
  --secondary-foreground: oklch(0.117 0.004 135.123);
  --accent: oklch(0.714 0.023 174.626);
  --accent-foreground: oklch(0.117 0.003 175.66);
  --destructive: oklch(0.518 0.175 34.153);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.711 0.031 150.756);
  --chart-1: oklch(0.711 0.031 150.756);
  --chart-2: oklch(0.715 0.031 135.621);
  --chart-3: oklch(0.714 0.023 174.626);
  --chart-4: oklch(0.738 0.029 135.598);
  --chart-5: oklch(0.715 0.041 150.56);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.019 150.544);
  --foreground: oklch(0.986 0.003 151.358);
  --muted: oklch(0.272 0.041 136.228);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.122 0.019 150.544);
  --popover-foreground: oklch(0.986 0.003 151.358);
  --card: oklch(0.122 0.019 150.544);
  --card-foreground: oklch(0.986 0.003 151.358);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.711 0.031 150.756);
  --primary-foreground: oklch(0.117 0.004 151.239);
  --secondary: oklch(0.715 0.031 135.621);
  --secondary-foreground: oklch(0.117 0.004 135.123);
  --accent: oklch(0.714 0.023 174.626);
  --accent-foreground: oklch(0.117 0.003 175.66);
  --destructive: oklch(0.625 0.211 34.217);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.711 0.031 150.756);
  --chart-1: oklch(0.711 0.031 150.756);
  --chart-2: oklch(0.715 0.031 135.621);
  --chart-3: oklch(0.714 0.023 174.626);
  --chart-4: oklch(0.738 0.029 135.598);
  --chart-5: oklch(0.715 0.041 150.56);
}