Saving for shadcn/ui

Saving is a shadcn/ui theme built around a muted deep purple primary color (#3e2d3b) with muted deep green accents (#2d3e30). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted deep purple primary (#3e2d3b) on a purple-tinted background (#0e060c).

Color palette

TokenLightDark
Background
#fefbfewhite
#0e060cblack
Foreground
#040104black
#fbf9fbsnow
Card
#fefbfewhite
#0e060cblack
Card foreground
#040104black
#fbf9fbsnow
Popover
#fefbfewhite
#0e060cblack
Popover foreground
#040104black
#fbf9fbsnow
Primary
#3e2d3bdarkslategray
#3e2d3bdarkslategray
Primary foreground
#d6c7d3thistle
#d6c7d3thistle
Secondary
#2d3e30darkslategray
#2d3e30darkslategray
Secondary foreground
#c7d6calightgrey
#c7d6calightgrey
Muted
#d5dcd7gainsboro
#232a24darkslategray
Muted foreground
#47574adarkslategray
#a8b8abdarkgray
Accent
#2d3e30darkslategray
#2d3e30darkslategray
Accent foreground
#c7d6calightgrey
#c7d6calightgrey
Destructive
#6d0d08maroon
#df1b11crimson
Destructive foreground
#f9b2aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e2d3bdarkslategray
#3e2d3bdarkslategray

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button7.89:1AAA
Secondary button7.52:1AAA
Muted text5.52:1AA
Accent7.52:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.89:1AAA
Secondary button7.52:1AAA
Muted text7.10:1AAA
Accent7.52:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 332.085);
  --foreground: oklch(0.083 0.025 333.211);
  --muted: oklch(0.888 0.011 151.828);
  --muted-foreground: oklch(0.439 0.028 150.988);
  --popover: oklch(0.991 0.005 332.085);
  --popover-foreground: oklch(0.083 0.025 333.211);
  --card: oklch(0.991 0.005 332.085);
  --card-foreground: oklch(0.083 0.025 333.211);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.322 0.034 333.481);
  --primary-foreground: oklch(0.845 0.024 332.422);
  --secondary: oklch(0.345 0.032 150.486);
  --secondary-foreground: oklch(0.862 0.024 151.586);
  --accent: oklch(0.345 0.032 150.486);
  --accent-foreground: oklch(0.862 0.024 151.586);
  --destructive: oklch(0.345 0.129 29.109);
  --destructive-foreground: oklch(0.829 0.083 22.404);
  --ring: oklch(0.322 0.034 333.481);
  --chart-1: oklch(0.322 0.034 333.481);
  --chart-2: oklch(0.345 0.032 150.486);
  --chart-3: oklch(0.345 0.032 150.486);
  --chart-4: oklch(0.376 0.036 150.446);
  --chart-5: oklch(0.321 0.04 333.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.019 333.462);
  --foreground: oklch(0.984 0.003 332.058);
  --muted: oklch(0.275 0.014 151.217);
  --muted-foreground: oklch(0.766 0.025 151.508);
  --popover: oklch(0.14 0.019 333.462);
  --popover-foreground: oklch(0.984 0.003 332.058);
  --card: oklch(0.14 0.019 333.462);
  --card-foreground: oklch(0.984 0.003 332.058);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.322 0.034 333.481);
  --primary-foreground: oklch(0.845 0.024 332.422);
  --secondary: oklch(0.345 0.032 150.486);
  --secondary-foreground: oklch(0.862 0.024 151.586);
  --accent: oklch(0.345 0.032 150.486);
  --accent-foreground: oklch(0.862 0.024 151.586);
  --destructive: oklch(0.575 0.225 29.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.322 0.034 333.481);
  --chart-1: oklch(0.322 0.034 333.481);
  --chart-2: oklch(0.345 0.032 150.486);
  --chart-3: oklch(0.345 0.032 150.486);
  --chart-4: oklch(0.376 0.036 150.446);
  --chart-5: oklch(0.321 0.04 333.747);
}