Massive is a shadcn/ui theme built around a violet primary color (#6f40dd) with muted light violet accents (#e2e1e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#6f40dd) on a violet-tinted background (#06040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06040bblack |
| Foreground | #070212black | #f9f8fbghostwhite |
| Card | #ffffffwhite | #06040bblack |
| Card foreground | #070212black | #f9f8fbghostwhite |
| Popover | #ffffffwhite | #06040bblack |
| Popover foreground | #070212black | #f9f8fbghostwhite |
| Primary | #6f40ddslateblue | #6f40ddslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e2e1e5gainsboro | #1f1b27black |
| Secondary foreground | #484450darkslategray | #b5adc7silver |
| Muted | #e0dfe2gainsboro | #1e1d20black |
| Muted foreground | #4c4a4fdarkslategray | #b2b0b5darkgray |
| Accent | #e2e1e5gainsboro | #1f1b27black |
| Accent foreground | #484450darkslategray | #b5adc7silver |
| Destructive | #d14d15chocolate | #ec7441tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f40ddslateblue | #6f40ddslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.39:1 | AA Large |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Massive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.041 298.357);
--muted: oklch(0.904 0.005 299.944);
--muted-foreground: oklch(0.413 0.008 299.723);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.041 298.357);
--card: oklch(1 0 180);
--card-foreground: oklch(0.117 0.041 298.357);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.523 0.223 290.216);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.911 0.006 299.924);
--secondary-foreground: oklch(0.395 0.02 299.173);
--accent: oklch(0.911 0.006 299.924);
--accent-foreground: oklch(0.395 0.02 299.173);
--destructive: oklch(0.593 0.178 39.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.523 0.223 290.216);
--chart-1: oklch(0.523 0.223 290.216);
--chart-2: oklch(0.911 0.006 299.924);
--chart-3: oklch(0.911 0.006 299.924);
--chart-4: oklch(0.936 0.004 299.958);
--chart-5: oklch(0.52 0.23 289.582);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.021 300.112);
--foreground: oklch(0.982 0.004 299.967);
--muted: oklch(0.232 0.007 299.52);
--muted-foreground: oklch(0.76 0.007 299.891);
--popover: oklch(0.116 0.021 300.112);
--popover-foreground: oklch(0.982 0.004 299.967);
--card: oklch(0.116 0.021 300.112);
--card-foreground: oklch(0.982 0.004 299.967);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.523 0.223 290.216);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.232 0.025 298.221);
--secondary-foreground: oklch(0.763 0.038 299.199);
--accent: oklch(0.232 0.025 298.221);
--accent-foreground: oklch(0.763 0.038 299.199);
--destructive: oklch(0.691 0.162 42.478);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.523 0.223 290.216);
--chart-1: oklch(0.523 0.223 290.216);
--chart-2: oklch(0.232 0.025 298.221);
--chart-3: oklch(0.232 0.025 298.221);
--chart-4: oklch(0.26 0.029 298.1);
--chart-5: oklch(0.52 0.23 289.582);
}