Digit for shadcn/ui

Digit is a shadcn/ui theme built around a light teal primary color (#cbf6e6) with light orange accents (#f6e6cb). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the light teal primary (#cbf6e6) on a teal-tinted background (#05100c).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#05100cblack
Foreground
#000000black
#f8fcfamintcream
Card
#f4fbf8mintcream
#06140fblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#f8fcfbmintcream
#05100cblack
Popover foreground
#000000black
#f8fcfamintcream
Primary
#cbf6e6paleturquoise
#cbf6e6paleturquoise
Primary foreground
#062218black
#062218black
Secondary
#e6cbf6lavender
#e6cbf6lavender
Secondary foreground
#551679indigo
#551679indigo
Muted
#ebe9eclavender
#151316black
Muted foreground
#5f5068dimgray
#a697afdarkgray
Accent
#f6e6cbblanchedalmond
#f6e6cbblanchedalmond
Accent foreground
#221806black
#221806black
Destructive
#c7430fchocolate
#ee5317orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbf6e6paleturquoise
#cbf6e6paleturquoise

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card19.98:1AAA
Primary button14.25:1AAA
Secondary button8.02:1AAA
Muted text6.15:1AA
Accent14.22:1AAA
Destructive4.94:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.54:1AAA
Primary button14.25:1AAA
Secondary button8.02:1AAA
Muted text6.74:1AA
Accent14.22:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 172.412);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.004 313.582);
  --muted-foreground: oklch(0.455 0.042 313.031);
  --popover: oklch(0.988 0.006 172.412);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 172.328);
  --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.938 0.048 170.991);
  --primary-foreground: oklch(0.229 0.04 165.616);
  --secondary: oklch(0.878 0.064 313.16);
  --secondary-foreground: oklch(0.358 0.157 309.114);
  --accent: oklch(0.93 0.039 81.424);
  --accent-foreground: oklch(0.218 0.034 79.613);
  --destructive: oklch(0.565 0.177 38.207);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.048 170.991);
  --chart-1: oklch(0.938 0.048 170.991);
  --chart-2: oklch(0.878 0.064 313.16);
  --chart-3: oklch(0.93 0.039 81.424);
  --chart-4: oklch(0.909 0.048 313.285);
  --chart-5: oklch(0.939 0.05 170.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.019 170.272);
  --foreground: oklch(0.987 0.004 172.46);
  --muted: oklch(0.19 0.005 313.43);
  --muted-foreground: oklch(0.698 0.038 313.269);
  --popover: oklch(0.158 0.019 170.272);
  --popover-foreground: oklch(0.987 0.004 172.46);
  --card: oklch(0.174 0.022 168.822);
  --card-foreground: oklch(0.993 0.002 172.518);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.938 0.048 170.991);
  --primary-foreground: oklch(0.229 0.04 165.616);
  --secondary: oklch(0.878 0.064 313.16);
  --secondary-foreground: oklch(0.358 0.157 309.114);
  --accent: oklch(0.93 0.039 81.424);
  --accent-foreground: oklch(0.218 0.034 79.613);
  --destructive: oklch(0.647 0.2 38.433);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.048 170.991);
  --chart-1: oklch(0.938 0.048 170.991);
  --chart-2: oklch(0.878 0.064 313.16);
  --chart-3: oklch(0.93 0.039 81.424);
  --chart-4: oklch(0.909 0.048 313.285);
  --chart-5: oklch(0.939 0.05 170.923);
}