Winding for shadcn/ui

Winding is a shadcn/ui theme built around a vivid light indigo primary color (#beb6fb) with vivid light green accents (#b6fbbe). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid light indigo primary (#beb6fb) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#020104black
Foreground
#050411black
#f6f6f8whitesmoke
Card
#fbfbfeghostwhite
#020104black
Card foreground
#050411black
#f6f6f8whitesmoke
Popover
#fbfbfeghostwhite
#020104black
Popover foreground
#050411black
#f6f6f8whitesmoke
Primary
#beb6fblightsteelblue
#beb6fblightsteelblue
Primary foreground
#140679midnightblue
#140679midnightblue
Secondary
#fbbeb6lightpink
#fbbeb6lightpink
Secondary foreground
#791406maroon
#791406maroon
Muted
#ebd8d6gainsboro
#291614black
Muted foreground
#605857dimgray
#a8a09fdarkgray
Accent
#b6fbbepalegreen
#b6fbbepalegreen
Accent foreground
#011804black
#011804black
Destructive
#d63605orangered
#f95624tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#beb6fblightsteelblue
#beb6fblightsteelblue

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button8.49:1AAA
Secondary button6.88:1AA
Muted text5.06:1AA
Accent15.49:1AAA
Destructive4.78:1AA
Dark mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button8.49:1AAA
Secondary button6.88:1AA
Muted text6.69:1AA
Accent15.49:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 291.695);
  --foreground: oklch(0.118 0.033 287.848);
  --muted: oklch(0.897 0.021 26.613);
  --muted-foreground: oklch(0.469 0.011 26.606);
  --popover: oklch(0.989 0.004 291.695);
  --popover-foreground: oklch(0.118 0.033 287.848);
  --card: oklch(0.989 0.004 291.695);
  --card-foreground: oklch(0.118 0.033 287.848);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.808 0.097 289.395);
  --primary-foreground: oklch(0.275 0.171 270.962);
  --secondary: oklch(0.856 0.071 27.222);
  --secondary-foreground: oklch(0.374 0.137 31.113);
  --accent: oklch(0.927 0.107 147.664);
  --accent-foreground: oklch(0.184 0.052 146.168);
  --destructive: oklch(0.576 0.202 34.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.097 289.395);
  --chart-1: oklch(0.808 0.097 289.395);
  --chart-2: oklch(0.856 0.071 27.222);
  --chart-3: oklch(0.927 0.107 147.664);
  --chart-4: oklch(0.884 0.056 26.995);
  --chart-5: oklch(0.806 0.1 289.3);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.012 290.209);
  --foreground: oklch(0.975 0.003 291.721);
  --muted: oklch(0.227 0.031 27.953);
  --muted-foreground: oklch(0.711 0.01 26.533);
  --popover: oklch(0.081 0.012 290.209);
  --popover-foreground: oklch(0.975 0.003 291.721);
  --card: oklch(0.081 0.012 290.209);
  --card-foreground: oklch(0.975 0.003 291.721);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.808 0.097 289.395);
  --primary-foreground: oklch(0.275 0.171 270.962);
  --secondary: oklch(0.856 0.071 27.222);
  --secondary-foreground: oklch(0.374 0.137 31.113);
  --accent: oklch(0.927 0.107 147.664);
  --accent-foreground: oklch(0.184 0.052 146.168);
  --destructive: oklch(0.669 0.208 36.344);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.808 0.097 289.395);
  --chart-1: oklch(0.808 0.097 289.395);
  --chart-2: oklch(0.856 0.071 27.222);
  --chart-3: oklch(0.927 0.107 147.664);
  --chart-4: oklch(0.884 0.056 26.995);
  --chart-5: oklch(0.806 0.1 289.3);
}