Diligent for shadcn/ui

Diligent is a shadcn/ui theme built around a light pink primary color (#fbf4f7) with light teal accents (#f4fbf8). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the light pink primary (#fbf4f7) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#040202black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf8f9snow
#070305black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfbfcsnow
#040202black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fbf4f7lavenderblush
#fbf4f7lavenderblush
Primary foreground
#8e2f55brown
#8e2f55brown
Secondary
#f4fbf8mintcream
#f4fbf8mintcream
Secondary foreground
#164130darkslategray
#164130darkslategray
Muted
#cee4dbgainsboro
#1b3128darkslategray
Muted foreground
#465951darkslategray
#a6b9b2darkgray
Accent
#f4fbf8mintcream
#f4fbf8mintcream
Accent foreground
#164130darkslategray
#164130darkslategray
Destructive
#ae410fsaddlebrown
#ec6222chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbf4f7lavenderblush
#fbf4f7lavenderblush

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card19.92:1AAA
Primary button7.19:1AAA
Secondary button10.91:1AAA
Muted text5.59:1AA
Accent10.91:1AAA
Destructive5.89:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.49:1AAA
Primary button7.19:1AAA
Secondary button10.91:1AAA
Muted text6.69:1AA
Accent10.91:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 350.692);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.899 0.026 169.758);
  --muted-foreground: oklch(0.444 0.026 168.793);
  --popover: oklch(0.991 0.002 350.692);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 350.763);
  --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.973 0.009 350.887);
  --primary-foreground: oklch(0.455 0.132 359.103);
  --secondary: oklch(0.982 0.009 170.359);
  --secondary-foreground: oklch(0.339 0.057 163.917);
  --accent: oklch(0.982 0.009 170.359);
  --accent-foreground: oklch(0.339 0.057 163.917);
  --destructive: oklch(0.52 0.152 40.841);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.973 0.009 350.887);
  --chart-1: oklch(0.973 0.009 350.887);
  --chart-2: oklch(0.982 0.009 170.359);
  --chart-3: oklch(0.982 0.009 170.359);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.972 0.01 350.903);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.01 350.378);
  --foreground: oklch(0.992 0.002 350.666);
  --muted: oklch(0.293 0.033 166.826);
  --muted-foreground: oklch(0.77 0.023 169.725);
  --popover: oklch(0.087 0.01 350.378);
  --popover-foreground: oklch(0.992 0.002 350.666);
  --card: oklch(0.109 0.013 350.378);
  --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.973 0.009 350.887);
  --primary-foreground: oklch(0.455 0.132 359.103);
  --secondary: oklch(0.982 0.009 170.359);
  --secondary-foreground: oklch(0.339 0.057 163.917);
  --accent: oklch(0.982 0.009 170.359);
  --accent-foreground: oklch(0.339 0.057 163.917);
  --destructive: oklch(0.663 0.185 41.787);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.973 0.009 350.887);
  --chart-1: oklch(0.973 0.009 350.887);
  --chart-2: oklch(0.982 0.009 170.359);
  --chart-3: oklch(0.982 0.009 170.359);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.972 0.01 350.903);
}