Toothbrush for shadcn/ui

Toothbrush is a shadcn/ui theme built around a pink primary color (#bb6398) with red accents (#bb636c). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#bb6398) on a pink-tinted background (#0f050b).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0f050bblack
Foreground
#0e0209black
#fdfcfdwhite
Card
#fcf8fasnow
#0f050bblack
Card foreground
#0e0209black
#fdfcfdwhite
Popover
#fcf8fasnow
#0f050bblack
Popover foreground
#0e0209black
#fdfcfdwhite
Primary
#bb6398palevioletred
#bb6398palevioletred
Primary foreground
#000000black
#000000black
Secondary
#b263bbmediumorchid
#b263bbmediumorchid
Secondary foreground
#000000black
#000000black
Muted
#f4eaf6whitesmoke
#140915black
Muted foreground
#474248darkslategray
#bcb7bdsilver
Accent
#bb636cindianred
#bb636cindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d14600orangered
#ff7029tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bb6398palevioletred
#bb6398palevioletred

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button5.33:1AA
Secondary button5.38:1AA
Muted text8.38:1AAA
Accent4.11:1AA Large
Destructive4.58:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button5.33:1AA
Secondary button5.38:1AA
Muted text9.84:1AAA
Accent4.11:1AA Large
Destructive7.61:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 340.38);
  --foreground: oklch(0.118 0.037 341.239);
  --muted: oklch(0.948 0.019 322.707);
  --muted-foreground: oklch(0.386 0.011 322.743);
  --popover: oklch(0.982 0.006 340.38);
  --popover-foreground: oklch(0.118 0.037 341.239);
  --card: oklch(0.982 0.006 340.38);
  --card-foreground: oklch(0.118 0.037 341.239);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.618 0.129 344.63);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.622 0.152 323.442);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.604 0.112 14.694);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.584 0.186 39.275);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.129 344.63);
  --chart-1: oklch(0.618 0.129 344.63);
  --chart-2: oklch(0.622 0.152 323.442);
  --chart-3: oklch(0.604 0.112 14.694);
  --chart-4: oklch(0.647 0.142 323.381);
  --chart-5: oklch(0.617 0.138 344.963);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.024 342.17);
  --foreground: oklch(0.992 0.002 340.272);
  --muted: oklch(0.163 0.029 323.265);
  --muted-foreground: oklch(0.786 0.009 322.675);
  --popover: oklch(0.137 0.024 342.17);
  --popover-foreground: oklch(0.992 0.002 340.272);
  --card: oklch(0.137 0.024 342.17);
  --card-foreground: oklch(0.992 0.002 340.272);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.618 0.129 344.63);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.622 0.152 323.442);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.604 0.112 14.694);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.711 0.191 43.269);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.618 0.129 344.63);
  --chart-1: oklch(0.618 0.129 344.63);
  --chart-2: oklch(0.622 0.152 323.442);
  --chart-3: oklch(0.604 0.112 14.694);
  --chart-4: oklch(0.647 0.142 323.381);
  --chart-5: oklch(0.617 0.138 344.963);
}