Futon for shadcn/ui

Futon is a shadcn/ui theme built around a muted purple primary color (#ab73a0) with muted green accents (#73ab7e). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted purple primary (#ab73a0) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#040103black
Foreground
#040103black
#f9f6f8whitesmoke
Card
#faf5f9whitesmoke
#080207black
Card foreground
#000000black
#fbf9fbsnow
Popover
#fcf8fbsnow
#040103black
Popover foreground
#040103black
#f9f6f8whitesmoke
Primary
#ab73a0rosybrown
#ab73a0rosybrown
Primary foreground
#000000black
#000000black
Secondary
#73ab7edarkseagreen
#73ab7edarkseagreen
Secondary foreground
#000000black
#000000black
Muted
#eef7f0honeydew
#08110ablack
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#73ab7edarkseagreen
#73ab7edarkseagreen
Accent foreground
#000000black
#000000black
Destructive
#941405darkred
#f7402borangered
Destructive foreground
#fdd3cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab73a0rosybrown
#ab73a0rosybrown

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.47:1AAA
Primary button5.67:1AA
Secondary button7.84:1AAA
Muted text9.16:1AAA
Accent7.84:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.59:1AAA
Primary button5.67:1AA
Secondary button7.84:1AAA
Muted text10.19:1AAA
Accent7.84:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 332.079);
  --foreground: oklch(0.085 0.019 332.935);
  --muted: oklch(0.967 0.013 151.798);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.983 0.005 332.079);
  --popover-foreground: oklch(0.085 0.019 332.935);
  --card: oklch(0.975 0.007 332.117);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.628 0.093 334.059);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.689 0.088 149.867);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.689 0.088 149.867);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.427 0.163 30.584);
  --destructive-foreground: oklch(0.901 0.049 25.522);
  --ring: oklch(0.628 0.093 334.059);
  --chart-1: oklch(0.628 0.093 334.059);
  --chart-2: oklch(0.689 0.088 149.867);
  --chart-3: oklch(0.689 0.088 149.867);
  --chart-4: oklch(0.711 0.082 150.103);
  --chart-5: oklch(0.626 0.104 334.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.019 332.935);
  --foreground: oklch(0.975 0.005 332.082);
  --muted: oklch(0.167 0.02 150.265);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.085 0.019 332.935);
  --popover-foreground: oklch(0.975 0.005 332.082);
  --card: oklch(0.108 0.024 332.935);
  --card-foreground: oklch(0.984 0.003 332.056);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.628 0.093 334.059);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.689 0.088 149.867);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.689 0.088 149.867);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.644 0.222 30.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.628 0.093 334.059);
  --chart-1: oklch(0.628 0.093 334.059);
  --chart-2: oklch(0.689 0.088 149.867);
  --chart-3: oklch(0.689 0.088 149.867);
  --chart-4: oklch(0.711 0.082 150.103);
  --chart-5: oklch(0.626 0.104 334.292);
}