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

Go to generator

10000+Themes for shadcn/ui

Pun for shadcn/ui

Pun is a shadcn/ui theme built around a deep pink primary color (#4c0b25) with deep red accents (#4c110b). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#4c0b25) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fdf7f9snow
#040102black
Foreground
#040102black
#fdfcfcsnow
Card
#fcf3f6lavenderblush
#070305black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f9snow
#040102black
Popover foreground
#040102black
#fdfcfcsnow
Primary
#4c0b25maroon
#4c0b25maroon
Primary foreground
#f098bclightpink
#f098bclightpink
Secondary
#4c0b45indigo
#4c0b45indigo
Secondary foreground
#f098e8violet
#f098e8violet
Muted
#f3e2f1lavender
#1d0c1bblack
Muted foreground
#72556fdimgray
#aa8da7darkgray
Accent
#4c110bmaroon
#4c110bmaroon
Accent foreground
#f0a198darksalmon
#f0a198darksalmon
Destructive
#8b3209saddlebrown
#e1510echocolate
Destructive foreground
#fcdacabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4c0b25maroon
#4c0b25maroon

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.27:1AAA
Primary button7.19:1AAA
Secondary button7.19:1AAA
Muted text5.23:1AA
Accent7.36:1AAA
Destructive6.25:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.50:1AAA
Primary button7.19:1AAA
Secondary button7.19:1AAA
Muted text6.31:1AA
Accent7.36:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 350.829);
  --foreground: oklch(0.082 0.02 350.146);
  --muted: oklch(0.931 0.026 328.9);
  --muted-foreground: oklch(0.489 0.056 329.793);
  --popover: oklch(0.981 0.007 350.829);
  --popover-foreground: oklch(0.082 0.02 350.146);
  --card: oklch(0.972 0.011 350.935);
  --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.28 0.097 2.128);
  --primary-foreground: oklch(0.78 0.113 354.48);
  --secondary: oklch(0.296 0.118 332.724);
  --secondary-foreground: oklch(0.795 0.145 330.446);
  --accent: oklch(0.28 0.089 29.959);
  --accent-foreground: oklch(0.785 0.096 26.438);
  --destructive: oklch(0.441 0.13 40.7);
  --destructive-foreground: oklch(0.912 0.043 46.382);
  --ring: oklch(0.28 0.097 2.128);
  --chart-1: oklch(0.28 0.097 2.128);
  --chart-2: oklch(0.296 0.118 332.724);
  --chart-3: oklch(0.28 0.089 29.959);
  --chart-4: oklch(0.329 0.133 332.828);
  --chart-5: oklch(0.281 0.1 2.674);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.012 350.341);
  --foreground: oklch(0.991 0.002 350.677);
  --muted: oklch(0.187 0.038 330.667);
  --muted-foreground: oklch(0.678 0.052 329.406);
  --popover: oklch(0.086 0.012 350.341);
  --popover-foreground: oklch(0.991 0.002 350.677);
  --card: oklch(0.108 0.015 350.341);
  --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.28 0.097 2.128);
  --primary-foreground: oklch(0.78 0.113 354.48);
  --secondary: oklch(0.296 0.118 332.724);
  --secondary-foreground: oklch(0.795 0.145 330.446);
  --accent: oklch(0.28 0.089 29.959);
  --accent-foreground: oklch(0.785 0.096 26.438);
  --destructive: oklch(0.624 0.191 39.82);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.28 0.097 2.128);
  --chart-1: oklch(0.28 0.097 2.128);
  --chart-2: oklch(0.296 0.118 332.724);
  --chart-3: oklch(0.28 0.089 29.959);
  --chart-4: oklch(0.329 0.133 332.828);
  --chart-5: oklch(0.281 0.1 2.674);
}