Souvenir for shadcn/ui

Souvenir is a shadcn/ui theme built around a deep green primary color (#101b0e) with deep purple accents (#180e1b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#101b0e) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#000000black
#fcfdfcwhite
Card
#fcfcfcsnow
#040703black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#040703black
Popover foreground
#000000black
#ffffffwhite
Primary
#101b0eblack
#101b0eblack
Primary foreground
#9dc892darkseagreen
#9dc892darkseagreen
Secondary
#180e1bblack
#180e1bblack
Secondary foreground
#be92c8plum
#be92c8plum
Muted
#f5eef6whitesmoke
#0f0911black
Muted foreground
#6a596edimgray
#a291a6darkgray
Accent
#180e1bblack
#180e1bblack
Accent foreground
#be92c8plum
#be92c8plum
Destructive
#c14e0bchocolate
#e35b0dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#101b0eblack
#101b0eblack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.36:1AAA
Secondary button7.28:1AAA
Muted text5.65:1AA
Accent7.28:1AAA
Destructive4.82:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.23:1AAA
Primary button9.36:1AAA
Secondary button7.28:1AAA
Muted text6.69:1AA
Accent7.28:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.012 319.448);
  --muted-foreground: oklch(0.487 0.041 319.464);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.208 0.03 139.468);
  --primary-foreground: oklch(0.789 0.087 139.441);
  --secondary: oklch(0.184 0.031 319.447);
  --secondary-foreground: oklch(0.72 0.09 319.463);
  --accent: oklch(0.184 0.031 319.447);
  --accent-foreground: oklch(0.72 0.09 319.463);
  --destructive: oklch(0.568 0.162 43.492);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.208 0.03 139.468);
  --chart-1: oklch(0.208 0.03 139.468);
  --chart-2: oklch(0.184 0.031 319.447);
  --chart-3: oklch(0.184 0.031 319.447);
  --chart-4: oklch(0.215 0.041 319.432);
  --chart-5: oklch(0.209 0.033 139.481);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 138.144);
  --foreground: oklch(0.993 0.002 139.444);
  --muted: oklch(0.152 0.02 319.504);
  --muted-foreground: oklch(0.678 0.037 319.459);
  --popover: oklch(0.122 0.017 138.144);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.017 138.144);
  --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.208 0.03 139.468);
  --primary-foreground: oklch(0.789 0.087 139.441);
  --secondary: oklch(0.184 0.031 319.447);
  --secondary-foreground: oklch(0.72 0.09 319.463);
  --accent: oklch(0.184 0.031 319.447);
  --accent-foreground: oklch(0.72 0.09 319.463);
  --destructive: oklch(0.639 0.184 43.178);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.208 0.03 139.468);
  --chart-1: oklch(0.208 0.03 139.468);
  --chart-2: oklch(0.184 0.031 319.447);
  --chart-3: oklch(0.184 0.031 319.447);
  --chart-4: oklch(0.215 0.041 319.432);
  --chart-5: oklch(0.209 0.033 139.481);
}