Digger for shadcn/ui

Digger is a shadcn/ui theme built around a deep purple primary color (#331839) with deep purple accents (#39182f). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#331839) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#fefbfewhite
#070208black
Foreground
#130316black
#fdfcfdwhite
Card
#fcf6fdghostwhite
#0a030cblack
Card foreground
#0f0312black
#ffffffwhite
Popover
#fefbfewhite
#070208black
Popover foreground
#130316black
#fdfcfdwhite
Primary
#331839darkslategray
#331839darkslategray
Primary foreground
#d1a9daplum
#d1a9daplum
Secondary
#231839midnightblue
#231839midnightblue
Secondary foreground
#b9a9dalightsteelblue
#b9a9dalightsteelblue
Muted
#d8d1e5gainsboro
#201a2eblack
Muted foreground
#4e4b53darkslategray
#afacb4darkgray
Accent
#39182fdarkslategray
#39182fdarkslategray
Accent foreground
#daa9cbplum
#daa9cbplum
Destructive
#762a05saddlebrown
#e15109orangered
Destructive foreground
#fccab1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#331839darkslategray
#331839darkslategray

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.00:1AAA
Primary button7.78:1AAA
Secondary button7.70:1AAA
Muted text5.78:1AA
Accent7.79:1AAA
Destructive6.76:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.32:1AAA
Primary button7.78:1AAA
Secondary button7.70:1AAA
Muted text7.53:1AAA
Accent7.79:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 319.996);
  --foreground: oklch(0.145 0.05 320.744);
  --muted: oklch(0.873 0.028 300.238);
  --muted-foreground: oklch(0.418 0.013 300.243);
  --popover: oklch(0.99 0.005 319.996);
  --popover-foreground: oklch(0.145 0.05 320.744);
  --card: oklch(0.981 0.011 320.001);
  --card-foreground: oklch(0.132 0.044 321.232);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.264 0.068 320.052);
  --primary-foreground: oklch(0.787 0.081 320.075);
  --secondary: oklch(0.242 0.061 296.145);
  --secondary-foreground: oklch(0.766 0.071 299.221);
  --accent: oklch(0.268 0.061 340.702);
  --accent-foreground: oklch(0.791 0.072 338.247);
  --destructive: oklch(0.392 0.114 41.913);
  --destructive-foreground: oklch(0.876 0.066 47.942);
  --ring: oklch(0.264 0.068 320.052);
  --chart-1: oklch(0.264 0.068 320.052);
  --chart-2: oklch(0.242 0.061 296.145);
  --chart-3: oklch(0.268 0.061 340.702);
  --chart-4: oklch(0.268 0.07 295.889);
  --chart-5: oklch(0.264 0.072 320.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.024 321.893);
  --foreground: oklch(0.992 0.002 319.993);
  --muted: oklch(0.234 0.039 297.925);
  --muted-foreground: oklch(0.749 0.012 300.514);
  --popover: oklch(0.106 0.024 321.893);
  --popover-foreground: oklch(0.992 0.002 319.993);
  --card: oklch(0.122 0.028 321.578);
  --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.264 0.068 320.052);
  --primary-foreground: oklch(0.787 0.081 320.075);
  --secondary: oklch(0.242 0.061 296.145);
  --secondary-foreground: oklch(0.766 0.071 299.221);
  --accent: oklch(0.268 0.061 340.702);
  --accent-foreground: oklch(0.791 0.072 338.247);
  --destructive: oklch(0.624 0.191 40.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.264 0.068 320.052);
  --chart-1: oklch(0.264 0.068 320.052);
  --chart-2: oklch(0.242 0.061 296.145);
  --chart-3: oklch(0.268 0.061 340.702);
  --chart-4: oklch(0.268 0.07 295.889);
  --chart-5: oklch(0.264 0.072 320.027);
}