Thump is a shadcn/ui theme built around a near-black primary color (#23211f) with neutral gray accents (#dcdbda). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#23211f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040201black | #fcfaf8snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fdfcfbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040201black | #fcfaf8snow |
| Primary | #23211fblack | #23211fblack |
| Primary foreground | #bfb9b5silver | #bfb9b5silver |
| Secondary | #dcdbdagainsboro | #141414black |
| Secondary foreground | #444240darkslategray | #adadaddarkgray |
| Muted | #ece7e4linen | #1b1313black |
| Muted foreground | #6c625adimgray | #a59393rosybrown |
| Accent | #dcdbdagainsboro | #141414black |
| Accent foreground | #444240darkslategray | #adadaddarkgray |
| Destructive | #983906saddlebrown | #f67631tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #23211fblack | #23211fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 4.85:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.27:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 7.58:1 | AAA |
Paste this into your globals.css to use Thump in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.014 69.636);
--muted: oklch(0.932 0.007 58.252);
--muted-foreground: oklch(0.504 0.018 57.871);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.014 69.636);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.249 0.005 58.056);
--primary-foreground: oklch(0.79 0.009 58.212);
--secondary: oklch(0.893 0.002 58.334);
--secondary-foreground: oklch(0.381 0.004 58.208);
--accent: oklch(0.893 0.002 58.334);
--accent-foreground: oklch(0.381 0.004 58.208);
--destructive: oklch(0.472 0.138 42.321);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.249 0.005 58.056);
--chart-1: oklch(0.249 0.005 58.056);
--chart-2: oklch(0.893 0.002 58.334);
--chart-3: oklch(0.893 0.002 58.334);
--chart-4: oklch(0.916 0.001 58.341);
--chart-5: oklch(0.249 0.008 57.925);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.003 58.317);
--muted: oklch(0.196 0.015 18.468);
--muted-foreground: oklch(0.678 0.021 17.692);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.985 0.003 58.317);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 58.34);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.249 0.005 58.056);
--primary-foreground: oklch(0.79 0.009 58.212);
--secondary: oklch(0.193 0 164.055);
--secondary-foreground: oklch(0.749 0 158.199);
--accent: oklch(0.193 0 164.055);
--accent-foreground: oklch(0.749 0 158.199);
--destructive: oklch(0.707 0.176 45.506);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.249 0.005 58.056);
--chart-1: oklch(0.249 0.005 58.056);
--chart-2: oklch(0.193 0 164.055);
--chart-3: oklch(0.193 0 164.055);
--chart-4: oklch(0.227 0 164.055);
--chart-5: oklch(0.249 0.008 57.925);
}