Suspicious for shadcn/ui

Suspicious is a shadcn/ui theme built around a purple primary color (#da81c7) with muted light purple accents (#cbb9c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#da81c7) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#ffffffwhite
#040103black
Foreground
#150511black
#fdfcfdwhite
Card
#fcfcfcsnow
#080207black
Card foreground
#11040eblack
#ffffffwhite
Popover
#ffffffwhite
#040103black
Popover foreground
#150511black
#fdfcfdwhite
Primary
#da81c7orchid
#da81c7orchid
Primary foreground
#20091bblack
#20091bblack
Secondary
#d4ced3lightgrey
#282527darkslategray
Secondary foreground
#3b353adarkslategray
#c2bdc1silver
Muted
#efe6edlavender
#191017black
Muted foreground
#646264dimgray
#9d9b9cdarkgray
Accent
#cbb9c7silver
#41343edarkslategray
Accent foreground
#2f232cdarkslategray
#d8cfd6lightgrey
Destructive
#780d07maroon
#f33e35tomato
Destructive foreground
#fbbab7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#da81c7orchid
#da81c7orchid

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.61:1AAA
Primary button7.10:1AAA
Secondary button7.74:1AAA
Muted text4.96:1AA
Accent8.06:1AAA
Destructive6.86:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.51:1AAA
Primary button7.10:1AAA
Secondary button8.21:1AAA
Muted text6.74:1AA
Accent7.71:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.04 335.737);
  --muted: oklch(0.934 0.013 332.838);
  --muted-foreground: oklch(0.5 0.003 332.724);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.04 335.737);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.136 0.035 335.065);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.72 0.141 335.417);
  --primary-foreground: oklch(0.186 0.048 336.327);
  --secondary: oklch(0.858 0.008 332.768);
  --secondary-foreground: oklch(0.337 0.013 333.203);
  --accent: oklch(0.804 0.029 333.157);
  --accent-foreground: oklch(0.273 0.025 333.965);
  --destructive: oklch(0.368 0.141 29.333);
  --destructive-foreground: oklch(0.848 0.075 22.204);
  --ring: oklch(0.72 0.141 335.417);
  --chart-1: oklch(0.72 0.141 335.417);
  --chart-2: oklch(0.858 0.008 332.768);
  --chart-3: oklch(0.804 0.029 333.157);
  --chart-4: oklch(0.882 0.007 332.739);
  --chart-5: oklch(0.72 0.148 335.558);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.017 333.388);
  --foreground: oklch(0.992 0.002 332.65);
  --muted: oklch(0.188 0.02 334.185);
  --muted-foreground: oklch(0.69 0.003 332.689);
  --popover: oklch(0.086 0.017 333.388);
  --popover-foreground: oklch(0.992 0.002 332.65);
  --card: oklch(0.108 0.021 333.388);
  --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.72 0.141 335.417);
  --primary-foreground: oklch(0.186 0.048 336.327);
  --secondary: oklch(0.268 0.006 332.975);
  --secondary-foreground: oklch(0.803 0.008 332.769);
  --accent: oklch(0.344 0.025 333.694);
  --accent-foreground: oklch(0.864 0.015 332.876);
  --destructive: oklch(0.637 0.219 28.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.72 0.141 335.417);
  --chart-1: oklch(0.72 0.141 335.417);
  --chart-2: oklch(0.268 0.006 332.975);
  --chart-3: oklch(0.344 0.025 333.694);
  --chart-4: oklch(0.298 0.007 332.992);
  --chart-5: oklch(0.72 0.148 335.558);
}