Match is a shadcn/ui theme built around a green primary color (#85ea71) with purple accents (#d671ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#85ea71) on a green-tinted background (#050c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050c03black |
| Foreground | #071505black | #ffffffwhite |
| Card | #ffffffwhite | #050c03black |
| Card foreground | #071505black | #ffffffwhite |
| Popover | #ffffffwhite | #050c03black |
| Popover foreground | #071505black | #ffffffwhite |
| Primary | #85ea71lightgreen | #85ea71lightgreen |
| Primary foreground | #0a2305black | #0a2305black |
| Secondary | #d671eaorchid | #d671eaorchid |
| Secondary foreground | #1e0523black | #1e0523black |
| Muted | #f2edf3whitesmoke | #110c12black |
| Muted foreground | #5b575cdimgray | #a8a3a8darkgray |
| Accent | #d671eaorchid | #d671eaorchid |
| Accent foreground | #1e0523black | #1e0523black |
| Destructive | #9d3d10saddlebrown | #e9672bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85ea71lightgreen | #85ea71lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 11.13:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 6.11:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 11.13:1 | AAA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Match in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.177 0.038 139.405);
--muted: oklch(0.951 0.01 320.547);
--muted-foreground: oklch(0.461 0.01 320.566);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.177 0.038 139.405);
--card: oklch(1 0 180);
--card-foreground: oklch(0.177 0.038 139.405);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.848 0.185 140.371);
--primary-foreground: oklch(0.23 0.062 140.121);
--secondary: oklch(0.708 0.196 320.737);
--secondary-foreground: oklch(0.182 0.067 320.746);
--accent: oklch(0.708 0.196 320.737);
--accent-foreground: oklch(0.182 0.067 320.746);
--destructive: oklch(0.487 0.138 41.423);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.848 0.185 140.371);
--chart-1: oklch(0.848 0.185 140.371);
--chart-2: oklch(0.708 0.196 320.737);
--chart-3: oklch(0.708 0.196 320.737);
--chart-4: oklch(0.732 0.178 320.758);
--chart-5: oklch(0.853 0.191 140.382);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.027 138.801);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.015 320.664);
--muted-foreground: oklch(0.721 0.009 320.551);
--popover: oklch(0.142 0.027 138.801);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.027 138.801);
--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.848 0.185 140.371);
--primary-foreground: oklch(0.23 0.062 140.121);
--secondary: oklch(0.708 0.196 320.737);
--secondary-foreground: oklch(0.182 0.067 320.746);
--accent: oklch(0.708 0.196 320.737);
--accent-foreground: oklch(0.182 0.067 320.746);
--destructive: oklch(0.665 0.176 42.531);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.848 0.185 140.371);
--chart-1: oklch(0.848 0.185 140.371);
--chart-2: oklch(0.708 0.196 320.737);
--chart-3: oklch(0.708 0.196 320.737);
--chart-4: oklch(0.732 0.178 320.758);
--chart-5: oklch(0.853 0.191 140.382);
}