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

Go to generator

10000+Themes for shadcn/ui

Honest for shadcn/ui

Honest is a shadcn/ui theme built around a muted light yellow primary color (#eceae4) with neutral gray accents (#e5e4e1). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted light yellow primary (#eceae4) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fcfbf8snow
#070603black
Foreground
#141006black
#fdfdfcwhite
Card
#fcfbf8snow
#070603black
Card foreground
#141006black
#fdfdfcwhite
Popover
#fcfbf8snow
#070603black
Popover foreground
#141006black
#fdfdfcwhite
Primary
#eceae4linen
#eceae4linen
Primary foreground
#5e5640darkolivegreen
#5e5640darkolivegreen
Secondary
#e5e4e1gainsboro
#2c2920darkslategray
Secondary foreground
#4f4c45darkslategray
#c9c4b5silver
Muted
#f7f4edseashell
#120f08black
Muted foreground
#68665edimgray
#a19e97darkgray
Accent
#e5e4e1gainsboro
#2c2920darkslategray
Accent foreground
#4f4c45darkslategray
#c9c4b5silver
Destructive
#d53410firebrick
#ee3e17orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eceae4linen
#eceae4linen

Contrast

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

Light mode
Text on background18.33:1AAA
Text on card18.33:1AAA
Primary button6.06:1AA
Secondary button6.72:1AA
Muted text5.25:1AA
Accent6.72:1AA
Destructive4.83:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button6.06:1AA
Secondary button8.33:1AAA
Muted text7.16:1AAA
Accent8.33:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 88.822);
  --foreground: oklch(0.173 0.02 89.775);
  --muted: oklch(0.969 0.01 88.855);
  --muted-foreground: oklch(0.509 0.012 88.922);
  --popover: oklch(0.988 0.005 88.822);
  --popover-foreground: oklch(0.173 0.02 89.775);
  --card: oklch(0.988 0.005 88.822);
  --card-foreground: oklch(0.173 0.02 89.775);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.009 88.85);
  --primary-foreground: oklch(0.454 0.035 88.99);
  --secondary: oklch(0.918 0.004 88.819);
  --secondary-foreground: oklch(0.418 0.013 88.954);
  --accent: oklch(0.918 0.004 88.819);
  --accent-foreground: oklch(0.418 0.013 88.954);
  --destructive: oklch(0.574 0.202 33.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.009 88.85);
  --chart-1: oklch(0.937 0.009 88.85);
  --chart-2: oklch(0.918 0.004 88.819);
  --chart-3: oklch(0.918 0.004 88.819);
  --chart-4: oklch(0.941 0.003 88.811);
  --chart-5: oklch(0.938 0.01 88.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 92.392);
  --foreground: oklch(0.993 0.001 88.795);
  --muted: oklch(0.169 0.015 89.347);
  --muted-foreground: oklch(0.699 0.011 88.884);
  --popover: oklch(0.122 0.009 92.392);
  --popover-foreground: oklch(0.993 0.001 88.795);
  --card: oklch(0.122 0.009 92.392);
  --card-foreground: oklch(0.993 0.001 88.795);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.009 88.85);
  --primary-foreground: oklch(0.454 0.035 88.99);
  --secondary: oklch(0.281 0.016 89.015);
  --secondary-foreground: oklch(0.82 0.021 88.935);
  --accent: oklch(0.281 0.016 89.015);
  --accent-foreground: oklch(0.82 0.021 88.935);
  --destructive: oklch(0.625 0.217 33.358);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.009 88.85);
  --chart-1: oklch(0.937 0.009 88.85);
  --chart-2: oklch(0.281 0.016 89.015);
  --chart-3: oklch(0.281 0.016 89.015);
  --chart-4: oklch(0.314 0.019 89.015);
  --chart-5: oklch(0.938 0.01 88.859);
}