Glorious for shadcn/ui

Glorious is a shadcn/ui theme built around a pink primary color (#923a5c) with muted light pink accents (#e1d0d7). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#923a5c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#040102black
#f9f6f7whitesmoke
Card
#fdf6f9snow
#030303black
Card foreground
#000000black
#fbf9fasnow
Popover
#fdf6f9snow
#030303black
Popover foreground
#000000black
#fbf9fasnow
Primary
#923a5csienna
#923a5csienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ebe5e7linen
#31262adarkslategray
Secondary foreground
#59454ddarkslategray
#cbbdc3silver
Muted
#e9e2e5gainsboro
#1d1619black
Muted foreground
#675f63dimgray
#a0989bdarkgray
Accent
#e1d0d7gainsboro
#432d35darkslategray
Accent foreground
#4e323cdarkslategray
#dac8cfthistle
Destructive
#831d01maroon
#fd3d08orangered
Destructive foreground
#fec7b8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#923a5csienna
#923a5csienna

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card19.79:1AAA
Primary button7.04:1AAA
Secondary button7.09:1AAA
Muted text4.84:1AA
Accent7.71:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.72:1AAA
Primary button7.04:1AAA
Secondary button8.05:1AAA
Muted text6.32:1AA
Accent7.88:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 351.709);
  --foreground: oklch(0.082 0.02 351.093);
  --muted: oklch(0.919 0.009 351.875);
  --muted-foreground: oklch(0.496 0.011 352.225);
  --popover: oklch(0.981 0.008 351.829);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.008 351.829);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.479 0.123 358.9);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.927 0.007 351.81);
  --secondary-foreground: oklch(0.414 0.031 353.605);
  --accent: oklch(0.874 0.021 352.251);
  --accent-foreground: oklch(0.353 0.044 354.915);
  --destructive: oklch(0.402 0.141 34.642);
  --destructive-foreground: oklch(0.876 0.066 35.987);
  --ring: oklch(0.479 0.123 358.9);
  --chart-1: oklch(0.479 0.123 358.9);
  --chart-2: oklch(0.927 0.007 351.81);
  --chart-3: oklch(0.874 0.021 352.251);
  --chart-4: oklch(0.952 0.005 351.733);
  --chart-5: oklch(0.479 0.131 359.473);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.004 351.697);
  --muted: oklch(0.209 0.013 353.353);
  --muted-foreground: oklch(0.686 0.01 352.015);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.984 0.002 351.661);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 351.661);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.479 0.123 358.9);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.283 0.017 353.241);
  --secondary-foreground: oklch(0.813 0.017 352.196);
  --accent: oklch(0.326 0.036 354.531);
  --accent-foreground: oklch(0.85 0.023 352.336);
  --destructive: oklch(0.649 0.232 33.671);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.479 0.123 358.9);
  --chart-1: oklch(0.479 0.123 358.9);
  --chart-2: oklch(0.283 0.017 353.241);
  --chart-3: oklch(0.326 0.036 354.531);
  --chart-4: oklch(0.312 0.02 353.304);
  --chart-5: oklch(0.479 0.131 359.473);
}