Memory for shadcn/ui

Memory is a shadcn/ui theme built around a vivid deep green primary color (#091c03) with muted light green accents (#c0cdbc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#091c03) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#091c03black
#091c03black
Primary foreground
#46d317limegreen
#46d317limegreen
Secondary
#d5d8d5lightgrey
#30392ddarkslategray
Secondary foreground
#3c403bdarkslategray
#c9d2c6lightgrey
Muted
#eff2eewhitesmoke
#0e110dblack
Muted foreground
#646963dimgray
#979c96darkgray
Accent
#c0cdbcsilver
#41543bdarkslategray
Accent foreground
#283125darkslategray
#dee6dbgainsboro
Destructive
#932e06saddlebrown
#f5500forangered
Destructive foreground
#fddbcebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#091c03black
#091c03black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.01:1AAA
Secondary button7.34:1AAA
Muted text4.95:1AA
Accent8.13:1AAA
Destructive6.15:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button9.01:1AAA
Secondary button7.75:1AAA
Muted text6.78:1AA
Accent6.41:1AA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.006 137.773);
  --muted-foreground: oklch(0.515 0.011 137.8);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.201 0.053 137.524);
  --primary-foreground: oklch(0.761 0.239 140.118);
  --secondary: oklch(0.879 0.005 137.773);
  --secondary-foreground: oklch(0.365 0.01 137.808);
  --accent: oklch(0.833 0.026 137.817);
  --accent-foreground: oklch(0.302 0.025 137.919);
  --destructive: oklch(0.449 0.143 38.015);
  --destructive-foreground: oklch(0.917 0.042 42.787);
  --ring: oklch(0.201 0.053 137.524);
  --chart-1: oklch(0.201 0.053 137.524);
  --chart-2: oklch(0.879 0.005 137.773);
  --chart-3: oklch(0.833 0.026 137.817);
  --chart-4: oklch(0.902 0.004 137.771);
  --chart-5: oklch(0.203 0.054 137.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 137.765);
  --muted: oklch(0.174 0.009 137.852);
  --muted-foreground: oklch(0.687 0.01 137.788);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 137.765);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 137.765);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.201 0.053 137.524);
  --primary-foreground: oklch(0.761 0.239 140.118);
  --secondary: oklch(0.331 0.022 137.888);
  --secondary-foreground: oklch(0.853 0.018 137.799);
  --accent: oklch(0.423 0.048 137.998);
  --accent-foreground: oklch(0.915 0.017 137.795);
  --destructive: oklch(0.655 0.211 37.607);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.201 0.053 137.524);
  --chart-1: oklch(0.201 0.053 137.524);
  --chart-2: oklch(0.331 0.022 137.888);
  --chart-3: oklch(0.423 0.048 137.998);
  --chart-4: oklch(0.363 0.025 137.892);
  --chart-5: oklch(0.203 0.054 137.476);
}