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

Go to generator

10000+Themes for shadcn/ui

Educated for shadcn/ui

Educated is a shadcn/ui theme built around a light pink primary color (#dbb3be) with light blue accents (#b3bedb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#dbb3be) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#040102black
#ffffffwhite
Card
#fcfcfcsnow
#080204black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#080204black
Popover foreground
#000000black
#ffffffwhite
Primary
#dbb3bethistle
#dbb3bethistle
Primary foreground
#3e1d27darkslategray
#3e1d27darkslategray
Secondary
#bedbb3silver
#bedbb3silver
Secondary foreground
#273e1ddarkslategray
#273e1ddarkslategray
Muted
#e3ebe0gainsboro
#171f14black
Muted foreground
#475143darkslategray
#b2bcaedarkgray
Accent
#b3bedblightsteelblue
#b3bedblightsteelblue
Accent foreground
#1d273edarkslategray
#1d273edarkslategray
Destructive
#83150bmaroon
#ec3827crimson
Destructive foreground
#facbc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbb3bethistle
#dbb3bethistle

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.54:1AAA
Primary button7.93:1AAA
Secondary button7.79:1AAA
Muted text6.83:1AA
Accent8.01:1AAA
Destructive6.91:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.55:1AAA
Primary button7.93:1AAA
Secondary button7.79:1AAA
Muted text8.58:1AAA
Accent8.01:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.02 357.387);
  --muted: oklch(0.932 0.018 136.667);
  --muted-foreground: oklch(0.421 0.025 136.795);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.805 0.049 359.402);
  --primary-foreground: oklch(0.282 0.053 2.945);
  --secondary: oklch(0.86 0.063 136.844);
  --secondary-foreground: oklch(0.336 0.062 137.403);
  --accent: oklch(0.803 0.043 268.333);
  --accent-foreground: oklch(0.275 0.046 266.956);
  --destructive: oklch(0.396 0.146 30.002);
  --destructive-foreground: oklch(0.882 0.054 24.284);
  --ring: oklch(0.805 0.049 359.402);
  --chart-1: oklch(0.805 0.049 359.402);
  --chart-2: oklch(0.86 0.063 136.844);
  --chart-3: oklch(0.803 0.043 268.333);
  --chart-4: oklch(0.879 0.054 136.803);
  --chart-5: oklch(0.803 0.053 359.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.015 357.491);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.025 136.99);
  --muted-foreground: oklch(0.783 0.021 136.691);
  --popover: oklch(0.105 0.018 357.491);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.018 357.491);
  --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.805 0.049 359.402);
  --primary-foreground: oklch(0.282 0.053 2.945);
  --secondary: oklch(0.86 0.063 136.844);
  --secondary-foreground: oklch(0.336 0.062 137.403);
  --accent: oklch(0.803 0.043 268.333);
  --accent-foreground: oklch(0.275 0.046 266.956);
  --destructive: oklch(0.618 0.218 29.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.049 359.402);
  --chart-1: oklch(0.805 0.049 359.402);
  --chart-2: oklch(0.86 0.063 136.844);
  --chart-3: oklch(0.803 0.043 268.333);
  --chart-4: oklch(0.879 0.054 136.803);
  --chart-5: oklch(0.803 0.053 359.547);
}