Gleaming for shadcn/ui

Gleaming is a shadcn/ui theme built around a red primary color (#6f332f) with muted light red accents (#dfd8d8). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#6f332f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#0d0303black
#f8f7f7whitesmoke
Card
#fefbfbsnow
#000000black
Card foreground
#0d0303black
#f8f7f7whitesmoke
Popover
#fefbfbsnow
#000000black
Popover foreground
#0d0303black
#f8f7f7whitesmoke
Primary
#6f332fsaddlebrown
#6f332fsaddlebrown
Primary foreground
#f1e0dfmistyrose
#f1e0dfmistyrose
Secondary
#dfd8d8gainsboro
#291f1eblack
Secondary foreground
#493c3cdarkslategray
#c7b3b2silver
Muted
#f5efefwhitesmoke
#100a0ablack
Muted foreground
#483837darkslategray
#c8b8b7silver
Accent
#dfd8d8gainsboro
#291f1eblack
Accent foreground
#493c3cdarkslategray
#c7b3b2silver
Destructive
#6f0d06maroon
#f34135tomato
Destructive foreground
#fab2adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f332fsaddlebrown
#6f332fsaddlebrown

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button7.55:1AAA
Secondary button7.49:1AAA
Muted text9.77:1AAA
Accent7.49:1AAA
Destructive6.93:1AA
Dark mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button7.55:1AAA
Secondary button8.05:1AAA
Muted text10.28:1AAA
Accent8.05:1AAA
Destructive3.72: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.99 0.004 20.934);
  --foreground: oklch(0.119 0.022 26.093);
  --muted: oklch(0.958 0.007 20.976);
  --muted-foreground: oklch(0.359 0.023 21.775);
  --popover: oklch(0.99 0.004 20.934);
  --popover-foreground: oklch(0.119 0.022 26.093);
  --card: oklch(0.99 0.004 20.934);
  --card-foreground: oklch(0.119 0.022 26.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.399 0.086 24.768);
  --primary-foreground: oklch(0.92 0.019 21.162);
  --secondary: oklch(0.888 0.007 20.996);
  --secondary-foreground: oklch(0.371 0.018 21.546);
  --accent: oklch(0.888 0.007 20.996);
  --accent-foreground: oklch(0.371 0.018 21.546);
  --destructive: oklch(0.348 0.131 29.724);
  --destructive-foreground: oklch(0.831 0.085 23.638);
  --ring: oklch(0.399 0.086 24.768);
  --chart-1: oklch(0.399 0.086 24.768);
  --chart-2: oklch(0.888 0.007 20.996);
  --chart-3: oklch(0.888 0.007 20.996);
  --chart-4: oklch(0.912 0.006 20.97);
  --chart-5: oklch(0.399 0.092 25.151);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.002 20.912);
  --muted: oklch(0.152 0.011 21.963);
  --muted-foreground: oklch(0.795 0.018 21.186);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.002 20.912);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.002 20.912);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.399 0.086 24.768);
  --primary-foreground: oklch(0.92 0.019 21.162);
  --secondary: oklch(0.25 0.017 21.858);
  --secondary-foreground: oklch(0.784 0.023 21.282);
  --accent: oklch(0.25 0.017 21.858);
  --accent-foreground: oklch(0.784 0.023 21.282);
  --destructive: oklch(0.64 0.216 28.794);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.399 0.086 24.768);
  --chart-1: oklch(0.399 0.086 24.768);
  --chart-2: oklch(0.25 0.017 21.858);
  --chart-3: oklch(0.25 0.017 21.858);
  --chart-4: oklch(0.28 0.02 21.919);
  --chart-5: oklch(0.399 0.092 25.151);
}