Serendipity Sunset for shadcn/ui

Serendipity Sunset is a shadcn/ui theme built around a light blue primary color (#dddfee) with muted blue accents (#3e4260). The light mode uses a blue-tinted background (#202231). Dark mode keeps the light blue primary (#dddfee) on a blue-tinted background (#202231).

Color palette

TokenLightDark
Background
#202231darkslategray
#202231darkslategray
Foreground
#dddfeelavender
#dddfeelavender
Card
#1c1e2bblack
#1c1e2bblack
Card foreground
#eeeff7whitesmoke
#eeeff7whitesmoke
Popover
#1a1c28black
#1a1c28black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#dddfeelavender
#dddfeelavender
Primary foreground
#323867darkslategray
#323867darkslategray
Secondary
#303450darkslategray
#303450darkslategray
Secondary foreground
#cfd1e2lightgrey
#cfd1e2lightgrey
Muted
#2d2e39darkslategray
#2d2e39darkslategray
Muted foreground
#a9abbcdarkgray
#a9abbcdarkgray
Accent
#3e4260darkslategray
#3e4260darkslategray
Accent foreground
#e3e4edlavender
#e3e4edlavender
Destructive
#f41915red
#f41915red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#30313bdarkslategray
#30313bdarkslategray
Input
#363844darkslategray
#363844darkslategray
Ring
#dddfeelavender
#dddfeelavender

Contrast

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

Light mode
Text on background11.85:1AAA
Text on card14.42:1AAA
Primary button8.33:1AAA
Secondary button8.05:1AAA
Muted text5.89:1AA
Accent7.67:1AAA
Destructive4.20:1AA Large
Dark mode
Text on background11.85:1AAA
Text on card14.42:1AAA
Primary button8.33:1AAA
Secondary button8.05:1AAA
Muted text5.89:1AA
Accent7.67:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.258 0.029 278.36);
  --foreground: oklch(0.906 0.022 279.949);
  --muted: oklch(0.306 0.02 279.253);
  --muted-foreground: oklch(0.746 0.023 279.825);
  --popover: oklch(0.23 0.024 278.494);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.239 0.026 278.445);
  --card-foreground: oklch(0.953 0.011 280.155);
  --border: oklch(0.316 0.019 279.344);
  --input: oklch(0.344 0.021 279.313);
  --primary: oklch(0.906 0.022 279.949);
  --primary-foreground: oklch(0.36 0.082 275.822);
  --secondary: oklch(0.333 0.05 277.557);
  --secondary-foreground: oklch(0.865 0.023 279.896);
  --accent: oklch(0.39 0.05 278.007);
  --accent-foreground: oklch(0.922 0.012 280.133);
  --destructive: oklch(0.614 0.243 28.807);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.022 279.949);
  --chart-1: oklch(0.906 0.022 279.949);
  --chart-2: oklch(0.333 0.05 277.557);
  --chart-3: oklch(0.39 0.05 278.007);
  --chart-4: oklch(0.358 0.055 277.487);
  --chart-5: oklch(0.904 0.023 279.914);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.258 0.029 278.36);
  --foreground: oklch(0.906 0.022 279.949);
  --muted: oklch(0.306 0.02 279.253);
  --muted-foreground: oklch(0.746 0.023 279.825);
  --popover: oklch(0.23 0.024 278.494);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.239 0.026 278.445);
  --card-foreground: oklch(0.953 0.011 280.155);
  --border: oklch(0.316 0.019 279.344);
  --input: oklch(0.344 0.021 279.313);
  --primary: oklch(0.906 0.022 279.949);
  --primary-foreground: oklch(0.36 0.082 275.822);
  --secondary: oklch(0.333 0.05 277.557);
  --secondary-foreground: oklch(0.865 0.023 279.896);
  --accent: oklch(0.39 0.05 278.007);
  --accent-foreground: oklch(0.922 0.012 280.133);
  --destructive: oklch(0.614 0.243 28.807);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.022 279.949);
  --chart-1: oklch(0.906 0.022 279.949);
  --chart-2: oklch(0.333 0.05 277.557);
  --chart-3: oklch(0.39 0.05 278.007);
  --chart-4: oklch(0.358 0.055 277.487);
  --chart-5: oklch(0.904 0.023 279.914);
}