Insecure for shadcn/ui

Insecure is a shadcn/ui theme built around a vivid red primary color (#f58484) with vivid indigo accents (#8484f5). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#f58484) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#000000black
#ffffffwhite
Card
#fdf7f7snow
#080202black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfbsnow
#040101black
Popover foreground
#000000black
#ffffffwhite
Primary
#f58484lightcoral
#f58484lightcoral
Primary foreground
#420505maroon
#420505maroon
Secondary
#84f584lightgreen
#84f584lightgreen
Secondary foreground
#054205darkgreen
#054205darkgreen
Muted
#d0e6d0lightgrey
#192f19black
Muted foreground
#5e645edimgray
#9ba19bdarkgray
Accent
#8484f5mediumslateblue
#8484f5mediumslateblue
Accent foreground
#000000black
#000000black
Destructive
#a20401darkred
#f40501red
Destructive foreground
#ffd7d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f58484lightcoral
#f58484lightcoral

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card19.80:1AAA
Primary button6.80:1AA
Secondary button8.60:1AAA
Muted text4.61:1AA
Accent6.62:1AA
Destructive6.22:1AA
Dark mode
Text on background20.78:1AAA
Text on card20.56:1AAA
Primary button6.80:1AA
Secondary button8.60:1AAA
Muted text5.46:1AA
Accent6.62:1AA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.212);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.038 145.253);
  --muted-foreground: oklch(0.496 0.012 145.397);
  --popover: oklch(0.99 0.003 17.212);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 17.268);
  --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.739 0.138 20.943);
  --primary-foreground: oklch(0.245 0.091 27.164);
  --secondary: oklch(0.878 0.183 143.821);
  --secondary-foreground: oklch(0.33 0.106 142.694);
  --accent: oklch(0.666 0.164 280.998);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.449 0.183 29.404);
  --destructive-foreground: oklch(0.913 0.045 19.149);
  --ring: oklch(0.739 0.138 20.943);
  --chart-1: oklch(0.739 0.138 20.943);
  --chart-2: oklch(0.878 0.183 143.821);
  --chart-3: oklch(0.666 0.164 280.998);
  --chart-4: oklch(0.889 0.164 144.044);
  --chart-5: oklch(0.738 0.143 21.118);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 20.492);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.049 144.127);
  --muted-foreground: oklch(0.703 0.011 145.461);
  --popover: oklch(0.083 0.014 20.492);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.018 20.492);
  --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.739 0.138 20.943);
  --primary-foreground: oklch(0.245 0.091 27.164);
  --secondary: oklch(0.878 0.183 143.821);
  --secondary-foreground: oklch(0.33 0.106 142.694);
  --accent: oklch(0.666 0.164 280.998);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.608 0.248 29.336);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.138 20.943);
  --chart-1: oklch(0.739 0.138 20.943);
  --chart-2: oklch(0.878 0.183 143.821);
  --chart-3: oklch(0.666 0.164 280.998);
  --chart-4: oklch(0.889 0.164 144.044);
  --chart-5: oklch(0.738 0.143 21.118);
}