Mat is a shadcn/ui theme built around a green primary color (#59bd3d) with purple accents (#a13dbd). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#59bd3d) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020302black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f9fcf8mintcream | #040704black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfefbwhite | #020302black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #59bd3dlimegreen | #59bd3dlimegreen |
| Primary foreground | #10230bblack | #10230bblack |
| Secondary | #a13dbddarkorchid | #a13dbddarkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efeaf0whitesmoke | #130f15black |
| Muted foreground | #665f67dimgray | #9e98a0darkgray |
| Accent | #a13dbddarkorchid | #a13dbddarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b01911firebrick | #e32116crimson |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #59bd3dlimegreen | #59bd3dlimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 5.35:1 | AA |
| Muted text | 5.22:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 5.35:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 4.66:1 | AA |
Paste this into your globals.css to use Mat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 138.892);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.008 318.887);
--muted-foreground: oklch(0.496 0.015 318.88);
--popover: oklch(0.994 0.003 138.892);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.007 138.893);
--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.711 0.189 139.612);
--primary-foreground: oklch(0.232 0.049 139.22);
--secondary: oklch(0.552 0.203 318.129);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.203 318.129);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.487 0.185 29.199);
--destructive-foreground: oklch(0.98 0.009 21);
--ring: oklch(0.711 0.189 139.612);
--chart-1: oklch(0.711 0.189 139.612);
--chart-2: oklch(0.552 0.203 318.129);
--chart-3: oklch(0.552 0.203 318.129);
--chart-4: oklch(0.575 0.2 318.259);
--chart-5: oklch(0.72 0.197 139.703);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 137.928);
--foreground: oklch(0.993 0.003 138.892);
--muted: oklch(0.177 0.013 318.863);
--muted-foreground: oklch(0.686 0.014 318.884);
--popover: oklch(0.096 0.01 137.928);
--popover-foreground: oklch(0.993 0.003 138.892);
--card: oklch(0.12 0.012 137.928);
--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.711 0.189 139.612);
--primary-foreground: oklch(0.232 0.049 139.22);
--secondary: oklch(0.552 0.203 318.129);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.203 318.129);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.587 0.226 29.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.711 0.189 139.612);
--chart-1: oklch(0.711 0.189 139.612);
--chart-2: oklch(0.552 0.203 318.129);
--chart-3: oklch(0.552 0.203 318.129);
--chart-4: oklch(0.575 0.2 318.259);
--chart-5: oklch(0.72 0.197 139.703);
}