Insidious for shadcn/ui

Insidious is a shadcn/ui theme built around a near-white primary color (#fefdfa) with muted yellow accents (#c9c3b5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-white primary (#fefdfa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#000000black
#fbfaf9snow
Card
#fefdfbsnow
#000000black
Card foreground
#000000black
#fbfaf9snow
Popover
#fefdfbsnow
#000000black
Popover foreground
#000000black
#fbfaf9snow
Primary
#fefdfasnow
#fefdfasnow
Primary foreground
#563d0bsaddlebrown
#563d0bsaddlebrown
Secondary
#d2d0cblightgrey
#1d1b16black
Secondary foreground
#3a3731darkslategray
#beb6a7darkgray
Muted
#f1ede4linen
#1b160eblack
Muted foreground
#595246darkolivegreen
#b9b3a6darkgray
Accent
#c9c3b5silver
#312c21darkslategray
Accent foreground
#2c2820darkslategray
#cec6b6silver
Destructive
#792b06saddlebrown
#da4d0bchocolate
Destructive foreground
#fbccb6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefdfasnow
#fefdfasnow

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button9.99:1AAA
Secondary button7.69:1AAA
Muted text6.59:1AA
Accent8.33:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button9.99:1AAA
Secondary button8.56:1AAA
Muted text8.59:1AAA
Accent8.22:1AAA
Destructive4.16:1AA Large

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 84.557);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.946 0.012 84.579);
  --muted-foreground: oklch(0.442 0.022 84.565);
  --popover: oklch(0.994 0.002 84.557);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.002 84.557);
  --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.995 0.004 84.561);
  --primary-foreground: oklch(0.378 0.072 79.756);
  --secondary: oklch(0.858 0.008 84.573);
  --secondary-foreground: oklch(0.338 0.011 84.593);
  --accent: oklch(0.818 0.02 84.593);
  --accent-foreground: oklch(0.28 0.016 84.542);
  --destructive: oklch(0.399 0.118 40.829);
  --destructive-foreground: oklch(0.881 0.061 46.195);
  --ring: oklch(0.995 0.004 84.561);
  --chart-1: oklch(0.995 0.004 84.561);
  --chart-2: oklch(0.858 0.008 84.573);
  --chart-3: oklch(0.818 0.02 84.593);
  --chart-4: oklch(0.881 0.006 84.569);
  --chart-5: oklch(0.995 0.004 84.561);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 84.557);
  --muted: oklch(0.204 0.017 84.379);
  --muted-foreground: oklch(0.769 0.019 84.593);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 84.557);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 84.557);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.995 0.004 84.561);
  --primary-foreground: oklch(0.378 0.072 79.756);
  --secondary: oklch(0.222 0.01 84.571);
  --secondary-foreground: oklch(0.779 0.023 84.593);
  --accent: oklch(0.294 0.02 84.471);
  --accent-foreground: oklch(0.828 0.024 84.593);
  --destructive: oklch(0.607 0.188 39.555);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.995 0.004 84.561);
  --chart-1: oklch(0.995 0.004 84.561);
  --chart-2: oklch(0.222 0.01 84.571);
  --chart-3: oklch(0.294 0.02 84.471);
  --chart-4: oklch(0.257 0.013 84.56);
  --chart-5: oklch(0.995 0.004 84.561);
}