Sheath for shadcn/ui

Sheath is a shadcn/ui theme built around a muted blue primary color (#688aa6) with muted green accents (#8aa668). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted blue primary (#688aa6) on a neutral background (#020508).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020508black
Foreground
#000000black
#ffffffwhite
Card
#fbfdfewhite
#020508black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdfewhite
#020508black
Popover foreground
#000000black
#ffffffwhite
Primary
#688aa6lightslategray
#688aa6lightslategray
Primary foreground
#000000black
#000000black
Secondary
#a6688arosybrown
#a6688arosybrown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7d5dfgainsboro
#2a1822black
Muted foreground
#53464ddarkslategray
#b9acb3darkgray
Accent
#8aa668darkseagreen
#8aa668darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#923402saddlebrown
#f15704orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#688aa6lightslategray
#688aa6lightslategray

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button5.79:1AA
Secondary button4.21:1AA Large
Muted text6.35:1AA
Accent7.76:1AAA
Destructive7.73:1AAA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button5.79:1AA
Secondary button4.21:1AA Large
Muted text7.67:1AAA
Accent7.76:1AAA
Destructive3.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 242.229);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.025 343.281);
  --muted-foreground: oklch(0.41 0.022 343.897);
  --popover: oklch(0.992 0.003 242.229);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.003 242.229);
  --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.619 0.057 243.552);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.595 0.091 346.111);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.689 0.092 128.312);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.455 0.136 41.853);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.057 243.552);
  --chart-1: oklch(0.619 0.057 243.552);
  --chart-2: oklch(0.595 0.091 346.111);
  --chart-3: oklch(0.689 0.092 128.312);
  --chart-4: oklch(0.622 0.085 345.731);
  --chart-5: oklch(0.619 0.064 243.74);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.013 234.262);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.034 345.91);
  --muted-foreground: oklch(0.757 0.019 343.221);
  --popover: oklch(0.113 0.013 234.262);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.113 0.013 234.262);
  --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.619 0.057 243.552);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.595 0.091 346.111);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.689 0.092 128.312);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.656 0.203 40.443);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.057 243.552);
  --chart-1: oklch(0.619 0.057 243.552);
  --chart-2: oklch(0.595 0.091 346.111);
  --chart-3: oklch(0.689 0.092 128.312);
  --chart-4: oklch(0.622 0.085 345.731);
  --chart-5: oklch(0.619 0.064 243.74);
}