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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.51:1 | AA |
| Text on background | 18.81:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 7.02:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.23:1 | AA |
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);
}