Catcher for shadcn/ui

Catcher is a shadcn/ui theme built around a muted violet primary color (#a392ab) with muted purple accents (#ab92a6). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#a392ab) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#000000black
Foreground
#030104black
#faf8fbghostwhite
Card
#fbf7fdghostwhite
#000000black
Card foreground
#030104black
#faf8fbghostwhite
Popover
#fbf7fdghostwhite
#000000black
Popover foreground
#030104black
#faf8fbghostwhite
Primary
#a392abdarkgray
#a392abdarkgray
Primary foreground
#050406black
#050406black
Secondary
#9692abdarkgray
#9692abdarkgray
Secondary foreground
#050406black
#050406black
Muted
#dddaecgainsboro
#171325black
Muted foreground
#5d596edimgray
#9591a6darkgray
Accent
#ab92a6darkgray
#ab92a6darkgray
Accent foreground
#060406black
#060406black
Destructive
#961908darkred
#f44a34tomato
Destructive foreground
#fdd8d3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a392abdarkgray
#a392abdarkgray

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button7.03:1AAA
Secondary button6.78:1AA
Muted text4.92:1AA
Accent7.15:1AAA
Destructive6.53:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button7.03:1AAA
Secondary button6.78:1AA
Muted text5.94:1AA
Accent7.15:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 315.394);
  --foreground: oklch(0.08 0.025 318.045);
  --muted: oklch(0.897 0.024 294.329);
  --muted-foreground: oklch(0.474 0.035 293.416);
  --popover: oklch(0.981 0.008 315.394);
  --popover-foreground: oklch(0.08 0.025 318.045);
  --card: oklch(0.981 0.008 315.394);
  --card-foreground: oklch(0.08 0.025 318.045);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.682 0.041 315.173);
  --primary-foreground: oklch(0.113 0.005 315.839);
  --secondary: oklch(0.671 0.037 293.781);
  --secondary-foreground: oklch(0.112 0.005 294.608);
  --accent: oklch(0.687 0.042 332.239);
  --accent-foreground: oklch(0.114 0.005 331.628);
  --destructive: oklch(0.435 0.162 30.978);
  --destructive-foreground: oklch(0.912 0.041 26.808);
  --ring: oklch(0.682 0.041 315.173);
  --chart-1: oklch(0.682 0.041 315.173);
  --chart-2: oklch(0.671 0.037 293.781);
  --chart-3: oklch(0.687 0.042 332.239);
  --chart-4: oklch(0.698 0.034 293.913);
  --chart-5: oklch(0.678 0.051 315.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.005 315.408);
  --muted: oklch(0.202 0.034 291.412);
  --muted-foreground: oklch(0.666 0.032 293.913);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.005 315.408);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.005 315.408);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.682 0.041 315.173);
  --primary-foreground: oklch(0.113 0.005 315.839);
  --secondary: oklch(0.671 0.037 293.781);
  --secondary-foreground: oklch(0.112 0.005 294.608);
  --accent: oklch(0.687 0.042 332.239);
  --accent-foreground: oklch(0.114 0.005 331.628);
  --destructive: oklch(0.65 0.21 30.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.682 0.041 315.173);
  --chart-1: oklch(0.682 0.041 315.173);
  --chart-2: oklch(0.671 0.037 293.781);
  --chart-3: oklch(0.687 0.042 332.239);
  --chart-4: oklch(0.698 0.034 293.913);
  --chart-5: oklch(0.678 0.051 315.112);
}