Xenogeneic Cinnamon Cocoa for shadcn/ui

Xenogeneic Cinnamon Cocoa is a shadcn/ui theme built around a red primary color (#cfa69b) with muted light red accents (#c7bfbd). The light mode uses a neutral background (#fefcfb). Dark mode keeps the red primary (#cfa69b) on a red-tinted background (#0c0503).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0c0503black
Foreground
#000000black
#fcf9f8snow
Card
#fcf9f8snow
#100705black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fefcfbsnow
#0c0503black
Popover foreground
#000000black
#fcf9f8snow
Primary
#cfa69btan
#cfa69btan
Primary foreground
#261612black
#261612black
Secondary
#dcdbdbgainsboro
#362d2bdarkslategray
Secondary foreground
#434242darkslategray
#d0c6c3silver
Muted
#eee5e2linen
#1d1311black
Muted foreground
#6c5b56dimgray
#a99893rosybrown
Accent
#c7bfbdsilver
#4a3630darkslategray
Accent foreground
#2c2726darkslategray
#dfd1celightgrey
Destructive
#8e100bdarkred
#ef3a34crimson
Destructive foreground
#fbd1d0pink
#ffffffwhite
Border
#ede9e8linen
#28211fblack
Input
#ede9e8linen
#28211fblack
Ring
#cfa69btan
#cfa69btan

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card19.99:1AAA
Primary button7.96:1AAA
Secondary button7.24:1AAA
Muted text5.16:1AA
Accent8.14:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.45:1AAA
Primary button7.96:1AAA
Secondary button7.99:1AAA
Muted text6.56:1AA
Accent7.60:1AAA
Destructive3.94:1AA Large

CSS variables

Paste this into your globals.css to use Xenogeneic Cinnamon Cocoa in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 36.005);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.011 35.975);
  --muted-foreground: oklch(0.486 0.023 35.946);
  --popover: oklch(0.992 0.002 36.005);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 35.997);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.937 0.005 35.995);
  --input: oklch(0.937 0.005 35.995);
  --primary: oklch(0.76 0.051 35.969);
  --primary-foreground: oklch(0.221 0.027 36.121);
  --secondary: oklch(0.892 0.001 36.009);
  --secondary-foreground: oklch(0.38 0.001 35.998);
  --accent: oklch(0.81 0.009 35.977);
  --accent-foreground: oklch(0.278 0.008 35.948);
  --destructive: oklch(0.413 0.159 28.851);
  --destructive-foreground: oklch(0.897 0.047 20.4);
  --ring: oklch(0.76 0.051 35.969);
  --chart-1: oklch(0.76 0.051 35.969);
  --chart-2: oklch(0.892 0.001 36.009);
  --chart-3: oklch(0.81 0.009 35.977);
  --chart-4: oklch(0.916 0.001 36.01);
  --chart-5: oklch(0.759 0.055 35.98);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 42.572);
  --foreground: oklch(0.984 0.003 36);
  --muted: oklch(0.2 0.017 36.01);
  --muted-foreground: oklch(0.693 0.021 35.947);
  --popover: oklch(0.127 0.016 42.572);
  --popover-foreground: oklch(0.984 0.003 36);
  --card: oklch(0.141 0.018 41.087);
  --card-foreground: oklch(0.992 0.002 36.006);
  --border: oklch(0.256 0.012 35.945);
  --input: oklch(0.256 0.012 35.945);
  --primary: oklch(0.76 0.051 35.969);
  --primary-foreground: oklch(0.221 0.027 36.121);
  --secondary: oklch(0.307 0.014 35.945);
  --secondary-foreground: oklch(0.833 0.012 35.97);
  --accent: oklch(0.354 0.031 36.014);
  --accent-foreground: oklch(0.872 0.016 35.962);
  --destructive: oklch(0.626 0.217 27.6);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.76 0.051 35.969);
  --chart-1: oklch(0.76 0.051 35.969);
  --chart-2: oklch(0.307 0.014 35.945);
  --chart-3: oklch(0.354 0.031 36.014);
  --chart-4: oklch(0.337 0.016 35.946);
  --chart-5: oklch(0.759 0.055 35.98);
}