Insidious for shadcn/ui

Insidious is a shadcn/ui theme built around a vivid deep violet primary color (#4c1084) with vivid deep purple accents (#841082). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#4c1084) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030104black
#faf8fcghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#030104black
#faf8fcghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#030104black
#faf8fcghostwhite
Primary
#4c1084indigo
#4c1084indigo
Primary foreground
#e4cdf9lavender
#e4cdf9lavender
Secondary
#111084midnightblue
#111084midnightblue
Secondary foreground
#cecdf9lavender
#cecdf9lavender
Muted
#eeeef7whitesmoke
#080811black
Muted foreground
#45454adarkslategray
#b5b5basilver
Accent
#841082purple
#841082purple
Accent foreground
#f9cdf8lavender
#f9cdf8lavender
Destructive
#d50501red
#fe1e1bred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4c1084indigo
#4c1084indigo

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button8.40:1AAA
Secondary button9.58:1AAA
Muted text8.25:1AAA
Accent6.34:1AA
Destructive5.44:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button8.40:1AAA
Secondary button9.58:1AAA
Muted text9.74:1AAA
Accent6.34:1AA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.077 0.024 311.467);
  --muted: oklch(0.951 0.012 286.939);
  --muted-foreground: oklch(0.391 0.01 286.715);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.077 0.024 311.467);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.077 0.024 311.467);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.352 0.172 300.255);
  --primary-foreground: oklch(0.881 0.065 308.354);
  --secondary: oklch(0.297 0.179 268.81);
  --secondary-foreground: oklch(0.863 0.061 285.807);
  --accent: oklch(0.436 0.189 329.036);
  --accent-foreground: oklch(0.899 0.075 326.706);
  --destructive: oklch(0.55 0.224 29.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.172 300.255);
  --chart-1: oklch(0.352 0.172 300.255);
  --chart-2: oklch(0.297 0.179 268.81);
  --chart-3: oklch(0.436 0.189 329.036);
  --chart-4: oklch(0.318 0.194 268.507);
  --chart-5: oklch(0.352 0.176 299.735);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 309.071);
  --muted: oklch(0.141 0.02 284.446);
  --muted-foreground: oklch(0.774 0.008 286.979);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.005 309.071);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.005 309.071);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.352 0.172 300.255);
  --primary-foreground: oklch(0.881 0.065 308.354);
  --secondary: oklch(0.297 0.179 268.81);
  --secondary-foreground: oklch(0.863 0.061 285.807);
  --accent: oklch(0.436 0.189 329.036);
  --accent-foreground: oklch(0.899 0.075 326.706);
  --destructive: oklch(0.634 0.248 28.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.172 300.255);
  --chart-1: oklch(0.352 0.172 300.255);
  --chart-2: oklch(0.297 0.179 268.81);
  --chart-3: oklch(0.436 0.189 329.036);
  --chart-4: oklch(0.318 0.194 268.507);
  --chart-5: oklch(0.352 0.176 299.735);
}