Major is a shadcn/ui theme built around a neutral gray primary color (#c2bcc0) with neutral gray accents (#bcc0c2). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the neutral gray primary (#c2bcc0) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fasnow | #070305black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcf7fasnow | #070305black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf7fasnow | #070305black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c2bcc0silver | #c2bcc0silver |
| Primary foreground | #282427darkslategray | #282427darkslategray |
| Secondary | #c0c2bcsilver | #c0c2bcsilver |
| Secondary foreground | #272824darkslategray | #272824darkslategray |
| Muted | #e5ecd9gainsboro | #1e2613black |
| Muted foreground | #62685adimgray | #9fa597darkgray |
| Accent | #bcc0c2silver | #bcc0c2silver |
| Accent foreground | #242728darkslategray | #242728darkslategray |
| Destructive | #682303maroon | #f85e16orangered |
| Destructive foreground | #fcbea1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c2bcc0silver | #c2bcc0silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 4.76:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Major in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 341.165);
--foreground: oklch(0 0 0);
--muted: oklch(0.933 0.027 125.445);
--muted-foreground: oklch(0.507 0.022 125.657);
--popover: oklch(0.982 0.006 341.165);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.006 341.165);
--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.802 0.009 341.267);
--primary-foreground: oklch(0.267 0.007 341.611);
--secondary: oklch(0.811 0.009 125.204);
--secondary-foreground: oklch(0.274 0.007 125.415);
--accent: oklch(0.805 0.006 238.461);
--accent-foreground: oklch(0.269 0.004 238.596);
--destructive: oklch(0.357 0.106 41.084);
--destructive-foreground: oklch(0.851 0.082 45.97);
--ring: oklch(0.802 0.009 341.267);
--chart-1: oklch(0.802 0.009 341.267);
--chart-2: oklch(0.811 0.009 125.204);
--chart-3: oklch(0.805 0.006 238.461);
--chart-4: oklch(0.835 0.008 125.18);
--chart-5: oklch(0.8 0.014 341.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.016 341.075);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.036 127.2);
--muted-foreground: oklch(0.713 0.02 125.443);
--popover: oklch(0.109 0.016 341.075);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.016 341.075);
--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.802 0.009 341.267);
--primary-foreground: oklch(0.267 0.007 341.611);
--secondary: oklch(0.811 0.009 125.204);
--secondary-foreground: oklch(0.274 0.007 125.415);
--accent: oklch(0.805 0.006 238.461);
--accent-foreground: oklch(0.269 0.004 238.596);
--destructive: oklch(0.675 0.202 40.416);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.802 0.009 341.267);
--chart-1: oklch(0.802 0.009 341.267);
--chart-2: oklch(0.811 0.009 125.204);
--chart-3: oklch(0.805 0.006 238.461);
--chart-4: oklch(0.835 0.008 125.18);
--chart-5: oklch(0.8 0.014 341.419);
}