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

Go to generator

10000+Themes for shadcn/ui

Tattered for shadcn/ui

Tattered is a shadcn/ui theme built around a muted light teal primary color (#b7d7c8) with muted light teal accents (#e8edeb). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted light teal primary (#b7d7c8) on a teal-tinted background (#040b08).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040b08black
Foreground
#000000black
#fcfdfcwhite
Card
#f7fdfamintcream
#060e0ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefdwhite
#040b08black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#b7d7c8silver
#b7d7c8silver
Primary foreground
#213b2fdarkslategray
#213b2fdarkslategray
Secondary
#e8edeblavender
#303130darkslategray
Secondary foreground
#465d52darkslategray
#c9cac9silver
Muted
#d3e9dfgainsboro
#162c22black
Muted foreground
#505e57dimgray
#a1afa9darkgray
Accent
#e8edeblavender
#303130darkslategray
Accent foreground
#465d52darkslategray
#c9cac9silver
Destructive
#8f200fdarkred
#ec5c46tomato
Destructive foreground
#fbdad5mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7d7c8silver
#b7d7c8silver

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.39:1AAA
Primary button7.81:1AAA
Secondary button6.03:1AA
Muted text5.35:1AA
Accent6.03:1AA
Destructive6.74:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.48:1AAA
Primary button7.81:1AAA
Secondary button7.94:1AAA
Muted text6.47:1AA
Accent7.94:1AAA
Destructive6.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 166.798);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.028 166.058);
  --muted-foreground: oklch(0.467 0.02 165.683);
  --popover: oklch(0.994 0.004 166.798);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.008 166.687);
  --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.851 0.039 165.596);
  --primary-foreground: oklch(0.326 0.039 163.098);
  --secondary: oklch(0.942 0.007 166.703);
  --secondary-foreground: oklch(0.456 0.033 164.784);
  --accent: oklch(0.942 0.007 166.703);
  --accent-foreground: oklch(0.456 0.033 164.784);
  --destructive: oklch(0.428 0.149 31.644);
  --destructive-foreground: oklch(0.915 0.037 28.188);
  --ring: oklch(0.851 0.039 165.596);
  --chart-1: oklch(0.851 0.039 165.596);
  --chart-2: oklch(0.942 0.007 166.703);
  --chart-3: oklch(0.942 0.007 166.703);
  --chart-4: oklch(0.964 0.004 166.783);
  --chart-5: oklch(0.853 0.043 165.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 166.982);
  --foreground: oklch(0.993 0.002 166.863);
  --muted: oklch(0.272 0.035 162.667);
  --muted-foreground: oklch(0.742 0.018 166.231);
  --popover: oklch(0.14 0.014 166.982);
  --popover-foreground: oklch(0.993 0.002 166.863);
  --card: oklch(0.155 0.016 165.224);
  --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.851 0.039 165.596);
  --primary-foreground: oklch(0.326 0.039 163.098);
  --secondary: oklch(0.312 0.002 166.769);
  --secondary-foreground: oklch(0.838 0.001 166.863);
  --accent: oklch(0.312 0.002 166.769);
  --accent-foreground: oklch(0.838 0.001 166.863);
  --destructive: oklch(0.658 0.182 31.155);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.851 0.039 165.596);
  --chart-1: oklch(0.851 0.039 165.596);
  --chart-2: oklch(0.312 0.002 166.769);
  --chart-3: oklch(0.312 0.002 166.769);
  --chart-4: oklch(0.342 0.002 166.765);
  --chart-5: oklch(0.853 0.043 165.455);
}