Proposed Mimosa Yellow for shadcn/ui

Proposed Mimosa Yellow is a shadcn/ui theme built around a yellow primary color (#dec62b) with green accents (#9cde2b). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#dec62b) on a yellow-tinted background (#0e0d07).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0e0d07black
Foreground
#0d0c02black
#fcfbf8snow
Card
#fefdfbsnow
#0e0d07black
Card foreground
#0d0c02black
#fcfbf8snow
Popover
#fefdfbsnow
#0e0d07black
Popover foreground
#0d0c02black
#fcfbf8snow
Primary
#dec62bgoldenrod
#dec62bgoldenrod
Primary foreground
#352f08black
#352f08black
Secondary
#de6d2bchocolate
#de6d2bchocolate
Secondary foreground
#000000black
#000000black
Muted
#f4f2f1whitesmoke
#0e0c0bblack
Muted foreground
#69584fdimgray
#b0a096rosybrown
Accent
#9cde2byellowgreen
#9cde2byellowgreen
Accent foreground
#253508darkgreen
#253508darkgreen
Destructive
#771409maroon
#ee2c17orangered
Destructive foreground
#fabeb8lightpink
#ffffffwhite
Border
#eeede8linen
#2c2a21darkslategray
Input
#eeede8linen
#2c2a21darkslategray
Ring
#dec62bgoldenrod
#dec62bgoldenrod

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button7.83:1AAA
Secondary button6.31:1AA
Muted text6.04:1AA
Accent8.10:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button7.83:1AAA
Secondary button6.31:1AA
Muted text7.71:1AAA
Accent8.10:1AAA
Destructive4.20:1AA Large

CSS variables

Paste this into your globals.css to use Proposed Mimosa Yellow in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 99.385);
  --foreground: oklch(0.152 0.025 103.018);
  --muted: oklch(0.962 0.003 52.54);
  --muted-foreground: oklch(0.475 0.026 51.878);
  --popover: oklch(0.995 0.003 99.385);
  --popover-foreground: oklch(0.152 0.025 103.018);
  --card: oklch(0.995 0.003 99.385);
  --card-foreground: oklch(0.152 0.025 103.018);
  --border: oklch(0.945 0.007 99.452);
  --input: oklch(0.945 0.007 99.452);
  --primary: oklch(0.823 0.161 99.798);
  --primary-foreground: oklch(0.303 0.055 100.323);
  --secondary: oklch(0.658 0.16 46.935);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.826 0.206 128.747);
  --accent-foreground: oklch(0.304 0.07 127.737);
  --destructive: oklch(0.369 0.134 30.513);
  --destructive-foreground: oklch(0.855 0.069 25.856);
  --ring: oklch(0.823 0.161 99.798);
  --chart-1: oklch(0.823 0.161 99.798);
  --chart-2: oklch(0.658 0.16 46.935);
  --chart-3: oklch(0.826 0.206 128.747);
  --chart-4: oklch(0.676 0.151 48.021);
  --chart-5: oklch(0.831 0.164 99.658);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.014 100.888);
  --foreground: oklch(0.988 0.004 99.402);
  --muted: oklch(0.158 0.004 52.214);
  --muted-foreground: oklch(0.716 0.023 52.154);
  --popover: oklch(0.157 0.014 100.888);
  --popover-foreground: oklch(0.988 0.004 99.402);
  --card: oklch(0.157 0.014 100.888);
  --card-foreground: oklch(0.988 0.004 99.402);
  --border: oklch(0.285 0.018 100.151);
  --input: oklch(0.285 0.018 100.151);
  --primary: oklch(0.823 0.161 99.798);
  --primary-foreground: oklch(0.303 0.055 100.323);
  --secondary: oklch(0.658 0.16 46.935);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.826 0.206 128.747);
  --accent-foreground: oklch(0.304 0.07 127.737);
  --destructive: oklch(0.611 0.228 30.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.823 0.161 99.798);
  --chart-1: oklch(0.823 0.161 99.798);
  --chart-2: oklch(0.658 0.16 46.935);
  --chart-3: oklch(0.826 0.206 128.747);
  --chart-4: oklch(0.676 0.151 48.021);
  --chart-5: oklch(0.831 0.164 99.658);
}