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

Go to generator

10000+Themes for shadcn/ui

Felony for shadcn/ui

Felony is a shadcn/ui theme built around a light violet primary color (#bfaada) with light purple accents (#d7aada). The light mode uses a neutral background (#faf7fd). Dark mode keeps the light violet primary (#bfaada) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#050307black
Foreground
#050209black
#ffffffwhite
Card
#f7f3fbghostwhite
#07040bblack
Card foreground
#020104black
#ffffffwhite
Popover
#f7f3fbghostwhite
#07040bblack
Popover foreground
#020104black
#ffffffwhite
Primary
#bfaadalightsteelblue
#bfaadalightsteelblue
Primary foreground
#271939midnightblue
#271939midnightblue
Secondary
#aaacdalightsteelblue
#aaacdalightsteelblue
Secondary foreground
#191a39midnightblue
#191a39midnightblue
Muted
#d2d3e0lightgrey
#1f202ddarkslategray
Muted foreground
#57585bdimgray
#a4a4a8darkgray
Accent
#d7aadaplum
#d7aadaplum
Accent foreground
#371939darkslategray
#371939darkslategray
Destructive
#910808darkred
#e90c0cred
Destructive foreground
#fccfcfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfaadalightsteelblue
#bfaadalightsteelblue

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.05:1AAA
Primary button7.76:1AAA
Secondary button7.72:1AAA
Muted text4.77:1AA
Accent7.82:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.34:1AAA
Primary button7.76:1AAA
Secondary button7.72:1AAA
Muted text6.47:1AA
Accent7.82:1AAA
Destructive4.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 306.333);
  --foreground: oklch(0.097 0.028 308.214);
  --muted: oklch(0.869 0.018 283.608);
  --muted-foreground: oklch(0.46 0.005 283.765);
  --popover: oklch(0.97 0.011 306.284);
  --popover-foreground: oklch(0.077 0.022 308.214);
  --card: oklch(0.97 0.011 306.284);
  --card-foreground: oklch(0.077 0.022 308.214);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.772 0.071 305.253);
  --primary-foreground: oklch(0.248 0.061 303.034);
  --secondary: oklch(0.759 0.065 282.373);
  --secondary-foreground: oklch(0.236 0.057 278.775);
  --accent: oklch(0.794 0.083 324.706);
  --accent-foreground: oklch(0.271 0.069 325.41);
  --destructive: oklch(0.417 0.166 28.594);
  --destructive-foreground: oklch(0.893 0.052 18.17);
  --ring: oklch(0.772 0.071 305.253);
  --chart-1: oklch(0.772 0.071 305.253);
  --chart-2: oklch(0.759 0.065 282.373);
  --chart-3: oklch(0.794 0.083 324.706);
  --chart-4: oklch(0.79 0.056 282.659);
  --chart-5: oklch(0.769 0.076 305.155);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.018 307.491);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.025 282.091);
  --muted-foreground: oklch(0.72 0.005 283.854);
  --popover: oklch(0.119 0.02 307.391);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.02 307.391);
  --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.772 0.071 305.253);
  --primary-foreground: oklch(0.248 0.061 303.034);
  --secondary: oklch(0.759 0.065 282.373);
  --secondary-foreground: oklch(0.236 0.057 278.775);
  --accent: oklch(0.794 0.083 324.706);
  --accent-foreground: oklch(0.271 0.069 325.41);
  --destructive: oklch(0.589 0.237 28.863);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.772 0.071 305.253);
  --chart-1: oklch(0.772 0.071 305.253);
  --chart-2: oklch(0.759 0.065 282.373);
  --chart-3: oklch(0.794 0.083 324.706);
  --chart-4: oklch(0.79 0.056 282.659);
  --chart-5: oklch(0.769 0.076 305.155);
}