Kanban for shadcn/ui

Kanban is a shadcn/ui theme built around a vivid violet primary color (#7c3aed) with muted light blue accents (#f3f4f6). The light mode uses a neutral background (#ffffff). Dark mode switches to a violet primary (#6d28d9) on a blue-tinted background (#030712).

Color palette

TokenLightDark
Background
#ffffffwhite
#030712black
Foreground
#030712black
#f9fafbghostwhite
Card
#ffffffwhite
#030712black
Card foreground
#030712black
#f9fafbghostwhite
Popover
#ffffffwhite
#030712black
Popover foreground
#030712black
#f9fafbghostwhite
Primary
#7c3aedblueviolet
#6d28d9blueviolet
Primary foreground
#f9fafbghostwhite
#f9fafbghostwhite
Secondary
#f3f4f6whitesmoke
#1f2937darkslategray
Secondary foreground
#111827black
#f9fafbghostwhite
Muted
#f3f4f6whitesmoke
#1f2937darkslategray
Muted foreground
#6b7280slategray
#9ca3afdarkgray
Accent
#f3f4f6whitesmoke
#1f2937darkslategray
Accent foreground
#111827black
#f9fafbghostwhite
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#f9fafbghostwhite
#f9fafbghostwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#e5e7eblavender
Ring
#7c3aedblueviolet
#6d28d9blueviolet

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button5.45:1AA
Secondary button16.11:1AAA
Muted text4.39:1AA Large
Accent16.11:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.79:1AA
Secondary button14.04:1AAA
Muted text5.78:1AA
Accent14.04:1AAA
Destructive9.58:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.027 261.696);
  --muted: oklch(0.967 0.003 264.542);
  --muted-foreground: oklch(0.551 0.023 264.364);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.027 261.696);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.027 261.696);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.541 0.247 293.003);
  --primary-foreground: oklch(0.985 0.002 247.839);
  --secondary: oklch(0.967 0.003 264.542);
  --secondary-foreground: oklch(0.21 0.032 264.665);
  --accent: oklch(0.967 0.003 264.542);
  --accent-foreground: oklch(0.21 0.032 264.665);
  --destructive: oklch(0.637 0.208 25.33);
  --destructive-foreground: oklch(0.985 0.002 247.839);
  --ring: oklch(0.541 0.247 293.003);
  --chart-1: oklch(0.71 0.029 261.451);
  --chart-2: oklch(0.74 0.028 81.442);
  --chart-3: oklch(0.74 0.028 81.442);
  --chart-4: oklch(0.763 0.026 81.46);
  --chart-5: oklch(0.707 0.034 261.428);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.027 261.696);
  --foreground: oklch(0.985 0.002 247.839);
  --muted: oklch(0.278 0.03 256.848);
  --muted-foreground: oklch(0.714 0.019 261.317);
  --popover: oklch(0.13 0.027 261.696);
  --popover-foreground: oklch(0.985 0.002 247.839);
  --card: oklch(0.13 0.027 261.696);
  --card-foreground: oklch(0.985 0.002 247.839);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.491 0.241 292.58);
  --primary-foreground: oklch(0.985 0.002 247.839);
  --secondary: oklch(0.278 0.03 256.848);
  --secondary-foreground: oklch(0.985 0.002 247.839);
  --accent: oklch(0.278 0.03 256.848);
  --accent-foreground: oklch(0.985 0.002 247.839);
  --destructive: oklch(0.396 0.133 25.723);
  --destructive-foreground: oklch(0.985 0.002 247.839);
  --ring: oklch(0.491 0.241 292.58);
  --chart-1: oklch(0.71 0.029 261.451);
  --chart-2: oklch(0.74 0.028 81.442);
  --chart-3: oklch(0.74 0.028 81.442);
  --chart-4: oklch(0.763 0.026 81.46);
  --chart-5: oklch(0.707 0.034 261.428);
}