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

Go to generator

10000+Themes for shadcn/ui

Premium for shadcn/ui

Premium is a shadcn/ui theme built around a muted light blue primary color (#e5ecf0) with muted light orange accents (#f0eae5). The light mode uses a neutral background (#f7fafd). Dark mode keeps the muted light blue primary (#e5ecf0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#000000black
Foreground
#000000black
#f6f8f8whitesmoke
Card
#f7fafdghostwhite
#000000black
Card foreground
#000000black
#f6f8f8whitesmoke
Popover
#f7fafdghostwhite
#000000black
Popover foreground
#000000black
#f6f8f8whitesmoke
Primary
#e5ecf0lavender
#e5ecf0lavender
Primary foreground
#3b5568darkslategray
#3b5568darkslategray
Secondary
#f0eae5linen
#f0eae5linen
Secondary foreground
#684e3bdarkolivegreen
#684e3bdarkolivegreen
Muted
#dedbd8gainsboro
#272321black
Muted foreground
#525151darkslategray
#aeadaddarkgray
Accent
#f0eae5linen
#f0eae5linen
Accent foreground
#684e3bdarkolivegreen
#684e3bdarkolivegreen
Destructive
#890a01darkred
#fe382aorangered
Destructive foreground
#ffc1bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5ecf0lavender
#e5ecf0lavender

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button6.53:1AA
Secondary button6.41:1AA
Muted text5.73:1AA
Accent6.41:1AA
Destructive6.46:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button6.53:1AA
Secondary button6.41:1AA
Muted text6.95:1AA
Accent6.41:1AA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.005 238.438);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.005 58.286);
  --muted-foreground: oklch(0.437 0.002 58.309);
  --popover: oklch(0.984 0.005 238.438);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.005 238.438);
  --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.938 0.01 238.508);
  --primary-foreground: oklch(0.438 0.045 240.154);
  --secondary: oklch(0.94 0.01 58.219);
  --secondary-foreground: oklch(0.446 0.047 56.739);
  --accent: oklch(0.94 0.01 58.219);
  --accent-foreground: oklch(0.446 0.047 56.739);
  --destructive: oklch(0.4 0.158 30.278);
  --destructive-foreground: oklch(0.866 0.071 23.31);
  --ring: oklch(0.938 0.01 238.508);
  --chart-1: oklch(0.938 0.01 238.508);
  --chart-2: oklch(0.94 0.01 58.219);
  --chart-3: oklch(0.94 0.01 58.219);
  --chart-4: oklch(0.963 0.006 58.275);
  --chart-5: oklch(0.938 0.011 238.524);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.002 238.387);
  --muted: oklch(0.26 0.007 58.005);
  --muted-foreground: oklch(0.749 0.001 58.335);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.002 238.387);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.977 0.002 238.387);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.938 0.01 238.508);
  --primary-foreground: oklch(0.438 0.045 240.154);
  --secondary: oklch(0.94 0.01 58.219);
  --secondary-foreground: oklch(0.446 0.047 56.739);
  --accent: oklch(0.94 0.01 58.219);
  --accent-foreground: oklch(0.446 0.047 56.739);
  --destructive: oklch(0.65 0.234 29.298);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.01 238.508);
  --chart-1: oklch(0.938 0.01 238.508);
  --chart-2: oklch(0.94 0.01 58.219);
  --chart-3: oklch(0.94 0.01 58.219);
  --chart-4: oklch(0.963 0.006 58.275);
  --chart-5: oklch(0.938 0.011 238.524);
}