Tooth for shadcn/ui

Tooth is a shadcn/ui theme built around a green primary color (#50ab44) with red accents (#ab4450). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#50ab44) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#030d02black
#ffffffwhite
Card
#ffffffwhite
#030703black
Card foreground
#030d02black
#ffffffwhite
Popover
#ffffffwhite
#030703black
Popover foreground
#030d02black
#ffffffwhite
Primary
#50ab44limegreen
#50ab44limegreen
Primary foreground
#0c1a0ablack
#0c1a0ablack
Secondary
#4450abdarkslateblue
#4450abdarkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddfeelavender
#111322black
Muted foreground
#404144darkslategray
#bbbbbfsilver
Accent
#ab4450sienna
#ab4450sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#89330bsaddlebrown
#ed5e1dchocolate
Destructive foreground
#fbdacbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#50ab44limegreen
#50ab44limegreen

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button6.23:1AA
Secondary button7.00:1AAA
Muted text7.70:1AAA
Accent5.68:1AA
Destructive6.30:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.23:1AA
Secondary button7.00:1AAA
Muted text9.63:1AAA
Accent5.68:1AA
Destructive6.22:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.035 139.876);
  --muted: oklch(0.906 0.021 279.961);
  --muted-foreground: oklch(0.375 0.006 280.078);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.035 139.876);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.145 0.035 139.876);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.664 0.166 141.4);
  --primary-foreground: oklch(0.198 0.035 141.527);
  --secondary: oklch(0.473 0.145 273.853);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.135 15.958);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.438 0.127 41.131);
  --destructive-foreground: oklch(0.912 0.042 46.396);
  --ring: oklch(0.664 0.166 141.4);
  --chart-1: oklch(0.664 0.166 141.4);
  --chart-2: oklch(0.473 0.145 273.853);
  --chart-3: oklch(0.529 0.135 15.958);
  --chart-4: oklch(0.494 0.152 273.796);
  --chart-5: oklch(0.672 0.175 141.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 140.757);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.192 0.031 277.302);
  --muted-foreground: oklch(0.793 0.005 280.233);
  --popover: oklch(0.122 0.018 140.757);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.018 140.757);
  --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.664 0.166 141.4);
  --primary-foreground: oklch(0.198 0.035 141.527);
  --secondary: oklch(0.473 0.145 273.853);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.135 15.958);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.659 0.19 41.215);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.664 0.166 141.4);
  --chart-1: oklch(0.664 0.166 141.4);
  --chart-2: oklch(0.473 0.145 273.853);
  --chart-3: oklch(0.529 0.135 15.958);
  --chart-4: oklch(0.494 0.152 273.796);
  --chart-5: oklch(0.672 0.175 141.4);
}