Vigilant for shadcn/ui

Vigilant is a shadcn/ui theme built around a light yellow primary color (#f1ead0) with light purple accents (#ead0f1). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the light yellow primary (#f1ead0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbf8snow
#000000black
Foreground
#171303black
#fdfdfcwhite
Card
#fcfbf8snow
#000000black
Card foreground
#171303black
#fdfdfcwhite
Popover
#fcfbf8snow
#000000black
Popover foreground
#171303black
#fdfdfcwhite
Primary
#f1ead0antiquewhite
#f1ead0antiquewhite
Primary foreground
#1f1b09black
#1f1b09black
Secondary
#d0f1eagainsboro
#d0f1eagainsboro
Secondary foreground
#091f1bblack
#091f1bblack
Muted
#deedealavender
#12211eblack
Muted foreground
#364945darkslategray
#b6c9c5silver
Accent
#ead0f1lavender
#ead0f1lavender
Accent foreground
#5f216eindigo
#5f216eindigo
Destructive
#d05a16chocolate
#ec8346coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1ead0antiquewhite
#f1ead0antiquewhite

Contrast

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

Light mode
Text on background17.97:1AAA
Text on card17.97:1AAA
Primary button14.31:1AAA
Secondary button14.25:1AAA
Muted text7.91:1AAA
Accent7.66:1AAA
Destructive4.08:1AA Large
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button14.31:1AAA
Secondary button14.25:1AAA
Muted text9.65:1AAA
Accent7.66:1AAA
Destructive7.88:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 95.093);
  --foreground: oklch(0.186 0.032 97.135);
  --muted: oklch(0.934 0.016 182.723);
  --muted-foreground: oklch(0.389 0.025 181.31);
  --popover: oklch(0.989 0.005 95.093);
  --popover-foreground: oklch(0.186 0.032 97.135);
  --card: oklch(0.989 0.005 95.093);
  --card-foreground: oklch(0.186 0.032 97.135);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.936 0.036 95.437);
  --primary-foreground: oklch(0.222 0.031 95.649);
  --secondary: oklch(0.932 0.036 182.109);
  --secondary-foreground: oklch(0.221 0.029 178.536);
  --accent: oklch(0.889 0.053 319.46);
  --accent-foreground: oklch(0.376 0.137 318.961);
  --destructive: oklch(0.608 0.166 44.781);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.936 0.036 95.437);
  --chart-1: oklch(0.936 0.036 95.437);
  --chart-2: oklch(0.932 0.036 182.109);
  --chart-3: oklch(0.889 0.053 319.46);
  --chart-4: oklch(0.949 0.027 182.398);
  --chart-5: oklch(0.938 0.037 95.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 95.046);
  --muted: oklch(0.232 0.021 180.475);
  --muted-foreground: oklch(0.82 0.021 182.456);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 95.046);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 95.046);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.936 0.036 95.437);
  --primary-foreground: oklch(0.222 0.031 95.649);
  --secondary: oklch(0.932 0.036 182.109);
  --secondary-foreground: oklch(0.221 0.029 178.536);
  --accent: oklch(0.889 0.053 319.46);
  --accent-foreground: oklch(0.376 0.137 318.961);
  --destructive: oklch(0.714 0.149 48.715);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.936 0.036 95.437);
  --chart-1: oklch(0.936 0.036 95.437);
  --chart-2: oklch(0.932 0.036 182.109);
  --chart-3: oklch(0.889 0.053 319.46);
  --chart-4: oklch(0.949 0.027 182.398);
  --chart-5: oklch(0.938 0.037 95.455);
}