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

Go to generator

10000+Themes for shadcn/ui

Everforest Dark for shadcn/ui

Everforest Dark is a shadcn/ui theme built around a yellow primary color (#d4c7ab) with muted blue accents (#4e5b65). The light mode uses a blue-tinted background (#2c343a). Dark mode keeps the yellow primary (#d4c7ab) on a blue-tinted background (#2c343a).

Color palette

TokenLightDark
Background
#2c343adarkslategray
#2c343adarkslategray
Foreground
#d4c7absilver
#d4c7absilver
Card
#282f34darkslategray
#282f34darkslategray
Card foreground
#dcd2bclightgrey
#dcd2bclightgrey
Popover
#262c31darkslategray
#262c31darkslategray
Popover foreground
#e5ddcdgainsboro
#e5ddcdgainsboro
Primary
#d4c7absilver
#d4c7absilver
Primary foreground
#322b1adarkslategray
#322b1adarkslategray
Secondary
#4e4532darkolivegreen
#4e4532darkolivegreen
Secondary foreground
#e1dcd0gainsboro
#e1dcd0gainsboro
Muted
#363e45darkslategray
#363e45darkslategray
Muted foreground
#b5bec5silver
#b5bec5silver
Accent
#4e5b65dimgray
#4e5b65dimgray
Accent foreground
#f1f2f4whitesmoke
#f1f2f4whitesmoke
Destructive
#f03a2dcrimson
#f03a2dcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#3e4042darkslategray
#3e4042darkslategray
Input
#45484adarkslategray
#45484adarkslategray
Ring
#d4c7absilver
#d4c7absilver

Contrast

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

Light mode
Text on background7.57:1AAA
Text on card9.07:1AAA
Primary button8.36:1AAA
Secondary button6.92:1AA
Muted text5.75:1AA
Accent6.25:1AA
Destructive3.91:1AA Large
Dark mode
Text on background7.57:1AAA
Text on card9.07:1AAA
Primary button8.36:1AAA
Secondary button6.92:1AA
Muted text5.75:1AA
Accent6.25:1AA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.32 0.015 240.934);
  --foreground: oklch(0.832 0.04 86.09);
  --muted: oklch(0.359 0.016 240.905);
  --muted-foreground: oklch(0.796 0.014 240.527);
  --popover: oklch(0.289 0.013 240.909);
  --popover-foreground: oklch(0.9 0.024 86.085);
  --card: oklch(0.3 0.013 240.918);
  --card-foreground: oklch(0.866 0.032 86.095);
  --border: oklch(0.37 0.004 240.435);
  --input: oklch(0.399 0.004 240.438);
  --primary: oklch(0.832 0.04 86.09);
  --primary-foreground: oklch(0.292 0.03 85.724);
  --secondary: oklch(0.393 0.033 85.942);
  --secondary-foreground: oklch(0.895 0.017 86.069);
  --accent: oklch(0.463 0.023 241.005);
  --accent-foreground: oklch(0.962 0.003 240.323);
  --destructive: oklch(0.628 0.22 29.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.832 0.04 86.09);
  --chart-1: oklch(0.832 0.04 86.09);
  --chart-2: oklch(0.393 0.033 85.942);
  --chart-3: oklch(0.463 0.023 241.005);
  --chart-4: oklch(0.425 0.036 85.93);
  --chart-5: oklch(0.835 0.044 86.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.32 0.015 240.934);
  --foreground: oklch(0.832 0.04 86.09);
  --muted: oklch(0.359 0.016 240.905);
  --muted-foreground: oklch(0.796 0.014 240.527);
  --popover: oklch(0.289 0.013 240.909);
  --popover-foreground: oklch(0.9 0.024 86.085);
  --card: oklch(0.3 0.013 240.918);
  --card-foreground: oklch(0.866 0.032 86.095);
  --border: oklch(0.37 0.004 240.435);
  --input: oklch(0.399 0.004 240.438);
  --primary: oklch(0.832 0.04 86.09);
  --primary-foreground: oklch(0.292 0.03 85.724);
  --secondary: oklch(0.393 0.033 85.942);
  --secondary-foreground: oklch(0.895 0.017 86.069);
  --accent: oklch(0.463 0.023 241.005);
  --accent-foreground: oklch(0.962 0.003 240.323);
  --destructive: oklch(0.628 0.22 29.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.832 0.04 86.09);
  --chart-1: oklch(0.832 0.04 86.09);
  --chart-2: oklch(0.393 0.033 85.942);
  --chart-3: oklch(0.463 0.023 241.005);
  --chart-4: oklch(0.425 0.036 85.93);
  --chart-5: oklch(0.835 0.044 86.083);
}