Madam is a shadcn/ui theme built around a light green primary color (#e3edc5) with light indigo accents (#cec5ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e3edc5) on a green-tinted background (#0c0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0e07black |
| Foreground | #070901black | #fbfcf8snow |
| Card | #ffffffwhite | #0c0e07black |
| Card foreground | #070901black | #fbfcf8snow |
| Popover | #ffffffwhite | #0c0e07black |
| Popover foreground | #070901black | #fbfcf8snow |
| Primary | #e3edc5blanchedalmond | #e3edc5blanchedalmond |
| Primary foreground | #101306black | #101306black |
| Secondary | #cec5edthistle | #cec5edthistle |
| Secondary foreground | #2e1f61midnightblue | #2e1f61midnightblue |
| Muted | #d6d1e5gainsboro | #1e1a2eblack |
| Muted foreground | #3e3a4bdarkslategray | #b8b4c5silver |
| Accent | #cec5edthistle | #cec5edthistle |
| Accent foreground | #2e1f61midnightblue | #2e1f61midnightblue |
| Destructive | #cb2310firebrick | #ee432ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3edc5blanchedalmond | #e3edc5blanchedalmond |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 15.34:1 | AAA |
| Secondary button | 8.63:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 8.63:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 15.34:1 | AAA |
| Secondary button | 8.63:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 8.63:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Madam in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.025 117.481);
--muted: oklch(0.871 0.028 296.505);
--muted-foreground: oklch(0.358 0.03 295.55);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.025 117.481);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.025 117.481);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.928 0.053 118.116);
--primary-foreground: oklch(0.181 0.026 119.453);
--secondary: oklch(0.843 0.056 295.876);
--secondary-foreground: oklch(0.3 0.112 288.519);
--accent: oklch(0.843 0.056 295.876);
--accent-foreground: oklch(0.3 0.112 288.519);
--destructive: oklch(0.542 0.204 30.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.928 0.053 118.116);
--chart-1: oklch(0.928 0.053 118.116);
--chart-2: oklch(0.843 0.056 295.876);
--chart-3: oklch(0.843 0.056 295.876);
--chart-4: oklch(0.875 0.044 296.164);
--chart-5: oklch(0.93 0.056 118.172);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.015 118.314);
--foreground: oklch(0.989 0.005 117.171);
--muted: oklch(0.232 0.038 293.925);
--muted-foreground: oklch(0.779 0.025 296.509);
--popover: oklch(0.158 0.015 118.314);
--popover-foreground: oklch(0.989 0.005 117.171);
--card: oklch(0.158 0.015 118.314);
--card-foreground: oklch(0.989 0.005 117.171);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.928 0.053 118.116);
--primary-foreground: oklch(0.181 0.026 119.453);
--secondary: oklch(0.843 0.056 295.876);
--secondary-foreground: oklch(0.3 0.112 288.519);
--accent: oklch(0.843 0.056 295.876);
--accent-foreground: oklch(0.3 0.112 288.519);
--destructive: oklch(0.632 0.211 30.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.928 0.053 118.116);
--chart-1: oklch(0.928 0.053 118.116);
--chart-2: oklch(0.843 0.056 295.876);
--chart-3: oklch(0.843 0.056 295.876);
--chart-4: oklch(0.875 0.044 296.164);
--chart-5: oklch(0.93 0.056 118.172);
}