Handicap is a shadcn/ui theme built around a neutral gray primary color (#4e5050) with neutral gray accents (#50504e). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the neutral gray primary (#4e5050) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #000000black |
| Foreground | #030c0cblack | #fcfdfdwhite |
| Card | #f8fbfbghostwhite | #000000black |
| Card foreground | #030c0cblack | #fcfdfdwhite |
| Popover | #f8fbfbghostwhite | #000000black |
| Popover foreground | #030c0cblack | #fcfdfdwhite |
| Primary | #4e5050darkslategray | #4e5050darkslategray |
| Primary foreground | #e8e8e8lavender | #e8e8e8lavender |
| Secondary | #504e50darkslategray | #504e50darkslategray |
| Secondary foreground | #e8e8e8lavender | #e8e8e8lavender |
| Muted | #f2e8f1whitesmoke | #170d16black |
| Muted foreground | #584157darkslategray | #bea7bdsilver |
| Accent | #50504edarkslategray | #50504edarkslategray |
| Accent foreground | #e8e8e8lavender | #e8e8e8lavender |
| Destructive | #780907maroon | #f21b18red |
| Destructive foreground | #fbb8b7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e5050darkslategray | #4e5050darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 8.55:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Handicap in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 200.85);
--foreground: oklch(0.143 0.016 199.041);
--muted: oklch(0.942 0.016 327.194);
--muted-foreground: oklch(0.408 0.047 328.034);
--popover: oklch(0.987 0.003 200.85);
--popover-foreground: oklch(0.143 0.016 199.041);
--card: oklch(0.987 0.003 200.85);
--card-foreground: oklch(0.143 0.016 199.041);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.429 0.002 200.833);
--primary-foreground: oklch(0.931 0 200.883);
--secondary: oklch(0.427 0.003 327.107);
--secondary-foreground: oklch(0.931 0.001 327.046);
--accent: oklch(0.43 0.003 108.82);
--accent-foreground: oklch(0.932 0.001 108.721);
--destructive: oklch(0.366 0.143 28.677);
--destructive-foreground: oklch(0.844 0.078 19.941);
--ring: oklch(0.429 0.002 200.833);
--chart-1: oklch(0.429 0.002 200.833);
--chart-2: oklch(0.427 0.003 327.107);
--chart-3: oklch(0.43 0.003 108.82);
--chart-4: oklch(0.455 0.003 327.108);
--chart-5: oklch(0.433 0.008 200.677);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 200.876);
--muted: oklch(0.177 0.024 328.215);
--muted-foreground: oklch(0.755 0.04 327.517);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 200.876);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 200.876);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.429 0.002 200.833);
--primary-foreground: oklch(0.931 0 200.883);
--secondary: oklch(0.427 0.003 327.107);
--secondary-foreground: oklch(0.931 0.001 327.046);
--accent: oklch(0.43 0.003 108.82);
--accent-foreground: oklch(0.932 0.001 108.721);
--destructive: oklch(0.61 0.24 28.704);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.429 0.002 200.833);
--chart-1: oklch(0.429 0.002 200.833);
--chart-2: oklch(0.427 0.003 327.107);
--chart-3: oklch(0.43 0.003 108.82);
--chart-4: oklch(0.455 0.003 327.108);
--chart-5: oklch(0.433 0.008 200.677);
}