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

Go to generator

10000+Themes for shadcn/ui

Replication for shadcn/ui

Replication is a shadcn/ui theme built around a deep yellow primary color (#423110) with deep green accents (#3a4210). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep yellow primary (#423110) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#040301black
Foreground
#0d0a02black
#fdfdfcwhite
Card
#fcfbf8snow
#080602black
Card foreground
#090601black
#ffffffwhite
Popover
#fcfbf8snow
#080602black
Popover foreground
#090601black
#ffffffwhite
Primary
#423110darkolivegreen
#423110darkolivegreen
Primary foreground
#e8ce9ckhaki
#e8ce9ckhaki
Secondary
#421810maroon
#421810maroon
Secondary foreground
#e8a99cburlywood
#e8a99cburlywood
Muted
#eee0ddantiquewhite
#221411black
Muted foreground
#4b4948darkslategray
#b7b4b4silver
Accent
#3a4210darkolivegreen
#3a4210darkolivegreen
Accent foreground
#bdd449yellowgreen
#bdd449yellowgreen
Destructive
#8d0401darkred
#fc0703red
Destructive foreground
#fec3c2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#423110darkolivegreen
#423110darkolivegreen

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.49:1AAA
Primary button8.16:1AAA
Secondary button7.72:1AAA
Muted text6.96:1AA
Accent6.44:1AA
Destructive6.40:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.24:1AAA
Primary button8.16:1AAA
Secondary button7.72:1AAA
Muted text8.67:1AAA
Accent6.44:1AA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 84.556);
  --foreground: oklch(0.144 0.022 90.93);
  --muted: oklch(0.917 0.015 31.08);
  --muted-foreground: oklch(0.407 0.003 31.059);
  --popover: oklch(0.987 0.004 84.561);
  --popover-foreground: oklch(0.125 0.019 92.143);
  --card: oklch(0.987 0.004 84.561);
  --card-foreground: oklch(0.125 0.019 92.143);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.326 0.054 81.931);
  --primary-foreground: oklch(0.862 0.072 84.361);
  --secondary: oklch(0.272 0.068 32.985);
  --secondary-foreground: oklch(0.79 0.077 31.559);
  --accent: oklch(0.36 0.072 118.365);
  --accent-foreground: oklch(0.828 0.163 118.239);
  --destructive: oklch(0.406 0.164 29.367);
  --destructive-foreground: oklch(0.871 0.068 19.666);
  --ring: oklch(0.326 0.054 81.931);
  --chart-1: oklch(0.326 0.054 81.931);
  --chart-2: oklch(0.272 0.068 32.985);
  --chart-3: oklch(0.36 0.072 118.365);
  --chart-4: oklch(0.303 0.078 33.051);
  --chart-5: oklch(0.328 0.056 81.616);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.011 90.453);
  --foreground: oklch(0.993 0.002 84.556);
  --muted: oklch(0.209 0.023 31.675);
  --muted-foreground: oklch(0.772 0.003 31.05);
  --popover: oklch(0.123 0.014 90.453);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.014 90.453);
  --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.326 0.054 81.931);
  --primary-foreground: oklch(0.862 0.072 84.361);
  --secondary: oklch(0.272 0.068 32.985);
  --secondary-foreground: oklch(0.79 0.077 31.559);
  --accent: oklch(0.36 0.072 118.365);
  --accent-foreground: oklch(0.828 0.163 118.239);
  --destructive: oklch(0.624 0.255 29.299);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.326 0.054 81.931);
  --chart-1: oklch(0.326 0.054 81.931);
  --chart-2: oklch(0.272 0.068 32.985);
  --chart-3: oklch(0.36 0.072 118.365);
  --chart-4: oklch(0.303 0.078 33.051);
  --chart-5: oklch(0.328 0.056 81.616);
}