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

Go to generator

10000+Themes for shadcn/ui

Palatable for shadcn/ui

Palatable is a shadcn/ui theme built around a red primary color (#ba7f73) with yellow accents (#baa273). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the red primary (#ba7f73) on a neutral background (#080302).

Color palette

TokenLightDark
Background
#fdf8f7snow
#080302black
Foreground
#040201black
#ffffffwhite
Card
#fcf4f3lavenderblush
#0c0503black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf4f3lavenderblush
#0c0503black
Popover foreground
#000000black
#ffffffwhite
Primary
#ba7f73rosybrown
#ba7f73rosybrown
Primary foreground
#000000black
#000000black
Secondary
#ba738brosybrown
#ba738brosybrown
Secondary foreground
#000000black
#000000black
Muted
#e2d4d9gainsboro
#2b1d21black
Muted foreground
#56484ddarkslategray
#b7a9aedarkgray
Accent
#baa273darkkhaki
#baa273darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#b50603firebrick
#fb1713red
Destructive foreground
#ffebeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ba7f73rosybrown
#ba7f73rosybrown

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.40:1AAA
Primary button6.35:1AA
Secondary button5.90:1AA
Muted text6.04:1AA
Accent8.52:1AAA
Destructive6.13:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.23:1AAA
Primary button6.35:1AA
Secondary button5.90:1AA
Muted text7.17:1AAA
Accent8.52:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 31.054);
  --foreground: oklch(0.086 0.012 37.706);
  --muted: oklch(0.883 0.017 355.136);
  --muted-foreground: oklch(0.418 0.021 355.968);
  --popover: oklch(0.974 0.008 31.06);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.008 31.06);
  --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.653 0.076 31.724);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.638 0.094 358.622);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.723 0.069 84.214);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.487 0.197 29.282);
  --destructive-foreground: oklch(0.956 0.021 18.708);
  --ring: oklch(0.653 0.076 31.724);
  --chart-1: oklch(0.653 0.076 31.724);
  --chart-2: oklch(0.638 0.094 358.622);
  --chart-3: oklch(0.723 0.069 84.214);
  --chart-4: oklch(0.665 0.086 358.136);
  --chart-5: oklch(0.652 0.083 31.823);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.015 37.39);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.024 357.218);
  --muted-foreground: oklch(0.748 0.018 355.26);
  --popover: oklch(0.125 0.017 37.198);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.017 37.198);
  --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.653 0.076 31.724);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.638 0.094 358.622);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.723 0.069 84.214);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.627 0.249 28.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.076 31.724);
  --chart-1: oklch(0.653 0.076 31.724);
  --chart-2: oklch(0.638 0.094 358.622);
  --chart-3: oklch(0.723 0.069 84.214);
  --chart-4: oklch(0.665 0.086 358.136);
  --chart-5: oklch(0.652 0.083 31.823);
}