Liquid for shadcn/ui

Liquid is a shadcn/ui theme built around a near-white primary color (#fafafa) with near-white accents (#fafafa). The light mode uses a neutral background (#fefbfd). Dark mode keeps the near-white primary (#fafafa) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0a0508black
Foreground
#0e0208black
#faf5f8whitesmoke
Card
#fdf7fasnow
#0e070bblack
Card foreground
#090106black
#fbf8fasnow
Popover
#fefbfdsnow
#0a0508black
Popover foreground
#0e0208black
#faf5f8whitesmoke
Primary
#fafafasnow
#fafafasnow
Primary foreground
#635f61dimgray
#635f61dimgray
Secondary
#fafafasnow
#fafafasnow
Secondary foreground
#2e2f2ddarkslategray
#2e2f2ddarkslategray
Muted
#dde9cegainsboro
#253116darkslategray
Muted foreground
#575954dimgray
#a9aba6darkgray
Accent
#fafafasnow
#fafafasnow
Accent foreground
#2d2e2fdarkslategray
#2d2e2fdarkslategray
Destructive
#b72910firebrick
#ec4527orangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fafafasnow
#fafafasnow

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.47:1AAA
Primary button6.01:1AA
Secondary button12.88:1AAA
Muted text5.58:1AA
Accent13.02:1AAA
Destructive6.12:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.93:1AAA
Primary button6.01:1AA
Secondary button12.88:1AAA
Muted text5.92:1AA
Accent13.02:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 342.717);
  --foreground: oklch(0.118 0.036 343.35);
  --muted: oklch(0.916 0.037 126.96);
  --muted-foreground: oklch(0.461 0.009 126.674);
  --popover: oklch(0.991 0.004 342.717);
  --popover-foreground: oklch(0.118 0.036 343.35);
  --card: oklch(0.981 0.008 342.817);
  --card-foreground: oklch(0.102 0.031 342.568);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.985 0 342.625);
  --primary-foreground: oklch(0.49 0.006 342.913);
  --secondary: oklch(0.985 0 126.432);
  --secondary-foreground: oklch(0.303 0.003 126.575);
  --accent: oklch(0.985 0 242.196);
  --accent-foreground: oklch(0.3 0.002 242.285);
  --destructive: oklch(0.51 0.182 32.127);
  --destructive-foreground: oklch(0.991 0.004 29.481);
  --ring: oklch(0.985 0 342.625);
  --chart-1: oklch(0.985 0 342.625);
  --chart-2: oklch(0.985 0 126.432);
  --chart-3: oklch(0.985 0 242.196);
  --chart-4: oklch(1.007 0 306.427);
  --chart-5: oklch(0.985 0.001 342.635);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 342.606);
  --foreground: oklch(0.974 0.006 342.771);
  --muted: oklch(0.294 0.047 128.806);
  --muted-foreground: oklch(0.737 0.008 126.565);
  --popover: oklch(0.126 0.015 342.606);
  --popover-foreground: oklch(0.974 0.006 342.771);
  --card: oklch(0.139 0.017 344.042);
  --card-foreground: oklch(0.983 0.004 342.719);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.985 0 342.625);
  --primary-foreground: oklch(0.49 0.006 342.913);
  --secondary: oklch(0.985 0 126.432);
  --secondary-foreground: oklch(0.303 0.003 126.575);
  --accent: oklch(0.985 0 242.196);
  --accent-foreground: oklch(0.3 0.002 242.285);
  --destructive: oklch(0.63 0.209 32.366);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0 342.625);
  --chart-1: oklch(0.985 0 342.625);
  --chart-2: oklch(0.985 0 126.432);
  --chart-3: oklch(0.985 0 242.196);
  --chart-4: oklch(1.007 0 306.427);
  --chart-5: oklch(0.985 0.001 342.635);
}