Flute for shadcn/ui

Flute is a shadcn/ui theme built around a muted deep green primary color (#313a27) with muted deep pink accents (#3a2731). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted deep green primary (#313a27) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#050802black
Foreground
#080d02black
#fafcf8snow
Card
#f8fcf3whitesmoke
#080c04black
Card foreground
#050901black
#fdfdfbsnow
Popover
#f8fcf3whitesmoke
#080c04black
Popover foreground
#050901black
#fdfdfbsnow
Primary
#313a27darkslategray
#313a27darkslategray
Primary foreground
#cad4bflightgrey
#cad4bflightgrey
Secondary
#27313adarkslategray
#27313adarkslategray
Secondary foreground
#bfcad4lightsteelblue
#bfcad4lightsteelblue
Muted
#e3e8edlavender
#12171cblack
Muted foreground
#4e555adarkslategray
#a5abb1darkgray
Accent
#3a2731darkslategray
#3a2731darkslategray
Accent foreground
#d4bfcathistle
#d4bfcathistle
Destructive
#7b2f09saddlebrown
#d55210chocolate
Destructive foreground
#fad1bdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#313a27darkslategray
#313a27darkslategray

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.30:1AAA
Primary button7.73:1AAA
Secondary button7.94:1AAA
Muted text6.16:1AA
Accent8.00:1AAA
Destructive6.59:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.41:1AAA
Primary button7.73:1AAA
Secondary button7.94:1AAA
Muted text7.76:1AAA
Accent8.00:1AAA
Destructive4.15: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.99 0.009 127.22);
  --foreground: oklch(0.15 0.03 126.346);
  --muted: oklch(0.929 0.009 244.205);
  --muted-foreground: oklch(0.444 0.012 244.427);
  --popover: oklch(0.985 0.013 127.275);
  --popover-foreground: oklch(0.13 0.026 125.823);
  --card: oklch(0.985 0.013 127.275);
  --card-foreground: oklch(0.13 0.026 125.823);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.335 0.035 128.477);
  --primary-foreground: oklch(0.857 0.031 127.562);
  --secondary: oklch(0.308 0.022 244.988);
  --secondary-foreground: oklch(0.834 0.019 244.369);
  --accent: oklch(0.299 0.034 346.082);
  --accent-foreground: oklch(0.825 0.029 344.293);
  --destructive: oklch(0.41 0.115 42.424);
  --destructive-foreground: oklch(0.891 0.054 48.093);
  --ring: oklch(0.335 0.035 128.477);
  --chart-1: oklch(0.335 0.035 128.477);
  --chart-2: oklch(0.308 0.022 244.988);
  --chart-3: oklch(0.299 0.034 346.082);
  --chart-4: oklch(0.338 0.024 245.019);
  --chart-5: oklch(0.338 0.04 128.676);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.018 126.189);
  --foreground: oklch(0.988 0.006 127.183);
  --muted: oklch(0.202 0.013 244.874);
  --muted-foreground: oklch(0.739 0.011 244.269);
  --popover: oklch(0.144 0.02 126.351);
  --popover-foreground: oklch(0.994 0.003 127.147);
  --card: oklch(0.144 0.02 126.351);
  --card-foreground: oklch(0.994 0.003 127.147);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.335 0.035 128.477);
  --primary-foreground: oklch(0.857 0.031 127.562);
  --secondary: oklch(0.308 0.022 244.988);
  --secondary-foreground: oklch(0.834 0.019 244.369);
  --accent: oklch(0.299 0.034 346.082);
  --accent-foreground: oklch(0.825 0.029 344.293);
  --destructive: oklch(0.606 0.179 41.359);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.335 0.035 128.477);
  --chart-1: oklch(0.335 0.035 128.477);
  --chart-2: oklch(0.308 0.022 244.988);
  --chart-3: oklch(0.299 0.034 346.082);
  --chart-4: oklch(0.338 0.024 245.019);
  --chart-5: oklch(0.338 0.04 128.676);
}