Liquid for shadcn/ui

Liquid is a shadcn/ui theme built around a vivid light yellow primary color (#fbfbda) with muted light yellow accents (#d3d3c5). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the vivid light yellow primary (#fbfbda) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfcf7snow
#030302black
Foreground
#040501black
#fbfbf9snow
Card
#fcfcf7snow
#030302black
Card foreground
#040501black
#fbfbf9snow
Popover
#fcfcf7snow
#030302black
Popover foreground
#040501black
#fbfbf9snow
Primary
#fbfbdacornsilk
#fbfbdacornsilk
Primary foreground
#373806darkgreen
#373806darkgreen
Secondary
#d3d3c5lightgrey
#2b2b21darkslategray
Secondary foreground
#3a3a2cdarkslategray
#c7c8b7silver
Muted
#e3e3degainsboro
#21211cblack
Muted foreground
#4c4c42darkslategray
#bcbdb3silver
Accent
#d3d3c5lightgrey
#2b2b21darkslategray
Accent foreground
#3a3a2cdarkslategray
#c7c8b7silver
Destructive
#91210ddarkred
#ee553atomato
Destructive foreground
#fbdbd5mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbfbdacornsilk
#fbfbdacornsilk

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button11.52:1AAA
Secondary button7.63:1AAA
Muted text6.74:1AA
Accent7.63:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button11.52:1AAA
Secondary button8.39:1AAA
Muted text8.49:1AAA
Accent8.39:1AAA
Destructive5.98:1AA

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.007 107.293);
  --foreground: oklch(0.108 0.019 109.821);
  --muted: oklch(0.915 0.007 107.316);
  --muted-foreground: oklch(0.415 0.016 107.864);
  --popover: oklch(0.991 0.007 107.293);
  --popover-foreground: oklch(0.108 0.019 109.821);
  --card: oklch(0.991 0.007 107.293);
  --card-foreground: oklch(0.108 0.019 109.821);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.98 0.044 107.958);
  --primary-foreground: oklch(0.328 0.067 110.583);
  --secondary: oklch(0.863 0.019 107.573);
  --secondary-foreground: oklch(0.344 0.024 108.378);
  --accent: oklch(0.863 0.019 107.573);
  --accent-foreground: oklch(0.344 0.024 108.378);
  --destructive: oklch(0.433 0.152 32.216);
  --destructive-foreground: oklch(0.916 0.037 29.665);
  --ring: oklch(0.98 0.044 107.958);
  --chart-1: oklch(0.98 0.044 107.958);
  --chart-2: oklch(0.863 0.019 107.573);
  --chart-3: oklch(0.863 0.019 107.573);
  --chart-4: oklch(0.884 0.016 107.504);
  --chart-5: oklch(0.982 0.045 107.983);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.01 108.664);
  --foreground: oklch(0.986 0.002 107.202);
  --muted: oklch(0.247 0.01 107.898);
  --muted-foreground: oklch(0.794 0.014 107.485);
  --popover: oklch(0.1 0.01 108.664);
  --popover-foreground: oklch(0.986 0.002 107.202);
  --card: oklch(0.1 0.01 108.664);
  --card-foreground: oklch(0.986 0.002 107.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.98 0.044 107.958);
  --primary-foreground: oklch(0.328 0.067 110.583);
  --secondary: oklch(0.286 0.017 108.239);
  --secondary-foreground: oklch(0.827 0.023 107.661);
  --accent: oklch(0.286 0.017 108.239);
  --accent-foreground: oklch(0.827 0.023 107.661);
  --destructive: oklch(0.651 0.193 32.306);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.98 0.044 107.958);
  --chart-1: oklch(0.98 0.044 107.958);
  --chart-2: oklch(0.286 0.017 108.239);
  --chart-3: oklch(0.286 0.017 108.239);
  --chart-4: oklch(0.32 0.02 108.282);
  --chart-5: oklch(0.982 0.045 107.983);
}