Serene for shadcn/ui

Serene is a shadcn/ui theme built around a vivid light teal primary color (#9cf7df) with vivid light yellow accents (#f7df9c). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid light teal primary (#9cf7df) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#050a09black
Foreground
#040c0ablack
#fcfdfdwhite
Card
#f4faf9mintcream
#070d0cblack
Card foreground
#020806black
#ffffffwhite
Popover
#f8fcfbmintcream
#050a09black
Popover foreground
#040c0ablack
#fcfdfdwhite
Primary
#9cf7dfpaleturquoise
#9cf7dfpaleturquoise
Primary foreground
#075a44darkslategray
#075a44darkslategray
Secondary
#df9cf7plum
#df9cf7plum
Secondary foreground
#44075aindigo
#44075aindigo
Muted
#ede6eflavender
#161019black
Muted foreground
#434144darkslategray
#bdbbbesilver
Accent
#f7df9ckhaki
#f7df9ckhaki
Accent foreground
#5a4407saddlebrown
#5a4407saddlebrown
Destructive
#c12d0bfirebrick
#f1380eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9cf7dfpaleturquoise
#9cf7dfpaleturquoise

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.18:1AAA
Primary button6.56:1AA
Secondary button7.17:1AAA
Muted text8.26:1AAA
Accent7.04:1AAA
Destructive5.77:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.55:1AAA
Primary button6.56:1AA
Secondary button7.17:1AAA
Muted text9.80:1AAA
Accent7.04:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 178.648);
  --foreground: oklch(0.142 0.016 178.433);
  --muted: oklch(0.933 0.013 317.157);
  --muted-foreground: oklch(0.378 0.005 317.158);
  --popover: oklch(0.988 0.005 178.648);
  --popover-foreground: oklch(0.142 0.016 178.433);
  --card: oklch(0.981 0.007 178.578);
  --card-foreground: oklch(0.124 0.014 178.878);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.094 175.297);
  --primary-foreground: oklch(0.416 0.081 168.45);
  --secondary: oklch(0.789 0.143 316.726);
  --secondary-foreground: oklch(0.294 0.135 314.175);
  --accent: oklch(0.907 0.089 90.352);
  --accent-foreground: oklch(0.398 0.078 86.234);
  --destructive: oklch(0.531 0.189 33.07);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.094 175.297);
  --chart-1: oklch(0.912 0.094 175.297);
  --chart-2: oklch(0.789 0.143 316.726);
  --chart-3: oklch(0.907 0.089 90.352);
  --chart-4: oklch(0.817 0.123 316.824);
  --chart-5: oklch(0.915 0.097 175.177);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.01 178.844);
  --foreground: oklch(0.993 0.001 178.749);
  --muted: oklch(0.186 0.02 316.943);
  --muted-foreground: oklch(0.796 0.004 317.177);
  --popover: oklch(0.138 0.01 178.844);
  --popover-foreground: oklch(0.993 0.001 178.749);
  --card: oklch(0.153 0.011 177.318);
  --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.912 0.094 175.297);
  --primary-foreground: oklch(0.416 0.081 168.45);
  --secondary: oklch(0.789 0.143 316.726);
  --secondary-foreground: oklch(0.294 0.135 314.175);
  --accent: oklch(0.907 0.089 90.352);
  --accent-foreground: oklch(0.398 0.078 86.234);
  --destructive: oklch(0.625 0.225 32.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.094 175.297);
  --chart-1: oklch(0.912 0.094 175.297);
  --chart-2: oklch(0.789 0.143 316.726);
  --chart-3: oklch(0.907 0.089 90.352);
  --chart-4: oklch(0.817 0.123 316.824);
  --chart-5: oklch(0.915 0.097 175.177);
}