mm is a shadcn/ui theme built around a vivid violet primary color (#6226ef) with near-white accents (#f5f7ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#6226ef) on a neutral background (#050505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050505black |
| Foreground | #0c0306black | #fbf8f9snow |
| Card | #fcfcfcsnow | #0c0406black |
| Card foreground | #050505black | #fcfcfcsnow |
| Popover | #ffffffwhite | #080204black |
| Popover foreground | #0c0306black | #fdfcfcsnow |
| Primary | #6226efblueviolet | #6226efblueviolet |
| Primary foreground | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Secondary | #20d25dmediumseagreen | #20d25dmediumseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3e3e3gainsboro | #171717black |
| Muted foreground | #787878gray | #5b5a5bdimgray |
| Accent | #f5f7ffghostwhite | #1b004amidnightblue |
| Accent foreground | #2b106amidnightblue | #bfaaf3lightsteelblue |
| Destructive | #ef3725orangered | #ef3725orangered |
| Destructive foreground | #ffeceblinen | #ffffffwhite |
| Border | #080204black | #2e2e2edarkslategray |
| Input | #303030darkslategray | #2e2e2edarkslategray |
| Ring | #5e25efblueviolet | #6226efblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 2.01:1 | Fail |
| Muted text | 3.42:1 | AA Large |
| Accent | 14.17:1 | AAA |
| Destructive | 3.53:1 | AA Large |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 2.01:1 | Fail |
| Muted text | 2.61:1 | Fail |
| Accent | 8.96:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use mm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.024 357.778);
--muted: oklch(0.915 0 158.199);
--muted-foreground: oklch(0.571 0 173.66);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.024 357.778);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.115 0 171.254);
--border: oklch(0.105 0.021 354.2);
--input: oklch(0.309 0 194.036);
--primary: oklch(0.5 0.265 285.217);
--primary-foreground: oklch(0.962 0 180);
--secondary: oklch(0.756 0.209 148.465);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.977 0.011 273.049);
--accent-foreground: oklch(0.285 0.142 287.092);
--destructive: oklch(0.622 0.221 30.072);
--destructive-foreground: oklch(0.958 0.021 23.8);
--ring: oklch(0.495 0.266 283.87);
--chart-1: oklch(0.5 0.265 285.217);
--chart-2: oklch(0.756 0.209 148.465);
--chart-3: oklch(0.977 0.011 273.049);
--chart-4: oklch(0.788 0.216 148.552);
--chart-5: oklch(0.5 0.271 284.449);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0 180);
--foreground: oklch(0.983 0.003 357.808);
--muted: oklch(0.204 0 180);
--muted-foreground: oklch(0.47 0.001 354.655);
--popover: oklch(0.106 0.018 357.502);
--popover-foreground: oklch(0.991 0.002 357.761);
--card: oklch(0.121 0.02 357.688);
--card-foreground: oklch(0.992 0 161.565);
--border: oklch(0.301 0 189.462);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.5 0.265 285.113);
--primary-foreground: oklch(0.962 0 180);
--secondary: oklch(0.756 0.209 148.465);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.209 0.119 288.636);
--accent-foreground: oklch(0.782 0.105 296.912);
--destructive: oklch(0.623 0.222 30.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.5 0.265 285.113);
--chart-1: oklch(0.5 0.265 285.113);
--chart-2: oklch(0.756 0.209 148.465);
--chart-3: oklch(0.209 0.119 288.636);
--chart-4: oklch(0.788 0.216 148.552);
--chart-5: oklch(0.5 0.271 284.344);
}