Fluid for shadcn/ui

Fluid is a shadcn/ui theme built around a vivid orange primary color (#e5913e) with vivid violet accents (#913ee5). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the vivid orange primary (#e5913e) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfaf7snow
#030302black
Foreground
#100a04black
#faf7f5whitesmoke
Card
#fbf7f3floralwhite
#070503black
Card foreground
#0c0803black
#fcfaf8snow
Popover
#fbf7f3floralwhite
#070503black
Popover foreground
#0c0803black
#fcfaf8snow
Primary
#e5913eperu
#e5913eperu
Primary foreground
#000000black
#000000black
Secondary
#3ee591mediumaquamarine
#3ee591mediumaquamarine
Secondary foreground
#0a4c2bdarkgreen
#0a4c2bdarkgreen
Muted
#e5f0eblavender
#0f1a14black
Muted foreground
#4b5d54darkslategray
#a2b4abdarkgray
Accent
#913ee5blueviolet
#913ee5blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9f1b09firebrick
#f3422borangered
Destructive foreground
#fde1ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5913eperu
#e5913eperu

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.79:1AAA
Primary button8.46:1AAA
Secondary button6.14:1AA
Muted text6.01:1AA
Accent5.21:1AA
Destructive6.45:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.53:1AAA
Primary button8.46:1AAA
Secondary button6.14:1AA
Muted text8.20:1AAA
Accent5.21:1AA
Destructive3.73: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.986 0.005 67.77);
  --foreground: oklch(0.152 0.018 72.062);
  --muted: oklch(0.945 0.013 164.771);
  --muted-foreground: oklch(0.461 0.027 163.493);
  --popover: oklch(0.979 0.007 67.744);
  --popover-foreground: oklch(0.137 0.016 75.624);
  --card: oklch(0.979 0.007 67.744);
  --card-foreground: oklch(0.137 0.016 75.624);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.729 0.139 62.152);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.818 0.179 156.221);
  --secondary-foreground: oklch(0.369 0.085 155.429);
  --accent: oklch(0.562 0.236 301.932);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.454 0.169 30.962);
  --destructive-foreground: oklch(0.932 0.031 26.7);
  --ring: oklch(0.729 0.139 62.152);
  --chart-1: oklch(0.729 0.139 62.152);
  --chart-2: oklch(0.818 0.179 156.221);
  --chart-3: oklch(0.562 0.236 301.932);
  --chart-4: oklch(0.827 0.17 157.157);
  --chart-5: oklch(0.733 0.144 61.737);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 72.764);
  --foreground: oklch(0.978 0.004 67.773);
  --muted: oklch(0.204 0.019 162.444);
  --muted-foreground: oklch(0.753 0.024 164.268);
  --popover: oklch(0.118 0.008 72.764);
  --popover-foreground: oklch(0.986 0.003 67.79);
  --card: oklch(0.118 0.008 72.764);
  --card-foreground: oklch(0.986 0.003 67.79);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.729 0.139 62.152);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.818 0.179 156.221);
  --secondary-foreground: oklch(0.369 0.085 155.429);
  --accent: oklch(0.562 0.236 301.932);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.216 30.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.729 0.139 62.152);
  --chart-1: oklch(0.729 0.139 62.152);
  --chart-2: oklch(0.818 0.179 156.221);
  --chart-3: oklch(0.562 0.236 301.932);
  --chart-4: oklch(0.827 0.17 157.157);
  --chart-5: oklch(0.733 0.144 61.737);
}