Investigation for shadcn/ui

Investigation is a shadcn/ui theme built around a deep purple primary color (#632c59) with deep cyan accents (#2c5963). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#632c59) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0b040ablack
Foreground
#080207black
#ffffffwhite
Card
#fdf7fcsnow
#0f060dblack
Card foreground
#040104black
#ffffffwhite
Popover
#fefbfdsnow
#0b040ablack
Popover foreground
#080207black
#ffffffwhite
Primary
#632c59darkslateblue
#632c59darkslateblue
Primary foreground
#ecd5e8gainsboro
#ecd5e8gainsboro
Secondary
#59632cdarkolivegreen
#59632cdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eceee2beige
#1b1d11black
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#2c5963darkslategray
#2c5963darkslategray
Accent foreground
#d5e8ecgainsboro
#d5e8ecgainsboro
Destructive
#c2450fchocolate
#ed5412orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#632c59darkslateblue
#632c59darkslateblue

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.62:1AAA
Primary button7.50:1AAA
Secondary button6.51:1AA
Muted text5.71:1AA
Accent6.13:1AA
Destructive5.05:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.99:1AAA
Primary button7.50:1AAA
Secondary button6.51:1AA
Muted text6.74:1AA
Accent6.13:1AA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 331.477);
  --foreground: oklch(0.106 0.028 332.544);
  --muted: oklch(0.945 0.017 115.16);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.991 0.005 331.477);
  --popover-foreground: oklch(0.106 0.028 332.544);
  --card: oklch(0.982 0.01 331.549);
  --card-foreground: oklch(0.084 0.022 332.544);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.385 0.099 334.766);
  --primary-foreground: oklch(0.897 0.036 331.964);
  --secondary: oklch(0.476 0.078 118.08);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.435 0.051 214.096);
  --accent-foreground: oklch(0.917 0.021 212.703);
  --destructive: oklch(0.559 0.171 39.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.099 334.766);
  --chart-1: oklch(0.385 0.099 334.766);
  --chart-2: oklch(0.476 0.078 118.08);
  --chart-3: oklch(0.435 0.051 214.096);
  --chart-4: oklch(0.512 0.085 118.123);
  --chart-5: oklch(0.386 0.106 334.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.021 332.306);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.226 0.024 116.794);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.125 0.021 332.306);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.024 333.132);
  --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.385 0.099 334.766);
  --primary-foreground: oklch(0.897 0.036 331.964);
  --secondary: oklch(0.476 0.078 118.08);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.435 0.051 214.096);
  --accent-foreground: oklch(0.917 0.021 212.703);
  --destructive: oklch(0.646 0.2 38.989);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.099 334.766);
  --chart-1: oklch(0.385 0.099 334.766);
  --chart-2: oklch(0.476 0.078 118.08);
  --chart-3: oklch(0.435 0.051 214.096);
  --chart-4: oklch(0.512 0.085 118.123);
  --chart-5: oklch(0.386 0.106 334.999);
}