Thumb for shadcn/ui

Thumb is a shadcn/ui theme built around a neutral gray primary color (#d4d4d4) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#d4d4d4) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0505black
Foreground
#160303black
#f8f6f6whitesmoke
Card
#fcfcfcsnow
#0e0606black
Card foreground
#120303black
#fbf9f9snow
Popover
#ffffffwhite
#0a0505black
Popover foreground
#160303black
#f8f6f6whitesmoke
Primary
#d4d4d4lightgrey
#d4d4d4lightgrey
Primary foreground
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Secondary
#d4d4d4lightgrey
#d4d4d4lightgrey
Secondary foreground
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Muted
#e5cdcdlightgrey
#321a1ablack
Muted foreground
#584646darkslategray
#b9a7a7darkgray
Accent
#d4d4d4lightgrey
#d4d4d4lightgrey
Accent foreground
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Destructive
#b4450esienna
#ee5e17chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d4d4d4lightgrey
#d4d4d4lightgrey

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.75:1AAA
Primary button7.53:1AAA
Secondary button7.53:1AAA
Muted text5.85:1AA
Accent7.53:1AAA
Destructive5.51:1AA
Dark mode
Text on background18.81:1AAA
Text on card19.07:1AAA
Primary button7.53:1AAA
Secondary button7.53:1AAA
Muted text7.02:1AAA
Accent7.53:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.038 23.423);
  --muted: oklch(0.868 0.027 17.676);
  --muted-foreground: oklch(0.414 0.024 18.16);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.038 23.423);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.034 23.116);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.869 0 165.964);
  --primary-foreground: oklch(0.351 0 167.471);
  --secondary: oklch(0.869 0 165.964);
  --secondary-foreground: oklch(0.351 0 167.471);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.536 0.156 41.649);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0 165.964);
  --chart-1: oklch(0.869 0 165.964);
  --chart-2: oklch(0.869 0 165.964);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.892 0 180);
  --chart-5: oklch(0.867 0.003 17.213);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 19.05);
  --foreground: oklch(0.976 0.002 17.194);
  --muted: oklch(0.252 0.038 20.069);
  --muted-foreground: oklch(0.744 0.02 17.616);
  --popover: oklch(0.124 0.013 19.05);
  --popover-foreground: oklch(0.976 0.002 17.194);
  --card: oklch(0.137 0.015 19.144);
  --card-foreground: oklch(0.984 0.001 17.182);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.869 0 165.964);
  --primary-foreground: oklch(0.351 0 167.471);
  --secondary: oklch(0.869 0 165.964);
  --secondary-foreground: oklch(0.351 0 167.471);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.66 0.192 41.752);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.869 0 165.964);
  --chart-1: oklch(0.869 0 165.964);
  --chart-2: oklch(0.869 0 165.964);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.892 0 180);
  --chart-5: oklch(0.867 0.003 17.213);
}