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

Go to generator

10000+Themes for shadcn/ui

Snoopy for shadcn/ui

Snoopy is a shadcn/ui theme built around a neutral gray primary color (#b8bbbc) with neutral gray accents (#b8b9bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b8bbbc) on a neutral background (#030608).

Color palette

TokenLightDark
Background
#ffffffwhite
#030608black
Foreground
#000000black
#fcfdfdwhite
Card
#ffffffwhite
#030608black
Card foreground
#000000black
#fcfdfdwhite
Popover
#ffffffwhite
#030608black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#b8bbbcsilver
#b8bbbcsilver
Primary foreground
#202122black
#202122black
Secondary
#b8bcbcsilver
#b8bcbcsilver
Secondary foreground
#202222black
#202222black
Muted
#dbe1e0gainsboro
#1e2423black
Muted foreground
#566160dimgray
#9ea9a7darkgray
Accent
#b8b9bcsilver
#b8b9bcsilver
Accent foreground
#202022black
#202022black
Destructive
#ae0a0afirebrick
#f22626crimson
Destructive foreground
#feececlinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8bbbcsilver
#b8bbbcsilver

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.32:1AAA
Secondary button8.35:1AAA
Muted text4.83:1AA
Accent8.26:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button8.32:1AAA
Secondary button8.35:1AAA
Muted text6.50:1AA
Accent8.26:1AAA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.007 188.739);
  --muted-foreground: oklch(0.484 0.014 188.225);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.789 0.004 234.572);
  --primary-foreground: oklch(0.248 0.002 234.641);
  --secondary: oklch(0.792 0.005 188.77);
  --secondary-foreground: oklch(0.25 0.003 188.627);
  --accent: oklch(0.785 0.005 280.228);
  --accent-foreground: oklch(0.246 0.003 280.117);
  --destructive: oklch(0.474 0.189 28.659);
  --destructive-foreground: oklch(0.957 0.02 17.503);
  --ring: oklch(0.789 0.004 234.572);
  --chart-1: oklch(0.789 0.004 234.572);
  --chart-2: oklch(0.792 0.005 188.77);
  --chart-3: oklch(0.785 0.005 280.228);
  --chart-4: oklch(0.816 0.004 188.79);
  --chart-5: oklch(0.789 0.007 234.638);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.011 228.389);
  --foreground: oklch(0.992 0.001 234.522);
  --muted: oklch(0.255 0.009 188.084);
  --muted-foreground: oklch(0.725 0.013 188.495);
  --popover: oklch(0.115 0.011 228.389);
  --popover-foreground: oklch(0.992 0.001 234.522);
  --card: oklch(0.115 0.011 228.389);
  --card-foreground: oklch(0.992 0.001 234.522);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.789 0.004 234.572);
  --primary-foreground: oklch(0.248 0.002 234.641);
  --secondary: oklch(0.792 0.005 188.77);
  --secondary-foreground: oklch(0.25 0.003 188.627);
  --accent: oklch(0.785 0.005 280.228);
  --accent-foreground: oklch(0.246 0.003 280.117);
  --destructive: oklch(0.618 0.234 27.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.789 0.004 234.572);
  --chart-1: oklch(0.789 0.004 234.572);
  --chart-2: oklch(0.792 0.005 188.77);
  --chart-3: oklch(0.785 0.005 280.228);
  --chart-4: oklch(0.816 0.004 188.79);
  --chart-5: oklch(0.789 0.007 234.638);
}