Watchful for shadcn/ui

Watchful is a shadcn/ui theme built around a pink primary color (#db85b4) with blue accents (#85b4db). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#db85b4) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fdf7fasnow
#070305black
Foreground
#080205black
#ffffffwhite
Card
#fcf2f8lavenderblush
#0b0408black
Card foreground
#040103black
#ffffffwhite
Popover
#fdf7fasnow
#070305black
Popover foreground
#080205black
#ffffffwhite
Primary
#db85b4palevioletred
#db85b4palevioletred
Primary foreground
#230b18black
#230b18black
Secondary
#b4db85lightgreen
#b4db85lightgreen
Secondary foreground
#18230bblack
#18230bblack
Muted
#dfead1gainsboro
#222e15black
Muted foreground
#484f40darkslategray
#b8bfb0silver
Accent
#85b4dbskyblue
#85b4dbskyblue
Accent foreground
#0b1823black
#0b1823black
Destructive
#9d1607darkred
#eb200ared
Destructive foreground
#fddcd8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#db85b4palevioletred
#db85b4palevioletred

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.05:1AAA
Primary button7.09:1AAA
Secondary button10.42:1AAA
Muted text6.84:1AA
Accent8.18:1AAA
Destructive6.45:1AA
Dark mode
Text on background20.49:1AAA
Text on card20.25:1AAA
Primary button7.09:1AAA
Secondary button10.42:1AAA
Muted text7.57:1AAA
Accent8.18:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 342.827);
  --foreground: oklch(0.105 0.025 342.578);
  --muted: oklch(0.923 0.036 126.93);
  --muted-foreground: oklch(0.417 0.027 127.281);
  --popover: oklch(0.981 0.008 342.827);
  --popover-foreground: oklch(0.105 0.025 342.578);
  --card: oklch(0.972 0.013 342.934);
  --card-foreground: oklch(0.083 0.02 342.578);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.721 0.119 346.374);
  --primary-foreground: oklch(0.194 0.047 348.224);
  --secondary: oklch(0.843 0.119 128.45);
  --secondary-foreground: oklch(0.24 0.045 129.412);
  --accent: oklch(0.751 0.075 243.674);
  --accent-foreground: oklch(0.203 0.029 244.652);
  --destructive: oklch(0.446 0.17 30.529);
  --destructive-foreground: oklch(0.92 0.038 25.38);
  --ring: oklch(0.721 0.119 346.374);
  --chart-1: oklch(0.721 0.119 346.374);
  --chart-2: oklch(0.843 0.119 128.45);
  --chart-3: oklch(0.751 0.075 243.674);
  --chart-4: oklch(0.858 0.108 128.192);
  --chart-5: oklch(0.72 0.126 346.582);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.015 342.594);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.282 0.046 128.818);
  --muted-foreground: oklch(0.796 0.023 126.804);
  --popover: oklch(0.109 0.015 342.594);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.017 342.666);
  --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.721 0.119 346.374);
  --primary-foreground: oklch(0.194 0.047 348.224);
  --secondary: oklch(0.843 0.119 128.45);
  --secondary-foreground: oklch(0.24 0.045 129.412);
  --accent: oklch(0.751 0.075 243.674);
  --accent-foreground: oklch(0.203 0.029 244.652);
  --destructive: oklch(0.6 0.233 30.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.721 0.119 346.374);
  --chart-1: oklch(0.721 0.119 346.374);
  --chart-2: oklch(0.843 0.119 128.45);
  --chart-3: oklch(0.751 0.075 243.674);
  --chart-4: oklch(0.858 0.108 128.192);
  --chart-5: oklch(0.72 0.126 346.582);
}