Mango is a shadcn/ui theme built around a neutral gray primary color (#463f44) with neutral gray accents (#3f4641). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the neutral gray primary (#463f44) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #030203black |
| Foreground | #0e020ablack | #f9f5f8whitesmoke |
| Card | #fbf4f9lavenderblush | #070406black |
| Card foreground | #090107black | #fbf9fasnow |
| Popover | #fcf8fbsnow | #030203black |
| Popover foreground | #0e020ablack | #f9f5f8whitesmoke |
| Primary | #463f44darkslategray | #463f44darkslategray |
| Primary foreground | #dddadcgainsboro | #dddadcgainsboro |
| Secondary | #3f4641darkslategray | #3f4641darkslategray |
| Secondary foreground | #dadddbgainsboro | #dadddbgainsboro |
| Muted | #d3e8d9gainsboro | #172c1dblack |
| Muted foreground | #39463ddarkslategray | #b9c6bcsilver |
| Accent | #3f4641darkslategray | #3f4641darkslategray |
| Accent foreground | #dadddbgainsboro | #dadddbgainsboro |
| Destructive | #a33b0asaddlebrown | #f0560forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #463f44darkslategray | #463f44darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Mango in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 335.314);
--foreground: oklch(0.119 0.037 336.796);
--muted: oklch(0.912 0.03 154.566);
--muted-foreground: oklch(0.38 0.023 154.05);
--popover: oklch(0.982 0.007 335.314);
--popover-foreground: oklch(0.119 0.037 336.796);
--card: oklch(0.974 0.01 335.377);
--card-foreground: oklch(0.104 0.032 336.03);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.376 0.012 335.759);
--primary-foreground: oklch(0.89 0.005 335.297);
--secondary: oklch(0.385 0.012 154.618);
--secondary-foreground: oklch(0.894 0.005 155.085);
--accent: oklch(0.385 0.012 154.618);
--accent-foreground: oklch(0.894 0.005 155.085);
--destructive: oklch(0.493 0.148 40.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.376 0.012 335.759);
--chart-1: oklch(0.376 0.012 335.759);
--chart-2: oklch(0.385 0.012 154.618);
--chart-3: oklch(0.385 0.012 154.618);
--chart-4: oklch(0.414 0.013 154.607);
--chart-5: oklch(0.374 0.019 336.097);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.009 335.511);
--foreground: oklch(0.975 0.006 335.296);
--muted: oklch(0.269 0.039 152.066);
--muted-foreground: oklch(0.813 0.019 154.76);
--popover: oklch(0.088 0.009 335.511);
--popover-foreground: oklch(0.975 0.006 335.296);
--card: oklch(0.111 0.012 335.511);
--card-foreground: oklch(0.983 0.004 335.26);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.376 0.012 335.759);
--primary-foreground: oklch(0.89 0.005 335.297);
--secondary: oklch(0.385 0.012 154.618);
--secondary-foreground: oklch(0.894 0.005 155.085);
--accent: oklch(0.385 0.012 154.618);
--accent-foreground: oklch(0.894 0.005 155.085);
--destructive: oklch(0.653 0.201 39.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.376 0.012 335.759);
--chart-1: oklch(0.376 0.012 335.759);
--chart-2: oklch(0.385 0.012 154.618);
--chart-3: oklch(0.385 0.012 154.618);
--chart-4: oklch(0.414 0.013 154.607);
--chart-5: oklch(0.374 0.019 336.097);
}