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

Go to generator

10000+Themes for shadcn/ui

Immediate for shadcn/ui

Immediate is a shadcn/ui theme built around a muted pink primary color (#7c6a75) with muted light pink accents (#dec9d7). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted pink primary (#7c6a75) on a pink-tinted background (#0e060b).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0e060bblack
Foreground
#090106black
#fdfcfdwhite
Card
#fdfcfdwhite
#0e060bblack
Card foreground
#090106black
#fdfcfdwhite
Popover
#fdfcfdwhite
#0e060bblack
Popover foreground
#090106black
#fdfcfdwhite
Primary
#7c6a75dimgray
#7c6a75dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eae1e7gainsboro
#231f22black
Secondary foreground
#594050darkslategray
#bfb5bbsilver
Muted
#e4cedcgainsboro
#311b29darkslategray
Muted foreground
#5f4f59dimgray
#b0a0aadarkgray
Accent
#dec9d7thistle
#3b2b35darkslategray
Accent foreground
#492c3fdarkslategray
#d4c4cethistle
Destructive
#981006darkred
#f51e0fred
Destructive foreground
#fdd6d3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c6a75dimgray
#7c6a75dimgray

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button5.05:1AA
Secondary button7.23:1AAA
Muted text5.13:1AA
Accent7.83:1AAA
Destructive6.53:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button5.05:1AA
Secondary button8.17:1AAA
Muted text6.39:1AA
Accent7.95:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 338.767);
  --foreground: oklch(0.103 0.032 339.11);
  --muted: oklch(0.873 0.031 339.463);
  --muted-foreground: oklch(0.446 0.026 339.914);
  --popover: oklch(0.992 0.002 338.767);
  --popover-foreground: oklch(0.103 0.032 339.11);
  --card: oklch(0.992 0.002 338.767);
  --card-foreground: oklch(0.103 0.032 339.11);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.544 0.029 339.819);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.919 0.011 338.979);
  --secondary-foreground: oklch(0.405 0.041 340.79);
  --accent: oklch(0.857 0.03 339.462);
  --accent-foreground: oklch(0.336 0.052 341.785);
  --destructive: oklch(0.433 0.168 29.81);
  --destructive-foreground: oklch(0.908 0.044 22.824);
  --ring: oklch(0.544 0.029 339.819);
  --chart-1: oklch(0.544 0.029 339.819);
  --chart-2: oklch(0.919 0.011 338.979);
  --chart-3: oklch(0.857 0.03 339.462);
  --chart-4: oklch(0.943 0.008 338.896);
  --chart-5: oklch(0.541 0.04 340.227);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.018 340.257);
  --foreground: oklch(0.992 0.002 338.752);
  --muted: oklch(0.258 0.042 341.94);
  --muted-foreground: oklch(0.724 0.023 339.381);
  --popover: oklch(0.139 0.018 340.257);
  --popover-foreground: oklch(0.992 0.002 338.752);
  --card: oklch(0.139 0.018 340.257);
  --card-foreground: oklch(0.992 0.002 338.752);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.544 0.029 339.819);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.245 0.009 339.48);
  --secondary-foreground: oklch(0.784 0.014 339.093);
  --accent: oklch(0.311 0.03 340.643);
  --accent-foreground: oklch(0.836 0.023 339.299);
  --destructive: oklch(0.618 0.242 29.755);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.029 339.819);
  --chart-1: oklch(0.544 0.029 339.819);
  --chart-2: oklch(0.245 0.009 339.48);
  --chart-3: oklch(0.311 0.03 340.643);
  --chart-4: oklch(0.276 0.011 339.525);
  --chart-5: oklch(0.541 0.04 340.227);
}