Custody for shadcn/ui

Custody is a shadcn/ui theme built around a blue primary color (#64a4c9) with neutral gray accents (#d0d1d2). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the blue primary (#64a4c9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f4f8fbghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f4f8fbghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#64a4c9cornflowerblue
#64a4c9cornflowerblue
Primary foreground
#000000black
#000000black
Secondary
#d0d1d2lightgrey
#1c1c1cblack
Secondary foreground
#373839darkslategray
#b4b5b6silver
Muted
#cadde8gainsboro
#172a35darkslategray
Muted foreground
#525b60dimgray
#9fa8addarkgray
Accent
#d0d1d2lightgrey
#1c1c1cblack
Accent foreground
#373839darkslategray
#b4b5b6silver
Destructive
#c55016chocolate
#ea7b43coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#64a4c9cornflowerblue
#64a4c9cornflowerblue

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card19.69:1AAA
Primary button7.68:1AAA
Secondary button7.70:1AAA
Muted text4.95:1AA
Accent7.70:1AAA
Destructive4.61:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.68:1AAA
Secondary button8.29:1AAA
Muted text6.09:1AA
Accent8.29:1AAA
Destructive7.39:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 232.636);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.025 233.004);
  --muted-foreground: oklch(0.466 0.014 233.036);
  --popover: oklch(0.977 0.006 232.666);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.977 0.006 232.666);
  --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.69 0.085 235.26);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.861 0.002 232.605);
  --secondary-foreground: oklch(0.341 0.002 232.68);
  --accent: oklch(0.861 0.002 232.605);
  --accent-foreground: oklch(0.341 0.002 232.68);
  --destructive: oklch(0.579 0.163 42.431);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.69 0.085 235.26);
  --chart-1: oklch(0.69 0.085 235.26);
  --chart-2: oklch(0.861 0.002 232.605);
  --chart-3: oklch(0.861 0.002 232.605);
  --chart-4: oklch(0.885 0.001 232.601);
  --chart-5: oklch(0.691 0.09 235.495);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.275 0.032 235.025);
  --muted-foreground: oklch(0.725 0.013 232.834);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.69 0.085 235.26);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.227 0.001 232.621);
  --secondary-foreground: oklch(0.773 0.001 232.603);
  --accent: oklch(0.227 0.001 232.621);
  --accent-foreground: oklch(0.773 0.001 232.603);
  --destructive: oklch(0.698 0.154 45.463);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.69 0.085 235.26);
  --chart-1: oklch(0.69 0.085 235.26);
  --chart-2: oklch(0.227 0.001 232.621);
  --chart-3: oklch(0.227 0.001 232.621);
  --chart-4: oklch(0.259 0.001 232.625);
  --chart-5: oklch(0.691 0.09 235.495);
}