Dental for shadcn/ui

Dental is a shadcn/ui theme built around a neutral gray primary color (#998d9a) with neutral gray accents (#9a8d95). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the neutral gray primary (#998d9a) on a purple-tinted background (#0a040b).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#0a040bblack
Foreground
#0b040cblack
#fbf9fbsnow
Card
#fbf3fcghostwhite
#0e050fblack
Card foreground
#070208black
#fdfcfdwhite
Popover
#fcf7fdghostwhite
#0a040bblack
Popover foreground
#0b040cblack
#fbf9fbsnow
Primary
#998d9alightslategray
#998d9alightslategray
Primary foreground
#000000black
#000000black
Secondary
#928d9alightslategray
#928d9alightslategray
Secondary foreground
#000000black
#000000black
Muted
#e1dceagainsboro
#1a1523black
Muted foreground
#5b516cdimgray
#9e93aedarkgray
Accent
#9a8d95rosybrown
#9a8d95rosybrown
Accent foreground
#000000black
#000000black
Destructive
#992b00saddlebrown
#fa4700orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#998d9alightslategray
#998d9alightslategray

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card18.87:1AAA
Primary button6.65:1AA
Secondary button6.53:1AA
Muted text5.50:1AA
Accent6.65:1AA
Destructive7.76:1AAA
Dark mode
Text on background19.35:1AAA
Text on card19.56:1AAA
Primary button6.65:1AA
Secondary button6.53:1AA
Muted text6.15:1AA
Accent6.65:1AA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.01 322.149);
  --foreground: oklch(0.124 0.025 323.544);
  --muted: oklch(0.903 0.02 303.316);
  --muted-foreground: oklch(0.456 0.044 302.195);
  --popover: oklch(0.981 0.01 322.149);
  --popover-foreground: oklch(0.124 0.025 323.544);
  --card: oklch(0.972 0.016 322.167);
  --card-foreground: oklch(0.108 0.022 323.726);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.659 0.023 322.23);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.653 0.02 303.195);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.659 0.019 340.095);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.457 0.152 37.284);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.659 0.023 322.23);
  --chart-1: oklch(0.659 0.023 322.23);
  --chart-2: oklch(0.653 0.02 303.195);
  --chart-3: oklch(0.659 0.019 340.095);
  --chart-4: oklch(0.679 0.018 303.247);
  --chart-5: oklch(0.656 0.034 322.288);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.024 323.478);
  --foreground: oklch(0.983 0.004 322.128);
  --muted: oklch(0.209 0.028 301.595);
  --muted-foreground: oklch(0.682 0.04 302.773);
  --popover: oklch(0.124 0.024 323.478);
  --popover-foreground: oklch(0.983 0.004 322.128);
  --card: oklch(0.138 0.027 323.062);
  --card-foreground: oklch(0.992 0.002 322.12);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.659 0.023 322.23);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.653 0.02 303.195);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.659 0.019 340.095);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.653 0.223 36.057);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.659 0.023 322.23);
  --chart-1: oklch(0.659 0.023 322.23);
  --chart-2: oklch(0.653 0.02 303.195);
  --chart-3: oklch(0.659 0.019 340.095);
  --chart-4: oklch(0.679 0.018 303.247);
  --chart-5: oklch(0.656 0.034 322.288);
}