Dainty – Fluent for shadcn/ui

Dainty – Fluent is a shadcn/ui theme built around a vivid blue primary color (#33a0ff) with vivid blue accents (#124e87). The light mode uses a blue-tinted background (#092743). Dark mode keeps the vivid blue primary (#33a0ff) on a blue-tinted background (#092743).

Color palette

TokenLightDark
Background
#092743midnightblue
#092743midnightblue
Foreground
#d3e0f8lavender
#d3e0f8lavender
Card
#08223amidnightblue
#08223amidnightblue
Card foreground
#e9f0fclavender
#e9f0fclavender
Popover
#071f36midnightblue
#071f36midnightblue
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#33a0ffdodgerblue
#33a0ffdodgerblue
Primary foreground
#000000black
#000000black
Secondary
#2d4153darkslategray
#2d4153darkslategray
Secondary foreground
#cddae4gainsboro
#cddae4gainsboro
Muted
#2b3136darkslategray
#2b3136darkslategray
Muted foreground
#a6b0b9darkgray
#a6b0b9darkgray
Accent
#124e87teal
#124e87teal
Accent foreground
#d2e6f9lavender
#d2e6f9lavender
Destructive
#f71d1dred
#f71d1dred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#113455midnightblue
#113455midnightblue
Input
#143c61darkslategray
#143c61darkslategray
Ring
#33a0ffdodgerblue
#33a0ffdodgerblue

Contrast

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

Light mode
Text on background11.38:1AAA
Text on card14.09:1AAA
Primary button7.59:1AAA
Secondary button7.40:1AAA
Muted text6.00:1AA
Accent6.63:1AA
Destructive4.08:1AA Large
Dark mode
Text on background11.38:1AAA
Text on card14.09:1AAA
Primary button7.59:1AAA
Secondary button7.40:1AAA
Muted text6.00:1AA
Accent6.63:1AA
Destructive4.08:1AA Large

CSS variables

Paste this into your globals.css to use Dainty – Fluent in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.268 0.063 250.241);
  --foreground: oklch(0.905 0.036 261.454);
  --muted: oklch(0.308 0.013 246.451);
  --muted-foreground: oklch(0.753 0.017 246.227);
  --popover: oklch(0.236 0.053 249.664);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.247 0.056 249.898);
  --card-foreground: oklch(0.953 0.018 261.499);
  --border: oklch(0.318 0.071 249.789);
  --input: oklch(0.348 0.079 249.966);
  --primary: oklch(0.69 0.17 249.585);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.366 0.04 245.608);
  --secondary-foreground: oklch(0.881 0.02 244.369);
  --accent: oklch(0.42 0.111 251.383);
  --accent-foreground: oklch(0.916 0.033 246.38);
  --destructive: oklch(0.621 0.243 28.247);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.69 0.17 249.585);
  --chart-1: oklch(0.69 0.17 249.585);
  --chart-2: oklch(0.366 0.04 245.608);
  --chart-3: oklch(0.42 0.111 251.383);
  --chart-4: oklch(0.395 0.044 245.645);
  --chart-5: oklch(0.692 0.174 249.85);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.268 0.063 250.241);
  --foreground: oklch(0.905 0.036 261.454);
  --muted: oklch(0.308 0.013 246.451);
  --muted-foreground: oklch(0.753 0.017 246.227);
  --popover: oklch(0.236 0.053 249.664);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.247 0.056 249.898);
  --card-foreground: oklch(0.953 0.018 261.499);
  --border: oklch(0.318 0.071 249.789);
  --input: oklch(0.348 0.079 249.966);
  --primary: oklch(0.69 0.17 249.585);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.366 0.04 245.608);
  --secondary-foreground: oklch(0.881 0.02 244.369);
  --accent: oklch(0.42 0.111 251.383);
  --accent-foreground: oklch(0.916 0.033 246.38);
  --destructive: oklch(0.621 0.243 28.247);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.69 0.17 249.585);
  --chart-1: oklch(0.69 0.17 249.585);
  --chart-2: oklch(0.366 0.04 245.608);
  --chart-3: oklch(0.42 0.111 251.383);
  --chart-4: oklch(0.395 0.044 245.645);
  --chart-5: oklch(0.692 0.174 249.85);
}