Tailspin for shadcn/ui

Tailspin is a shadcn/ui theme built around a vivid light purple primary color (#f4d5fb) with vivid light teal accents (#d5fbf4). The light mode uses a neutral background (#fbf7fc). Dark mode keeps the vivid light purple primary (#f4d5fb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf7fcghostwhite
#000000black
Foreground
#0b020dblack
#fdfcfdwhite
Card
#fbf7fcghostwhite
#000000black
Card foreground
#0b020dblack
#fdfcfdwhite
Popover
#fbf7fcghostwhite
#000000black
Popover foreground
#0b020dblack
#fdfcfdwhite
Primary
#f4d5fblavender
#f4d5fblavender
Primary foreground
#790d91purple
#790d91purple
Secondary
#fbf4d5papayawhip
#fbf4d5papayawhip
Secondary foreground
#342b04black
#342b04black
Muted
#efede6linen
#191710black
Muted foreground
#5e5b50dimgray
#afada1darkgray
Accent
#d5fbf4lightcyan
#d5fbf4lightcyan
Accent foreground
#04342bdarkslategray
#04342bdarkslategray
Destructive
#990a00darkred
#ff4133tomato
Destructive foreground
#ffcfccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4d5fblavender
#f4d5fblavender

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.90:1AA
Secondary button12.75:1AAA
Muted text5.82:1AA
Accent12.38:1AAA
Destructive6.27:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button6.90:1AA
Secondary button12.75:1AAA
Muted text7.94:1AAA
Accent12.38:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 319.998);
  --foreground: oklch(0.119 0.035 321.833);
  --muted: oklch(0.947 0.01 96.296);
  --muted-foreground: oklch(0.47 0.018 96.607);
  --popover: oklch(0.982 0.008 319.998);
  --popover-foreground: oklch(0.119 0.035 321.833);
  --card: oklch(0.982 0.008 319.998);
  --card-foreground: oklch(0.119 0.035 321.833);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.91 0.062 320.05);
  --primary-foreground: oklch(0.427 0.198 318.6);
  --secondary: oklch(0.965 0.042 96.656);
  --secondary-foreground: oklch(0.29 0.055 95.988);
  --accent: oklch(0.96 0.041 183.135);
  --accent-foreground: oklch(0.291 0.051 176.964);
  --destructive: oklch(0.433 0.172 30.213);
  --destructive-foreground: oklch(0.896 0.054 22.987);
  --ring: oklch(0.91 0.062 320.05);
  --chart-1: oklch(0.91 0.062 320.05);
  --chart-2: oklch(0.965 0.042 96.656);
  --chart-3: oklch(0.96 0.041 183.135);
  --chart-4: oklch(0.977 0.028 96.505);
  --chart-5: oklch(0.91 0.064 320.052);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 319.994);
  --muted: oklch(0.205 0.014 96.873);
  --muted-foreground: oklch(0.745 0.016 96.428);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 319.994);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 319.994);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.91 0.062 320.05);
  --primary-foreground: oklch(0.427 0.198 318.6);
  --secondary: oklch(0.965 0.042 96.656);
  --secondary-foreground: oklch(0.29 0.055 95.988);
  --accent: oklch(0.96 0.041 183.135);
  --accent-foreground: oklch(0.291 0.051 176.964);
  --destructive: oklch(0.659 0.228 28.982);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.062 320.05);
  --chart-1: oklch(0.91 0.062 320.05);
  --chart-2: oklch(0.965 0.042 96.656);
  --chart-3: oklch(0.96 0.041 183.135);
  --chart-4: oklch(0.977 0.028 96.505);
  --chart-5: oklch(0.91 0.064 320.052);
}