Serendipity Morning for shadcn/ui

Serendipity Morning is a shadcn/ui theme built around a muted blue primary color (#4f5378) with light indigo accents (#c9c9e4). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#4f5378) on a neutral background (#fcfcfd).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#fcfcfdwhite
Foreground
#4f5378darkslateblue
#4f5378darkslateblue
Card
#f5f5fawhitesmoke
#f5f5fawhitesmoke
Card foreground
#444969darkslategray
#444969darkslategray
Popover
#f1f1f8whitesmoke
#f1f1f8whitesmoke
Popover foreground
#3a3e59darkslategray
#3a3e59darkslategray
Primary
#4f5378darkslateblue
#4f5378darkslateblue
Primary foreground
#fcfcfdwhite
#fcfcfdwhite
Secondary
#b8bac6silver
#b8bac6silver
Secondary foreground
#22232adarkslategray
#22232adarkslategray
Muted
#e2e2e9gainsboro
#e2e2e9gainsboro
Muted foreground
#434356darkslategray
#434356darkslategray
Accent
#c9c9e4thistle
#c9c9e4thistle
Accent foreground
#292951midnightblue
#292951midnightblue
Destructive
#ae2d13firebrick
#ae2d13firebrick
Destructive foreground
#fef7f6snow
#fef7f6snow
Border
#ececf3lavender
#ececf3lavender
Input
#e3e3edlavender
#e3e3edlavender
Ring
#4f5378darkslateblue
#4f5378darkslateblue

Contrast

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

Light mode
Text on background7.18:1AAA
Text on card8.03:1AAA
Primary button7.18:1AAA
Secondary button8.10:1AAA
Muted text7.51:1AAA
Accent8.44:1AAA
Destructive6.20:1AA
Dark mode
Text on background7.18:1AAA
Text on card8.03:1AAA
Primary button7.18:1AAA
Secondary button8.10:1AAA
Muted text7.51:1AAA
Accent8.44:1AAA
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 286.359);
  --foreground: oklch(0.455 0.061 277.913);
  --muted: oklch(0.916 0.008 286.236);
  --muted-foreground: oklch(0.391 0.031 284.884);
  --popover: oklch(0.961 0.009 286.23);
  --popover-foreground: oklch(0.373 0.047 278.037);
  --card: oklch(0.971 0.007 286.274);
  --card-foreground: oklch(0.415 0.054 277.967);
  --border: oklch(0.946 0.009 286.218);
  --input: oklch(0.918 0.014 286.116);
  --primary: oklch(0.455 0.061 277.913);
  --primary-foreground: oklch(0.991 0.001 280.311);
  --secondary: oklch(0.791 0.017 279.977);
  --secondary-foreground: oklch(0.258 0.014 279.429);
  --accent: oklch(0.844 0.037 285.574);
  --accent-foreground: oklch(0.303 0.072 281.253);
  --destructive: oklch(0.498 0.17 32.943);
  --destructive-foreground: oklch(0.982 0.008 31.057);
  --ring: oklch(0.455 0.061 277.913);
  --chart-1: oklch(0.455 0.061 277.913);
  --chart-2: oklch(0.791 0.017 279.977);
  --chart-3: oklch(0.844 0.037 285.574);
  --chart-4: oklch(0.817 0.015 280.033);
  --chart-5: oklch(0.449 0.069 277.462);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 286.359);
  --foreground: oklch(0.455 0.061 277.913);
  --muted: oklch(0.916 0.008 286.236);
  --muted-foreground: oklch(0.391 0.031 284.884);
  --popover: oklch(0.961 0.009 286.23);
  --popover-foreground: oklch(0.373 0.047 278.037);
  --card: oklch(0.971 0.007 286.274);
  --card-foreground: oklch(0.415 0.054 277.967);
  --border: oklch(0.946 0.009 286.218);
  --input: oklch(0.918 0.014 286.116);
  --primary: oklch(0.455 0.061 277.913);
  --primary-foreground: oklch(0.991 0.001 280.311);
  --secondary: oklch(0.791 0.017 279.977);
  --secondary-foreground: oklch(0.258 0.014 279.429);
  --accent: oklch(0.844 0.037 285.574);
  --accent-foreground: oklch(0.303 0.072 281.253);
  --destructive: oklch(0.498 0.17 32.943);
  --destructive-foreground: oklch(0.982 0.008 31.057);
  --ring: oklch(0.455 0.061 277.913);
  --chart-1: oklch(0.455 0.061 277.913);
  --chart-2: oklch(0.791 0.017 279.977);
  --chart-3: oklch(0.844 0.037 285.574);
  --chart-4: oklch(0.817 0.015 280.033);
  --chart-5: oklch(0.449 0.069 277.462);
}