Cylindrical for shadcn/ui

Cylindrical is a shadcn/ui theme built around a muted indigo primary color (#8a899a) with muted violet accents (#93899a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#8a899a) on an indigo-tinted background (#04030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04030cblack
Foreground
#010104black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#050410black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#050410black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#8a899alightslategray
#8a899alightslategray
Primary foreground
#000000black
#000000black
Secondary
#89909alightslategray
#89909alightslategray
Secondary foreground
#000000black
#000000black
Muted
#e1e7eflavender
#10161eblack
Muted foreground
#4a4e54darkslategray
#abafb5darkgray
Accent
#93899alightslategray
#93899alightslategray
Accent foreground
#000000black
#000000black
Destructive
#981210darkred
#e21b18crimson
Destructive foreground
#fcdfdfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a899alightslategray
#8a899alightslategray

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.54:1AAA
Primary button6.09:1AA
Secondary button6.52:1AA
Muted text6.73:1AA
Accent6.25:1AA
Destructive6.87:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.82:1AAA
Primary button6.09:1AA
Secondary button6.52:1AA
Muted text8.24:1AAA
Accent6.25:1AA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.077 0.015 286.485);
  --muted: oklch(0.926 0.012 255.023);
  --muted-foreground: oklch(0.424 0.01 255.073);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.636 0.026 288.695);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.017 255.082);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.643 0.028 310.705);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.436 0.167 28.329);
  --destructive-foreground: oklch(0.927 0.031 18.899);
  --ring: oklch(0.636 0.026 288.695);
  --chart-1: oklch(0.636 0.026 288.695);
  --chart-2: oklch(0.651 0.017 255.082);
  --chart-3: oklch(0.643 0.028 310.705);
  --chart-4: oklch(0.677 0.016 255.069);
  --chart-5: oklch(0.627 0.036 288.372);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.025 285.925);
  --foreground: oklch(0.983 0.002 289.442);
  --muted: oklch(0.198 0.018 255.291);
  --muted-foreground: oklch(0.753 0.009 255.016);
  --popover: oklch(0.121 0.029 285.403);
  --popover-foreground: oklch(0.992 0.001 289.461);
  --card: oklch(0.121 0.029 285.403);
  --card-foreground: oklch(0.992 0.001 289.461);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.636 0.026 288.695);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.017 255.082);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.643 0.028 310.705);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.582 0.227 28.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.636 0.026 288.695);
  --chart-1: oklch(0.636 0.026 288.695);
  --chart-2: oklch(0.651 0.017 255.082);
  --chart-3: oklch(0.643 0.028 310.705);
  --chart-4: oklch(0.677 0.016 255.069);
  --chart-5: oklch(0.627 0.036 288.372);
}