Dynamic Limon for shadcn/ui

Dynamic Limon is a shadcn/ui theme built around a vivid yellow primary color (#f9eb71) with vivid blue accents (#717ff9). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#f9eb71) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfbf8snow
#030302black
Foreground
#0c0b04black
#fdfdfcwhite
Card
#fafaf4floralwhite
#070703black
Card foreground
#080702black
#ffffffwhite
Popover
#fafaf4floralwhite
#070703black
Popover foreground
#080702black
#ffffffwhite
Primary
#f9eb71khaki
#f9eb71khaki
Primary foreground
#363102black
#363102black
Secondary
#717ff9mediumslateblue
#717ff9mediumslateblue
Secondary foreground
#000000black
#000000black
Muted
#dbdce6gainsboro
#191a24black
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#717ff9mediumslateblue
#717ff9mediumslateblue
Accent foreground
#000000black
#000000black
Destructive
#602306maroon
#f26b2ctomato
Destructive foreground
#f9bc9flightpink
#000000black
Border
#e5e5e0gainsboro
#1c1b17black
Input
#e5e5e0gainsboro
#1c1b17black
Ring
#f9eb71khaki
#f9eb71khaki

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card19.22:1AAA
Primary button10.77:1AAA
Secondary button6.08:1AA
Muted text7.36:1AAA
Accent6.08:1AA
Destructive7.33:1AAA
Dark mode
Text on background20.23:1AAA
Text on card20.20:1AAA
Primary button10.77:1AAA
Secondary button6.08:1AA
Muted text9.18:1AAA
Accent6.08:1AA
Destructive6.88:1AA

CSS variables

Paste this into your globals.css to use Dynamic Limon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 101.363);
  --foreground: oklch(0.146 0.017 103.953);
  --muted: oklch(0.897 0.014 281.041);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.983 0.007 101.402);
  --popover-foreground: oklch(0.128 0.015 104.218);
  --card: oklch(0.983 0.007 101.402);
  --card-foreground: oklch(0.128 0.015 104.218);
  --border: oklch(0.921 0.006 101.392);
  --input: oklch(0.921 0.006 101.392);
  --primary: oklch(0.929 0.144 102.993);
  --primary-foreground: oklch(0.308 0.063 102.767);
  --secondary: oklch(0.645 0.181 275.358);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.645 0.181 275.358);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.342 0.097 41.724);
  --destructive-foreground: oklch(0.843 0.081 45.972);
  --ring: oklch(0.929 0.144 102.993);
  --chart-1: oklch(0.929 0.144 102.993);
  --chart-2: oklch(0.645 0.181 275.358);
  --chart-3: oklch(0.645 0.181 275.358);
  --chart-4: oklch(0.68 0.161 276.451);
  --chart-5: oklch(0.934 0.147 102.996);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.009 103.535);
  --foreground: oklch(0.994 0.002 101.317);
  --muted: oklch(0.222 0.019 279.737);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.125 0.011 103.535);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.011 103.535);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.223 0.008 101.823);
  --input: oklch(0.223 0.008 101.823);
  --primary: oklch(0.929 0.144 102.993);
  --primary-foreground: oklch(0.308 0.063 102.767);
  --secondary: oklch(0.645 0.181 275.358);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.645 0.181 275.358);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.683 0.182 42.482);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.929 0.144 102.993);
  --chart-1: oklch(0.929 0.144 102.993);
  --chart-2: oklch(0.645 0.181 275.358);
  --chart-3: oklch(0.645 0.181 275.358);
  --chart-4: oklch(0.68 0.161 276.451);
  --chart-5: oklch(0.934 0.147 102.996);
}