Glamorous for shadcn/ui

Glamorous is a shadcn/ui theme built around a deep teal primary color (#0d1c1b) with deep red accents (#1c0d0e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0d1c1b) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#ffffffwhite
#020807black
Foreground
#010404black
#fcfdfdwhite
Card
#ffffffwhite
#020807black
Card foreground
#010404black
#fcfdfdwhite
Popover
#ffffffwhite
#020807black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#0d1c1bblack
#0d1c1bblack
Primary foreground
#4ea69fcadetblue
#4ea69fcadetblue
Secondary
#1c0d0eblack
#1c0d0eblack
Secondary foreground
#cb9095rosybrown
#cb9095rosybrown
Muted
#ede3e4mistyrose
#1c1213black
Muted foreground
#5c4d4edimgray
#b2a3a5darkgray
Accent
#1c0d0eblack
#1c0d0eblack
Accent foreground
#cb9095rosybrown
#cb9095rosybrown
Destructive
#b92909firebrick
#f65e3ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d1c1bblack
#0d1c1bblack

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button6.08:1AA
Secondary button7.15:1AAA
Muted text6.35:1AA
Accent7.15:1AAA
Destructive6.20:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button6.08:1AA
Secondary button7.15:1AAA
Muted text7.58:1AAA
Accent7.15:1AAA
Destructive6.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.012 190.32);
  --muted: oklch(0.924 0.012 11.524);
  --muted-foreground: oklch(0.434 0.02 12.285);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.012 190.32);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.012 190.32);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.212 0.02 188.991);
  --primary-foreground: oklch(0.671 0.085 188.059);
  --secondary: oklch(0.181 0.025 14.496);
  --secondary-foreground: oklch(0.712 0.072 13.514);
  --accent: oklch(0.181 0.025 14.496);
  --accent-foreground: oklch(0.712 0.072 13.514);
  --destructive: oklch(0.514 0.184 32.969);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.212 0.02 188.991);
  --chart-1: oklch(0.212 0.02 188.991);
  --chart-2: oklch(0.181 0.025 14.496);
  --chart-3: oklch(0.181 0.025 14.496);
  --chart-4: oklch(0.212 0.034 14.991);
  --chart-5: oklch(0.213 0.022 188.832);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 190.379);
  --foreground: oklch(0.994 0.002 191.21);
  --muted: oklch(0.195 0.018 13.285);
  --muted-foreground: oklch(0.73 0.018 11.782);
  --popover: oklch(0.125 0.014 190.379);
  --popover-foreground: oklch(0.994 0.002 191.21);
  --card: oklch(0.125 0.014 190.379);
  --card-foreground: oklch(0.994 0.002 191.21);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.212 0.02 188.991);
  --primary-foreground: oklch(0.671 0.085 188.059);
  --secondary: oklch(0.181 0.025 14.496);
  --secondary-foreground: oklch(0.712 0.072 13.514);
  --accent: oklch(0.181 0.025 14.496);
  --accent-foreground: oklch(0.712 0.072 13.514);
  --destructive: oklch(0.675 0.193 34.145);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.212 0.02 188.991);
  --chart-1: oklch(0.212 0.02 188.991);
  --chart-2: oklch(0.181 0.025 14.496);
  --chart-3: oklch(0.181 0.025 14.496);
  --chart-4: oklch(0.212 0.034 14.991);
  --chart-5: oklch(0.213 0.022 188.832);
}