Stall for shadcn/ui

Stall is a shadcn/ui theme built around a vivid violet primary color (#8a16fe) with muted violet accents (#bfb9c6). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#8a16fe) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#000000black
Foreground
#050109black
#faf9fbghostwhite
Card
#faf7fdghostwhite
#000000black
Card foreground
#050109black
#faf9fbghostwhite
Popover
#faf7fdghostwhite
#000000black
Popover foreground
#050109black
#faf9fbghostwhite
Primary
#8a16feblueviolet
#8a16feblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6d6d7lightgrey
#262527darkslategray
Secondary foreground
#3d3d3edarkslategray
#bfbdc1silver
Muted
#f2f1f3whitesmoke
#0d0c0eblack
Muted foreground
#403d43darkslategray
#bfbcc2silver
Accent
#bfb9c6silver
#332e38darkslategray
Accent foreground
#26222adarkslategray
#ccc7d1lightgrey
Destructive
#92240csaddlebrown
#e23912orangered
Destructive foreground
#fcdcd5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a16feblueviolet
#8a16feblueviolet

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button5.80:1AA
Secondary button7.46:1AAA
Muted text9.51:1AAA
Accent8.15:1AAA
Destructive6.56:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button5.80:1AA
Secondary button8.16:1AAA
Muted text10.40:1AAA
Accent7.97:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.009 308.359);
  --foreground: oklch(0.096 0.032 310.852);
  --muted: oklch(0.96 0.003 308.431);
  --muted-foreground: oklch(0.364 0.012 308.108);
  --popover: oklch(0.98 0.009 308.359);
  --popover-foreground: oklch(0.096 0.032 310.852);
  --card: oklch(0.98 0.009 308.359);
  --card-foreground: oklch(0.096 0.032 310.852);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.546 0.287 296.861);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.876 0.001 308.445);
  --secondary-foreground: oklch(0.359 0.002 308.391);
  --accent: oklch(0.794 0.019 308.194);
  --accent-foreground: oklch(0.261 0.015 307.82);
  --destructive: oklch(0.438 0.149 33.526);
  --destructive-foreground: oklch(0.918 0.037 32.723);
  --ring: oklch(0.546 0.287 296.861);
  --chart-1: oklch(0.546 0.287 296.861);
  --chart-2: oklch(0.876 0.001 308.445);
  --chart-3: oklch(0.794 0.019 308.194);
  --chart-4: oklch(0.9 0.001 308.449);
  --chart-5: oklch(0.548 0.291 296.33);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 308.418);
  --muted: oklch(0.156 0.004 308.174);
  --muted-foreground: oklch(0.8 0.01 308.328);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.004 308.418);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.004 308.418);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.546 0.287 296.861);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.267 0.005 308.273);
  --secondary-foreground: oklch(0.802 0.006 308.381);
  --accent: oklch(0.31 0.019 307.773);
  --accent-foreground: oklch(0.836 0.015 308.261);
  --destructive: oklch(0.601 0.211 33.231);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.546 0.287 296.861);
  --chart-1: oklch(0.546 0.287 296.861);
  --chart-2: oklch(0.267 0.005 308.273);
  --chart-3: oklch(0.31 0.019 307.773);
  --chart-4: oklch(0.298 0.005 308.264);
  --chart-5: oklch(0.548 0.291 296.33);
}