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

Go to generator

10000+Themes for shadcn/ui

Anxious for shadcn/ui

Anxious is a shadcn/ui theme built around a deep purple primary color (#471c4a) with deep green accents (#1f4a1c). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#471c4a) on a purple-tinted background (#0a050b).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a050bblack
Foreground
#110212black
#fbf8fbsnow
Card
#fefbfewhite
#0a050bblack
Card foreground
#110212black
#fbf8fbsnow
Popover
#fefbfewhite
#0a050bblack
Popover foreground
#110212black
#fbf8fbsnow
Primary
#471c4adarkslategray
#471c4adarkslategray
Primary foreground
#e0b5e3thistle
#e0b5e3thistle
Secondary
#1f4a1cdarkgreen
#1f4a1cdarkgreen
Secondary foreground
#b8e3b5silver
#b8e3b5silver
Muted
#eaf1e9linen
#0f160eblack
Muted foreground
#3d4e3cdarkslategray
#b2c3b1silver
Accent
#1f4a1cdarkgreen
#1f4a1cdarkgreen
Accent foreground
#b8e3b5silver
#b8e3b5silver
Destructive
#681308maroon
#e82b11orangered
Destructive foreground
#f9b3aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#471c4adarkslategray
#471c4adarkslategray

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button7.75:1AAA
Secondary button7.15:1AAA
Muted text7.75:1AAA
Accent7.15:1AAA
Destructive7.13:1AAA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.75:1AAA
Secondary button7.15:1AAA
Muted text9.96:1AAA
Accent7.15:1AAA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 323.658);
  --foreground: oklch(0.135 0.047 325.521);
  --muted: oklch(0.95 0.012 143.567);
  --muted-foreground: oklch(0.403 0.036 143.149);
  --popover: oklch(0.991 0.004 323.658);
  --popover-foreground: oklch(0.135 0.047 325.521);
  --card: oklch(0.991 0.004 323.658);
  --card-foreground: oklch(0.135 0.047 325.521);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.31 0.094 324.912);
  --primary-foreground: oklch(0.826 0.078 324.109);
  --secondary: oklch(0.366 0.088 142.34);
  --secondary-foreground: oklch(0.873 0.077 143.161);
  --accent: oklch(0.366 0.088 142.34);
  --accent-foreground: oklch(0.873 0.077 143.161);
  --destructive: oklch(0.34 0.12 31.089);
  --destructive-foreground: oklch(0.829 0.083 27.428);
  --ring: oklch(0.31 0.094 324.912);
  --chart-1: oklch(0.31 0.094 324.912);
  --chart-2: oklch(0.366 0.088 142.34);
  --chart-3: oklch(0.366 0.088 142.34);
  --chart-4: oklch(0.402 0.098 142.319);
  --chart-5: oklch(0.311 0.099 324.954);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 324.772);
  --foreground: oklch(0.983 0.005 323.663);
  --muted: oklch(0.188 0.018 143.108);
  --muted-foreground: oklch(0.8 0.031 143.43);
  --popover: oklch(0.126 0.019 324.772);
  --popover-foreground: oklch(0.983 0.005 323.663);
  --card: oklch(0.126 0.019 324.772);
  --card-foreground: oklch(0.983 0.005 323.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.31 0.094 324.912);
  --primary-foreground: oklch(0.826 0.078 324.109);
  --secondary: oklch(0.366 0.088 142.34);
  --secondary-foreground: oklch(0.873 0.077 143.161);
  --accent: oklch(0.366 0.088 142.34);
  --accent-foreground: oklch(0.873 0.077 143.161);
  --destructive: oklch(0.601 0.225 30.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.094 324.912);
  --chart-1: oklch(0.31 0.094 324.912);
  --chart-2: oklch(0.366 0.088 142.34);
  --chart-3: oklch(0.366 0.088 142.34);
  --chart-4: oklch(0.402 0.098 142.319);
  --chart-5: oklch(0.311 0.099 324.954);
}