Futon for shadcn/ui

Futon is a shadcn/ui theme built around a vivid light purple primary color (#fd87fb) with muted light purple accents (#dfc8df). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid light purple primary (#fd87fb) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0a050ablack
Foreground
#000000black
#faf5faghostwhite
Card
#fdfcfdwhite
#0a050ablack
Card foreground
#000000black
#faf5faghostwhite
Popover
#fdfcfdwhite
#0a050ablack
Popover foreground
#000000black
#faf5faghostwhite
Primary
#fd87fbviolet
#fd87fbviolet
Primary foreground
#50024findigo
#50024findigo
Secondary
#e8dee8gainsboro
#3b2b3adarkslategray
Secondary foreground
#573d57darkslategray
#d4c4d3thistle
Muted
#e7cfe7gainsboro
#30182fdarkslategray
Muted foreground
#635463dimgray
#ab9caadarkgray
Accent
#dfc8dfthistle
#60395fdimgray
Accent foreground
#4a2b4adarkslategray
#ecdfeclavender
Destructive
#99320asaddlebrown
#f2642ctomato
Destructive foreground
#fde3d9mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fd87fbviolet
#fd87fbviolet

Contrast

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

Light mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button6.84:1AA
Secondary button7.25:1AAA
Muted text4.87:1AA
Accent7.76:1AAA
Destructive6.06:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button6.84:1AA
Secondary button7.91:1AAA
Muted text6.23:1AA
Accent7.25:1AAA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 326.077);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.882 0.042 326.427);
  --muted-foreground: oklch(0.467 0.03 326.549);
  --popover: oklch(0.992 0.003 326.077);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.003 326.077);
  --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.792 0.198 327.857);
  --primary-foreground: oklch(0.303 0.136 329.138);
  --secondary: oklch(0.911 0.017 326.205);
  --secondary-foreground: oklch(0.399 0.055 327.1);
  --accent: oklch(0.859 0.04 326.426);
  --accent-foreground: oklch(0.341 0.067 327.507);
  --destructive: oklch(0.466 0.145 38.354);
  --destructive-foreground: oklch(0.933 0.032 42.86);
  --ring: oklch(0.792 0.198 327.857);
  --chart-1: oklch(0.792 0.198 327.857);
  --chart-2: oklch(0.911 0.017 326.205);
  --chart-3: oklch(0.859 0.04 326.426);
  --chart-4: oklch(0.936 0.012 326.16);
  --chart-5: oklch(0.792 0.204 327.902);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.015 326.869);
  --foreground: oklch(0.975 0.008 326.117);
  --muted: oklch(0.252 0.055 327.654);
  --muted-foreground: oklch(0.709 0.027 326.352);
  --popover: oklch(0.128 0.015 326.869);
  --popover-foreground: oklch(0.975 0.008 326.117);
  --card: oklch(0.128 0.015 326.869);
  --card-foreground: oklch(0.975 0.008 326.117);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.792 0.198 327.857);
  --primary-foreground: oklch(0.303 0.136 329.138);
  --secondary: oklch(0.314 0.034 326.88);
  --secondary-foreground: oklch(0.838 0.027 326.306);
  --accent: oklch(0.406 0.078 327.468);
  --accent-foreground: oklch(0.918 0.022 326.243);
  --destructive: oklch(0.675 0.187 40.035);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.792 0.198 327.857);
  --chart-1: oklch(0.792 0.198 327.857);
  --chart-2: oklch(0.314 0.034 326.88);
  --chart-3: oklch(0.406 0.078 327.468);
  --chart-4: oklch(0.343 0.038 326.903);
  --chart-5: oklch(0.792 0.204 327.902);
}