Salty for shadcn/ui

Salty is a shadcn/ui theme built around a neutral gray primary color (#6d7473) with muted light teal accents (#d3d9d9). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the neutral gray primary (#6d7473) on a teal-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#040b0bblack
Foreground
#04100fblack
#ffffffwhite
Card
#f6fdfdmintcream
#040b0bblack
Card foreground
#04100fblack
#ffffffwhite
Popover
#f6fdfdmintcream
#040b0bblack
Popover foreground
#04100fblack
#ffffffwhite
Primary
#6d7473dimgray
#6d7473dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d3d9d9lightgrey
#21302fdarkslategray
Secondary foreground
#384241darkslategray
#b7cdcbsilver
Muted
#dde3e3gainsboro
#1c2221black
Muted foreground
#535f5edimgray
#a0acabdarkgray
Accent
#d3d9d9lightgrey
#21302fdarkslategray
Accent foreground
#384241darkslategray
#b7cdcbsilver
Destructive
#6d2803maroon
#f75c08orangered
Destructive foreground
#fcc4a6navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d7473dimgray
#6d7473dimgray

Contrast

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

Light mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button4.80:1AA
Secondary button7.28:1AAA
Muted text5.12:1AA
Accent7.28:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button4.80:1AA
Secondary button8.23:1AAA
Muted text6.93:1AA
Accent8.23:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 189.907);
  --foreground: oklch(0.161 0.019 187.905);
  --muted: oklch(0.912 0.007 189.911);
  --muted-foreground: oklch(0.476 0.016 189.321);
  --popover: oklch(0.99 0.007 189.907);
  --popover-foreground: oklch(0.161 0.019 187.905);
  --card: oklch(0.99 0.007 189.907);
  --card-foreground: oklch(0.161 0.019 187.905);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.552 0.008 189.735);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.882 0.007 189.892);
  --secondary-foreground: oklch(0.37 0.013 189.266);
  --accent: oklch(0.882 0.007 189.892);
  --accent-foreground: oklch(0.37 0.013 189.266);
  --destructive: oklch(0.374 0.107 43.272);
  --destructive-foreground: oklch(0.863 0.076 49.622);
  --ring: oklch(0.552 0.008 189.735);
  --chart-1: oklch(0.552 0.008 189.735);
  --chart-2: oklch(0.882 0.007 189.892);
  --chart-3: oklch(0.882 0.007 189.892);
  --chart-4: oklch(0.904 0.006 189.931);
  --chart-5: oklch(0.557 0.016 189.407);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.014 189.099);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.244 0.009 189.225);
  --muted-foreground: oklch(0.734 0.014 189.634);
  --popover: oklch(0.142 0.014 189.099);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.014 189.099);
  --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.552 0.008 189.735);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.296 0.02 188.486);
  --secondary-foreground: oklch(0.831 0.024 189.411);
  --accent: oklch(0.296 0.02 188.486);
  --accent-foreground: oklch(0.831 0.024 189.411);
  --destructive: oklch(0.671 0.205 40.885);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.552 0.008 189.735);
  --chart-1: oklch(0.552 0.008 189.735);
  --chart-2: oklch(0.296 0.02 188.486);
  --chart-3: oklch(0.296 0.02 188.486);
  --chart-4: oklch(0.329 0.023 188.426);
  --chart-5: oklch(0.557 0.016 189.407);
}