Minor is a shadcn/ui theme built around a deep green primary color (#364511) with deep green accents (#1c4511). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#364511) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #f9faf4whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #364511darkolivegreen | #364511darkolivegreen |
| Primary foreground | #acd350yellowgreen | #acd350yellowgreen |
| Secondary | #453b11darkolivegreen | #453b11darkolivegreen |
| Secondary foreground | #e8d9a1palegoldenrod | #e8d9a1palegoldenrod |
| Muted | #e3e2ddgainsboro | #22201cblack |
| Muted foreground | #6a644edimgray | #b1ab95darkgray |
| Accent | #1c4511darkgreen | #1c4511darkgreen |
| Accent foreground | #afe8a1palegreen | #afe8a1palegreen |
| Destructive | #861504darkred | #f94e34tomato |
| Destructive foreground | #fdc7bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #364511darkolivegreen | #364511darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Minor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 120.134);
--foreground: oklch(0 0 0);
--muted: oklch(0.913 0.007 95.12);
--muted-foreground: oklch(0.502 0.034 95.665);
--popover: oklch(0.989 0.006 120.134);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.008 120.183);
--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.366 0.077 124.549);
--primary-foreground: oklch(0.813 0.164 124.187);
--secondary: oklch(0.354 0.06 95.012);
--secondary-foreground: oklch(0.885 0.074 95.747);
--accent: oklch(0.349 0.093 139.924);
--accent-foreground: oklch(0.873 0.111 139.451);
--destructive: oklch(0.4 0.149 31.606);
--destructive-foreground: oklch(0.875 0.063 28.475);
--ring: oklch(0.366 0.077 124.549);
--chart-1: oklch(0.366 0.077 124.549);
--chart-2: oklch(0.354 0.06 95.012);
--chart-3: oklch(0.349 0.093 139.924);
--chart-4: oklch(0.394 0.068 94.897);
--chart-5: oklch(0.37 0.08 124.75);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 120.051);
--muted: oklch(0.245 0.009 95.434);
--muted-foreground: oklch(0.741 0.031 95.476);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 120.051);
--card: oklch(0.092 0 180);
--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.366 0.077 124.549);
--primary-foreground: oklch(0.813 0.164 124.187);
--secondary: oklch(0.354 0.06 95.012);
--secondary-foreground: oklch(0.885 0.074 95.747);
--accent: oklch(0.349 0.093 139.924);
--accent-foreground: oklch(0.873 0.111 139.451);
--destructive: oklch(0.661 0.211 31.588);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.366 0.077 124.549);
--chart-1: oklch(0.366 0.077 124.549);
--chart-2: oklch(0.354 0.06 95.012);
--chart-3: oklch(0.349 0.093 139.924);
--chart-4: oklch(0.394 0.068 94.897);
--chart-5: oklch(0.37 0.08 124.75);
}