Cytokine for shadcn/ui

Cytokine is a shadcn/ui theme built around a neutral gray primary color (#6b6166) with neutral gray accents (#616b66). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the neutral gray primary (#6b6166) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0a0508black
Foreground
#11030ablack
#ffffffwhite
Card
#fcf8fasnow
#0d070ablack
Card foreground
#0d0308black
#ffffffwhite
Popover
#fdfcfcsnow
#0a0508black
Popover foreground
#11030ablack
#ffffffwhite
Primary
#6b6166dimgray
#6b6166dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#616b66dimgray
#616b66dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecf4f0whitesmoke
#0b130fblack
Muted foreground
#575b59dimgray
#a4a8a6darkgray
Accent
#616b66dimgray
#616b66dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d31a09firebrick
#f63d2corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b6166dimgray
#6b6166dimgray

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.29:1AAA
Primary button5.95:1AA
Secondary button5.51:1AA
Muted text6.14:1AA
Accent5.51:1AA
Destructive5.37:1AA
Dark mode
Text on background20.21:1AAA
Text on card19.95:1AAA
Primary button5.95:1AA
Secondary button5.51:1AA
Muted text7.81:1AAA
Accent5.51:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 344.344);
  --foreground: oklch(0.134 0.033 346.576);
  --muted: oklch(0.959 0.01 164.015);
  --muted-foreground: oklch(0.467 0.005 163.987);
  --popover: oklch(0.991 0.002 344.344);
  --popover-foreground: oklch(0.134 0.033 346.576);
  --card: oklch(0.983 0.004 344.403);
  --card-foreground: oklch(0.12 0.029 344.633);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.504 0.015 345.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.015 163.525);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.518 0.015 163.525);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.551 0.215 30.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.504 0.015 345.046);
  --chart-1: oklch(0.504 0.015 345.046);
  --chart-2: oklch(0.518 0.015 163.525);
  --chart-3: oklch(0.518 0.015 163.525);
  --chart-4: oklch(0.545 0.016 163.518);
  --chart-5: oklch(0.5 0.025 345.5);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.013 344.211);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.015 161.931);
  --muted-foreground: oklch(0.727 0.005 164.114);
  --popover: oklch(0.127 0.013 344.211);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.014 345.523);
  --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.504 0.015 345.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.015 163.525);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.518 0.015 163.525);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.641 0.223 29.714);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.504 0.015 345.046);
  --chart-1: oklch(0.504 0.015 345.046);
  --chart-2: oklch(0.518 0.015 163.525);
  --chart-3: oklch(0.518 0.015 163.525);
  --chart-4: oklch(0.545 0.016 163.518);
  --chart-5: oklch(0.5 0.025 345.5);
}