Slow for shadcn/ui

Slow is a shadcn/ui theme built around a violet primary color (#7e3eb6) with purple accents (#b63eb2). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#7e3eb6) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#030203black
Foreground
#030104black
#ffffffwhite
Card
#faf8fcghostwhite
#030203black
Card foreground
#030104black
#ffffffwhite
Popover
#faf8fcghostwhite
#030203black
Popover foreground
#030104black
#ffffffwhite
Primary
#7e3eb6darkorchid
#7e3eb6darkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#423eb6darkslateblue
#423eb6darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeeef1whitesmoke
#0e0e11black
Muted foreground
#60606cdimgray
#93939flightslategray
Accent
#b63eb2mediumorchid
#b63eb2mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b44b13sienna
#d95b17chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7e3eb6darkorchid
#7e3eb6darkorchid

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.42:1AA
Secondary button8.04:1AAA
Muted text5.36:1AA
Accent4.83:1AA
Destructive5.29:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button6.42:1AA
Secondary button8.04:1AAA
Muted text6.34:1AA
Accent4.83:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 309.738);
  --foreground: oklch(0.079 0.022 311.983);
  --muted: oklch(0.951 0.004 287.868);
  --muted-foreground: oklch(0.493 0.019 287.198);
  --popover: oklch(0.982 0.005 309.738);
  --popover-foreground: oklch(0.079 0.022 311.983);
  --card: oklch(0.982 0.005 309.738);
  --card-foreground: oklch(0.079 0.022 311.983);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.506 0.183 305.229);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.448 0.183 277.493);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.577 0.203 329.198);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.544 0.15 43.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.183 305.229);
  --chart-1: oklch(0.506 0.183 305.229);
  --chart-2: oklch(0.448 0.183 277.493);
  --chart-3: oklch(0.577 0.203 329.198);
  --chart-4: oklch(0.471 0.186 278.006);
  --chart-5: oklch(0.504 0.192 304.829);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 310.674);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.006 287.284);
  --muted-foreground: oklch(0.667 0.018 287.436);
  --popover: oklch(0.086 0.01 310.674);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.086 0.01 310.674);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.506 0.183 305.229);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.448 0.183 277.493);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.577 0.203 329.198);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.623 0.174 43.394);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.183 305.229);
  --chart-1: oklch(0.506 0.183 305.229);
  --chart-2: oklch(0.448 0.183 277.493);
  --chart-3: oklch(0.577 0.203 329.198);
  --chart-4: oklch(0.471 0.186 278.006);
  --chart-5: oklch(0.504 0.192 304.829);
}