Liquidity for shadcn/ui

Liquidity is a shadcn/ui theme built around a blue primary color (#39728e) with neutral gray accents (#d7d9db). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#39728e) on a blue-tinted background (#050c0f).

Color palette

TokenLightDark
Background
#ffffffwhite
#050c0fblack
Foreground
#010609black
#f6f8f8whitesmoke
Card
#fcfcfcsnow
#060f13black
Card foreground
#010305black
#f9fafbghostwhite
Popover
#fcfcfcsnow
#060f13black
Popover foreground
#010305black
#f9fafbghostwhite
Primary
#39728esteelblue
#39728esteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d7d9dbgainsboro
#2f3132darkslategray
Secondary foreground
#3d4143darkslategray
#c7cacclightgrey
Muted
#e2eaeelavender
#11191dblack
Muted foreground
#474b4ddarkslategray
#b2b6b8silver
Accent
#d7d9dbgainsboro
#2f3132darkslategray
Accent foreground
#3d4143darkslategray
#c7cacclightgrey
Destructive
#8d0707darkred
#f42a2acrimson
Destructive foreground
#fccacapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#39728esteelblue
#39728esteelblue

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.21:1AAA
Primary button5.30:1AA
Secondary button7.30:1AAA
Muted text7.23:1AAA
Accent7.30:1AAA
Destructive6.68:1AA
Dark mode
Text on background18.48:1AAA
Text on card18.51:1AAA
Primary button5.30:1AA
Secondary button7.93:1AAA
Muted text8.71:1AAA
Accent7.93:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.017 220.564);
  --muted: oklch(0.932 0.01 228.888);
  --muted-foreground: oklch(0.41 0.006 228.951);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.093 0.013 220.564);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.093 0.013 220.564);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.075 232.389);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.885 0.003 228.799);
  --secondary-foreground: oklch(0.371 0.007 228.997);
  --accent: oklch(0.885 0.003 228.799);
  --accent-foreground: oklch(0.371 0.007 228.997);
  --destructive: oklch(0.407 0.162 28.569);
  --destructive-foreground: oklch(0.882 0.058 18.301);
  --ring: oklch(0.525 0.075 232.389);
  --chart-1: oklch(0.525 0.075 232.389);
  --chart-2: oklch(0.885 0.003 228.799);
  --chart-3: oklch(0.885 0.003 228.799);
  --chart-4: oklch(0.908 0.003 228.788);
  --chart-5: oklch(0.527 0.079 232.772);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.014 227.207);
  --foreground: oklch(0.977 0.002 228.773);
  --muted: oklch(0.207 0.014 229.85);
  --muted-foreground: oklch(0.774 0.005 228.839);
  --popover: oklch(0.161 0.017 229.347);
  --popover-foreground: oklch(0.985 0.001 228.766);
  --card: oklch(0.161 0.017 229.347);
  --card-foreground: oklch(0.985 0.001 228.766);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.525 0.075 232.389);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.311 0.004 228.935);
  --secondary-foreground: oklch(0.838 0.004 228.809);
  --accent: oklch(0.311 0.004 228.935);
  --accent-foreground: oklch(0.838 0.004 228.809);
  --destructive: oklch(0.623 0.233 27.424);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.525 0.075 232.389);
  --chart-1: oklch(0.525 0.075 232.389);
  --chart-2: oklch(0.311 0.004 228.935);
  --chart-3: oklch(0.311 0.004 228.935);
  --chart-4: oklch(0.342 0.005 228.941);
  --chart-5: oklch(0.527 0.079 232.772);
}