Elaborate for shadcn/ui

Elaborate is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#cfb4b4). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0e0606).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0e0606black
Foreground
#080202black
#ffffffwhite
Card
#fdf7f7snow
#0e0606black
Card foreground
#080202black
#ffffffwhite
Popover
#fdf7f7snow
#0e0606black
Popover foreground
#080202black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#ddd4d4lightgrey
#3a2c2cdarkslategray
Secondary foreground
#473838darkslategray
#d3c5c5lightgrey
Muted
#e7d5d5gainsboro
#2a1818black
Muted foreground
#554e4edarkslategray
#b1aaaadarkgray
Accent
#cfb4b4silver
#503434darkslategray
Accent foreground
#322020darkslategray
#e3d4d4gainsboro
Destructive
#88120cdarkred
#e11e14crimson
Destructive foreground
#fbcecbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.37:1AAA
Secondary button7.65:1AAA
Muted text5.73:1AA
Accent7.98:1AAA
Destructive6.91:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.37:1AAA
Secondary button7.97:1AAA
Muted text7.40:1AAA
Accent7.73:1AAA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.276);
  --foreground: oklch(0.104 0.018 20.688);
  --muted: oklch(0.887 0.021 17.548);
  --muted-foreground: oklch(0.431 0.009 17.494);
  --popover: oklch(0.98 0.007 17.276);
  --popover-foreground: oklch(0.104 0.018 20.688);
  --card: oklch(0.98 0.007 17.276);
  --card-foreground: oklch(0.104 0.018 20.688);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.878 0.01 17.35);
  --secondary-foreground: oklch(0.358 0.022 18.221);
  --accent: oklch(0.794 0.031 17.825);
  --accent-foreground: oklch(0.265 0.028 19.096);
  --destructive: oklch(0.403 0.152 29.146);
  --destructive-foreground: oklch(0.889 0.051 21.689);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.878 0.01 17.35);
  --chart-3: oklch(0.794 0.031 17.825);
  --chart-4: oklch(0.903 0.008 17.305);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.015 19.217);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.03 19.59);
  --muted-foreground: oklch(0.744 0.008 17.325);
  --popover: oklch(0.137 0.015 19.217);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.015 19.217);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.309 0.021 18.364);
  --secondary-foreground: oklch(0.835 0.016 17.479);
  --accent: oklch(0.359 0.04 19.236);
  --accent-foreground: oklch(0.881 0.017 17.473);
  --destructive: oklch(0.581 0.225 29.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.309 0.021 18.364);
  --chart-3: oklch(0.359 0.04 19.236);
  --chart-4: oklch(0.337 0.024 18.405);
  --chart-5: oklch(0 0 0);
}