Memo for shadcn/ui

Memo is a shadcn/ui theme built around a vivid green primary color (#48ea4e) with vivid red accents (#ea4e48). The light mode uses a neutral background (#fbfdfb). Dark mode keeps the vivid green primary (#48ea4e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfbsnow
#000000black
Foreground
#000000black
#f8fcf8mintcream
Card
#fbfdfbsnow
#000000black
Card foreground
#000000black
#f8fcf8mintcream
Popover
#fbfdfbsnow
#000000black
Popover foreground
#000000black
#f8fcf8mintcream
Primary
#48ea4elimegreen
#48ea4elimegreen
Primary foreground
#000000black
#000000black
Secondary
#4e48earoyalblue
#4e48earoyalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9e9f1lavender
#0e0e16black
Muted foreground
#585775dimgray
#8b8aa8lightslategray
Accent
#ea4e48tomato
#ea4e48tomato
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c44408chocolate
#f55f19chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#48ea4elimegreen
#48ea4elimegreen

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button13.10:1AAA
Secondary button6.09:1AA
Muted text5.74:1AA
Accent3.70:1AA Large
Destructive5.04:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button13.10:1AAA
Secondary button6.09:1AA
Muted text5.76:1AA
Accent3.70:1AA Large
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 146.512);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.011 287.731);
  --muted-foreground: oklch(0.469 0.049 285.862);
  --popover: oklch(0.993 0.003 146.512);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.003 146.512);
  --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.823 0.237 143.472);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.518 0.233 275.955);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.638 0.193 26.158);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.559 0.174 39.436);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.823 0.237 143.472);
  --chart-1: oklch(0.823 0.237 143.472);
  --chart-2: oklch(0.518 0.233 275.955);
  --chart-3: oklch(0.638 0.193 26.158);
  --chart-4: oklch(0.549 0.217 277.945);
  --chart-5: oklch(0.83 0.243 143.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.007 146.482);
  --muted: oklch(0.168 0.016 286.022);
  --muted-foreground: oklch(0.644 0.045 286.577);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.007 146.482);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.007 146.482);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.823 0.237 143.472);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.518 0.233 275.955);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.638 0.193 26.158);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.673 0.199 40.703);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.823 0.237 143.472);
  --chart-1: oklch(0.823 0.237 143.472);
  --chart-2: oklch(0.518 0.233 275.955);
  --chart-3: oklch(0.638 0.193 26.158);
  --chart-4: oklch(0.549 0.217 277.945);
  --chart-5: oklch(0.83 0.243 143.401);
}