Mayukai Sunset for shadcn/ui

Mayukai Sunset is a shadcn/ui theme built around a neutral gray primary color (#b3b1ad) with muted deep blue accents (#2f3956). The light mode uses a blue-tinted background (#141824). Dark mode keeps the neutral gray primary (#b3b1ad) on a blue-tinted background (#141824).

Color palette

TokenLightDark
Background
#141824black
#141824black
Foreground
#cccdc6lightgrey
#cccdc6lightgrey
Card
#10141eblack
#10141eblack
Card foreground
#d8d9d4lightgrey
#d8d9d4lightgrey
Popover
#0e111ablack
#0e111ablack
Popover foreground
#e4e5e1gainsboro
#e4e5e1gainsboro
Primary
#b3b1addarkgray
#b3b1addarkgray
Primary foreground
#181716black
#181716black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#22242bdarkslategray
#22242bdarkslategray
Muted foreground
#9ba0b0darkgray
#9ba0b0darkgray
Accent
#2f3956darkslategray
#2f3956darkslategray
Accent foreground
#d1d6e6gainsboro
#d1d6e6gainsboro
Destructive
#ed5440tomato
#ed5440tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#212531darkslategray
#212531darkslategray
Input
#272c3adarkslategray
#272c3adarkslategray
Ring
#b3b1addarkgray
#b3b1addarkgray

Contrast

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

Light mode
Text on background11.06:1AAA
Text on card12.99:1AAA
Primary button8.36:1AAA
Secondary button7.37:1AAA
Muted text5.94:1AA
Accent7.89:1AAA
Destructive3.53:1AA Large
Dark mode
Text on background11.06:1AAA
Text on card12.99:1AAA
Primary button8.36:1AAA
Secondary button7.37:1AAA
Muted text5.94:1AA
Accent7.89:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.211 0.025 269.948);
  --foreground: oklch(0.845 0.009 114.261);
  --muted: oklch(0.261 0.013 270.863);
  --muted-foreground: oklch(0.708 0.024 271.061);
  --popover: oklch(0.181 0.019 270.154);
  --popover-foreground: oklch(0.919 0.005 114.158);
  --card: oklch(0.191 0.021 270.077);
  --card-foreground: oklch(0.882 0.007 114.207);
  --border: oklch(0.266 0.023 270.43);
  --input: oklch(0.294 0.026 270.378);
  --primary: oklch(0.761 0.006 84.572);
  --primary-foreground: oklch(0.206 0.003 84.58);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.348 0.052 269.475);
  --accent-foreground: oklch(0.877 0.022 271.16);
  --destructive: oklch(0.65 0.193 30.481);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.761 0.006 84.572);
  --chart-1: oklch(0.761 0.006 84.572);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.348 0.052 269.475);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.764 0.011 84.583);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.211 0.025 269.948);
  --foreground: oklch(0.845 0.009 114.261);
  --muted: oklch(0.261 0.013 270.863);
  --muted-foreground: oklch(0.708 0.024 271.061);
  --popover: oklch(0.181 0.019 270.154);
  --popover-foreground: oklch(0.919 0.005 114.158);
  --card: oklch(0.191 0.021 270.077);
  --card-foreground: oklch(0.882 0.007 114.207);
  --border: oklch(0.266 0.023 270.43);
  --input: oklch(0.294 0.026 270.378);
  --primary: oklch(0.761 0.006 84.572);
  --primary-foreground: oklch(0.206 0.003 84.58);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.348 0.052 269.475);
  --accent-foreground: oklch(0.877 0.022 271.16);
  --destructive: oklch(0.65 0.193 30.481);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.761 0.006 84.572);
  --chart-1: oklch(0.761 0.006 84.572);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.348 0.052 269.475);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.764 0.011 84.583);
}