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

Go to generator

10000+Themes for shadcn/ui

Defenseless for shadcn/ui

Defenseless is a shadcn/ui theme built around a teal primary color (#469588) with yellow accents (#958846). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the teal primary (#469588) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#030707black
Foreground
#020d0bblack
#f9fbfbghostwhite
Card
#fcfdfdwhite
#030707black
Card foreground
#020d0bblack
#f9fbfbghostwhite
Popover
#fcfdfdwhite
#030707black
Popover foreground
#020d0bblack
#f9fbfbghostwhite
Primary
#469588cadetblue
#469588cadetblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#884695rebeccapurple
#884695rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3f1f3whitesmoke
#0d0c0eblack
Muted foreground
#4f4351darkslategray
#baaebcsilver
Accent
#958846olivedrab
#958846olivedrab
Accent foreground
#000000black
#000000black
Destructive
#c65310chocolate
#ee722bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#469588cadetblue
#469588cadetblue

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button3.54:1AA Large
Secondary button6.24:1AA
Muted text8.31:1AAA
Accent5.88:1AA
Destructive4.52:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button3.54:1AA Large
Secondary button6.24:1AA
Muted text9.17:1AAA
Accent5.88:1AA
Destructive7.08:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 185.396);
  --foreground: oklch(0.146 0.019 184.123);
  --muted: oklch(0.961 0.002 320.535);
  --muted-foreground: oklch(0.399 0.029 320.64);
  --popover: oklch(0.994 0.002 185.396);
  --popover-foreground: oklch(0.146 0.019 184.123);
  --card: oklch(0.994 0.002 185.396);
  --card-foreground: oklch(0.146 0.019 184.123);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.617 0.081 181.17);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.508 0.139 320.739);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.624 0.088 98.252);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.583 0.163 44.156);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.617 0.081 181.17);
  --chart-1: oklch(0.617 0.081 181.17);
  --chart-2: oklch(0.508 0.139 320.739);
  --chart-3: oklch(0.624 0.088 98.252);
  --chart-4: oklch(0.533 0.147 320.738);
  --chart-5: oklch(0.624 0.086 180.845);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 185.186);
  --foreground: oklch(0.986 0.003 185.382);
  --muted: oklch(0.157 0.004 320.569);
  --muted-foreground: oklch(0.765 0.025 320.581);
  --popover: oklch(0.123 0.011 185.186);
  --popover-foreground: oklch(0.986 0.003 185.382);
  --card: oklch(0.123 0.011 185.186);
  --card-foreground: oklch(0.986 0.003 185.382);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.617 0.081 181.17);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.508 0.139 320.739);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.624 0.088 98.252);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.689 0.172 46.527);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.617 0.081 181.17);
  --chart-1: oklch(0.617 0.081 181.17);
  --chart-2: oklch(0.508 0.139 320.739);
  --chart-3: oklch(0.624 0.088 98.252);
  --chart-4: oklch(0.533 0.147 320.738);
  --chart-5: oklch(0.624 0.086 180.845);
}