Insectarium for shadcn/ui

Insectarium is a shadcn/ui theme built around a deep indigo primary color (#101028) with muted light indigo accents (#b6b7cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#101028) on an indigo-tinted background (#040510).

Color palette

TokenLightDark
Background
#ffffffwhite
#040510black
Foreground
#050515black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#050614black
Card foreground
#040411black
#fcfcfdwhite
Popover
#fcfcfcsnow
#050614black
Popover foreground
#040411black
#fcfcfdwhite
Primary
#101028black
#101028black
Primary foreground
#9596d5mediumpurple
#9596d5mediumpurple
Secondary
#cfcfd8lightgrey
#2b2b31darkslategray
Secondary foreground
#343441darkslategray
#c3c3cbsilver
Muted
#d8d8e9gainsboro
#161627black
Muted foreground
#43434cdarkslategray
#b3b3bcsilver
Accent
#b6b7cdsilver
#36364adarkslategray
Accent foreground
#212131darkslategray
#d3d3dflightgrey
Destructive
#6e230cmaroon
#d34317chocolate
Destructive foreground
#f7c5b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#101028black
#101028black

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.93:1AAA
Primary button6.73:1AA
Secondary button7.92:1AAA
Muted text6.93:1AA
Accent8.00:1AAA
Destructive7.12:1AAA
Dark mode
Text on background19.33:1AAA
Text on card19.65:1AAA
Primary button6.73:1AA
Secondary button8.05:1AAA
Muted text8.56:1AAA
Accent7.95:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.127 0.037 278.726);
  --muted: oklch(0.887 0.024 285.127);
  --muted-foreground: oklch(0.387 0.014 284.944);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.117 0.032 279.092);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.117 0.032 279.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.189 0.047 280.149);
  --primary-foreground: oklch(0.697 0.091 283.017);
  --secondary: oklch(0.857 0.013 285.346);
  --secondary-foreground: oklch(0.332 0.022 284.352);
  --accent: oklch(0.785 0.032 284.859);
  --accent-foreground: oklch(0.256 0.029 283.434);
  --destructive: oklch(0.369 0.112 36.605);
  --destructive-foreground: oklch(0.863 0.061 37.593);
  --ring: oklch(0.189 0.047 280.149);
  --chart-1: oklch(0.189 0.047 280.149);
  --chart-2: oklch(0.857 0.013 285.346);
  --chart-3: oklch(0.785 0.032 284.859);
  --chart-4: oklch(0.883 0.011 285.402);
  --chart-5: oklch(0.187 0.051 279.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.028 280.156);
  --foreground: oklch(0.983 0.002 285.573);
  --muted: oklch(0.209 0.034 282.271);
  --muted-foreground: oklch(0.771 0.012 285.339);
  --popover: oklch(0.13 0.033 279.834);
  --popover-foreground: oklch(0.991 0.001 285.595);
  --card: oklch(0.13 0.033 279.834);
  --card-foreground: oklch(0.991 0.001 285.595);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.047 280.149);
  --primary-foreground: oklch(0.697 0.091 283.017);
  --secondary: oklch(0.291 0.011 284.893);
  --secondary-foreground: oklch(0.82 0.011 285.381);
  --accent: oklch(0.341 0.035 283.623);
  --accent-foreground: oklch(0.87 0.016 285.274);
  --destructive: oklch(0.585 0.188 35.994);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.047 280.149);
  --chart-1: oklch(0.189 0.047 280.149);
  --chart-2: oklch(0.291 0.011 284.893);
  --chart-3: oklch(0.341 0.035 283.623);
  --chart-4: oklch(0.32 0.013 284.866);
  --chart-5: oklch(0.187 0.051 279.606);
}