Mellow for shadcn/ui

Mellow is a shadcn/ui theme built around a vivid red primary color (#f34316) with vivid cyan accents (#16c7f3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#f34316) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#110603black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#0d0402black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#110603black
#ffffffwhite
Primary
#f34316orangered
#f34316orangered
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#16c7f3deepskyblue
#16c7f3deepskyblue
Secondary foreground
#032f3adarkslategray
#032f3adarkslategray
Muted
#e3eff2lavender
#0d191cblack
Muted foreground
#4a4e4fdarkslategray
#b0b4b5darkgray
Accent
#16c7f3deepskyblue
#16c7f3deepskyblue
Accent foreground
#032f3adarkslategray
#032f3adarkslategray
Destructive
#cd2c13firebrick
#eb4228orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f34316orangered
#f34316orangered

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.84:1AAA
Primary button3.74:1AA Large
Secondary button7.11:1AAA
Muted text7.17:1AAA
Accent7.11:1AAA
Destructive5.28:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button3.74:1AA Large
Secondary button7.11:1AAA
Muted text8.57:1AAA
Accent7.11:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.139 0.024 41.407);
  --muted: oklch(0.944 0.013 214.359);
  --muted-foreground: oklch(0.42 0.005 214.352);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.139 0.024 41.407);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.125 0.02 42.891);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.218 34.022);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.769 0.139 221.873);
  --secondary-foreground: oklch(0.283 0.049 219.328);
  --accent: oklch(0.769 0.139 221.873);
  --accent-foreground: oklch(0.283 0.049 219.328);
  --destructive: oklch(0.553 0.2 31.542);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.218 34.022);
  --chart-1: oklch(0.638 0.218 34.022);
  --chart-2: oklch(0.769 0.139 221.873);
  --chart-3: oklch(0.769 0.139 221.873);
  --chart-4: oklch(0.779 0.136 220.572);
  --chart-5: oklch(0.642 0.224 33.791);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.203 0.018 215.148);
  --muted-foreground: oklch(0.767 0.004 214.332);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.638 0.218 34.022);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.769 0.139 221.873);
  --secondary-foreground: oklch(0.283 0.049 219.328);
  --accent: oklch(0.769 0.139 221.873);
  --accent-foreground: oklch(0.283 0.049 219.328);
  --destructive: oklch(0.626 0.209 31.655);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.218 34.022);
  --chart-1: oklch(0.638 0.218 34.022);
  --chart-2: oklch(0.769 0.139 221.873);
  --chart-3: oklch(0.769 0.139 221.873);
  --chart-4: oklch(0.779 0.136 220.572);
  --chart-5: oklch(0.642 0.224 33.791);
}