Map is a shadcn/ui theme built around a near-black primary color (#010402) with near-black accents (#040201). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the near-black primary (#010402) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #000000black |
| Foreground | #010402black | #ffffffwhite |
| Card | #f3fcf7mintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f3fcf7mintcream | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #010402black | #010402black |
| Primary foreground | #1eb35fmediumseagreen | #1eb35fmediumseagreen |
| Secondary | #020104black | #020104black |
| Secondary foreground | #caacf1plum | #caacf1plum |
| Muted | #dbd9degainsboro | #232126black |
| Muted foreground | #515053darkslategray | #adacafdarkgray |
| Accent | #040201black | #040201black |
| Accent foreground | #e29255sandybrown | #e29255sandybrown |
| Destructive | #de0a02red | #fd2821orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010402black | #010402black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 10.59:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 5.05:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 10.59:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Map in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 161.621);
--foreground: oklch(0.097 0.012 161.79);
--muted: oklch(0.888 0.007 305.632);
--muted-foreground: oklch(0.434 0.006 305.568);
--popover: oklch(0.982 0.011 161.525);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.011 161.525);
--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.099 0.017 161.784);
--primary-foreground: oklch(0.674 0.17 151.887);
--secondary: oklch(0.077 0.023 307.48);
--secondary-foreground: oklch(0.795 0.1 304.031);
--accent: oklch(0.093 0.013 71.1);
--accent-foreground: oklch(0.73 0.124 56.64);
--destructive: oklch(0.568 0.23 29.463);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.099 0.017 161.784);
--chart-1: oklch(0.099 0.017 161.784);
--chart-2: oklch(0.077 0.023 307.48);
--chart-3: oklch(0.093 0.013 71.1);
--chart-4: oklch(0.123 0.038 305.295);
--chart-5: oklch(0.1 0.017 161.783);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.01 305.225);
--muted-foreground: oklch(0.746 0.005 305.652);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.099 0.017 161.784);
--primary-foreground: oklch(0.674 0.17 151.887);
--secondary: oklch(0.077 0.023 307.48);
--secondary-foreground: oklch(0.795 0.1 304.031);
--accent: oklch(0.093 0.013 71.1);
--accent-foreground: oklch(0.73 0.124 56.64);
--destructive: oklch(0.637 0.243 28.736);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.099 0.017 161.784);
--chart-1: oklch(0.099 0.017 161.784);
--chart-2: oklch(0.077 0.023 307.48);
--chart-3: oklch(0.093 0.013 71.1);
--chart-4: oklch(0.123 0.038 305.295);
--chart-5: oklch(0.1 0.017 161.783);
}