Glamorous for shadcn/ui

Glamorous is a shadcn/ui theme built around a deep green primary color (#155b2c) with muted green accents (#a5c5b0). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the deep green primary (#155b2c) on a green-tinted background (#060e09).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#060e09black
Foreground
#06130bblack
#fbfdfcwhite
Card
#f8fcf9mintcream
#07120bblack
Card foreground
#051008black
#ffffffwhite
Popover
#fbfdfcwhite
#060e09black
Popover foreground
#06130bblack
#fbfdfcwhite
Primary
#155b2cdarkslategray
#155b2cdarkslategray
Primary foreground
#b4eec7powderblue
#b4eec7powderblue
Secondary
#c4d4c9lightgrey
#2e2e2edarkslategray
Secondary foreground
#2b3b30darkslategray
#c7c7c7silver
Muted
#dbe1ddgainsboro
#241e1eblack
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#a5c5b0darkgray
#3f3737darkslategray
Accent foreground
#16221ablack
#d7d1d1lightgrey
Destructive
#b91313firebrick
#e71d1dcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#155b2cdarkslategray
#155b2cdarkslategray

Contrast

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

Light mode
Text on background18.65:1AAA
Text on card18.69:1AAA
Primary button6.20:1AA
Secondary button7.69:1AAA
Muted text4.88:1AA
Accent8.79:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.06:1AAA
Primary button6.20:1AA
Secondary button8.04:1AAA
Muted text6.35:1AA
Accent7.73:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 157.211);
  --foreground: oklch(0.172 0.027 154.408);
  --muted: oklch(0.904 0.009 157.055);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.993 0.003 157.211);
  --popover-foreground: oklch(0.172 0.027 154.408);
  --card: oklch(0.987 0.005 157.156);
  --card-foreground: oklch(0.157 0.023 155.743);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.418 0.103 150.027);
  --primary-foreground: oklch(0.899 0.079 155.321);
  --secondary: oklch(0.855 0.023 156.706);
  --secondary-foreground: oklch(0.335 0.029 155.383);
  --accent: oklch(0.794 0.046 156.016);
  --accent-foreground: oklch(0.238 0.023 155.065);
  --destructive: oklch(0.5 0.195 28.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.103 150.027);
  --chart-1: oklch(0.418 0.103 150.027);
  --chart-2: oklch(0.855 0.023 156.706);
  --chart-3: oklch(0.794 0.046 156.016);
  --chart-4: oklch(0.877 0.019 156.806);
  --chart-5: oklch(0.422 0.106 149.727);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.019 156.022);
  --foreground: oklch(0.994 0.003 157.208);
  --muted: oklch(0.242 0.01 17.887);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.154 0.019 156.022);
  --popover-foreground: oklch(0.994 0.003 157.208);
  --card: oklch(0.169 0.022 154.74);
  --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.418 0.103 150.027);
  --primary-foreground: oklch(0.899 0.079 155.321);
  --secondary: oklch(0.301 0 189.462);
  --secondary-foreground: oklch(0.829 0 180);
  --accent: oklch(0.344 0.012 17.732);
  --accent-foreground: oklch(0.864 0.007 17.286);
  --destructive: oklch(0.592 0.23 28.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.103 150.027);
  --chart-1: oklch(0.418 0.103 150.027);
  --chart-2: oklch(0.301 0 189.462);
  --chart-3: oklch(0.344 0.012 17.732);
  --chart-4: oklch(0.331 0 180);
  --chart-5: oklch(0.422 0.106 149.727);
}