Barstool is a shadcn/ui theme built around a neutral gray primary color (#727473) with neutral gray accents (#727374). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#727473) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #05100dblack | #f5faf9mintcream |
| Card | #fbfefdwhite | #000000black |
| Card foreground | #05100dblack | #f5faf9mintcream |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #05100dblack | #f5faf9mintcream |
| Primary | #727473dimgray | #727473dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #727472dimgray | #727472dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d6e5dbgainsboro | #1a291eblack |
| Muted foreground | #3f5044darkslategray | #afc0b4silver |
| Accent | #727374dimgray | #727374dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ad1501firebrick | #e41c01red |
| Destructive foreground | #ffe4e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #727473dimgray | #727473dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 4.72:1 | AA |
| Muted text | 6.61:1 | AA |
| Accent | 4.74:1 | AA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 4.72:1 | AA |
| Muted text | 8.01:1 | AAA |
| Accent | 4.74:1 | AA |
| Destructive | 4.69:1 | AA |
Paste this into your globals.css to use Barstool in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 181.984);
--foreground: oklch(0.159 0.018 179.792);
--muted: oklch(0.909 0.022 154.742);
--muted-foreground: oklch(0.412 0.03 153.794);
--popover: oklch(0.994 0.003 181.984);
--popover-foreground: oklch(0.159 0.018 179.792);
--card: oklch(0.994 0.003 181.984);
--card-foreground: oklch(0.159 0.018 179.792);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.556 0.003 181.922);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.004 155.068);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.555 0.002 223.171);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.476 0.185 30.933);
--destructive-foreground: oklch(0.94 0.03 26.682);
--ring: oklch(0.556 0.003 181.922);
--chart-1: oklch(0.556 0.003 181.922);
--chart-2: oklch(0.556 0.004 155.068);
--chart-3: oklch(0.555 0.002 223.171);
--chart-4: oklch(0.582 0.004 155.067);
--chart-5: oklch(0.562 0.011 181.494);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.006 181.905);
--muted: oklch(0.262 0.029 152.938);
--muted-foreground: oklch(0.792 0.025 154.589);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.006 181.905);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.006 181.905);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.556 0.003 181.922);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.004 155.068);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.555 0.002 223.171);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.585 0.23 30.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.556 0.003 181.922);
--chart-1: oklch(0.556 0.003 181.922);
--chart-2: oklch(0.556 0.004 155.068);
--chart-3: oklch(0.555 0.002 223.171);
--chart-4: oklch(0.582 0.004 155.067);
--chart-5: oklch(0.562 0.011 181.494);
}