Compact Mint Leaf is a shadcn/ui theme built around a vivid teal primary color (#19cca8) with muted light teal accents (#cad8d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#19cca8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020807black | #f6f9f8whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020807black | #f6f9f8whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020807black | #f6f9f8whitesmoke |
| Primary | #19cca8lightseagreen | #19cca8lightseagreen |
| Primary foreground | #031713black | #031713black |
| Secondary | #e6eae9lavender | #141a19black |
| Secondary foreground | #475754darkslategray | #a6b9b6darkgray |
| Muted | #e5ebealavender | #141a19black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #cad8d5lightgrey | #283935darkslategray |
| Accent foreground | #30413ddarkslategray | #c0d3cflightgrey |
| Destructive | #aa3003firebrick | #fa5519orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #ebefeewhitesmoke | #202826darkslategray |
| Input | #ebefeewhitesmoke | #202826darkslategray |
| Ring | #19cca8lightseagreen | #19cca8lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 9.04:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 9.04:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Compact Mint Leaf in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.016 183.012);
--muted: oklch(0.936 0.008 182.963);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.016 183.012);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.016 183.012);
--border: oklch(0.949 0.004 183.06);
--input: oklch(0.949 0.004 183.06);
--primary: oklch(0.756 0.141 173.653);
--primary-foreground: oklch(0.184 0.029 178.854);
--secondary: oklch(0.934 0.005 183.036);
--secondary-foreground: oklch(0.442 0.02 181.874);
--accent: oklch(0.871 0.015 182.699);
--accent-foreground: oklch(0.358 0.022 181.353);
--destructive: oklch(0.492 0.165 36.41);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.756 0.141 173.653);
--chart-1: oklch(0.756 0.141 173.653);
--chart-2: oklch(0.934 0.005 183.036);
--chart-3: oklch(0.871 0.015 182.699);
--chart-4: oklch(0.956 0.003 183.088);
--chart-5: oklch(0.765 0.144 173.327);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 183.096);
--muted: oklch(0.212 0.011 181.752);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.003 183.096);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.003 183.096);
--border: oklch(0.267 0.011 181.963);
--input: oklch(0.267 0.011 181.963);
--primary: oklch(0.756 0.141 173.653);
--primary-foreground: oklch(0.184 0.029 178.854);
--secondary: oklch(0.21 0.009 182.031);
--secondary-foreground: oklch(0.771 0.022 182.404);
--accent: oklch(0.328 0.022 181.18);
--accent-foreground: oklch(0.851 0.02 182.523);
--destructive: oklch(0.669 0.211 37.499);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.756 0.141 173.653);
--chart-1: oklch(0.756 0.141 173.653);
--chart-2: oklch(0.21 0.009 182.031);
--chart-3: oklch(0.328 0.022 181.18);
--chart-4: oklch(0.245 0.011 181.914);
--chart-5: oklch(0.765 0.144 173.327);
}