Moist for shadcn/ui

Moist is a shadcn/ui theme built around a muted teal primary color (#689c94) with muted red accents (#9c6870). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#689c94) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#010404black
#f6f9f9whitesmoke
Card
#fcfcfcsnow
#030707black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#fcfcfcsnow
#030707black
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#689c94cadetblue
#689c94cadetblue
Primary foreground
#000000black
#000000black
Secondary
#9c6870gray
#9c6870gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6d0d4gainsboro
#2f191cblack
Muted foreground
#5b484bdarkslategray
#b7a4a7darkgray
Accent
#9c6870gray
#9c6870gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d01406firebrick
#f82112red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#689c94cadetblue
#689c94cadetblue

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button6.79:1AA
Secondary button4.54:1AA
Muted text5.80:1AA
Accent4.54:1AA
Destructive5.55:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.46:1AAA
Primary button6.79:1AA
Secondary button4.54:1AA
Muted text6.98:1AA
Accent4.54:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.011 186.162);
  --muted: oklch(0.877 0.025 7.309);
  --muted-foreground: oklch(0.422 0.027 8.191);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.654 0.057 184.153);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.574 0.068 9.589);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.068 9.589);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.544 0.215 29.782);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.057 184.153);
  --chart-1: oklch(0.654 0.057 184.153);
  --chart-2: oklch(0.574 0.068 9.589);
  --chart-3: oklch(0.574 0.068 9.589);
  --chart-4: oklch(0.601 0.063 9.228);
  --chart-5: oklch(0.662 0.064 183.833);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 186.228);
  --foreground: oklch(0.98 0.004 186.501);
  --muted: oklch(0.243 0.036 10.358);
  --muted-foreground: oklch(0.735 0.023 7.384);
  --popover: oklch(0.123 0.012 186.228);
  --popover-foreground: oklch(0.986 0.002 186.533);
  --card: oklch(0.123 0.012 186.228);
  --card-foreground: oklch(0.986 0.002 186.533);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.654 0.057 184.153);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.574 0.068 9.589);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.068 9.589);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.243 29.746);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.057 184.153);
  --chart-1: oklch(0.654 0.057 184.153);
  --chart-2: oklch(0.574 0.068 9.589);
  --chart-3: oklch(0.574 0.068 9.589);
  --chart-4: oklch(0.601 0.063 9.228);
  --chart-5: oklch(0.662 0.064 183.833);
}