Digital for shadcn/ui

Digital is a shadcn/ui theme built around a deep teal primary color (#1e392e) with deep cyan accents (#1e3639). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#1e392e) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#010403black
Foreground
#010503black
#f8fbfamintcream
Card
#fbfefdwhite
#010403black
Card foreground
#010503black
#f8fbfamintcream
Popover
#fbfefdwhite
#010403black
Popover foreground
#010503black
#f8fbfamintcream
Primary
#1e392edarkslategray
#1e392edarkslategray
Primary foreground
#b2d7c9lightsteelblue
#b2d7c9lightsteelblue
Secondary
#1e3921darkslategray
#1e3921darkslategray
Secondary foreground
#b2d7b6silver
#b2d7b6silver
Muted
#e2e4e2gainsboro
#1b1d1bblack
Muted foreground
#384c3bdarkslategray
#b3c7b5silver
Accent
#1e3639darkslategray
#1e3639darkslategray
Accent foreground
#b2d2d7lightsteelblue
#b2d2d7lightsteelblue
Destructive
#621d04maroon
#e24208orangered
Destructive foreground
#fbb69dlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e392edarkslategray
#1e392edarkslategray

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button8.02:1AAA
Secondary button8.01:1AAA
Muted text7.26:1AAA
Accent8.00:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button8.02:1AAA
Secondary button8.01:1AAA
Muted text9.46:1AAA
Accent8.00:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 171.505);
  --foreground: oklch(0.101 0.016 171.945);
  --muted: oklch(0.917 0.004 149.075);
  --muted-foreground: oklch(0.395 0.038 147.911);
  --popover: oklch(0.994 0.003 171.505);
  --popover-foreground: oklch(0.101 0.016 171.945);
  --card: oklch(0.994 0.003 171.505);
  --card-foreground: oklch(0.101 0.016 171.945);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.319 0.038 167.414);
  --primary-foreground: oklch(0.847 0.043 170.041);
  --secondary: oklch(0.315 0.053 146.86);
  --secondary-foreground: oklch(0.843 0.059 148.279);
  --accent: oklch(0.313 0.03 206.431);
  --accent-foreground: oklch(0.843 0.035 206.267);
  --destructive: oklch(0.339 0.106 38.167);
  --destructive-foreground: oklch(0.835 0.089 40.833);
  --ring: oklch(0.319 0.038 167.414);
  --chart-1: oklch(0.319 0.038 167.414);
  --chart-2: oklch(0.315 0.053 146.86);
  --chart-3: oklch(0.313 0.03 206.431);
  --chart-4: oklch(0.349 0.061 146.779);
  --chart-5: oklch(0.322 0.041 167.015);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.013 171.873);
  --foreground: oklch(0.987 0.004 171.483);
  --muted: oklch(0.229 0.006 148.804);
  --muted-foreground: oklch(0.808 0.033 148.648);
  --popover: oklch(0.099 0.013 171.873);
  --popover-foreground: oklch(0.987 0.004 171.483);
  --card: oklch(0.099 0.013 171.873);
  --card-foreground: oklch(0.987 0.004 171.483);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.319 0.038 167.414);
  --primary-foreground: oklch(0.847 0.043 170.041);
  --secondary: oklch(0.315 0.053 146.86);
  --secondary-foreground: oklch(0.843 0.059 148.279);
  --accent: oklch(0.313 0.03 206.431);
  --accent-foreground: oklch(0.843 0.035 206.267);
  --destructive: oklch(0.61 0.204 36.189);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.319 0.038 167.414);
  --chart-1: oklch(0.319 0.038 167.414);
  --chart-2: oklch(0.315 0.053 146.86);
  --chart-3: oklch(0.313 0.03 206.431);
  --chart-4: oklch(0.349 0.061 146.779);
  --chart-5: oklch(0.322 0.041 167.015);
}