Ball is a shadcn/ui theme built around a light indigo primary color (#d6d6f0) with light green accents (#d6f0d6). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the light indigo primary (#d6d6f0) on a neutral background (#020208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #020208black |
| Foreground | #010104black | #f8f8fcghostwhite |
| Card | #f8f8fcghostwhite | #04040cblack |
| Card foreground | #000000black | #fbfbfdghostwhite |
| Popover | #f8f8fcghostwhite | #04040cblack |
| Popover foreground | #000000black | #fbfbfdghostwhite |
| Primary | #d6d6f0gainsboro | #d6d6f0gainsboro |
| Primary foreground | #29296bmidnightblue | #29296bmidnightblue |
| Secondary | #f0d6d6gainsboro | #f0d6d6gainsboro |
| Secondary foreground | #6b2929saddlebrown | #6b2929saddlebrown |
| Muted | #f1e5e5linen | #1a0e0eblack |
| Muted foreground | #5b4343darkolivegreen | #bca4a4darkgray |
| Accent | #d6f0d6gainsboro | #d6f0d6gainsboro |
| Accent foreground | #0d210dblack | #0d210dblack |
| Destructive | #8a0200darkred | #f00400red |
| Destructive foreground | #ffbebdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6d6f0gainsboro | #d6d6f0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 9.09:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 13.91:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 9.09:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 13.91:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Ball in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 286.36);
--foreground: oklch(0.069 0.022 279.008);
--muted: oklch(0.93 0.013 17.389);
--muted-foreground: oklch(0.409 0.033 18.593);
--popover: oklch(0.981 0.004 286.32);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.004 286.32);
--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.885 0.034 285.674);
--primary-foreground: oklch(0.323 0.113 277.994);
--secondary: oklch(0.898 0.028 17.687);
--secondary-foreground: oklch(0.376 0.096 22.816);
--accent: oklch(0.929 0.043 145.219);
--accent-foreground: oklch(0.225 0.047 143.814);
--destructive: oklch(0.398 0.162 29.51);
--destructive-foreground: oklch(0.86 0.076 19.851);
--ring: oklch(0.885 0.034 285.674);
--chart-1: oklch(0.885 0.034 285.674);
--chart-2: oklch(0.898 0.028 17.687);
--chart-3: oklch(0.929 0.043 145.219);
--chart-4: oklch(0.926 0.02 17.523);
--chart-5: oklch(0.883 0.037 285.621);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.02 281.82);
--foreground: oklch(0.98 0.005 286.3);
--muted: oklch(0.183 0.02 19.214);
--muted-foreground: oklch(0.74 0.028 17.798);
--popover: oklch(0.109 0.024 281.783);
--popover-foreground: oklch(0.99 0.003 286.35);
--card: oklch(0.109 0.024 281.783);
--card-foreground: oklch(0.99 0.003 286.35);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.034 285.674);
--primary-foreground: oklch(0.323 0.113 277.994);
--secondary: oklch(0.898 0.028 17.687);
--secondary-foreground: oklch(0.376 0.096 22.816);
--accent: oklch(0.929 0.043 145.219);
--accent-foreground: oklch(0.225 0.047 143.814);
--destructive: oklch(0.6 0.245 29.374);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.034 285.674);
--chart-1: oklch(0.885 0.034 285.674);
--chart-2: oklch(0.898 0.028 17.687);
--chart-3: oklch(0.929 0.043 145.219);
--chart-4: oklch(0.926 0.02 17.523);
--chart-5: oklch(0.883 0.037 285.621);
}