Bench is a shadcn/ui theme built around a neutral gray primary color (#343734) with neutral gray accents (#373434). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the neutral gray primary (#343734) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #000000black |
| Foreground | #061604black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #000000black |
| Card foreground | #061604black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #000000black |
| Popover foreground | #061604black | #fcfdfcwhite |
| Primary | #343734darkslategray | #343734darkslategray |
| Primary foreground | #cdd0cdlightgrey | #cdd0cdlightgrey |
| Secondary | #343437darkslategray | #343437darkslategray |
| Secondary foreground | #cdcdd0lightgrey | #cdcdd0lightgrey |
| Muted | #edeef2whitesmoke | #0d0d12black |
| Muted foreground | #4a4b55darkslategray | #aaacb5darkgray |
| Accent | #373434darkslategray | #373434darkslategray |
| Accent foreground | #d0cdcdlightgrey | #d0cdcdlightgrey |
| Destructive | #983b10saddlebrown | #de5617chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #343734darkslategray | #343734darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.10:1 | AAA |
| Text on card | 18.10:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Bench in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 141.565);
--foreground: oklch(0.179 0.044 140.036);
--muted: oklch(0.949 0.006 279.244);
--muted-foreground: oklch(0.415 0.016 278.73);
--popover: oklch(0.988 0.009 141.565);
--popover-foreground: oklch(0.179 0.044 140.036);
--card: oklch(0.988 0.009 141.565);
--card-foreground: oklch(0.179 0.044 140.036);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.334 0.007 141.535);
--primary-foreground: oklch(0.855 0.005 141.576);
--secondary: oklch(0.327 0.005 279.112);
--secondary-foreground: oklch(0.85 0.003 279.279);
--accent: oklch(0.328 0.005 8.091);
--accent-foreground: oklch(0.851 0.003 7.843);
--destructive: oklch(0.476 0.135 41.471);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.334 0.007 141.535);
--chart-1: oklch(0.334 0.007 141.535);
--chart-2: oklch(0.327 0.005 279.112);
--chart-3: oklch(0.328 0.005 8.091);
--chart-4: oklch(0.356 0.005 279.105);
--chart-5: oklch(0.336 0.013 141.48);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 141.587);
--muted: oklch(0.162 0.01 278.384);
--muted-foreground: oklch(0.746 0.014 279.057);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 141.587);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.002 141.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.334 0.007 141.535);
--primary-foreground: oklch(0.855 0.005 141.576);
--secondary: oklch(0.327 0.005 279.112);
--secondary-foreground: oklch(0.85 0.003 279.279);
--accent: oklch(0.328 0.005 8.091);
--accent-foreground: oklch(0.851 0.003 7.843);
--destructive: oklch(0.624 0.182 40.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.334 0.007 141.535);
--chart-1: oklch(0.334 0.007 141.535);
--chart-2: oklch(0.327 0.005 279.112);
--chart-3: oklch(0.328 0.005 8.091);
--chart-4: oklch(0.356 0.005 279.105);
--chart-5: oklch(0.336 0.013 141.48);
}