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

Go to generator

10000+Themes for shadcn/ui

Tan for shadcn/ui

Tan is a shadcn/ui theme built around a neutral gray primary color (#4e5651) with neutral gray accents (#56514e). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#4e5651) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#03170bblack
#f4faf7whitesmoke
Card
#fcfcfcsnow
#020805black
Card foreground
#021209black
#f8fcfamintcream
Popover
#fcfcfcsnow
#020805black
Popover foreground
#021209black
#f8fcfamintcream
Primary
#4e5651darkslategray
#4e5651darkslategray
Primary foreground
#eaecealinen
#eaecealinen
Secondary
#514e56darkslategray
#514e56darkslategray
Secondary foreground
#eaeaeclavender
#eaeaeclavender
Muted
#d6cbe7thistle
#241834midnightblue
Muted foreground
#645973dimgray
#978ca6darkgray
Accent
#56514edarkslategray
#56514edarkslategray
Accent foreground
#eceaealinen
#eceaealinen
Destructive
#6d1803maroon
#f95b34tomato
Destructive foreground
#fcb7a6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4e5651darkslategray
#4e5651darkslategray

Contrast

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

Light mode
Text on background18.56:1AAA
Text on card18.79:1AAA
Primary button6.40:1AA
Secondary button6.83:1AA
Muted text4.21:1AA Large
Accent6.54:1AA
Destructive6.98:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.51:1AAA
Primary button6.40:1AA
Secondary button6.83:1AA
Muted text5.25:1AA
Accent6.54:1AA
Destructive6.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.182 0.038 156.763);
  --muted: oklch(0.86 0.04 304.409);
  --muted-foreground: oklch(0.484 0.044 303.784);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.164 0.033 158.509);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.164 0.033 158.509);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.443 0.013 160.312);
  --primary-foreground: oklch(0.94 0.003 160.946);
  --secondary: oklch(0.428 0.014 304.595);
  --secondary-foreground: oklch(0.937 0.003 305.003);
  --accent: oklch(0.438 0.008 58.097);
  --accent-foreground: oklch(0.939 0.002 58.337);
  --destructive: oklch(0.354 0.121 34.446);
  --destructive-foreground: oklch(0.84 0.084 34.527);
  --ring: oklch(0.443 0.013 160.312);
  --chart-1: oklch(0.443 0.013 160.312);
  --chart-2: oklch(0.428 0.014 304.595);
  --chart-3: oklch(0.438 0.008 58.097);
  --chart-4: oklch(0.455 0.015 304.589);
  --chart-5: oklch(0.447 0.02 159.889);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.014 160.941);
  --foreground: oklch(0.981 0.008 160.83);
  --muted: oklch(0.24 0.053 301.78);
  --muted-foreground: oklch(0.658 0.041 304.189);
  --popover: oklch(0.124 0.018 160.941);
  --popover-foreground: oklch(0.987 0.005 160.892);
  --card: oklch(0.124 0.018 160.941);
  --card-foreground: oklch(0.987 0.005 160.892);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.443 0.013 160.312);
  --primary-foreground: oklch(0.94 0.003 160.946);
  --secondary: oklch(0.428 0.014 304.595);
  --secondary-foreground: oklch(0.937 0.003 305.003);
  --accent: oklch(0.438 0.008 58.097);
  --accent-foreground: oklch(0.939 0.002 58.337);
  --destructive: oklch(0.676 0.2 35.01);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.443 0.013 160.312);
  --chart-1: oklch(0.443 0.013 160.312);
  --chart-2: oklch(0.428 0.014 304.595);
  --chart-3: oklch(0.438 0.008 58.097);
  --chart-4: oklch(0.455 0.015 304.589);
  --chart-5: oklch(0.447 0.02 159.889);
}