Noxious for shadcn/ui

Noxious is a shadcn/ui theme built around a muted violet primary color (#836892) with muted light violet accents (#d2cdd5). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#836892) on a violet-tinted background (#09040b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#09040bblack
Foreground
#030104black
#ffffffwhite
Card
#fdfbfewhite
#09040bblack
Card foreground
#030104black
#ffffffwhite
Popover
#fdfbfewhite
#09040bblack
Popover foreground
#030104black
#ffffffwhite
Primary
#836892gray
#836892gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2cdd5lightgrey
#141414black
Secondary foreground
#39343ddarkslategray
#adadaddarkgray
Muted
#ece6eflavender
#191010black
Muted foreground
#605865dimgray
#a79a9adarkgray
Accent
#d2cdd5lightgrey
#141414black
Accent foreground
#39343ddarkslategray
#adadaddarkgray
Destructive
#7c2f0esaddlebrown
#dc5318chocolate
Destructive foreground
#f8d3c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#836892gray
#836892gray

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button4.83:1AA
Secondary button7.77:1AAA
Muted text5.56:1AA
Accent7.77:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button4.83:1AA
Secondary button8.18:1AAA
Muted text6.89:1AA
Accent8.18:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 313.58);
  --foreground: oklch(0.083 0.017 315.383);
  --muted: oklch(0.932 0.013 313.517);
  --muted-foreground: oklch(0.472 0.023 313.302);
  --popover: oklch(0.99 0.004 313.58);
  --popover-foreground: oklch(0.083 0.017 315.383);
  --card: oklch(0.99 0.004 313.58);
  --card-foreground: oklch(0.083 0.017 315.383);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.558 0.071 312.81);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.856 0.011 313.525);
  --secondary-foreground: oklch(0.333 0.017 313.286);
  --accent: oklch(0.856 0.011 313.525);
  --accent-foreground: oklch(0.333 0.017 313.286);
  --destructive: oklch(0.411 0.116 40.744);
  --destructive-foreground: oklch(0.895 0.047 44.527);
  --ring: oklch(0.558 0.071 312.81);
  --chart-1: oklch(0.558 0.071 312.81);
  --chart-2: oklch(0.856 0.011 313.525);
  --chart-3: oklch(0.856 0.011 313.525);
  --chart-4: oklch(0.88 0.009 313.541);
  --chart-5: oklch(0.554 0.084 312.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.023 315.068);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.015 18.632);
  --muted-foreground: oklch(0.698 0.016 17.532);
  --popover: oklch(0.121 0.023 315.068);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.023 315.068);
  --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.558 0.071 312.81);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.193 0 164.055);
  --secondary-foreground: oklch(0.749 0 158.199);
  --accent: oklch(0.193 0 164.055);
  --accent-foreground: oklch(0.749 0 158.199);
  --destructive: oklch(0.619 0.183 39.935);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.558 0.071 312.81);
  --chart-1: oklch(0.558 0.071 312.81);
  --chart-2: oklch(0.193 0 164.055);
  --chart-3: oklch(0.193 0 164.055);
  --chart-4: oklch(0.227 0 164.055);
  --chart-5: oklch(0.554 0.084 312.652);
}