Flute for shadcn/ui

Flute is a shadcn/ui theme built around a neutral gray primary color (#666666) with neutral gray accents (#666666). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#666666) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040202black
Foreground
#140505black
#fbf9f9snow
Card
#fcf7f7snow
#070303black
Card foreground
#100404black
#fdfcfcsnow
Popover
#fcf7f7snow
#070303black
Popover foreground
#100404black
#fdfcfcsnow
Primary
#666666dimgray
#666666dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#666666dimgray
#666666dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3e7e7linen
#180c0cblack
Muted foreground
#524747darkslategray
#b8adaddarkgray
Accent
#666666dimgray
#666666dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#99300bsaddlebrown
#e04710orangered
Destructive foreground
#fce2d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#666666dimgray
#666666dimgray

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.07:1AAA
Primary button5.74:1AA
Secondary button5.74:1AA
Muted text7.41:1AAA
Accent5.74:1AA
Destructive6.11:1AA
Dark mode
Text on background19.78:1AAA
Text on card20.02:1AAA
Primary button5.74:1AA
Secondary button5.74:1AA
Muted text8.77:1AAA
Accent5.74:1AA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 17.202);
  --foreground: oklch(0.144 0.029 21.398);
  --muted: oklch(0.938 0.012 17.378);
  --muted-foreground: oklch(0.409 0.015 17.762);
  --popover: oklch(0.981 0.005 17.246);
  --popover-foreground: oklch(0.132 0.025 21.127);
  --card: oklch(0.981 0.005 17.246);
  --card-foreground: oklch(0.132 0.025 21.127);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.51 0 171.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.51 0 171.87);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.51 0 171.87);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.463 0.146 37.496);
  --destructive-foreground: oklch(0.932 0.032 41.082);
  --ring: oklch(0.51 0 171.87);
  --chart-1: oklch(0.51 0 171.87);
  --chart-2: oklch(0.51 0 171.87);
  --chart-3: oklch(0.51 0 171.87);
  --chart-4: oklch(0.537 0 180);
  --chart-5: oklch(0.505 0.008 17.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 19.117);
  --foreground: oklch(0.983 0.003 17.206);
  --muted: oklch(0.171 0.02 19.323);
  --muted-foreground: oklch(0.757 0.012 17.429);
  --popover: oklch(0.108 0.012 19.117);
  --popover-foreground: oklch(0.991 0.001 17.182);
  --card: oklch(0.108 0.012 19.117);
  --card-foreground: oklch(0.991 0.001 17.182);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.51 0 171.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.51 0 171.87);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.51 0 171.87);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.611 0.198 36.971);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0 171.87);
  --chart-1: oklch(0.51 0 171.87);
  --chart-2: oklch(0.51 0 171.87);
  --chart-3: oklch(0.51 0 171.87);
  --chart-4: oklch(0.537 0 180);
  --chart-5: oklch(0.505 0.008 17.414);
}