Insurrection for shadcn/ui

Insurrection is a shadcn/ui theme built around a vivid deep cyan primary color (#041920) with vivid deep blue accents (#040a20). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid deep cyan primary (#041920) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#010304black
Foreground
#020709black
#fcfdfdwhite
Card
#f5f9faghostwhite
#020608black
Card foreground
#010304black
#ffffffwhite
Popover
#f8fbfcghostwhite
#010304black
Popover foreground
#020709black
#fcfdfdwhite
Primary
#041920black
#041920black
Primary foreground
#18a5d8dodgerblue
#18a5d8dodgerblue
Secondary
#042019black
#042019black
Secondary foreground
#18d8ablightseagreen
#18d8ablightseagreen
Muted
#d9e8e4gainsboro
#172623black
Muted foreground
#57756edimgray
#8aa8a1darkseagreen
Accent
#040a20black
#040a20black
Accent foreground
#c3d0f8lightblue
#c3d0f8lightblue
Destructive
#af4412sienna
#e75d1dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#041920black
#041920black

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.43:1AAA
Primary button6.38:1AA
Secondary button9.33:1AAA
Muted text3.98:1AA Large
Accent12.80:1AAA
Destructive5.72:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.30:1AAA
Primary button6.38:1AA
Secondary button9.33:1AAA
Muted text6.11:1AA
Accent12.80:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 221.331);
  --foreground: oklch(0.119 0.015 215.212);
  --muted: oklch(0.919 0.017 180.433);
  --muted-foreground: oklch(0.537 0.037 178.847);
  --popover: oklch(0.986 0.003 221.331);
  --popover-foreground: oklch(0.119 0.015 215.212);
  --card: oklch(0.978 0.005 221.345);
  --card-foreground: oklch(0.095 0.012 215.212);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.198 0.032 224.178);
  --primary-foreground: oklch(0.676 0.131 230.249);
  --secondary: oklch(0.22 0.037 174.682);
  --secondary-foreground: oklch(0.786 0.152 170.411);
  --accent: oklch(0.154 0.048 265.04);
  --accent-foreground: oklch(0.861 0.058 271.839);
  --destructive: oklch(0.527 0.151 41.249);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.198 0.032 224.178);
  --chart-1: oklch(0.198 0.032 224.178);
  --chart-2: oklch(0.22 0.037 174.682);
  --chart-3: oklch(0.154 0.048 265.04);
  --chart-4: oklch(0.27 0.047 173.332);
  --chart-5: oklch(0.199 0.033 224.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.009 216.545);
  --foreground: oklch(0.993 0.001 221.317);
  --muted: oklch(0.255 0.022 178.236);
  --muted-foreground: oklch(0.707 0.035 179.479);
  --popover: oklch(0.094 0.009 216.545);
  --popover-foreground: oklch(0.993 0.001 221.317);
  --card: oklch(0.118 0.011 216.545);
  --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.198 0.032 224.178);
  --primary-foreground: oklch(0.676 0.131 230.249);
  --secondary: oklch(0.22 0.037 174.682);
  --secondary-foreground: oklch(0.786 0.152 170.411);
  --accent: oklch(0.154 0.048 265.04);
  --accent-foreground: oklch(0.861 0.058 271.839);
  --destructive: oklch(0.649 0.185 41.335);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.198 0.032 224.178);
  --chart-1: oklch(0.198 0.032 224.178);
  --chart-2: oklch(0.22 0.037 174.682);
  --chart-3: oklch(0.154 0.048 265.04);
  --chart-4: oklch(0.27 0.047 173.332);
  --chart-5: oklch(0.199 0.033 224.241);
}