Directory for shadcn/ui

Directory is a shadcn/ui theme built around a muted indigo primary color (#64607b) with muted green accents (#607b64). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#64607b) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#05040bblack
Foreground
#000000black
#ffffffwhite
Card
#fbfbfeghostwhite
#05040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfbfeghostwhite
#05040bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#64607bdimgray
#64607bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7b6460dimgray
#7b6460dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efe2e1mistyrose
#1e1110black
Muted foreground
#6d5754dimgray
#ab9492rosybrown
Accent
#607b64dimgray
#607b64dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d02f0bfirebrick
#f55f3dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#64607bdimgray
#64607bdimgray

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button5.97:1AA
Secondary button5.50:1AA
Muted text5.31:1AA
Accent4.65:1AA
Destructive5.11:1AA
Dark mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button5.97:1AA
Secondary button5.50:1AA
Muted text6.44:1AA
Accent4.65:1AA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 291.693);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.014 26.549);
  --muted-foreground: oklch(0.479 0.03 26.983);
  --popover: oklch(0.989 0.005 291.693);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.005 291.693);
  --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.504 0.042 290.167);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.524 0.031 26.938);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.555 0.047 148.082);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.201 32.938);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.504 0.042 290.167);
  --chart-1: oklch(0.504 0.042 290.167);
  --chart-2: oklch(0.524 0.031 26.938);
  --chart-3: oklch(0.555 0.047 148.082);
  --chart-4: oklch(0.549 0.032 26.943);
  --chart-5: oklch(0.496 0.052 289.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.02 289.896);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.022 27.601);
  --muted-foreground: oklch(0.687 0.027 26.75);
  --popover: oklch(0.115 0.02 289.896);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.02 289.896);
  --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.504 0.042 290.167);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.524 0.031 26.938);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.555 0.047 148.082);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.674 0.191 34.149);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.504 0.042 290.167);
  --chart-1: oklch(0.504 0.042 290.167);
  --chart-2: oklch(0.524 0.031 26.938);
  --chart-3: oklch(0.555 0.047 148.082);
  --chart-4: oklch(0.549 0.032 26.943);
  --chart-5: oklch(0.496 0.052 289.696);
}