Map is a shadcn/ui theme built around a neutral gray primary color (#cdd0cf) with muted light teal accents (#e3ede9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#cdd0cf) on a teal-tinted background (#040b09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b09black |
| Foreground | #020d09black | #f7f8f8whitesmoke |
| Card | #fcfcfcsnow | #060f0bblack |
| Card foreground | #010906black | #f9fafaghostwhite |
| Popover | #ffffffwhite | #040b09black |
| Popover foreground | #020d09black | #f7f8f8whitesmoke |
| Primary | #cdd0cflightgrey | #cdd0cflightgrey |
| Primary foreground | #333836darkslategray | #333836darkslategray |
| Secondary | #e3ede9lavender | #191a1ablack |
| Secondary foreground | #16221eblack | #b1b4b3darkgray |
| Muted | #d6dbd9gainsboro | #242927darkslategray |
| Muted foreground | #3c4441darkslategray | #bbc3c0silver |
| Accent | #e3ede9lavender | #191a1ablack |
| Accent foreground | #16221eblack | #b1b4b3darkgray |
| Destructive | #621804maroon | #f7582btomato |
| Destructive foreground | #fbb19dlightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cdd0cflightgrey | #cdd0cflightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 13.67:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 13.67:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Map in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.023 171.832);
--muted: oklch(0.888 0.006 172.366);
--muted-foreground: oklch(0.377 0.011 171.693);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.023 171.832);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.127 0.02 172.912);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.856 0.005 172.417);
--primary-foreground: oklch(0.335 0.006 172.006);
--secondary: oklch(0.937 0.011 172.24);
--secondary-foreground: oklch(0.238 0.018 170.197);
--accent: oklch(0.937 0.011 172.24);
--accent-foreground: oklch(0.238 0.018 170.197);
--destructive: oklch(0.333 0.11 35.491);
--destructive-foreground: oklch(0.826 0.092 36.091);
--ring: oklch(0.856 0.005 172.417);
--chart-1: oklch(0.856 0.005 172.417);
--chart-2: oklch(0.937 0.011 172.24);
--chart-3: oklch(0.937 0.011 172.24);
--chart-4: oklch(0.958 0.007 172.358);
--chart-5: oklch(0.858 0.008 172.299);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 172.658);
--foreground: oklch(0.978 0.002 172.522);
--muted: oklch(0.275 0.008 171.657);
--muted-foreground: oklch(0.811 0.009 172.24);
--popover: oklch(0.14 0.014 172.658);
--popover-foreground: oklch(0.978 0.002 172.522);
--card: oklch(0.156 0.016 170.667);
--card-foreground: oklch(0.985 0.001 172.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.856 0.005 172.417);
--primary-foreground: oklch(0.335 0.006 172.006);
--secondary: oklch(0.217 0.002 172.343);
--secondary-foreground: oklch(0.767 0.004 172.432);
--accent: oklch(0.217 0.002 172.343);
--accent-foreground: oklch(0.767 0.004 172.432);
--destructive: oklch(0.668 0.203 35.732);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.856 0.005 172.417);
--chart-1: oklch(0.856 0.005 172.417);
--chart-2: oklch(0.217 0.002 172.343);
--chart-3: oklch(0.217 0.002 172.343);
--chart-4: oklch(0.25 0.002 172.322);
--chart-5: oklch(0.858 0.008 172.299);
}