Cayenne for shadcn/ui

Cayenne is a shadcn/ui theme built around a deep cyan primary color (#1c4b5f) with deep orange accents (#5f301c). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep cyan primary (#1c4b5f) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030607black
Foreground
#04090bblack
#ffffffwhite
Card
#f7fbfdghostwhite
#04090bblack
Card foreground
#030608black
#ffffffwhite
Popover
#f7fbfdghostwhite
#04090bblack
Popover foreground
#030608black
#ffffffwhite
Primary
#1c4b5fdarkslategray
#1c4b5fdarkslategray
Primary foreground
#c0dfedpowderblue
#c0dfedpowderblue
Secondary
#5f301csaddlebrown
#5f301csaddlebrown
Secondary foreground
#edcdc0wheat
#edcdc0wheat
Muted
#f3f2f2whitesmoke
#0d0c0cblack
Muted foreground
#4e4c4bdarkslategray
#b4b2b1darkgray
Accent
#5f301csaddlebrown
#5f301csaddlebrown
Accent foreground
#edcdc0wheat
#edcdc0wheat
Destructive
#be1613firebrick
#ea312ecrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c4b5fdarkslategray
#1c4b5fdarkslategray

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.53:1AAA
Primary button6.79:1AA
Secondary button7.34:1AAA
Muted text7.63:1AAA
Accent7.34:1AAA
Destructive6.32:1AA
Dark mode
Text on background20.33:1AAA
Text on card20.01:1AAA
Primary button6.79:1AA
Secondary button7.34:1AAA
Muted text9.22:1AAA
Accent7.34:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 225.014);
  --foreground: oklch(0.135 0.012 220.434);
  --muted: oklch(0.962 0.001 44.971);
  --muted-foreground: oklch(0.418 0.003 44.903);
  --popover: oklch(0.986 0.006 225.046);
  --popover-foreground: oklch(0.118 0.011 219.92);
  --card: oklch(0.986 0.006 225.046);
  --card-foreground: oklch(0.118 0.011 219.92);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.389 0.061 229.551);
  --primary-foreground: oklch(0.886 0.038 225.561);
  --secondary: oklch(0.366 0.075 43.102);
  --secondary-foreground: oklch(0.872 0.04 44.576);
  --accent: oklch(0.366 0.075 43.102);
  --accent-foreground: oklch(0.872 0.04 44.576);
  --destructive: oklch(0.512 0.199 28.564);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.389 0.061 229.551);
  --chart-1: oklch(0.389 0.061 229.551);
  --chart-2: oklch(0.366 0.075 43.102);
  --chart-3: oklch(0.366 0.075 43.102);
  --chart-4: oklch(0.396 0.083 43.032);
  --chart-5: oklch(0.391 0.063 229.943);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.009 220.548);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.158 0.002 44.871);
  --muted-foreground: oklch(0.765 0.003 44.945);
  --popover: oklch(0.134 0.011 220.776);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.011 220.776);
  --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.389 0.061 229.551);
  --primary-foreground: oklch(0.886 0.038 225.561);
  --secondary: oklch(0.366 0.075 43.102);
  --secondary-foreground: oklch(0.872 0.04 44.576);
  --accent: oklch(0.366 0.075 43.102);
  --accent-foreground: oklch(0.872 0.04 44.576);
  --destructive: oklch(0.611 0.22 27.411);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.389 0.061 229.551);
  --chart-1: oklch(0.389 0.061 229.551);
  --chart-2: oklch(0.366 0.075 43.102);
  --chart-3: oklch(0.366 0.075 43.102);
  --chart-4: oklch(0.396 0.083 43.032);
  --chart-5: oklch(0.391 0.063 229.943);
}