Investigation for shadcn/ui

Investigation is a shadcn/ui theme built around a neutral gray primary color (#716b7b) with neutral gray accents (#796b7b). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#716b7b) on a violet-tinted background (#09050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#09050fblack
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#09050fblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#09050fblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#716b7bdimgray
#716b7bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6b6c7bdimgray
#6b6c7bdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeeff6whitesmoke
#090911black
Muted foreground
#4e5065dimgray
#9a9cb1darkgray
Accent
#796b7bgray
#796b7bgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ab2007firebrick
#eb2c0aorangered
Destructive foreground
#feeae7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#716b7bdimgray
#716b7bdimgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.14:1AA
Secondary button5.16:1AA
Muted text6.88:1AA
Accent5.00:1AA
Destructive6.15:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button5.14:1AA
Secondary button5.16:1AA
Muted text7.32:1AAA
Accent5.00:1AA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.954 0.01 281.119);
  --muted-foreground: oklch(0.437 0.034 279.901);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.538 0.026 303.657);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.536 0.023 280.577);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.546 0.03 322.844);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.481 0.178 31.852);
  --destructive-foreground: oklch(0.952 0.022 29.564);
  --ring: oklch(0.538 0.026 303.657);
  --chart-1: oklch(0.538 0.026 303.657);
  --chart-2: oklch(0.536 0.023 280.577);
  --chart-3: oklch(0.546 0.03 322.844);
  --chart-4: oklch(0.561 0.024 280.571);
  --chart-5: oklch(0.531 0.037 303.345);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.024 303.845);
  --foreground: oklch(0.992 0.001 304.33);
  --muted: oklch(0.145 0.016 278.999);
  --muted-foreground: oklch(0.699 0.03 280.549);
  --popover: oklch(0.13 0.024 303.845);
  --popover-foreground: oklch(0.992 0.001 304.33);
  --card: oklch(0.13 0.024 303.845);
  --card-foreground: oklch(0.992 0.001 304.33);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.538 0.026 303.657);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.536 0.023 280.577);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.546 0.03 322.844);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.606 0.227 31.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.538 0.026 303.657);
  --chart-1: oklch(0.538 0.026 303.657);
  --chart-2: oklch(0.536 0.023 280.577);
  --chart-3: oklch(0.546 0.03 322.844);
  --chart-4: oklch(0.561 0.024 280.571);
  --chart-5: oklch(0.531 0.037 303.345);
}