Dill for shadcn/ui

Dill is a shadcn/ui theme built around a neutral gray primary color (#77767f) with neutral gray accents (#767f77). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the neutral gray primary (#77767f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#000000black
Foreground
#070415black
#fcfcfdwhite
Card
#f8f7fdghostwhite
#030303black
Card foreground
#060311black
#ffffffwhite
Popover
#f8f7fdghostwhite
#030303black
Popover foreground
#060311black
#ffffffwhite
Primary
#77767fgray
#77767fgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f7776gray
#7f7776gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0d9d7gainsboro
#28211fblack
Muted foreground
#534d4bdarkslategray
#b4adacdarkgray
Accent
#767f77gray
#767f77gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a12c0cfirebrick
#e43f11orangered
Destructive foreground
#fde8e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#77767fgray
#77767fgray

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.13:1AAA
Primary button4.50:1AA
Secondary button4.35:1AA Large
Muted text5.93:1AA
Accent4.13:1AA Large
Destructive6.16:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button4.50:1AA
Secondary button4.35:1AA Large
Muted text7.16:1AAA
Accent4.13:1AA Large
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 294.746);
  --foreground: oklch(0.128 0.04 290.554);
  --muted: oklch(0.889 0.008 32.662);
  --muted-foreground: oklch(0.424 0.009 32.676);
  --popover: oklch(0.978 0.008 294.666);
  --popover-foreground: oklch(0.118 0.035 291.831);
  --card: oklch(0.978 0.008 294.666);
  --card-foreground: oklch(0.118 0.035 291.831);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.569 0.015 294.332);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.01 32.67);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.587 0.017 150.993);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.474 0.158 34.889);
  --destructive-foreground: oklch(0.947 0.024 35.952);
  --ring: oklch(0.569 0.015 294.332);
  --chart-1: oklch(0.569 0.015 294.332);
  --chart-2: oklch(0.577 0.01 32.67);
  --chart-3: oklch(0.587 0.017 150.993);
  --chart-4: oklch(0.603 0.01 32.67);
  --chart-5: oklch(0.56 0.026 293.939);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.001 294.798);
  --muted: oklch(0.255 0.011 32.736);
  --muted-foreground: oklch(0.754 0.008 32.663);
  --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.569 0.015 294.332);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.01 32.67);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.587 0.017 150.993);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.608 0.208 34.564);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.569 0.015 294.332);
  --chart-1: oklch(0.569 0.015 294.332);
  --chart-2: oklch(0.577 0.01 32.67);
  --chart-3: oklch(0.587 0.017 150.993);
  --chart-4: oklch(0.603 0.01 32.67);
  --chart-5: oklch(0.56 0.026 293.939);
}