Dangerous for shadcn/ui

Dangerous is a shadcn/ui theme built around a deep purple primary color (#201325) with deep teal accents (#132520). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the deep purple primary (#201325) on a purple-tinted background (#0c070d).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0c070dblack
Foreground
#000000black
#fbf8fcghostwhite
Card
#fbf7fdghostwhite
#0c070dblack
Card foreground
#000000black
#fbf8fcghostwhite
Popover
#fbf7fdghostwhite
#0c070dblack
Popover foreground
#000000black
#fbf8fcghostwhite
Primary
#201325black
#201325black
Primary foreground
#c19eccplum
#c19eccplum
Secondary
#252013black
#252013black
Secondary foreground
#ccc19etan
#ccc19etan
Muted
#eee8d8antiquewhite
#272111black
Muted foreground
#6b6657dimgray
#a8a394darkgray
Accent
#132520black
#132520black
Accent foreground
#9eccc1lightsteelblue
#9eccc1lightsteelblue
Destructive
#a32205firebrick
#f9542ftomato
Destructive foreground
#fee3dcmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#201325black
#201325black

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.62:1AAA
Secondary button9.00:1AAA
Muted text4.69:1AA
Accent9.04:1AAA
Destructive6.16:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button7.62:1AAA
Secondary button9.00:1AAA
Muted text6.33:1AA
Accent9.04:1AAA
Destructive6.32:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 317.748);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.022 91.6);
  --muted-foreground: oklch(0.509 0.023 91.729);
  --popover: oklch(0.981 0.009 317.748);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 317.748);
  --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.214 0.038 317.424);
  --primary-foreground: oklch(0.746 0.075 317.594);
  --secondary: oklch(0.246 0.024 91.782);
  --secondary-foreground: oklch(0.81 0.048 91.786);
  --accent: oklch(0.247 0.025 176.524);
  --accent-foreground: oklch(0.809 0.051 177.935);
  --destructive: oklch(0.467 0.169 32.971);
  --destructive-foreground: oklch(0.935 0.031 32.704);
  --ring: oklch(0.214 0.038 317.424);
  --chart-1: oklch(0.214 0.038 317.424);
  --chart-2: oklch(0.246 0.024 91.782);
  --chart-3: oklch(0.247 0.025 176.524);
  --chart-4: oklch(0.283 0.029 91.755);
  --chart-5: oklch(0.213 0.042 317.378);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.017 318.006);
  --foreground: oklch(0.982 0.006 317.753);
  --muted: oklch(0.251 0.029 91.678);
  --muted-foreground: oklch(0.715 0.021 91.642);
  --popover: oklch(0.139 0.017 318.006);
  --popover-foreground: oklch(0.982 0.006 317.753);
  --card: oklch(0.139 0.017 318.006);
  --card-foreground: oklch(0.982 0.006 317.753);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.214 0.038 317.424);
  --primary-foreground: oklch(0.746 0.075 317.594);
  --secondary: oklch(0.246 0.024 91.782);
  --secondary-foreground: oklch(0.81 0.048 91.786);
  --accent: oklch(0.247 0.025 176.524);
  --accent-foreground: oklch(0.809 0.051 177.935);
  --destructive: oklch(0.667 0.207 34.019);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.214 0.038 317.424);
  --chart-1: oklch(0.214 0.038 317.424);
  --chart-2: oklch(0.246 0.024 91.782);
  --chart-3: oklch(0.247 0.025 176.524);
  --chart-4: oklch(0.283 0.029 91.755);
  --chart-5: oklch(0.213 0.042 317.378);
}