Dangerous for shadcn/ui

Dangerous is a shadcn/ui theme built around a muted light purple primary color (#e8e3e7) with neutral gray accents (#ded9dd). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted light purple primary (#e8e3e7) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fefbfewhite
#070307black
Foreground
#000000black
#ffffffwhite
Card
#fefbfewhite
#070307black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfewhite
#070307black
Popover foreground
#000000black
#ffffffwhite
Primary
#e8e3e7gainsboro
#e8e3e7gainsboro
Primary foreground
#534651darkslategray
#534651darkslategray
Secondary
#ded9ddgainsboro
#1c1c1cblack
Secondary foreground
#473e46darkslategray
#b5b5b5silver
Muted
#f6eff5whitesmoke
#100909black
Muted foreground
#484748darkslategray
#b8b7b7silver
Accent
#ded9ddgainsboro
#1c1c1cblack
Accent foreground
#473e46darkslategray
#b5b5b5silver
Destructive
#b23a0afirebrick
#f14e0eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8e3e7gainsboro
#e8e3e7gainsboro

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button7.02:1AAA
Secondary button7.35:1AAA
Muted text8.17:1AAA
Accent7.35:1AAA
Destructive5.98:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.02:1AAA
Secondary button8.30:1AAA
Muted text9.83:1AAA
Accent8.30:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 328.65);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.011 328.714);
  --muted-foreground: oklch(0.399 0.003 328.671);
  --popover: oklch(0.991 0.005 328.65);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.005 328.65);
  --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.921 0.007 328.672);
  --primary-foreground: oklch(0.412 0.024 329.221);
  --secondary: oklch(0.89 0.008 328.694);
  --secondary-foreground: oklch(0.375 0.019 329.131);
  --accent: oklch(0.89 0.008 328.694);
  --accent-foreground: oklch(0.375 0.019 329.131);
  --destructive: oklch(0.519 0.164 37.979);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.007 328.672);
  --chart-1: oklch(0.921 0.007 328.672);
  --chart-2: oklch(0.89 0.008 328.694);
  --chart-3: oklch(0.89 0.008 328.694);
  --chart-4: oklch(0.914 0.006 328.669);
  --chart-5: oklch(0.921 0.009 328.701);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.018 329.536);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.151 0.012 18.547);
  --muted-foreground: oklch(0.78 0.002 17.192);
  --popover: oklch(0.11 0.018 329.536);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.11 0.018 329.536);
  --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.921 0.007 328.672);
  --primary-foreground: oklch(0.412 0.024 329.221);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.227 0 164.055);
  --accent-foreground: oklch(0.773 0 180);
  --destructive: oklch(0.646 0.209 37.542);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.007 328.672);
  --chart-1: oklch(0.921 0.007 328.672);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.227 0 164.055);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.921 0.009 328.701);
}