Serene for shadcn/ui

Serene is a shadcn/ui theme built around a deep green primary color (#0c1505) with deep pink accents (#15050c). The light mode uses a neutral background (#fafdf7). Dark mode keeps the deep green primary (#0c1505) on a green-tinted background (#0a0e06).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0a0e06black
Foreground
#0a1104black
#ffffffwhite
Card
#fafdf7mintcream
#0a0e06black
Card foreground
#0a1104black
#ffffffwhite
Popover
#fafdf7mintcream
#0a0e06black
Popover foreground
#0a1104black
#ffffffwhite
Primary
#0c1505black
#0c1505black
Primary foreground
#6cba2colivedrab
#6cba2colivedrab
Secondary
#050c15black
#050c15black
Secondary foreground
#6ea0ddcornflowerblue
#6ea0ddcornflowerblue
Muted
#d4dfecgainsboro
#131d2bblack
Muted foreground
#59626edimgray
#919aa6darkgray
Accent
#15050cblack
#15050cblack
Accent foreground
#dd6ea0palevioletred
#dd6ea0palevioletred
Destructive
#a23a07saddlebrown
#e15109orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c1505black
#0c1505black

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button7.74:1AAA
Secondary button7.23:1AAA
Muted text4.59:1AA
Accent6.44:1AA
Destructive6.68:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.74:1AAA
Secondary button7.23:1AAA
Muted text5.94:1AA
Accent6.44:1AA
Destructive3.88: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.99 0.009 130.525);
  --foreground: oklch(0.164 0.03 130.409);
  --muted: oklch(0.9 0.021 253.37);
  --muted-foreground: oklch(0.493 0.023 253.49);
  --popover: oklch(0.99 0.009 130.525);
  --popover-foreground: oklch(0.164 0.03 130.409);
  --card: oklch(0.99 0.009 130.525);
  --card-foreground: oklch(0.164 0.03 130.409);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.18 0.034 131.551);
  --primary-foreground: oklch(0.711 0.187 134.546);
  --secondary: oklch(0.151 0.023 250.84);
  --secondary-foreground: oklch(0.696 0.105 254.043);
  --accent: oklch(0.147 0.034 351.628);
  --accent-foreground: oklch(0.683 0.148 353.44);
  --destructive: oklch(0.49 0.147 40.968);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.034 131.551);
  --chart-1: oklch(0.18 0.034 131.551);
  --chart-2: oklch(0.151 0.023 250.84);
  --chart-3: oklch(0.147 0.034 351.628);
  --chart-4: oklch(0.185 0.033 253.973);
  --chart-5: oklch(0.181 0.036 131.556);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.019 130.462);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.229 0.03 253.917);
  --muted-foreground: oklch(0.684 0.021 253.409);
  --popover: oklch(0.157 0.019 130.462);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.019 130.462);
  --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.18 0.034 131.551);
  --primary-foreground: oklch(0.711 0.187 134.546);
  --secondary: oklch(0.151 0.023 250.84);
  --secondary-foreground: oklch(0.696 0.105 254.043);
  --accent: oklch(0.147 0.034 351.628);
  --accent-foreground: oklch(0.683 0.148 353.44);
  --destructive: oklch(0.624 0.191 40.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.034 131.551);
  --chart-1: oklch(0.18 0.034 131.551);
  --chart-2: oklch(0.151 0.023 250.84);
  --chart-3: oklch(0.147 0.034 351.628);
  --chart-4: oklch(0.185 0.033 253.973);
  --chart-5: oklch(0.181 0.036 131.556);
}