Dusk for shadcn/ui

Dusk is a shadcn/ui theme built around a neutral gray primary color (#cccbcd) with neutral gray accents (#cccdcb). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the neutral gray primary (#cccbcd) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#020104black
Foreground
#030109black
#f6f4fawhitesmoke
Card
#f6f5fawhitesmoke
#040307black
Card foreground
#020104black
#f9f8fcghostwhite
Popover
#f9f8fcghostwhite
#020104black
Popover foreground
#030109black
#f6f4fawhitesmoke
Primary
#cccbcdlightgrey
#cccbcdlightgrey
Primary foreground
#333234darkslategray
#333234darkslategray
Secondary
#cccdcblightgrey
#cccdcblightgrey
Secondary foreground
#333432darkslategray
#333432darkslategray
Muted
#ebede3beige
#191c12black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#cccdcblightgrey
#cccdcblightgrey
Accent foreground
#333432darkslategray
#333432darkslategray
Destructive
#dc0804red
#fb2723crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cccbcdlightgrey
#cccbcdlightgrey

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.13:1AAA
Primary button7.88:1AAA
Secondary button7.85:1AAA
Muted text6.40:1AA
Accent7.85:1AAA
Destructive5.15:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.46:1AAA
Primary button7.88:1AAA
Secondary button7.85:1AAA
Muted text7.50:1AAA
Accent7.85:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 298.476);
  --foreground: oklch(0.091 0.03 298.336);
  --muted: oklch(0.942 0.014 118.832);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.981 0.005 298.476);
  --popover-foreground: oklch(0.091 0.03 298.336);
  --card: oklch(0.971 0.008 298.429);
  --card-foreground: oklch(0.072 0.024 298.336);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.003 298.507);
  --primary-foreground: oklch(0.318 0.004 298.366);
  --secondary: oklch(0.847 0.003 118.625);
  --secondary-foreground: oklch(0.324 0.004 118.762);
  --accent: oklch(0.847 0.003 118.625);
  --accent-foreground: oklch(0.324 0.004 118.762);
  --destructive: oklch(0.563 0.229 29.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.003 298.507);
  --chart-1: oklch(0.843 0.003 298.507);
  --chart-2: oklch(0.847 0.003 118.625);
  --chart-3: oklch(0.847 0.003 118.625);
  --chart-4: oklch(0.871 0.002 118.615);
  --chart-5: oklch(0.84 0.007 298.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.014 298.457);
  --foreground: oklch(0.971 0.008 298.421);
  --muted: oklch(0.221 0.02 120.193);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.081 0.014 298.457);
  --popover-foreground: oklch(0.971 0.008 298.421);
  --card: oklch(0.102 0.017 298.457);
  --card-foreground: oklch(0.981 0.005 298.471);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.003 298.507);
  --primary-foreground: oklch(0.318 0.004 298.366);
  --secondary: oklch(0.847 0.003 118.625);
  --secondary-foreground: oklch(0.324 0.004 118.762);
  --accent: oklch(0.847 0.003 118.625);
  --accent-foreground: oklch(0.324 0.004 118.762);
  --destructive: oklch(0.632 0.241 28.262);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.003 298.507);
  --chart-1: oklch(0.843 0.003 298.507);
  --chart-2: oklch(0.847 0.003 118.625);
  --chart-3: oklch(0.847 0.003 118.625);
  --chart-4: oklch(0.871 0.002 118.615);
  --chart-5: oklch(0.84 0.007 298.418);
}