Glittering for shadcn/ui

Glittering is a shadcn/ui theme built around a vivid red primary color (#e53e54) with muted light red accents (#cbbdbf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#e53e54) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#120205black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#0d0203black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#120205black
#ffffffwhite
Primary
#e53e54indianred
#e53e54indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dbd6d7gainsboro
#201819black
Secondary foreground
#443c3ddarkslategray
#bfabaddarkgray
Muted
#e6dbdcgainsboro
#24191bblack
Muted foreground
#664d50dimgray
#b2999drosybrown
Accent
#cbbdbfsilver
#3e282bdarkslategray
Accent foreground
#312628darkslategray
#d7c1c4thistle
Destructive
#9d1f0cfirebrick
#df2c11orangered
Destructive foreground
#fde2demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e53e54indianred
#e53e54indianred

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.00:1AAA
Primary button4.08:1AA Large
Secondary button7.48:1AAA
Muted text5.65:1AA
Accent8.07:1AAA
Destructive6.51:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.08:1AA Large
Secondary button7.98:1AAA
Muted text6.44:1AA
Accent7.96:1AAA
Destructive4.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.035 10.766);
  --muted: oklch(0.9 0.012 8.081);
  --muted-foreground: oklch(0.447 0.034 9.608);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.035 10.766);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.03 9.699);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.617 0.202 18.296);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.881 0.005 7.891);
  --secondary-foreground: oklch(0.364 0.011 8.468);
  --accent: oklch(0.812 0.016 8.233);
  --accent-foreground: oklch(0.282 0.016 9.112);
  --destructive: oklch(0.452 0.164 31.544);
  --destructive-foreground: oklch(0.933 0.03 28.128);
  --ring: oklch(0.617 0.202 18.296);
  --chart-1: oklch(0.617 0.202 18.296);
  --chart-2: oklch(0.881 0.005 7.891);
  --chart-3: oklch(0.812 0.016 8.233);
  --chart-4: oklch(0.905 0.004 7.858);
  --chart-5: oklch(0.619 0.208 18.814);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.018 9.649);
  --muted-foreground: oklch(0.707 0.03 8.779);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.617 0.202 18.296);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.22 0.013 9.155);
  --secondary-foreground: oklch(0.759 0.024 8.527);
  --accent: oklch(0.305 0.032 10.362);
  --accent-foreground: oklch(0.831 0.025 8.467);
  --destructive: oklch(0.585 0.216 31.43);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.617 0.202 18.296);
  --chart-1: oklch(0.617 0.202 18.296);
  --chart-2: oklch(0.22 0.013 9.155);
  --chart-3: oklch(0.305 0.032 10.362);
  --chart-4: oklch(0.25 0.016 9.271);
  --chart-5: oklch(0.619 0.208 18.814);
}