Insurgence for shadcn/ui

Insurgence is a shadcn/ui theme built around a vivid cyan primary color (#8ce2f3) with vivid blue accents (#8caef3). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid cyan primary (#8ce2f3) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#010304black
Foreground
#030f11black
#f9fbfbghostwhite
Card
#f4f9famintcream
#020708black
Card foreground
#020b0dblack
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#010304black
Popover foreground
#030f11black
#f9fbfbghostwhite
Primary
#8ce2f3lightskyblue
#8ce2f3lightskyblue
Primary foreground
#073b45darkslategray
#073b45darkslategray
Secondary
#8cf3d0aquamarine
#8cf3d0aquamarine
Secondary foreground
#074531darkslategray
#074531darkslategray
Muted
#e7f3efhoneydew
#0c1814black
Muted foreground
#3b4f48darkslategray
#b0c4besilver
Accent
#8caef3lightskyblue
#8caef3lightskyblue
Accent foreground
#071c45midnightblue
#071c45midnightblue
Destructive
#d13f0achocolate
#f4490borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ce2f3lightskyblue
#8ce2f3lightskyblue

Contrast

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

Light mode
Text on background18.71:1AAA
Text on card18.77:1AAA
Primary button8.27:1AAA
Secondary button8.31:1AAA
Muted text7.71:1AAA
Accent7.50:1AAA
Destructive4.72:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.88:1AAA
Primary button8.27:1AAA
Secondary button8.31:1AAA
Muted text9.94:1AAA
Accent7.50:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 211.041);
  --foreground: oklch(0.157 0.02 209.87);
  --muted: oklch(0.955 0.014 174.157);
  --muted-foreground: oklch(0.409 0.028 172.392);
  --popover: oklch(0.986 0.004 211.041);
  --popover-foreground: oklch(0.157 0.02 209.87);
  --card: oklch(0.98 0.005 211.04);
  --card-foreground: oklch(0.14 0.017 208.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.863 0.086 211.754);
  --primary-foreground: oklch(0.325 0.053 215.028);
  --secondary: oklch(0.891 0.109 170.197);
  --secondary-foreground: oklch(0.348 0.07 164.572);
  --accent: oklch(0.752 0.107 263.614);
  --accent-foreground: oklch(0.239 0.082 262.045);
  --destructive: oklch(0.577 0.191 36.551);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.086 211.754);
  --chart-1: oklch(0.863 0.086 211.754);
  --chart-2: oklch(0.891 0.109 170.197);
  --chart-3: oklch(0.752 0.107 263.614);
  --chart-4: oklch(0.903 0.097 170.853);
  --chart-5: oklch(0.866 0.089 211.813);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 207.641);
  --foreground: oklch(0.986 0.003 211.042);
  --muted: oklch(0.196 0.019 171.251);
  --muted-foreground: oklch(0.804 0.024 173.672);
  --popover: oklch(0.096 0.009 207.641);
  --popover-foreground: oklch(0.986 0.003 211.042);
  --card: oklch(0.121 0.012 207.641);
  --card-foreground: oklch(0.993 0.001 211.043);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.863 0.086 211.754);
  --primary-foreground: oklch(0.325 0.053 215.028);
  --secondary: oklch(0.891 0.109 170.197);
  --secondary-foreground: oklch(0.348 0.07 164.572);
  --accent: oklch(0.752 0.107 263.614);
  --accent-foreground: oklch(0.239 0.082 262.045);
  --destructive: oklch(0.645 0.215 36.351);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.086 211.754);
  --chart-1: oklch(0.863 0.086 211.754);
  --chart-2: oklch(0.891 0.109 170.197);
  --chart-3: oklch(0.752 0.107 263.614);
  --chart-4: oklch(0.903 0.097 170.853);
  --chart-5: oklch(0.866 0.089 211.813);
}