Aromatic for shadcn/ui

Aromatic is a shadcn/ui theme built around a deep pink primary color (#261218) with neutral gray accents (#dddadb). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the deep pink primary (#261218) on a pink-tinted background (#0e0709).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#0e0709black
Foreground
#120207black
#f9f6f7whitesmoke
Card
#fdfbfcsnow
#0e0709black
Card foreground
#120207black
#f9f6f7whitesmoke
Popover
#fdfbfcsnow
#0e0709black
Popover foreground
#120207black
#f9f6f7whitesmoke
Primary
#261218black
#261218black
Primary foreground
#d09aa9rosybrown
#d09aa9rosybrown
Secondary
#dddadbgainsboro
#1a1919black
Secondary foreground
#454041darkslategray
#b5b0b2darkgray
Muted
#ead1d8gainsboro
#2e151cblack
Muted foreground
#4c4346darkslategray
#bcb3b6silver
Accent
#dddadbgainsboro
#1a1919black
Accent foreground
#454041darkslategray
#b5b0b2darkgray
Destructive
#9d1c0bfirebrick
#ea2a10orangered
Destructive foreground
#fde1demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#261218black
#261218black

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button7.51:1AAA
Secondary button7.32:1AAA
Muted text6.66:1AA
Accent7.32:1AAA
Destructive6.50:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button7.51:1AAA
Secondary button8.21:1AAA
Muted text8.30:1AAA
Accent8.21:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 357.782);
  --foreground: oklch(0.13 0.036 359.57);
  --muted: oklch(0.884 0.03 358.654);
  --muted-foreground: oklch(0.393 0.012 358.596);
  --popover: oklch(0.991 0.002 357.782);
  --popover-foreground: oklch(0.13 0.036 359.57);
  --card: oklch(0.991 0.002 357.782);
  --card-foreground: oklch(0.13 0.036 359.57);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.213 0.036 2.339);
  --primary-foreground: oklch(0.742 0.068 0.244);
  --secondary: oklch(0.89 0.003 357.821);
  --secondary-foreground: oklch(0.376 0.008 358.292);
  --accent: oklch(0.89 0.003 357.821);
  --accent-foreground: oklch(0.376 0.008 358.292);
  --destructive: oklch(0.452 0.167 30.996);
  --destructive-foreground: oklch(0.932 0.031 26.693);
  --ring: oklch(0.213 0.036 2.339);
  --chart-1: oklch(0.213 0.036 2.339);
  --chart-2: oklch(0.89 0.003 357.821);
  --chart-3: oklch(0.89 0.003 357.821);
  --chart-4: oklch(0.914 0.003 357.795);
  --chart-5: oklch(0.213 0.038 2.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.015 358.615);
  --foreground: oklch(0.975 0.003 357.811);
  --muted: oklch(0.233 0.042 2.762);
  --muted-foreground: oklch(0.776 0.01 358.093);
  --popover: oklch(0.138 0.015 358.615);
  --popover-foreground: oklch(0.975 0.003 357.811);
  --card: oklch(0.138 0.015 358.615);
  --card-foreground: oklch(0.975 0.003 357.811);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.213 0.036 2.339);
  --primary-foreground: oklch(0.742 0.068 0.244);
  --secondary: oklch(0.214 0.003 358.052);
  --secondary-foreground: oklch(0.762 0.006 357.922);
  --accent: oklch(0.214 0.003 358.052);
  --accent-foreground: oklch(0.762 0.006 357.922);
  --destructive: oklch(0.603 0.227 30.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.213 0.036 2.339);
  --chart-1: oklch(0.213 0.036 2.339);
  --chart-2: oklch(0.214 0.003 358.052);
  --chart-3: oklch(0.214 0.003 358.052);
  --chart-4: oklch(0.247 0.003 358.082);
  --chart-5: oklch(0.213 0.038 2.754);
}