Wetsuit for shadcn/ui

Wetsuit is a shadcn/ui theme built around a muted green primary color (#74aa76) with muted red accents (#aa7674). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted green primary (#74aa76) on a green-tinted background (#050a05).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#050a05black
Foreground
#040c04black
#f5faf5whitesmoke
Card
#f4faf5whitesmoke
#070e07black
Card foreground
#020803black
#f8fbf9mintcream
Popover
#f4faf5whitesmoke
#070e07black
Popover foreground
#020803black
#f8fbf9mintcream
Primary
#74aa76darkseagreen
#74aa76darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#7674aalightslategray
#7674aalightslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d7d7e5gainsboro
#1b1a28black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#aa7674rosybrown
#aa7674rosybrown
Accent foreground
#000000black
#000000black
Destructive
#c72a0afirebrick
#e9310corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#74aa76darkseagreen
#74aa76darkseagreen

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.14:1AAA
Primary button7.73:1AAA
Secondary button4.34:1AA Large
Muted text5.74:1AA
Accent5.53:1AA
Destructive5.59:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.77:1AAA
Primary button7.73:1AAA
Secondary button4.34:1AA Large
Muted text7.89:1AAA
Accent5.53:1AA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 146.485);
  --foreground: oklch(0.139 0.025 145.116);
  --muted: oklch(0.883 0.019 287.538);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.98 0.01 146.455);
  --popover-foreground: oklch(0.122 0.022 145.132);
  --card: oklch(0.98 0.01 146.455);
  --card-foreground: oklch(0.122 0.022 145.132);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.686 0.095 145.241);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.582 0.082 285.075);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.617 0.066 21.352);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.539 0.196 32.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.095 145.241);
  --chart-1: oklch(0.686 0.095 145.241);
  --chart-2: oklch(0.582 0.082 285.075);
  --chart-3: oklch(0.617 0.066 21.352);
  --chart-4: oklch(0.612 0.075 285.463);
  --chart-5: oklch(0.691 0.105 145.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 145.574);
  --foreground: oklch(0.979 0.007 146.476);
  --muted: oklch(0.226 0.027 285.561);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.152 0.02 145.478);
  --popover-foreground: oklch(0.986 0.005 146.498);
  --card: oklch(0.152 0.02 145.478);
  --card-foreground: oklch(0.986 0.005 146.498);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.686 0.095 145.241);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.582 0.082 285.075);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.617 0.066 21.352);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.605 0.222 32.274);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.095 145.241);
  --chart-1: oklch(0.686 0.095 145.241);
  --chart-2: oklch(0.582 0.082 285.075);
  --chart-3: oklch(0.617 0.066 21.352);
  --chart-4: oklch(0.612 0.075 285.463);
  --chart-5: oklch(0.691 0.105 145.088);
}