Raincoat for shadcn/ui

Raincoat is a shadcn/ui theme built around a deep cyan primary color (#133949) with deep green accents (#394913). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#133949) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05090ablack
Foreground
#030a0dblack
#f6f8f9whitesmoke
Card
#ffffffwhite
#05090ablack
Card foreground
#030a0dblack
#f6f8f9whitesmoke
Popover
#ffffffwhite
#05090ablack
Popover foreground
#030a0dblack
#f6f8f9whitesmoke
Primary
#133949darkslategray
#133949darkslategray
Primary foreground
#a6d4e8lightblue
#a6d4e8lightblue
Secondary
#491339darkslategray
#491339darkslategray
Secondary foreground
#e8a6d4plum
#e8a6d4plum
Muted
#efdce9mistyrose
#23101dblack
Muted foreground
#4c484bdarkslategray
#b7b3b6silver
Accent
#394913darkolivegreen
#394913darkolivegreen
Accent foreground
#d4e8a6palegoldenrod
#d4e8a6palegoldenrod
Destructive
#c23b05firebrick
#fa6429tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#133949darkslategray
#133949darkslategray

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button7.75:1AAA
Secondary button7.55:1AAA
Muted text6.88:1AA
Accent7.44:1AAA
Destructive5.37:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button7.75:1AAA
Secondary button7.55:1AAA
Muted text8.71:1AAA
Accent7.44:1AAA
Destructive6.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.017 219.83);
  --muted: oklch(0.914 0.027 336.416);
  --muted-foreground: oklch(0.406 0.008 336.225);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.017 219.83);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.135 0.017 219.83);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.325 0.051 229.621);
  --primary-foreground: oklch(0.844 0.056 225.998);
  --secondary: oklch(0.291 0.095 341.826);
  --secondary-foreground: oklch(0.801 0.098 338.026);
  --accent: oklch(0.379 0.08 124.536);
  --accent-foreground: oklch(0.9 0.089 121.761);
  --destructive: oklch(0.546 0.18 37.102);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.325 0.051 229.621);
  --chart-1: oklch(0.325 0.051 229.621);
  --chart-2: oklch(0.291 0.095 341.826);
  --chart-3: oklch(0.379 0.08 124.536);
  --chart-4: oklch(0.322 0.107 342.018);
  --chart-5: oklch(0.326 0.053 229.992);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.009 221.222);
  --foreground: oklch(0.978 0.002 225.007);
  --muted: oklch(0.207 0.039 339.133);
  --muted-foreground: oklch(0.771 0.007 336.029);
  --popover: oklch(0.134 0.009 221.222);
  --popover-foreground: oklch(0.978 0.002 225.007);
  --card: oklch(0.134 0.009 221.222);
  --card-foreground: oklch(0.978 0.002 225.007);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.325 0.051 229.621);
  --primary-foreground: oklch(0.844 0.056 225.998);
  --secondary: oklch(0.291 0.095 341.826);
  --secondary-foreground: oklch(0.801 0.098 338.026);
  --accent: oklch(0.379 0.08 124.536);
  --accent-foreground: oklch(0.9 0.089 121.761);
  --destructive: oklch(0.687 0.195 39.737);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.325 0.051 229.621);
  --chart-1: oklch(0.325 0.051 229.621);
  --chart-2: oklch(0.291 0.095 341.826);
  --chart-3: oklch(0.379 0.08 124.536);
  --chart-4: oklch(0.322 0.107 342.018);
  --chart-5: oklch(0.326 0.053 229.992);
}