Grain of Salt Sailfish for shadcn/ui

Grain of Salt Sailfish is a shadcn/ui theme built around a muted light blue primary color (#d7dae0) with muted blue accents (#49515f). The light mode uses a blue-tinted background (#282c34). Dark mode keeps the muted light blue primary (#d7dae0) on a blue-tinted background (#282c34).

Color palette

TokenLightDark
Background
#282c34darkslategray
#282c34darkslategray
Foreground
#abb2bfdarkgray
#abb2bfdarkgray
Card
#23272edarkslategray
#23272edarkslategray
Card foreground
#b9bfcasilver
#b9bfcasilver
Popover
#21252bdarkslategray
#21252bdarkslategray
Popover foreground
#c8cdd5lightgrey
#c8cdd5lightgrey
Primary
#d7dae0gainsboro
#d7dae0gainsboro
Primary foreground
#3a3f4bdarkslategray
#3a3f4bdarkslategray
Secondary
#3e3f42darkslategray
#3e3f42darkslategray
Secondary foreground
#d8d8dagainsboro
#d8d8dagainsboro
Muted
#31363fdarkslategray
#31363fdarkslategray
Muted foreground
#afb5c0silver
#afb5c0silver
Accent
#49515fdarkslategray
#49515fdarkslategray
Accent foreground
#ebeceflavender
#ebeceflavender
Destructive
#fc1303red
#fc1303red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#393a3cdarkslategray
#393a3cdarkslategray
Input
#404244darkslategray
#404244darkslategray
Ring
#d7dae0gainsboro
#d7dae0gainsboro

Contrast

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

Light mode
Text on background6.57:1AA
Text on card8.10:1AAA
Primary button7.50:1AAA
Secondary button7.39:1AAA
Muted text5.89:1AA
Accent6.80:1AA
Destructive3.99:1AA Large
Dark mode
Text on background6.57:1AA
Text on card8.10:1AAA
Primary button7.50:1AAA
Secondary button7.39:1AAA
Muted text5.89:1AA
Accent6.80:1AA
Destructive3.99:1AA Large

CSS variables

Paste this into your globals.css to use Grain of Salt Sailfish in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.762 0.021 262.984);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.846 0.013 263.02);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.804 0.017 263.005);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.887 0.009 264.517);
  --primary-foreground: oklch(0.369 0.021 264.27);
  --secondary: oklch(0.368 0.005 264.508);
  --secondary-foreground: oklch(0.883 0.002 264.543);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.627 0.252 29.77);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.887 0.009 264.517);
  --chart-1: oklch(0.887 0.009 264.517);
  --chart-2: oklch(0.368 0.005 264.508);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.396 0.005 264.507);
  --chart-5: oklch(0.886 0.011 264.508);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.762 0.021 262.984);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.846 0.013 263.02);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.804 0.017 263.005);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.887 0.009 264.517);
  --primary-foreground: oklch(0.369 0.021 264.27);
  --secondary: oklch(0.368 0.005 264.508);
  --secondary-foreground: oklch(0.883 0.002 264.543);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.627 0.252 29.77);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.887 0.009 264.517);
  --chart-1: oklch(0.887 0.009 264.517);
  --chart-2: oklch(0.368 0.005 264.508);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.396 0.005 264.507);
  --chart-5: oklch(0.886 0.011 264.508);
}