Fluid for shadcn/ui

Fluid is a shadcn/ui theme built around a muted yellow primary color (#96996c) with muted indigo accents (#6e6c99). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted yellow primary (#96996c) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fbfcf8snow
#030302black
Foreground
#101004black
#fcfcf8snow
Card
#fbfcf8snow
#030302black
Card foreground
#101004black
#fcfcf8snow
Popover
#fbfcf8snow
#030302black
Popover foreground
#101004black
#fcfcf8snow
Primary
#96996cgray
#96996cgray
Primary foreground
#000000black
#000000black
Secondary
#6e6c99slategray
#6e6c99slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e8f3lavender
#0d0c17black
Muted foreground
#454455darkslategray
#abaabbdarkgray
Accent
#6e6c99slategray
#6e6c99slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6b0801maroon
#f91201red
Destructive foreground
#ffa59flightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96996cgray
#96996cgray

Contrast

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

Light mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button7.04:1AAA
Secondary button4.94:1AA
Muted text7.80:1AAA
Accent4.94:1AA
Destructive6.73:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.04:1AAA
Secondary button4.94:1AA
Muted text8.48:1AAA
Accent4.94:1AA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 108.795);
  --foreground: oklch(0.17 0.025 111.085);
  --muted: oklch(0.934 0.014 288.421);
  --muted-foreground: oklch(0.394 0.028 287.32);
  --popover: oklch(0.989 0.005 108.795);
  --popover-foreground: oklch(0.17 0.025 111.085);
  --card: oklch(0.989 0.005 108.795);
  --card-foreground: oklch(0.17 0.025 111.085);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.668 0.063 110.38);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.55 0.069 286.161);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.55 0.069 286.161);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.335 0.131 30.632);
  --destructive-foreground: oklch(0.809 0.107 24.162);
  --ring: oklch(0.668 0.063 110.38);
  --chart-1: oklch(0.668 0.063 110.38);
  --chart-2: oklch(0.55 0.069 286.161);
  --chart-3: oklch(0.55 0.069 286.161);
  --chart-4: oklch(0.579 0.064 286.491);
  --chart-5: oklch(0.679 0.072 110.596);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.008 109.78);
  --foreground: oklch(0.989 0.005 108.807);
  --muted: oklch(0.163 0.022 285.921);
  --muted-foreground: oklch(0.744 0.024 288.099);
  --popover: oklch(0.099 0.008 109.78);
  --popover-foreground: oklch(0.989 0.005 108.807);
  --card: oklch(0.099 0.008 109.78);
  --card-foreground: oklch(0.989 0.005 108.807);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.668 0.063 110.38);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.55 0.069 286.161);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.55 0.069 286.161);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.62 0.249 29.792);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.668 0.063 110.38);
  --chart-1: oklch(0.668 0.063 110.38);
  --chart-2: oklch(0.55 0.069 286.161);
  --chart-3: oklch(0.55 0.069 286.161);
  --chart-4: oklch(0.579 0.064 286.491);
  --chart-5: oklch(0.679 0.072 110.596);
}