Memo for shadcn/ui

Memo is a shadcn/ui theme built around a muted yellow primary color (#919277) with muted indigo accents (#787792). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#919277) on a yellow-tinted background (#0f0f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0f05black
Foreground
#080902black
#fbfbf8snow
Card
#ffffffwhite
#0f0f05black
Card foreground
#080902black
#fbfbf8snow
Popover
#ffffffwhite
#0f0f05black
Popover foreground
#080902black
#fbfbf8snow
Primary
#919277gray
#919277gray
Primary foreground
#000000black
#000000black
Secondary
#787792slategray
#787792slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebebf0lavender
#100f14black
Muted foreground
#44435bdarkslategray
#a5a4bcdarkgray
Accent
#787792slategray
#787792slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b92a0efirebrick
#d53110firebrick
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#919277gray
#919277gray

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button6.58:1AA
Secondary button4.32:1AA Large
Muted text8.01:1AAA
Accent4.32:1AA Large
Destructive5.99:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button6.58:1AA
Secondary button4.32:1AA Large
Muted text7.83:1AAA
Accent4.32:1AA Large
Destructive4.89:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.022 110.194);
  --muted: oklch(0.941 0.007 287.808);
  --muted-foreground: oklch(0.394 0.04 285.945);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.022 110.194);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.022 110.194);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.039 108.993);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.58 0.041 286.573);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.58 0.041 286.573);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.515 0.183 32.649);
  --destructive-foreground: oklch(0.991 0.004 31.051);
  --ring: oklch(0.652 0.039 108.993);
  --chart-1: oklch(0.652 0.039 108.993);
  --chart-2: oklch(0.58 0.041 286.573);
  --chart-3: oklch(0.58 0.041 286.573);
  --chart-4: oklch(0.608 0.038 286.74);
  --chart-5: oklch(0.662 0.048 109.235);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.165 0.021 109.991);
  --foreground: oklch(0.988 0.004 108.015);
  --muted: oklch(0.173 0.01 286.795);
  --muted-foreground: oklch(0.727 0.034 287.049);
  --popover: oklch(0.165 0.021 109.991);
  --popover-foreground: oklch(0.988 0.004 108.015);
  --card: oklch(0.165 0.021 109.991);
  --card-foreground: oklch(0.988 0.004 108.015);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.039 108.993);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.58 0.041 286.573);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.58 0.041 286.573);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.572 0.204 32.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.039 108.993);
  --chart-1: oklch(0.652 0.039 108.993);
  --chart-2: oklch(0.58 0.041 286.573);
  --chart-3: oklch(0.58 0.041 286.573);
  --chart-4: oklch(0.608 0.038 286.74);
  --chart-5: oklch(0.662 0.048 109.235);
}