Mall is a shadcn/ui theme built around a cyan primary color (#327c9f) with green accents (#7c9f32). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#327c9f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #327c9fsteelblue | #327c9fsteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9f327cmediumvioletred | #9f327cmediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f5eff3whitesmoke | #100a0eblack |
| Muted foreground | #4e3c48darkslategray | #c3b1bdsilver |
| Accent | #7c9f32olivedrab | #7c9f32olivedrab |
| Accent foreground | #030401black | #030401black |
| Destructive | #cf3617firebrick | #eb6347tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #327c9fsteelblue | #327c9fsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 8.98:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 5.03:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 9.66:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Mall in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.009 336.74);
--muted-foreground: oklch(0.38 0.032 338.109);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.557 0.09 231.694);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.503 0.164 342.797);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.655 0.14 125.311);
--accent-foreground: oklch(0.101 0.014 120.547);
--destructive: oklch(0.564 0.194 32.877);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.557 0.09 231.694);
--chart-1: oklch(0.557 0.09 231.694);
--chart-2: oklch(0.503 0.164 342.797);
--chart-3: oklch(0.655 0.14 125.311);
--chart-4: oklch(0.529 0.174 342.845);
--chart-5: oklch(0.56 0.094 232.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.153 0.014 338.258);
--muted-foreground: oklch(0.78 0.026 337.207);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.557 0.09 231.694);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.503 0.164 342.797);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.655 0.14 125.311);
--accent-foreground: oklch(0.101 0.014 120.547);
--destructive: oklch(0.665 0.174 33.074);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.557 0.09 231.694);
--chart-1: oklch(0.557 0.09 231.694);
--chart-2: oklch(0.503 0.164 342.797);
--chart-3: oklch(0.655 0.14 125.311);
--chart-4: oklch(0.529 0.174 342.845);
--chart-5: oklch(0.56 0.094 232.128);
}