Metro is a shadcn/ui theme built around a vivid red primary color (#f1807e) with muted light red accents (#cec0c0). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the vivid red primary (#f1807e) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #040202black |
| Foreground | #160403black | #fdfcfcsnow |
| Card | #fdf2f2lavenderblush | #070303black |
| Card foreground | #120303black | #ffffffwhite |
| Popover | #fdf6f6snow | #040202black |
| Popover foreground | #160403black | #fdfcfcsnow |
| Primary | #f1807elightcoral | #f1807elightcoral |
| Primary foreground | #370706black | #370706black |
| Secondary | #dbd7d7gainsboro | #272020black |
| Secondary foreground | #433d3ddarkslategray | #c3b6b6silver |
| Muted | #ede9e9linen | #161212black |
| Muted foreground | #605d5cdimgray | #a39f9fdarkgray |
| Accent | #cec0c0silver | #432e2ddarkslategray |
| Accent foreground | #342828darkslategray | #dac9c8lightgrey |
| Destructive | #9e2800saddlebrown | #f03c00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1807elightcoral | #f1807elightcoral |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 7.62:1 | AAA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Metro in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 18.478);
--foreground: oklch(0.142 0.037 24.554);
--muted: oklch(0.936 0.004 18.433);
--muted-foreground: oklch(0.48 0.005 18.514);
--popover: oklch(0.98 0.007 18.478);
--popover-foreground: oklch(0.142 0.037 24.554);
--card: oklch(0.97 0.011 18.539);
--card-foreground: oklch(0.129 0.032 24.379);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.726 0.138 22.065);
--primary-foreground: oklch(0.223 0.076 26.844);
--secondary: oklch(0.882 0.004 18.433);
--secondary-foreground: oklch(0.365 0.009 18.734);
--accent: oklch(0.819 0.016 18.67);
--accent-foreground: oklch(0.291 0.018 19.354);
--destructive: oklch(0.462 0.16 35.527);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.726 0.138 22.065);
--chart-1: oklch(0.726 0.138 22.065);
--chart-2: oklch(0.882 0.004 18.433);
--chart-3: oklch(0.819 0.016 18.67);
--chart-4: oklch(0.906 0.003 18.417);
--chart-5: oklch(0.725 0.143 22.249);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 20.631);
--foreground: oklch(0.991 0.002 18.39);
--muted: oklch(0.189 0.007 18.916);
--muted-foreground: oklch(0.705 0.004 18.456);
--popover: oklch(0.086 0.009 20.631);
--popover-foreground: oklch(0.991 0.002 18.39);
--card: oklch(0.108 0.012 20.631);
--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.726 0.138 22.065);
--primary-foreground: oklch(0.223 0.076 26.844);
--secondary: oklch(0.253 0.011 19.047);
--secondary-foreground: oklch(0.788 0.015 18.655);
--accent: oklch(0.325 0.031 19.999);
--accent-foreground: oklch(0.849 0.019 18.716);
--destructive: oklch(0.626 0.222 34.589);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.726 0.138 22.065);
--chart-1: oklch(0.726 0.138 22.065);
--chart-2: oklch(0.253 0.011 19.047);
--chart-3: oklch(0.325 0.031 19.999);
--chart-4: oklch(0.283 0.013 19.087);
--chart-5: oklch(0.725 0.143 22.249);
}