Softball is a shadcn/ui theme built around a vivid green primary color (#a1fa61) with vivid pink accents (#fa61a1). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid green primary (#a1fa61) on a green-tinted background (#0a0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #0a0e06black |
| Foreground | #091203black | #fcfdfcwhite |
| Card | #f9fdf7mintcream | #0c1108black |
| Card foreground | #070d02black | #ffffffwhite |
| Popover | #f9fdf7mintcream | #0c1108black |
| Popover foreground | #070d02black | #ffffffwhite |
| Primary | #a1fa61lightgreen | #a1fa61lightgreen |
| Primary foreground | #112801black | #112801black |
| Secondary | #61a1facornflowerblue | #61a1facornflowerblue |
| Secondary foreground | #011128black | #011128black |
| Muted | #edeff2whitesmoke | #0d0f12black |
| Muted foreground | #484e56darkslategray | #a9afb7darkgray |
| Accent | #fa61a1hotpink | #fa61a1hotpink |
| Accent foreground | #280111black | #280111black |
| Destructive | #630803maroon | #f21307red |
| Destructive foreground | #fca19clightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a1fa61lightgreen | #a1fa61lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 12.32:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 6.60:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 12.32:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 8.69:1 | AAA |
| Accent | 6.60:1 | AA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Softball in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 131.757);
--foreground: oklch(0.166 0.035 131.41);
--muted: oklch(0.952 0.004 256.67);
--muted-foreground: oklch(0.421 0.016 256.766);
--popover: oklch(0.989 0.008 131.79);
--popover-foreground: oklch(0.148 0.03 130.316);
--card: oklch(0.989 0.008 131.79);
--card-foreground: oklch(0.148 0.03 130.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.206 134.409);
--primary-foreground: oklch(0.247 0.069 134.577);
--secondary: oklch(0.705 0.148 257.069);
--secondary-foreground: oklch(0.179 0.052 254.146);
--accent: oklch(0.705 0.196 357.495);
--accent-foreground: oklch(0.181 0.069 358.903);
--destructive: oklch(0.319 0.123 29.837);
--destructive-foreground: oklch(0.799 0.109 23.075);
--ring: oklch(0.898 0.206 134.409);
--chart-1: oklch(0.898 0.206 134.409);
--chart-2: oklch(0.705 0.148 257.069);
--chart-3: oklch(0.705 0.196 357.495);
--chart-4: oklch(0.731 0.133 256.971);
--chart-5: oklch(0.904 0.211 134.504);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.018 131.606);
--foreground: oklch(0.994 0.002 131.744);
--muted: oklch(0.167 0.006 256.768);
--muted-foreground: oklch(0.751 0.014 256.718);
--popover: oklch(0.17 0.021 132.581);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.17 0.021 132.581);
--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.898 0.206 134.409);
--primary-foreground: oklch(0.247 0.069 134.577);
--secondary: oklch(0.705 0.148 257.069);
--secondary-foreground: oklch(0.179 0.052 254.146);
--accent: oklch(0.705 0.196 357.495);
--accent-foreground: oklch(0.181 0.069 358.903);
--destructive: oklch(0.609 0.244 29.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.898 0.206 134.409);
--chart-1: oklch(0.898 0.206 134.409);
--chart-2: oklch(0.705 0.148 257.069);
--chart-3: oklch(0.705 0.196 357.495);
--chart-4: oklch(0.731 0.133 256.971);
--chart-5: oklch(0.904 0.211 134.504);
}