Basketball is a shadcn/ui theme built around a vivid deep yellow primary color (#1f2004) with vivid deep green accents (#112004). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the vivid deep yellow primary (#1f2004) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #040401black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fbfcf3floralwhite | #080802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfdf7snow | #040401black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #1f2004black | #1f2004black |
| Primary foreground | #d1d818gold | #d1d818gold |
| Secondary | #201304black | #201304black |
| Secondary foreground | #eeaf68sandybrown | #eeaf68sandybrown |
| Muted | #ecebe9linen | #161413black |
| Muted foreground | #46433fdarkslategray | #c0bdb9silver |
| Accent | #112004black | #112004black |
| Accent foreground | #71d818lawngreen | #71d818lawngreen |
| Destructive | #bb2102firebrick | #fd350dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f2004black | #1f2004black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 10.68:1 | AAA |
| Secondary button | 9.49:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 9.35:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 10.68:1 | AAA |
| Secondary button | 9.49:1 | AAA |
| Muted text | 9.78:1 | AAA |
| Accent | 9.35:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Basketball in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.008 108.083);
--foreground: oklch(0 0 0);
--muted: oklch(0.94 0.002 71.431);
--muted-foreground: oklch(0.383 0.007 71.279);
--popover: oklch(0.992 0.008 108.083);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.012 108.156);
--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.236 0.046 111.246);
--primary-foreground: oklch(0.848 0.184 111.915);
--secondary: oklch(0.2 0.035 69.875);
--secondary-foreground: oklch(0.799 0.115 68.57);
--accent: oklch(0.222 0.054 132.486);
--accent-foreground: oklch(0.788 0.226 135.424);
--destructive: oklch(0.51 0.192 32.106);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.236 0.046 111.246);
--chart-1: oklch(0.236 0.046 111.246);
--chart-2: oklch(0.2 0.035 69.875);
--chart-3: oklch(0.222 0.054 132.486);
--chart-4: oklch(0.242 0.045 66.909);
--chart-5: oklch(0.238 0.048 111.31);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.015 109.971);
--foreground: oklch(0.993 0.001 107.953);
--muted: oklch(0.194 0.003 71.304);
--muted-foreground: oklch(0.8 0.006 71.385);
--popover: oklch(0.105 0.015 109.971);
--popover-foreground: oklch(0.993 0.001 107.953);
--card: oklch(0.132 0.019 109.971);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.236 0.046 111.246);
--primary-foreground: oklch(0.848 0.184 111.915);
--secondary: oklch(0.2 0.035 69.875);
--secondary-foreground: oklch(0.799 0.115 68.57);
--accent: oklch(0.222 0.054 132.486);
--accent-foreground: oklch(0.788 0.226 135.424);
--destructive: oklch(0.643 0.237 32.192);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.236 0.046 111.246);
--chart-1: oklch(0.236 0.046 111.246);
--chart-2: oklch(0.2 0.035 69.875);
--chart-3: oklch(0.222 0.054 132.486);
--chart-4: oklch(0.242 0.045 66.909);
--chart-5: oklch(0.238 0.048 111.31);
}