Bet is a shadcn/ui theme built around a neutral gray primary color (#99a498) with muted light green accents (#c9d5c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#99a498) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #031203black | #f9fbf9mintcream |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030d02black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #031203black | #f9fbf9mintcream |
| Primary | #99a498darkgray | #99a498darkgray |
| Primary foreground | #050505black | #050505black |
| Secondary | #c9d5c8lightgrey | #111811black |
| Secondary foreground | #2f3d2fdarkslategray | #9fbd9edarkseagreen |
| Muted | #dce5dcgainsboro | #1a231ablack |
| Muted foreground | #4f644fdarkolivegreen | #9cb09bdarkgray |
| Accent | #c9d5c8lightgrey | #111811black |
| Accent foreground | #2f3d2fdarkslategray | #9fbd9edarkseagreen |
| Destructive | #92390csaddlebrown | #e25812chocolate |
| Destructive foreground | #fce2d5antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #99a498darkgray | #99a498darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 4.98:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 8.80:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Bet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.04 142.47);
--muted: oklch(0.913 0.017 144.501);
--muted-foreground: oklch(0.48 0.042 144.033);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.161 0.04 142.47);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.143 0.035 142.444);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.706 0.021 144.426);
--primary-foreground: oklch(0.116 0.003 144.443);
--secondary: oklch(0.86 0.022 144.455);
--secondary-foreground: oklch(0.341 0.03 144.037);
--accent: oklch(0.86 0.022 144.455);
--accent-foreground: oklch(0.341 0.03 144.037);
--destructive: oklch(0.462 0.132 42.2);
--destructive-foreground: oklch(0.929 0.034 48.338);
--ring: oklch(0.706 0.021 144.426);
--chart-1: oklch(0.706 0.021 144.426);
--chart-2: oklch(0.86 0.022 144.455);
--chart-3: oklch(0.86 0.022 144.455);
--chart-4: oklch(0.882 0.018 144.486);
--chart-5: oklch(0.71 0.031 144.33);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 144.597);
--muted: oklch(0.246 0.023 144);
--muted-foreground: oklch(0.737 0.038 144.279);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 144.597);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 144.608);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.706 0.021 144.426);
--primary-foreground: oklch(0.116 0.003 144.443);
--secondary: oklch(0.2 0.019 143.985);
--secondary-foreground: oklch(0.767 0.054 144.149);
--accent: oklch(0.2 0.019 143.985);
--accent-foreground: oklch(0.767 0.054 144.149);
--destructive: oklch(0.634 0.187 41.431);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.021 144.426);
--chart-1: oklch(0.706 0.021 144.426);
--chart-2: oklch(0.2 0.019 143.985);
--chart-3: oklch(0.2 0.019 143.985);
--chart-4: oklch(0.236 0.025 143.909);
--chart-5: oklch(0.71 0.031 144.33);
}