Vigilant for shadcn/ui

Vigilant is a shadcn/ui theme built around a muted pink primary color (#a8859c) with muted blue accents (#859ca8). The light mode uses a neutral background (#fbf8fa). Dark mode keeps the muted pink primary (#a8859c) on a pink-tinted background (#0a0509).

Color palette

TokenLightDark
Background
#fbf8fasnow
#0a0509black
Foreground
#040103black
#fdfcfdwhite
Card
#faf5f8whitesmoke
#0e070bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbf8fasnow
#0a0509black
Popover foreground
#040103black
#fdfcfdwhite
Primary
#a8859crosybrown
#a8859crosybrown
Primary foreground
#000000black
#000000black
Secondary
#9ca885darkseagreen
#9ca885darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#f1f3edwhitesmoke
#10120cblack
Muted foreground
#585e4adarkolivegreen
#aeb5a1darkgray
Accent
#859ca8lightslategray
#859ca8lightslategray
Accent foreground
#000000black
#000000black
Destructive
#ac3306firebrick
#f64f13orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a8859crosybrown
#a8859crosybrown

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.47:1AAA
Primary button6.48:1AA
Secondary button8.37:1AAA
Muted text6.01:1AA
Accent7.33:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.95:1AAA
Primary button6.48:1AA
Secondary button8.37:1AAA
Muted text8.88:1AAA
Accent7.33:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 337.351);
  --foreground: oklch(0.083 0.022 337.767);
  --muted: oklch(0.96 0.008 121.633);
  --muted-foreground: oklch(0.471 0.033 122.63);
  --popover: oklch(0.983 0.004 337.351);
  --popover-foreground: oklch(0.083 0.022 337.767);
  --card: oklch(0.975 0.006 337.396);
  --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.657 0.054 338.853);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.713 0.052 122.684);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.68 0.032 229.465);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.499 0.165 36.65);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.054 338.853);
  --chart-1: oklch(0.657 0.054 338.853);
  --chart-2: oklch(0.713 0.052 122.684);
  --chart-3: oklch(0.68 0.032 229.465);
  --chart-4: oklch(0.735 0.048 122.555);
  --chart-5: oklch(0.654 0.064 339.129);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 337.508);
  --foreground: oklch(0.991 0.002 337.312);
  --muted: oklch(0.179 0.013 122.646);
  --muted-foreground: oklch(0.762 0.029 122.113);
  --popover: oklch(0.126 0.015 337.508);
  --popover-foreground: oklch(0.991 0.002 337.312);
  --card: oklch(0.14 0.017 338.734);
  --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.657 0.054 338.853);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.713 0.052 122.684);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.68 0.032 229.465);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.657 0.212 37.008);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.054 338.853);
  --chart-1: oklch(0.657 0.054 338.853);
  --chart-2: oklch(0.713 0.052 122.684);
  --chart-3: oklch(0.68 0.032 229.465);
  --chart-4: oklch(0.735 0.048 122.555);
  --chart-5: oklch(0.654 0.064 339.129);
}