Magnificent is a shadcn/ui theme built around a deep green primary color (#2f3512) with muted light green accents (#e1e2d9). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep green primary (#2f3512) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #060703black |
| Foreground | #0e1104black | #fdfdfcwhite |
| Card | #fbfcf8snow | #090a05black |
| Card foreground | #0b0c03black | #ffffffwhite |
| Popover | #fbfcf8snow | #090a05black |
| Popover foreground | #0b0c03black | #ffffffwhite |
| Primary | #2f3512darkslategray | #2f3512darkslategray |
| Primary foreground | #aec350darkkhaki | #aec350darkkhaki |
| Secondary | #ebece9linen | #36382edarkslategray |
| Secondary foreground | #55564ddarkolivegreen | #cfd1c7lightgrey |
| Muted | #e3e7d0gainsboro | #2b2f18darkslategray |
| Muted foreground | #505346darkolivegreen | #b6b9acdarkgray |
| Accent | #e1e2d9gainsboro | #53593bdarkolivegreen |
| Accent foreground | #4b4e3bdarkolivegreen | #ffffffwhite |
| Destructive | #641502maroon | #fc5227tomato |
| Destructive foreground | #fdae9blightsalmon | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f3512darkslategray | #2f3512darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.26:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Magnificent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 114.864);
--foreground: oklch(0.169 0.027 116.985);
--muted: oklch(0.919 0.032 115.46);
--muted-foreground: oklch(0.435 0.02 115.662);
--popover: oklch(0.988 0.004 114.905);
--popover-foreground: oklch(0.151 0.024 116.068);
--card: oklch(0.988 0.004 114.905);
--card-foreground: oklch(0.151 0.024 116.068);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.315 0.055 118.358);
--primary-foreground: oklch(0.779 0.142 118.571);
--secondary: oklch(0.942 0.003 114.888);
--secondary-foreground: oklch(0.45 0.016 115.468);
--accent: oklch(0.91 0.013 115.079);
--accent-foreground: oklch(0.417 0.031 116.205);
--destructive: oklch(0.333 0.115 34.763);
--destructive-foreground: oklch(0.823 0.098 34.622);
--ring: oklch(0.315 0.055 118.358);
--chart-1: oklch(0.315 0.055 118.358);
--chart-2: oklch(0.942 0.003 114.888);
--chart-3: oklch(0.91 0.013 115.079);
--chart-4: oklch(0.964 0.002 114.863);
--chart-5: oklch(0.318 0.058 118.528);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.012 115.306);
--foreground: oklch(0.993 0.001 114.84);
--muted: oklch(0.296 0.04 117.387);
--muted-foreground: oklch(0.779 0.017 115.231);
--popover: oklch(0.143 0.014 115.327);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.014 115.327);
--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.315 0.055 118.358);
--primary-foreground: oklch(0.779 0.142 118.571);
--secondary: oklch(0.336 0.018 115.787);
--secondary-foreground: oklch(0.857 0.014 115.126);
--accent: oklch(0.45 0.046 116.738);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.213 34.661);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.315 0.055 118.358);
--chart-1: oklch(0.315 0.055 118.358);
--chart-2: oklch(0.336 0.018 115.787);
--chart-3: oklch(0.45 0.046 116.738);
--chart-4: oklch(0.368 0.02 115.813);
--chart-5: oklch(0.318 0.058 118.528);
}