Sunday for shadcn/ui

Sunday is a shadcn/ui theme built around a vivid deep yellow primary color (#221802) with vivid deep green accents (#1c2202). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#221802) on a yellow-tinted background (#100d04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100d04black
Foreground
#100c05black
#ffffffwhite
Card
#ffffffwhite
#100d04black
Card foreground
#100c05black
#ffffffwhite
Popover
#ffffffwhite
#100d04black
Popover foreground
#100c05black
#ffffffwhite
Primary
#221802black
#221802black
Primary foreground
#e5a30bgoldenrod
#e5a30bgoldenrod
Secondary
#220802black
#220802black
Secondary foreground
#f77d5ecoral
#f77d5ecoral
Muted
#e1d8d6gainsboro
#29201eblack
Muted foreground
#524947darkslategray
#b8afaddarkgray
Accent
#1c2202black
#1c2202black
Accent foreground
#b9e50bgreenyellow
#b9e50bgreenyellow
Destructive
#811f09maroon
#ee3911orangered
Destructive foreground
#fbccc1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#221802black
#221802black

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.96:1AAA
Secondary button7.29:1AAA
Muted text6.23:1AA
Accent11.16:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.96:1AAA
Secondary button7.29:1AAA
Muted text7.37:1AAA
Accent11.16:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.018 89.887);
  --muted: oklch(0.889 0.01 34.301);
  --muted-foreground: oklch(0.414 0.012 34.301);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.018 89.887);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0.018 89.887);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.217 0.041 87.031);
  --primary-foreground: oklch(0.76 0.156 79.431);
  --secondary: oklch(0.178 0.048 40.787);
  --secondary-foreground: oklch(0.724 0.157 35.145);
  --accent: oklch(0.238 0.054 119.948);
  --accent-foreground: oklch(0.86 0.208 122.539);
  --destructive: oklch(0.399 0.136 33.528);
  --destructive-foreground: oklch(0.882 0.056 32.817);
  --ring: oklch(0.217 0.041 87.031);
  --chart-1: oklch(0.217 0.041 87.031);
  --chart-2: oklch(0.178 0.048 40.787);
  --chart-3: oklch(0.238 0.054 119.948);
  --chart-4: oklch(0.215 0.064 37.748);
  --chart-5: oklch(0.218 0.043 87.043);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.02 90.069);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.014 34.345);
  --muted-foreground: oklch(0.761 0.01 34.299);
  --popover: oklch(0.159 0.02 90.069);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.02 90.069);
  --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.217 0.041 87.031);
  --primary-foreground: oklch(0.76 0.156 79.431);
  --secondary: oklch(0.178 0.048 40.787);
  --secondary-foreground: oklch(0.724 0.157 35.145);
  --accent: oklch(0.238 0.054 119.948);
  --accent-foreground: oklch(0.86 0.208 122.539);
  --destructive: oklch(0.622 0.222 33.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.217 0.041 87.031);
  --chart-1: oklch(0.217 0.041 87.031);
  --chart-2: oklch(0.178 0.048 40.787);
  --chart-3: oklch(0.238 0.054 119.948);
  --chart-4: oklch(0.215 0.064 37.748);
  --chart-5: oklch(0.218 0.043 87.043);
}