Gleaming for shadcn/ui

Gleaming is a shadcn/ui theme built around a muted deep red primary color (#2a1e1d) with muted deep orange accents (#2a251d). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#2a1e1d) on a red-tinted background (#0c0403).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0c0403black
Foreground
#100605black
#fdfcfcsnow
Card
#fefbfbsnow
#0c0403black
Card foreground
#100605black
#fdfcfcsnow
Popover
#fefbfbsnow
#0c0403black
Popover foreground
#100605black
#fdfcfcsnow
Primary
#2a1e1dblack
#2a1e1dblack
Primary foreground
#c9b3b1silver
#c9b3b1silver
Secondary
#2a1d23black
#2a1d23black
Secondary foreground
#c9b1bbsilver
#c9b1bbsilver
Muted
#f6eff2whitesmoke
#10090cblack
Muted foreground
#494647darkslategray
#b9b6b7silver
Accent
#2a251dblack
#2a251dblack
Accent foreground
#c9bfb1silver
#c9bfb1silver
Destructive
#da3701orangered
#fe4001orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a1e1dblack
#2a1e1dblack

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button8.08:1AAA
Secondary button8.06:1AAA
Muted text8.22:1AAA
Accent8.39:1AAA
Destructive4.62:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button8.08:1AAA
Secondary button8.06:1AAA
Muted text9.77:1AAA
Accent8.39:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 23.613);
  --foreground: oklch(0.136 0.02 27.477);
  --muted: oklch(0.958 0.008 349.913);
  --muted-foreground: oklch(0.397 0.004 349.972);
  --popover: oklch(0.991 0.003 23.613);
  --popover-foreground: oklch(0.136 0.02 27.477);
  --card: oklch(0.991 0.003 23.613);
  --card-foreground: oklch(0.136 0.02 27.477);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.25 0.019 24.463);
  --primary-foreground: oklch(0.784 0.025 23.924);
  --secondary: oklch(0.25 0.022 352.018);
  --secondary-foreground: oklch(0.783 0.031 350.734);
  --accent: oklch(0.267 0.016 76.216);
  --accent-foreground: oklch(0.808 0.022 76.499);
  --destructive: oklch(0.585 0.205 34.845);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.019 24.463);
  --chart-1: oklch(0.25 0.019 24.463);
  --chart-2: oklch(0.25 0.022 352.018);
  --chart-3: oklch(0.267 0.016 76.216);
  --chart-4: oklch(0.28 0.026 352.142);
  --chart-5: oklch(0.249 0.022 24.654);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 28.183);
  --foreground: oklch(0.992 0.001 23.592);
  --muted: oklch(0.152 0.013 351.948);
  --muted-foreground: oklch(0.779 0.004 349.801);
  --popover: oklch(0.122 0.018 28.183);
  --popover-foreground: oklch(0.992 0.001 23.592);
  --card: oklch(0.122 0.018 28.183);
  --card-foreground: oklch(0.992 0.001 23.592);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.25 0.019 24.463);
  --primary-foreground: oklch(0.784 0.025 23.924);
  --secondary: oklch(0.25 0.022 352.018);
  --secondary-foreground: oklch(0.783 0.031 350.734);
  --accent: oklch(0.267 0.016 76.216);
  --accent-foreground: oklch(0.808 0.022 76.499);
  --destructive: oklch(0.654 0.231 34.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.019 24.463);
  --chart-1: oklch(0.25 0.019 24.463);
  --chart-2: oklch(0.25 0.022 352.018);
  --chart-3: oklch(0.267 0.016 76.216);
  --chart-4: oklch(0.28 0.026 352.142);
  --chart-5: oklch(0.249 0.022 24.654);
}