Glamorous for shadcn/ui

Glamorous is a shadcn/ui theme built around a vivid green primary color (#dafe62) with vivid green accents (#8bfe62). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid green primary (#dafe62) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fdfefbwhite
#060703black
Foreground
#0b0e02black
#f8f9f6whitesmoke
Card
#fbfcf8snow
#090b05black
Card foreground
#070901black
#fafbf9snow
Popover
#fdfefbwhite
#060703black
Popover foreground
#0b0e02black
#f8f9f6whitesmoke
Primary
#dafe62khaki
#dafe62khaki
Primary foreground
#232e00black
#232e00black
Secondary
#fed462khaki
#fed462khaki
Secondary foreground
#2e2200black
#2e2200black
Muted
#f5f2eblinen
#14120ablack
Muted foreground
#575552dimgray
#adaca8darkgray
Accent
#8bfe62lightgreen
#8bfe62lightgreen
Accent foreground
#0c2e00black
#0c2e00black
Destructive
#da2a0bfirebrick
#f34020orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dafe62khaki
#dafe62khaki

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.46:1AAA
Primary button12.54:1AAA
Secondary button11.04:1AAA
Muted text6.63:1AA
Accent11.72:1AAA
Destructive4.85:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.08:1AAA
Primary button12.54:1AAA
Secondary button11.04:1AAA
Muted text8.26:1AAA
Accent11.72:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 117.135);
  --foreground: oklch(0.154 0.029 118.285);
  --muted: oklch(0.961 0.01 90.198);
  --muted-foreground: oklch(0.451 0.006 90.221);
  --popover: oklch(0.995 0.003 117.135);
  --popover-foreground: oklch(0.154 0.029 118.285);
  --card: oklch(0.99 0.006 117.191);
  --card-foreground: oklch(0.134 0.025 117.485);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.942 0.184 121.199);
  --primary-foreground: oklch(0.28 0.068 122.395);
  --secondary: oklch(0.886 0.14 89.239);
  --secondary-foreground: oklch(0.257 0.052 88.534);
  --accent: oklch(0.898 0.22 138.36);
  --accent-foreground: oklch(0.265 0.082 138.329);
  --destructive: oklch(0.575 0.213 31.778);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.184 121.199);
  --chart-1: oklch(0.942 0.184 121.199);
  --chart-2: oklch(0.886 0.14 89.239);
  --chart-3: oklch(0.898 0.22 138.36);
  --chart-4: oklch(0.896 0.13 89.669);
  --chart-5: oklch(0.948 0.188 121.303);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 117.31);
  --foreground: oklch(0.981 0.005 117.162);
  --muted: oklch(0.181 0.015 90.42);
  --muted-foreground: oklch(0.745 0.005 90.176);
  --popover: oklch(0.125 0.013 117.31);
  --popover-foreground: oklch(0.981 0.005 117.162);
  --card: oklch(0.143 0.015 117.353);
  --card-foreground: oklch(0.987 0.003 117.134);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.942 0.184 121.199);
  --primary-foreground: oklch(0.28 0.068 122.395);
  --secondary: oklch(0.886 0.14 89.239);
  --secondary-foreground: oklch(0.257 0.052 88.534);
  --accent: oklch(0.898 0.22 138.36);
  --accent-foreground: oklch(0.265 0.082 138.329);
  --destructive: oklch(0.637 0.22 32.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.184 121.199);
  --chart-1: oklch(0.942 0.184 121.199);
  --chart-2: oklch(0.886 0.14 89.239);
  --chart-3: oklch(0.898 0.22 138.36);
  --chart-4: oklch(0.896 0.13 89.669);
  --chart-5: oklch(0.948 0.188 121.303);
}