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

Go to generator

10000+Themes for shadcn/ui

prototype1 for shadcn/ui

prototype1 is a shadcn/ui theme built around a vivid red primary color (#fa6742) with muted light red accents (#ded6d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#fa6742) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#000000black
#f9f6f6whitesmoke
Card
#fcfcfcsnow
#080403black
Card foreground
#000000black
#fbf9f9snow
Popover
#ffffffwhite
#040201black
Popover foreground
#000000black
#f9f6f6whitesmoke
Primary
#fa6742tomato
#fa6742tomato
Primary foreground
#0a0200black
#0a0200black
Secondary
#eae7e6linen
#282524darkslategray
Secondary foreground
#554b49darkslategray
#c2bdbcsilver
Muted
#ecdedagainsboro
#251713black
Muted foreground
#5a4d49darkolivegreen
#b6a9a5darkgray
Accent
#ded6d3gainsboro
#443936darkslategray
Accent foreground
#493a37darkslategray
#dbd4d2lightgrey
Destructive
#c7460fchocolate
#ee5a1bchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fa6742tomato
#fa6742tomato

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.93:1AA
Secondary button6.85:1AA
Muted text6.16:1AA
Accent7.52:1AAA
Destructive4.85:1AA
Dark mode
Text on background19.28:1AAA
Text on card19.50:1AAA
Primary button6.93:1AA
Secondary button8.17:1AAA
Muted text7.62:1AAA
Accent7.60:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.91 0.017 34.297);
  --muted-foreground: oklch(0.431 0.018 34.319);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.693 0.188 35.174);
  --primary-foreground: oklch(0.106 0.026 49.582);
  --secondary: oklch(0.93 0.003 34.311);
  --secondary-foreground: oklch(0.423 0.014 34.305);
  --accent: oklch(0.881 0.01 34.301);
  --accent-foreground: oklch(0.364 0.021 34.356);
  --destructive: oklch(0.568 0.174 39.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.693 0.188 35.174);
  --chart-1: oklch(0.693 0.188 35.174);
  --chart-2: oklch(0.93 0.003 34.311);
  --chart-3: oklch(0.881 0.01 34.301);
  --chart-4: oklch(0.953 0.002 34.313);
  --chart-5: oklch(0.695 0.193 35.143);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 39.95);
  --foreground: oklch(0.976 0.003 34.312);
  --muted: oklch(0.221 0.025 34.582);
  --muted-foreground: oklch(0.743 0.016 34.297);
  --popover: oklch(0.088 0.01 39.95);
  --popover-foreground: oklch(0.976 0.003 34.312);
  --card: oklch(0.111 0.012 39.95);
  --card-foreground: oklch(0.984 0.002 34.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.693 0.188 35.174);
  --primary-foreground: oklch(0.106 0.026 49.582);
  --secondary: oklch(0.268 0.005 34.297);
  --secondary-foreground: oklch(0.803 0.006 34.305);
  --accent: oklch(0.356 0.016 34.323);
  --accent-foreground: oklch(0.874 0.008 34.303);
  --destructive: oklch(0.656 0.194 39.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.693 0.188 35.174);
  --chart-1: oklch(0.693 0.188 35.174);
  --chart-2: oklch(0.268 0.005 34.297);
  --chart-3: oklch(0.356 0.016 34.323);
  --chart-4: oklch(0.299 0.006 34.297);
  --chart-5: oklch(0.695 0.193 35.143);
}