Mellow for shadcn/ui

Mellow is a shadcn/ui theme built around a vivid deep orange primary color (#7c360e) with muted light orange accents (#d5d0cd). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid deep orange primary (#7c360e) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fdf9f7snow
#040202black
Foreground
#040201black
#ffffffwhite
Card
#fdf9f7snow
#040202black
Card foreground
#040201black
#ffffffwhite
Popover
#fdf9f7snow
#040202black
Popover foreground
#040201black
#ffffffwhite
Primary
#7c360esaddlebrown
#7c360esaddlebrown
Primary foreground
#f8d7c3peachpuff
#f8d7c3peachpuff
Secondary
#d5d0cdlightgrey
#2a2928darkslategray
Secondary foreground
#3d3734darkslategray
#c3c1c1silver
Muted
#e7d8d0gainsboro
#2f2118black
Muted foreground
#676665dimgray
#9a9998darkgray
Accent
#d5d0cdlightgrey
#2a2928darkslategray
Accent foreground
#3d3734darkslategray
#c3c1c1silver
Destructive
#dc0d09red
#f51d19red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c360esaddlebrown
#7c360esaddlebrown

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button6.47:1AA
Secondary button7.65:1AAA
Muted text4.13:1AA Large
Accent7.65:1AAA
Destructive5.10:1AA
Dark mode
Text on background20.68:1AAA
Text on card20.68:1AAA
Primary button6.47:1AA
Secondary button8.14:1AAA
Muted text5.47:1AA
Accent8.14:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 52.509);
  --foreground: oklch(0.092 0.009 60.093);
  --muted: oklch(0.892 0.02 52.288);
  --muted-foreground: oklch(0.51 0.002 52.526);
  --popover: oklch(0.985 0.005 52.509);
  --popover-foreground: oklch(0.092 0.009 60.093);
  --card: oklch(0.985 0.005 52.509);
  --card-foreground: oklch(0.092 0.009 60.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.422 0.109 45.921);
  --primary-foreground: oklch(0.902 0.046 51.929);
  --secondary: oklch(0.861 0.006 52.48);
  --secondary-foreground: oklch(0.341 0.01 52.202);
  --accent: oklch(0.861 0.006 52.48);
  --accent-foreground: oklch(0.341 0.01 52.202);
  --destructive: oklch(0.565 0.228 29.08);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.422 0.109 45.921);
  --chart-1: oklch(0.422 0.109 45.921);
  --chart-2: oklch(0.861 0.006 52.48);
  --chart-3: oklch(0.861 0.006 52.48);
  --chart-4: oklch(0.884 0.005 52.499);
  --chart-5: oklch(0.424 0.112 45.435);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.007 57.996);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.261 0.027 51.235);
  --muted-foreground: oklch(0.683 0.002 52.543);
  --popover: oklch(0.092 0.007 57.996);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0.007 57.996);
  --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.422 0.109 45.921);
  --primary-foreground: oklch(0.902 0.046 51.929);
  --secondary: oklch(0.28 0.002 52.489);
  --secondary-foreground: oklch(0.813 0.002 52.544);
  --accent: oklch(0.28 0.002 52.489);
  --accent-foreground: oklch(0.813 0.002 52.544);
  --destructive: oklch(0.618 0.242 28.679);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.422 0.109 45.921);
  --chart-1: oklch(0.422 0.109 45.921);
  --chart-2: oklch(0.28 0.002 52.489);
  --chart-3: oklch(0.28 0.002 52.489);
  --chart-4: oklch(0.311 0.002 52.485);
  --chart-5: oklch(0.424 0.112 45.435);
}