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

Go to generator

10000+Themes for shadcn/ui

Logo for shadcn/ui

Logo is a shadcn/ui theme built around a vivid violet primary color (#5205a3) with vivid purple accents (#a105a3). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#5205a3) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#fcfbfewhite
#050307black
Foreground
#000000black
#faf8fcghostwhite
Card
#faf8fcghostwhite
#08040bblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfbfewhite
#050307black
Popover foreground
#000000black
#faf8fcghostwhite
Primary
#5205a3indigo
#5205a3indigo
Primary foreground
#eddcfelavender
#eddcfelavender
Secondary
#0508a3darkblue
#0508a3darkblue
Secondary foreground
#dcddfelavender
#dcddfelavender
Muted
#e7e7e9lavender
#161618black
Muted foreground
#5d5d6fdimgray
#9090a2lightslategray
Accent
#a105a3darkmagenta
#a105a3darkmagenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#be1a0efirebrick
#ee2e20crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5205a3indigo
#5205a3indigo

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card19.86:1AAA
Primary button8.53:1AAA
Secondary button10.07:1AAA
Muted text5.21:1AA
Accent6.86:1AA
Destructive6.29:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.83:1AAA
Primary button8.53:1AAA
Secondary button10.07:1AAA
Muted text5.77:1AA
Accent6.86:1AA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 307.753);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.928 0.003 285.559);
  --muted-foreground: oklch(0.485 0.029 284.506);
  --popover: oklch(0.991 0.003 307.753);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 307.717);
  --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.385 0.208 294.665);
  --primary-foreground: oklch(0.919 0.048 307.179);
  --secondary: oklch(0.33 0.22 265.011);
  --secondary-foreground: oklch(0.907 0.045 284.697);
  --accent: oklch(0.5 0.228 327.474);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.512 0.197 29.707);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.208 294.665);
  --chart-1: oklch(0.385 0.208 294.665);
  --chart-2: oklch(0.33 0.22 265.011);
  --chart-3: oklch(0.5 0.228 327.474);
  --chart-4: oklch(0.351 0.235 264.921);
  --chart-5: oklch(0.386 0.211 294.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.018 308.979);
  --foreground: oklch(0.982 0.005 307.732);
  --muted: oklch(0.2 0.004 285.212);
  --muted-foreground: oklch(0.659 0.027 284.874);
  --popover: oklch(0.105 0.018 308.979);
  --popover-foreground: oklch(0.982 0.005 307.732);
  --card: oklch(0.12 0.02 308.875);
  --card-foreground: oklch(0.991 0.002 307.761);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.385 0.208 294.665);
  --primary-foreground: oklch(0.919 0.048 307.179);
  --secondary: oklch(0.33 0.22 265.011);
  --secondary-foreground: oklch(0.907 0.045 284.697);
  --accent: oklch(0.5 0.228 327.474);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.614 0.227 29.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.208 294.665);
  --chart-1: oklch(0.385 0.208 294.665);
  --chart-2: oklch(0.33 0.22 265.011);
  --chart-3: oklch(0.5 0.228 327.474);
  --chart-4: oklch(0.351 0.235 264.921);
  --chart-5: oklch(0.386 0.211 294.083);
}