Tall for shadcn/ui

Tall is a shadcn/ui theme built around a vivid violet primary color (#ce64fc) with vivid purple accents (#fc64dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#ce64fc) on a violet-tinted background (#0c050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c050fblack
Foreground
#000000black
#f8f6f8whitesmoke
Card
#ffffffwhite
#0c050fblack
Card foreground
#000000black
#f8f6f8whitesmoke
Popover
#ffffffwhite
#0c050fblack
Popover foreground
#000000black
#f8f6f8whitesmoke
Primary
#ce64fcorchid
#ce64fcorchid
Primary foreground
#20012dblack
#20012dblack
Secondary
#8264fcmediumslateblue
#8264fcmediumslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfdee3gainsboro
#1d1c21black
Muted foreground
#414045darkslategray
#bbbabfsilver
Accent
#fc64ddorchid
#fc64ddorchid
Accent foreground
#2d0124black
#2d0124black
Destructive
#bd460afirebrick
#e9560corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ce64fcorchid
#ce64fcorchid

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.21:1AA
Secondary button4.05:1AA Large
Muted text7.67:1AAA
Accent7.01:1AAA
Destructive5.20:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.67:1AAA
Primary button6.21:1AA
Secondary button4.05:1AA Large
Muted text8.76:1AAA
Accent7.01:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.903 0.007 295.442);
  --muted-foreground: oklch(0.373 0.009 295.131);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.692 0.229 314.363);
  --primary-foreground: oklch(0.184 0.088 313.619);
  --secondary: oklch(0.614 0.216 287.471);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.735 0.227 336.282);
  --accent-foreground: oklch(0.203 0.087 337.723);
  --destructive: oklch(0.551 0.165 40.92);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.229 314.363);
  --chart-1: oklch(0.692 0.229 314.363);
  --chart-2: oklch(0.614 0.216 287.471);
  --chart-3: oklch(0.735 0.227 336.282);
  --chart-4: oklch(0.649 0.196 288.947);
  --chart-5: oklch(0.692 0.235 314.281);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.027 316.339);
  --foreground: oklch(0.976 0.003 316.011);
  --muted: oklch(0.23 0.009 294.819);
  --muted-foreground: oklch(0.792 0.007 295.404);
  --popover: oklch(0.135 0.027 316.339);
  --popover-foreground: oklch(0.976 0.003 316.011);
  --card: oklch(0.135 0.027 316.339);
  --card-foreground: oklch(0.976 0.003 316.011);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.692 0.229 314.363);
  --primary-foreground: oklch(0.184 0.088 313.619);
  --secondary: oklch(0.614 0.216 287.471);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.735 0.227 336.282);
  --accent-foreground: oklch(0.203 0.087 337.723);
  --destructive: oklch(0.641 0.195 40.549);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.229 314.363);
  --chart-1: oklch(0.692 0.229 314.363);
  --chart-2: oklch(0.614 0.216 287.471);
  --chart-3: oklch(0.735 0.227 336.282);
  --chart-4: oklch(0.649 0.196 288.947);
  --chart-5: oklch(0.692 0.235 314.281);
}