Major is a shadcn/ui theme built around a green primary color (#a7d7bb) with teal accents (#a7d7d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a7d7bb) on a green-tinted background (#070d0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070d0ablack |
| Foreground | #020805black | #f9fbfamintcream |
| Card | #ffffffwhite | #070d0ablack |
| Card foreground | #020805black | #f9fbfamintcream |
| Popover | #ffffffwhite | #070d0ablack |
| Popover foreground | #020805black | #f9fbfamintcream |
| Primary | #a7d7bbsilver | #a7d7bbsilver |
| Primary foreground | #183524darkslategray | #183524darkslategray |
| Secondary | #abd7a7silver | #abd7a7silver |
| Secondary foreground | #1a3518darkgreen | #1a3518darkgreen |
| Muted | #eef7edhoneydew | #091208black |
| Muted foreground | #404540darkslategray | #babfbasilver |
| Accent | #a7d7d3lightblue | #a7d7d3lightblue |
| Accent foreground | #183532darkslategray | #183532darkslategray |
| Destructive | #61180amaroon | #eb5537tomato |
| Destructive foreground | #f6b4a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7d7bbsilver | #a7d7bbsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 8.95:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 7.27:1 | AAA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 10.23:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Major in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.016 160.951);
--muted: oklch(0.967 0.016 143.056);
--muted-foreground: oklch(0.384 0.011 143.001);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.016 160.951);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.016 160.951);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.839 0.064 159.067);
--primary-foreground: oklch(0.3 0.047 156.441);
--secondary: oklch(0.836 0.081 142.672);
--secondary-foreground: oklch(0.298 0.06 142.183);
--accent: oklch(0.846 0.051 189.91);
--accent-foreground: oklch(0.305 0.035 188.428);
--destructive: oklch(0.332 0.108 33.118);
--destructive-foreground: oklch(0.828 0.08 31.548);
--ring: oklch(0.839 0.064 159.067);
--chart-1: oklch(0.839 0.064 159.067);
--chart-2: oklch(0.836 0.081 142.672);
--chart-3: oklch(0.846 0.051 189.91);
--chart-4: oklch(0.856 0.071 142.738);
--chart-5: oklch(0.842 0.069 158.913);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.014 159.945);
--foreground: oklch(0.986 0.003 160.93);
--muted: oklch(0.168 0.025 142.213);
--muted-foreground: oklch(0.8 0.009 143.081);
--popover: oklch(0.152 0.014 159.945);
--popover-foreground: oklch(0.986 0.003 160.93);
--card: oklch(0.152 0.014 159.945);
--card-foreground: oklch(0.986 0.003 160.93);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.839 0.064 159.067);
--primary-foreground: oklch(0.3 0.047 156.441);
--secondary: oklch(0.836 0.081 142.672);
--secondary-foreground: oklch(0.298 0.06 142.183);
--accent: oklch(0.846 0.051 189.91);
--accent-foreground: oklch(0.305 0.035 188.428);
--destructive: oklch(0.648 0.191 33.208);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.064 159.067);
--chart-1: oklch(0.839 0.064 159.067);
--chart-2: oklch(0.836 0.081 142.672);
--chart-3: oklch(0.846 0.051 189.91);
--chart-4: oklch(0.856 0.071 142.738);
--chart-5: oklch(0.842 0.069 158.913);
}