Monstrous for shadcn/ui

Monstrous is a shadcn/ui theme built around a muted violet primary color (#a68fbd) with muted teal accents (#8fbda6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#a68fbd) on a violet-tinted background (#0a0410).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0410black
Foreground
#0d0614black
#fcfcfdwhite
Card
#ffffffwhite
#0a0410black
Card foreground
#0d0614black
#fcfcfdwhite
Popover
#ffffffwhite
#0a0410black
Popover foreground
#0d0614black
#fcfcfdwhite
Primary
#a68fbddarkgray
#a68fbddarkgray
Primary foreground
#0d0910black
#0d0910black
Secondary
#bda68frosybrown
#bda68frosybrown
Secondary foreground
#100d09black
#100d09black
Muted
#ebe0d6gainsboro
#291f14black
Muted foreground
#6b6661dimgray
#9e9994darkgray
Accent
#8fbda6darkseagreen
#8fbda6darkseagreen
Accent foreground
#09100dblack
#09100dblack
Destructive
#7c190emaroon
#e12d19crimson
Destructive foreground
#f8c9c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a68fbddarkgray
#a68fbddarkgray

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button6.81:1AA
Secondary button8.29:1AAA
Muted text4.38:1AA Large
Accent9.14:1AAA
Destructive7.06:1AAA
Dark mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.81:1AA
Secondary button8.29:1AAA
Muted text5.73:1AA
Accent9.14:1AAA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.14 0.034 306.805);
  --muted: oklch(0.913 0.019 67.592);
  --muted-foreground: oklch(0.513 0.01 67.597);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.14 0.034 306.805);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.14 0.034 306.805);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.686 0.072 307.296);
  --primary-foreground: oklch(0.15 0.015 307.371);
  --secondary: oklch(0.738 0.042 67.093);
  --secondary-foreground: oklch(0.161 0.009 67.193);
  --accent: oklch(0.758 0.059 162.882);
  --accent-foreground: oklch(0.165 0.012 163.002);
  --destructive: oklch(0.384 0.136 30.425);
  --destructive-foreground: oklch(0.875 0.055 25.628);
  --ring: oklch(0.686 0.072 307.296);
  --chart-1: oklch(0.686 0.072 307.296);
  --chart-2: oklch(0.738 0.042 67.093);
  --chart-3: oklch(0.758 0.059 162.882);
  --chart-4: oklch(0.761 0.038 67.196);
  --chart-5: oklch(0.681 0.08 307.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.032 308.247);
  --foreground: oklch(0.992 0.001 308.45);
  --muted: oklch(0.247 0.025 66.213);
  --muted-foreground: oklch(0.686 0.01 67.668);
  --popover: oklch(0.128 0.032 308.247);
  --popover-foreground: oklch(0.992 0.001 308.45);
  --card: oklch(0.128 0.032 308.247);
  --card-foreground: oklch(0.992 0.001 308.45);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.686 0.072 307.296);
  --primary-foreground: oklch(0.15 0.015 307.371);
  --secondary: oklch(0.738 0.042 67.093);
  --secondary-foreground: oklch(0.161 0.009 67.193);
  --accent: oklch(0.758 0.059 162.882);
  --accent-foreground: oklch(0.165 0.012 163.002);
  --destructive: oklch(0.59 0.217 30.516);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.072 307.296);
  --chart-1: oklch(0.686 0.072 307.296);
  --chart-2: oklch(0.738 0.042 67.093);
  --chart-3: oklch(0.758 0.059 162.882);
  --chart-4: oklch(0.761 0.038 67.196);
  --chart-5: oklch(0.681 0.08 307.149);
}