Insidious for shadcn/ui

Insidious is a shadcn/ui theme built around a deep teal primary color (#0b4c4b) with deep yellow accents (#4c4b0b). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the deep teal primary (#0b4c4b) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#020303black
Foreground
#031211black
#ffffffwhite
Card
#f8fcfcmintcream
#040707black
Card foreground
#020d0dblack
#ffffffwhite
Popover
#fbfdfdwhite
#020303black
Popover foreground
#031211black
#ffffffwhite
Primary
#0b4c4bdarkslategray
#0b4c4bdarkslategray
Primary foreground
#3fe4e1turquoise
#3fe4e1turquoise
Secondary
#4b0b4cindigo
#4b0b4cindigo
Secondary foreground
#ef98f0violet
#ef98f0violet
Muted
#f2edf2whitesmoke
#120d12black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#4c4b0bdarkolivegreen
#4c4b0bdarkolivegreen
Accent foreground
#e4e13fgreenyellow
#e4e13fgreenyellow
Destructive
#d90b08red
#dd0c08red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b4c4bdarkslategray
#0b4c4bdarkslategray

Contrast

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

Light mode
Text on background18.79:1AAA
Text on card19.04:1AAA
Primary button6.24:1AA
Secondary button7.19:1AAA
Muted text7.10:1AAA
Accent6.55:1AA
Destructive5.26:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.26:1AAA
Primary button6.24:1AA
Secondary button7.19:1AAA
Muted text8.87:1AAA
Accent6.55:1AA
Destructive5.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 195.938);
  --foreground: oklch(0.166 0.023 193.856);
  --muted: oklch(0.952 0.008 325.161);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.994 0.002 195.938);
  --popover-foreground: oklch(0.166 0.023 193.856);
  --card: oklch(0.988 0.004 195.901);
  --card-foreground: oklch(0.148 0.02 194.034);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.378 0.061 193.15);
  --primary-foreground: oklch(0.836 0.13 193.266);
  --secondary: oklch(0.298 0.123 327.371);
  --secondary-foreground: oklch(0.797 0.152 326.305);
  --accent: oklch(0.401 0.081 108.525);
  --accent-foreground: oklch(0.884 0.173 108.476);
  --destructive: oklch(0.558 0.225 29.111);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.378 0.061 193.15);
  --chart-1: oklch(0.378 0.061 193.15);
  --chart-2: oklch(0.298 0.123 327.371);
  --chart-3: oklch(0.401 0.081 108.525);
  --chart-4: oklch(0.332 0.139 327.395);
  --chart-5: oklch(0.382 0.062 193.103);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.006 195.067);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.167 0.013 325.613);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.096 0.006 195.067);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.008 195.067);
  --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.378 0.061 193.15);
  --primary-foreground: oklch(0.836 0.13 193.266);
  --secondary: oklch(0.298 0.123 327.371);
  --secondary-foreground: oklch(0.797 0.152 326.305);
  --accent: oklch(0.401 0.081 108.525);
  --accent-foreground: oklch(0.884 0.173 108.476);
  --destructive: oklch(0.567 0.229 29.115);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.378 0.061 193.15);
  --chart-1: oklch(0.378 0.061 193.15);
  --chart-2: oklch(0.298 0.123 327.371);
  --chart-3: oklch(0.401 0.081 108.525);
  --chart-4: oklch(0.332 0.139 327.395);
  --chart-5: oklch(0.382 0.062 193.103);
}