Hydraulics for shadcn/ui

Hydraulics is a shadcn/ui theme built around a neutral gray primary color (#e0e0e0) with muted red accents (#cbb3b3). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#e0e0e0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f7snow
#000000black
Foreground
#160303black
#fdfcfcsnow
Card
#fdf7f7snow
#000000black
Card foreground
#160303black
#fdfcfcsnow
Popover
#fdf7f7snow
#000000black
Popover foreground
#160303black
#fdfcfcsnow
Primary
#e0e0e0gainsboro
#e0e0e0gainsboro
Primary foreground
#474747darkslategray
#474747darkslategray
Secondary
#d9cecelightgrey
#352c2cdarkslategray
Secondary foreground
#423333darkslategray
#cec5c5silver
Muted
#e1d5d5gainsboro
#2a1e1eblack
Muted foreground
#5d4646darkolivegreen
#b9a2a2darkgray
Accent
#cbb3b3silver
#483232darkslategray
Accent foreground
#2e1f1fblack
#decfcflightgrey
Destructive
#632003maroon
#e54906orangered
Destructive foreground
#fcb99cburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0e0e0gainsboro
#e0e0e0gainsboro

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button7.06:1AAA
Secondary button7.80:1AAA
Muted text6.05:1AA
Accent8.00:1AAA
Destructive7.22:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.06:1AAA
Secondary button8.01:1AAA
Muted text6.74:1AA
Accent7.81:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.272);
  --foreground: oklch(0.141 0.038 23.267);
  --muted: oklch(0.883 0.013 17.411);
  --muted-foreground: oklch(0.419 0.031 18.488);
  --popover: oklch(0.98 0.007 17.272);
  --popover-foreground: oklch(0.141 0.038 23.267);
  --card: oklch(0.98 0.007 17.272);
  --card-foreground: oklch(0.141 0.038 23.267);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.908 0 180);
  --primary-foreground: oklch(0.399 0 180);
  --secondary: oklch(0.861 0.013 17.4);
  --secondary-foreground: oklch(0.338 0.022 18.302);
  --accent: oklch(0.788 0.028 17.76);
  --accent-foreground: oklch(0.257 0.023 18.749);
  --destructive: oklch(0.344 0.105 40.13);
  --destructive-foreground: oklch(0.84 0.089 44.177);
  --ring: oklch(0.908 0 180);
  --chart-1: oklch(0.908 0 180);
  --chart-2: oklch(0.861 0.013 17.4);
  --chart-3: oklch(0.788 0.028 17.76);
  --chart-4: oklch(0.886 0.01 17.35);
  --chart-5: oklch(0.907 0.002 17.195);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 17.174);
  --muted: oklch(0.248 0.019 18.522);
  --muted-foreground: oklch(0.732 0.027 17.782);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 17.174);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 17.174);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.908 0 180);
  --primary-foreground: oklch(0.399 0 180);
  --secondary: oklch(0.303 0.013 17.882);
  --secondary-foreground: oklch(0.83 0.011 17.374);
  --accent: oklch(0.343 0.032 18.851);
  --accent-foreground: oklch(0.866 0.016 17.474);
  --destructive: oklch(0.62 0.202 37.717);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.908 0 180);
  --chart-1: oklch(0.908 0 180);
  --chart-2: oklch(0.303 0.013 17.882);
  --chart-3: oklch(0.343 0.032 18.851);
  --chart-4: oklch(0.332 0.015 17.907);
  --chart-5: oklch(0.907 0.002 17.195);
}