Minty is a shadcn/ui theme built around a vivid deep green primary color (#0f3102) with vivid deep green accents (#02310c). The light mode uses a neutral background (#f9fcf7). Dark mode keeps the vivid deep green primary (#0f3102) on a green-tinted background (#060b04).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf7mintcream | #060b04black |
| Foreground | #071103black | #fcfdfcwhite |
| Card | #f9fcf7mintcream | #060b04black |
| Card foreground | #071103black | #fcfdfcwhite |
| Popover | #f9fcf7mintcream | #060b04black |
| Popover foreground | #071103black | #fcfdfcwhite |
| Primary | #0f3102black | #0f3102black |
| Primary foreground | #4df50alawngreen | #4df50alawngreen |
| Secondary | #273102black | #273102black |
| Secondary foreground | #c2f50agreenyellow | #c2f50agreenyellow |
| Muted | #f3f3f1whitesmoke | #0d0e0cblack |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #02310cblack | #02310cblack |
| Accent foreground | #0af53dlimegreen | #0af53dlimegreen |
| Destructive | #bd2a14firebrick | #ea5039tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f3102black | #0f3102black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 9.84:1 | AAA |
| Secondary button | 10.72:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 9.77:1 | AAA |
| Destructive | 5.97:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 9.84:1 | AAA |
| Secondary button | 10.72:1 | AAA |
| Muted text | 8.63:1 | AAA |
| Accent | 9.77:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Minty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 136.631);
--foreground: oklch(0.163 0.035 135.471);
--muted: oklch(0.964 0.002 116.376);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.988 0.007 136.631);
--popover-foreground: oklch(0.163 0.035 135.471);
--card: oklch(0.988 0.007 136.631);
--card-foreground: oklch(0.163 0.035 135.471);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.277 0.083 138.307);
--primary-foreground: oklch(0.849 0.273 140.2);
--secondary: oklch(0.293 0.068 121.603);
--secondary-foreground: oklch(0.901 0.221 123.554);
--accent: oklch(0.273 0.08 146.562);
--accent-foreground: oklch(0.842 0.269 144.301);
--destructive: oklch(0.523 0.186 31.602);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.083 138.307);
--chart-1: oklch(0.277 0.083 138.307);
--chart-2: oklch(0.293 0.068 121.603);
--chart-3: oklch(0.273 0.08 146.562);
--chart-4: oklch(0.346 0.082 122.111);
--chart-5: oklch(0.279 0.085 138.319);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.021 135.213);
--foreground: oklch(0.994 0.003 136.617);
--muted: oklch(0.161 0.004 116.752);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.142 0.021 135.213);
--popover-foreground: oklch(0.994 0.003 136.617);
--card: oklch(0.142 0.021 135.213);
--card-foreground: oklch(0.994 0.003 136.617);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.277 0.083 138.307);
--primary-foreground: oklch(0.849 0.273 140.2);
--secondary: oklch(0.293 0.068 121.603);
--secondary-foreground: oklch(0.901 0.221 123.554);
--accent: oklch(0.273 0.08 146.562);
--accent-foreground: oklch(0.842 0.269 144.301);
--destructive: oklch(0.64 0.194 31.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.083 138.307);
--chart-1: oklch(0.277 0.083 138.307);
--chart-2: oklch(0.293 0.068 121.603);
--chart-3: oklch(0.273 0.08 146.562);
--chart-4: oklch(0.346 0.082 122.111);
--chart-5: oklch(0.279 0.085 138.319);
}