Bout for shadcn/ui

Bout is a shadcn/ui theme built around a violet primary color (#9b77b6) with green accents (#92b677). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#9b77b6) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08050bblack
Foreground
#08040cblack
#faf8fbghostwhite
Card
#faf7fdghostwhite
#0b060eblack
Card foreground
#050208black
#fdfcfdwhite
Popover
#fdfbfewhite
#08050bblack
Popover foreground
#08040cblack
#faf8fbghostwhite
Primary
#9b77b6mediumpurple
#9b77b6mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#92b677darkseagreen
#92b677darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#eaeee7linen
#141811black
Muted foreground
#53594fdarkolivegreen
#aab0a6darkgray
Accent
#92b677darkseagreen
#92b677darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#c40e08firebrick
#e6110ared
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9b77b6mediumpurple
#9b77b6mediumpurple

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.39:1AAA
Primary button5.70:1AA
Secondary button9.16:1AAA
Muted text6.15:1AA
Accent9.16:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.59:1AAA
Primary button5.70:1AA
Secondary button9.16:1AAA
Muted text8.10:1AAA
Accent9.16:1AAA
Destructive4.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 311.042);
  --foreground: oklch(0.119 0.024 312.534);
  --muted: oklch(0.945 0.011 131.184);
  --muted-foreground: oklch(0.456 0.018 131.429);
  --popover: oklch(0.99 0.005 311.042);
  --popover-foreground: oklch(0.119 0.024 312.534);
  --card: oklch(0.98 0.01 310.999);
  --card-foreground: oklch(0.104 0.021 312.754);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.628 0.1 309.67);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.734 0.095 132.354);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.734 0.095 132.354);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.519 0.207 29.254);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.628 0.1 309.67);
  --chart-1: oklch(0.628 0.1 309.67);
  --chart-2: oklch(0.734 0.095 132.354);
  --chart-3: oklch(0.734 0.095 132.354);
  --chart-4: oklch(0.753 0.088 132.207);
  --chart-5: oklch(0.624 0.109 309.508);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 312.252);
  --foreground: oklch(0.982 0.005 311.044);
  --muted: oklch(0.202 0.016 131.794);
  --muted-foreground: oklch(0.749 0.016 131.268);
  --popover: oklch(0.122 0.018 312.252);
  --popover-foreground: oklch(0.982 0.005 311.044);
  --card: oklch(0.135 0.021 310.968);
  --card-foreground: oklch(0.991 0.002 311.064);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.628 0.1 309.67);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.734 0.095 132.354);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.734 0.095 132.354);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.585 0.234 29.278);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.628 0.1 309.67);
  --chart-1: oklch(0.628 0.1 309.67);
  --chart-2: oklch(0.734 0.095 132.354);
  --chart-3: oklch(0.734 0.095 132.354);
  --chart-4: oklch(0.753 0.088 132.207);
  --chart-5: oklch(0.624 0.109 309.508);
}