Marmalade is a shadcn/ui theme built around a muted light green primary color (#f4f7f2) with muted light pink accents (#f7f2f4). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted light green primary (#f4f7f2) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020402black |
| Foreground | #040802black | #ffffffwhite |
| Card | #f9fdf7mintcream | #050703black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #fcfefbwhite | #020402black |
| Popover foreground | #040802black | #ffffffwhite |
| Primary | #f4f7f2whitesmoke | #f4f7f2whitesmoke |
| Primary foreground | #26331edarkslategray | #26331edarkslategray |
| Secondary | #f2f4f7whitesmoke | #f2f4f7whitesmoke |
| Secondary foreground | #445574darkslateblue | #445574darkslateblue |
| Muted | #d0d8e7gainsboro | #18212fdarkslategray |
| Muted foreground | #444a55darkslategray | #aab0bbdarkgray |
| Accent | #f7f2f4whitesmoke | #f7f2f4whitesmoke |
| Accent foreground | #744455dimgray | #744455dimgray |
| Destructive | #902e04saddlebrown | #fa6b2etomato |
| Destructive foreground | #fed8c8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f7f2whitesmoke | #f4f7f2whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 12.37:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 12.37:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 7.44:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 7.20:1 | AAA |
Paste this into your globals.css to use Marmalade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 133.635);
--foreground: oklch(0.127 0.024 131.862);
--muted: oklch(0.881 0.022 261.489);
--muted-foreground: oklch(0.409 0.02 261.43);
--popover: oklch(0.995 0.005 133.635);
--popover-foreground: oklch(0.127 0.024 131.862);
--card: oklch(0.989 0.009 133.664);
--card-foreground: oklch(0.101 0.019 131.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.973 0.008 133.656);
--primary-foreground: oklch(0.304 0.041 134.572);
--secondary: oklch(0.967 0.005 261.513);
--secondary-foreground: oklch(0.449 0.055 261.116);
--accent: oklch(0.966 0.006 352.76);
--accent-foreground: oklch(0.448 0.07 356.784);
--destructive: oklch(0.444 0.14 38.787);
--destructive-foreground: oklch(0.91 0.047 44.533);
--ring: oklch(0.973 0.008 133.656);
--chart-1: oklch(0.973 0.008 133.656);
--chart-2: oklch(0.967 0.005 261.513);
--chart-3: oklch(0.966 0.006 352.76);
--chart-4: oklch(0.992 0.001 261.514);
--chart-5: oklch(0.974 0.009 133.662);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.012 132.496);
--foreground: oklch(1 0 180);
--muted: oklch(0.245 0.03 261.105);
--muted-foreground: oklch(0.756 0.017 261.494);
--popover: oklch(0.097 0.012 132.496);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.015 132.496);
--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.973 0.008 133.656);
--primary-foreground: oklch(0.304 0.041 134.572);
--secondary: oklch(0.967 0.005 261.513);
--secondary-foreground: oklch(0.449 0.055 261.116);
--accent: oklch(0.966 0.006 352.76);
--accent-foreground: oklch(0.448 0.07 356.784);
--destructive: oklch(0.696 0.189 41.247);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.973 0.008 133.656);
--chart-1: oklch(0.973 0.008 133.656);
--chart-2: oklch(0.967 0.005 261.513);
--chart-3: oklch(0.966 0.006 352.76);
--chart-4: oklch(0.992 0.001 261.514);
--chart-5: oklch(0.974 0.009 133.662);
}