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

Go to generator

10000+Themes for shadcn/ui

Warlike for shadcn/ui

Warlike is a shadcn/ui theme built around a vivid deep yellow primary color (#141200) with vivid deep green accents (#0c1400). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the vivid deep yellow primary (#141200) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fbfbf8snow
#040401black
Foreground
#000000black
#ffffffwhite
Card
#faf9f5whitesmoke
#080703black
Card foreground
#000000black
#ffffffwhite
Popover
#faf9f5whitesmoke
#080703black
Popover foreground
#000000black
#ffffffwhite
Primary
#141200black
#141200black
Primary foreground
#dfc901gold
#dfc901gold
Secondary
#140800black
#140800black
Secondary foreground
#fe9148coral
#fe9148coral
Muted
#eceaealinen
#151413black
Muted foreground
#665d57dimgray
#a89f99darkgray
Accent
#0c1400black
#0c1400black
Accent foreground
#86df01lawngreen
#86df01lawngreen
Destructive
#7c0f03maroon
#ef1d06red
Destructive foreground
#fdbcb4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141200black
#141200black

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card19.94:1AAA
Primary button11.16:1AAA
Secondary button8.77:1AAA
Muted text5.37:1AA
Accent11.24:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.16:1AAA
Primary button11.16:1AAA
Secondary button8.77:1AAA
Muted text7.06:1AAA
Accent11.24:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 101.346);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.939 0.002 56.41);
  --muted-foreground: oklch(0.484 0.015 56.004);
  --popover: oklch(0.982 0.005 101.375);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 101.375);
  --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.18 0.038 104.665);
  --primary-foreground: oklch(0.829 0.173 101.327);
  --secondary: oklch(0.151 0.033 67.164);
  --secondary-foreground: oklch(0.761 0.157 51.703);
  --accent: oklch(0.178 0.045 125.829);
  --accent-foreground: oklch(0.816 0.228 132.421);
  --destructive: oklch(0.377 0.144 30.83);
  --destructive-foreground: oklch(0.852 0.077 25.978);
  --ring: oklch(0.18 0.038 104.665);
  --chart-1: oklch(0.18 0.038 104.665);
  --chart-2: oklch(0.151 0.033 67.164);
  --chart-3: oklch(0.178 0.045 125.829);
  --chart-4: oklch(0.194 0.046 57.766);
  --chart-5: oklch(0.181 0.039 104.727);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.011 104.077);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.193 0.003 56.25);
  --muted-foreground: oklch(0.709 0.014 56.166);
  --popover: oklch(0.127 0.014 104.077);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.014 104.077);
  --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.18 0.038 104.665);
  --primary-foreground: oklch(0.829 0.173 101.327);
  --secondary: oklch(0.151 0.033 67.164);
  --secondary-foreground: oklch(0.761 0.157 51.703);
  --accent: oklch(0.178 0.045 125.829);
  --accent-foreground: oklch(0.816 0.228 132.421);
  --destructive: oklch(0.605 0.237 30.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.038 104.665);
  --chart-1: oklch(0.18 0.038 104.665);
  --chart-2: oklch(0.151 0.033 67.164);
  --chart-3: oklch(0.178 0.045 125.829);
  --chart-4: oklch(0.194 0.046 57.766);
  --chart-5: oklch(0.181 0.039 104.727);
}