Barstool is a shadcn/ui theme built around a muted green primary color (#adb479) with muted indigo accents (#8079b4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#adb479) on a green-tinted background (#0f1004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f1004black |
| Foreground | #0f1004black | #fdfdfcwhite |
| Card | #ffffffwhite | #0f1004black |
| Card foreground | #0f1004black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0f1004black |
| Popover foreground | #0f1004black | #fdfdfcwhite |
| Primary | #adb479darkkhaki | #adb479darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #8079b4lightslategray | #8079b4lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6e4f1lavender | #0f0e1bblack |
| Muted foreground | #454356darkslategray | #aba9bcdarkgray |
| Accent | #8079b4lightslategray | #8079b4lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #ca4207chocolate | #f75e1dchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #adb479darkkhaki | #adb479darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 5.31:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 5.31:1 | AA |
| Destructive | 4.90:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 5.31:1 | AA |
| Muted text | 8.31:1 | AAA |
| Accent | 5.31:1 | AA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Barstool in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.168 0.025 114.017);
--muted: oklch(0.924 0.018 291.418);
--muted-foreground: oklch(0.392 0.033 290.107);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.168 0.025 114.017);
--card: oklch(1 0 180);
--card-foreground: oklch(0.168 0.025 114.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.749 0.079 113.742);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.606 0.088 288.83);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.606 0.088 288.83);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.567 0.181 38.215);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.749 0.079 113.742);
--chart-1: oklch(0.749 0.079 113.742);
--chart-2: oklch(0.606 0.088 288.83);
--chart-3: oklch(0.606 0.088 288.83);
--chart-4: oklch(0.636 0.081 289.233);
--chart-5: oklch(0.758 0.087 113.912);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.168 0.025 114.017);
--foreground: oklch(0.994 0.002 111.819);
--muted: oklch(0.172 0.027 288.59);
--muted-foreground: oklch(0.742 0.028 291.047);
--popover: oklch(0.168 0.025 114.017);
--popover-foreground: oklch(0.994 0.002 111.819);
--card: oklch(0.168 0.025 114.017);
--card-foreground: oklch(0.994 0.002 111.819);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.749 0.079 113.742);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.606 0.088 288.83);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.606 0.088 288.83);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.674 0.2 39.915);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.749 0.079 113.742);
--chart-1: oklch(0.749 0.079 113.742);
--chart-2: oklch(0.606 0.088 288.83);
--chart-3: oklch(0.606 0.088 288.83);
--chart-4: oklch(0.636 0.081 289.233);
--chart-5: oklch(0.758 0.087 113.912);
}