Match is a shadcn/ui theme built around a green primary color (#a5cfab) with red accents (#cfaba5). The light mode uses a neutral background (#f8fbf9). Dark mode keeps the green primary (#a5cfab) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbf9mintcream | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fbf9mintcream | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fbf9mintcream | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #a5cfabsilver | #a5cfabsilver |
| Primary foreground | #172b1ablack | #172b1ablack |
| Secondary | #aba5cflightsteelblue | #aba5cflightsteelblue |
| Secondary foreground | #1a172bblack | #1a172bblack |
| Muted | #d3d1e0lightgrey | #211f2edarkslategray |
| Muted foreground | #5c5874dimgray | #8f8ba7lightslategray |
| Accent | #cfaba5tan | #cfaba5tan |
| Accent foreground | #2b1a17black | #2b1a17black |
| Destructive | #b84814sienna | #e8672cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5cfabsilver | #a5cfabsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 4.52:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 4.94:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.40:1 | AA |
Paste this into your globals.css to use Match in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 149.622);
--foreground: oklch(0 0 0);
--muted: oklch(0.868 0.02 292.108);
--muted-foreground: oklch(0.474 0.046 290.649);
--popover: oklch(0.986 0.005 149.622);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 149.622);
--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.814 0.066 148.62);
--primary-foreground: oklch(0.267 0.041 147.535);
--secondary: oklch(0.742 0.059 290.993);
--secondary-foreground: oklch(0.219 0.038 288.931);
--accent: oklch(0.771 0.043 28.318);
--accent-foreground: oklch(0.239 0.028 28.99);
--destructive: oklch(0.546 0.156 41.321);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.066 148.62);
--chart-1: oklch(0.814 0.066 148.62);
--chart-2: oklch(0.742 0.059 290.993);
--chart-3: oklch(0.771 0.043 28.318);
--chart-4: oklch(0.772 0.052 291.239);
--chart-5: oklch(0.817 0.073 148.514);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.248 0.027 290.362);
--muted-foreground: oklch(0.649 0.042 291.285);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.814 0.066 148.62);
--primary-foreground: oklch(0.267 0.041 147.535);
--secondary: oklch(0.742 0.059 290.993);
--secondary-foreground: oklch(0.219 0.038 288.931);
--accent: oklch(0.771 0.043 28.318);
--accent-foreground: oklch(0.239 0.028 28.99);
--destructive: oklch(0.664 0.174 42.642);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.814 0.066 148.62);
--chart-1: oklch(0.814 0.066 148.62);
--chart-2: oklch(0.742 0.059 290.993);
--chart-3: oklch(0.771 0.043 28.318);
--chart-4: oklch(0.772 0.052 291.239);
--chart-5: oklch(0.817 0.073 148.514);
}