Marmalade for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.89:1AAA
Text on card20.01:1AAA
Primary button12.37:1AAA
Secondary button6.82:1AA
Muted text6.22:1AA
Accent7.03:1AAA
Destructive6.15:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.22:1AAA
Primary button12.37:1AAA
Secondary button6.82:1AA
Muted text7.44:1AAA
Accent7.03:1AAA
Destructive7.20:1AAA

CSS variables

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);
}