Minor is a shadcn/ui theme built around a green primary color (#aacfa5) with green accents (#a5cfb5). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#aacfa5) on a green-tinted background (#050b04).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #050b04black |
| Foreground | #061504black | #fcfdfcwhite |
| Card | #f4fbf3whitesmoke | #070f06black |
| Card foreground | #051103black | #ffffffwhite |
| Popover | #f4fbf3whitesmoke | #070f06black |
| Popover foreground | #051103black | #ffffffwhite |
| Primary | #aacfa5silver | #aacfa5silver |
| Primary foreground | #1a2b17black | #1a2b17black |
| Secondary | #bfcfa5silver | #bfcfa5silver |
| Secondary foreground | #232b17black | #232b17black |
| Muted | #e2e7dagainsboro | #202518black |
| Muted foreground | #4a523ddarkolivegreen | #bac2adsilver |
| Accent | #a5cfb5silver | #a5cfb5silver |
| Accent foreground | #172b1fblack | #172b1fblack |
| Destructive | #970a07darkred | #f63a37tomato |
| Destructive foreground | #fdd4d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aacfa5silver | #aacfa5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.20:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 8.86:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.69:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 8.86:1 | AAA |
| Muted text | 8.53:1 | AAA |
| Accent | 8.69:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Minor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 142.083);
--foreground: oklch(0.178 0.042 140.553);
--muted: oklch(0.92 0.017 123.916);
--muted-foreground: oklch(0.425 0.036 124.929);
--popover: oklch(0.982 0.013 142.068);
--popover-foreground: oklch(0.161 0.037 140.301);
--card: oklch(0.982 0.013 142.068);
--card-foreground: oklch(0.161 0.037 140.301);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.816 0.069 141.82);
--primary-foreground: oklch(0.268 0.043 141.576);
--secondary: oklch(0.831 0.058 124.711);
--secondary-foreground: oklch(0.276 0.036 125.746);
--accent: oklch(0.817 0.056 157.825);
--accent-foreground: oklch(0.268 0.035 156.11);
--destructive: oklch(0.429 0.17 28.921);
--destructive-foreground: oklch(0.904 0.046 19.189);
--ring: oklch(0.816 0.069 141.82);
--chart-1: oklch(0.816 0.069 141.82);
--chart-2: oklch(0.831 0.058 124.711);
--chart-3: oklch(0.817 0.056 157.825);
--chart-4: oklch(0.85 0.052 124.563);
--chart-5: oklch(0.819 0.076 141.794);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.021 140.768);
--foreground: oklch(0.993 0.002 142.107);
--muted: oklch(0.254 0.023 125.044);
--muted-foreground: oklch(0.803 0.031 124.215);
--popover: oklch(0.155 0.024 140.949);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.024 140.949);
--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.816 0.069 141.82);
--primary-foreground: oklch(0.268 0.043 141.576);
--secondary: oklch(0.831 0.058 124.711);
--secondary-foreground: oklch(0.276 0.036 125.746);
--accent: oklch(0.817 0.056 157.825);
--accent-foreground: oklch(0.268 0.035 156.11);
--destructive: oklch(0.638 0.223 26.986);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.816 0.069 141.82);
--chart-1: oklch(0.816 0.069 141.82);
--chart-2: oklch(0.831 0.058 124.711);
--chart-3: oklch(0.817 0.056 157.825);
--chart-4: oklch(0.85 0.052 124.563);
--chart-5: oklch(0.819 0.076 141.794);
}