Grandiose for shadcn/ui

Grandiose is a shadcn/ui theme built around a muted light green primary color (#cbcfb9) with muted light green accents (#dde0d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#cbcfb9) on a green-tinted background (#0a0c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0c03black
Foreground
#111505black
#fafbf9snow
Card
#ffffffwhite
#0a0c03black
Card foreground
#111505black
#fafbf9snow
Popover
#ffffffwhite
#0a0c03black
Popover foreground
#111505black
#fafbf9snow
Primary
#cbcfb9silver
#cbcfb9silver
Primary foreground
#303423darkslategray
#303423darkslategray
Secondary
#e7e9e2gainsboro
#1c1c1cblack
Secondary foreground
#525643darkolivegreen
#b5b5b5silver
Muted
#e9e9e7linen
#181616black
Muted foreground
#515544darkolivegreen
#bbaaaadarkgray
Accent
#dde0d1gainsboro
#352c2cdarkslategray
Accent foreground
#474d33darkolivegreen
#cfc4c4silver
Destructive
#b64811sienna
#d75514chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbcfb9silver
#cbcfb9silver

Contrast

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

Light mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button8.04:1AAA
Secondary button6.18:1AA
Muted text6.33:1AA
Accent6.60:1AA
Destructive5.35:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button8.04:1AAA
Secondary button8.30:1AAA
Muted text8.12:1AAA
Accent8.00:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.185 0.031 119.019);
  --muted: oklch(0.934 0.004 116.403);
  --muted-foreground: oklch(0.441 0.027 117.45);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.185 0.031 119.019);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.185 0.031 119.019);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.846 0.031 116.989);
  --primary-foreground: oklch(0.315 0.028 117.994);
  --secondary: oklch(0.931 0.009 116.506);
  --secondary-foreground: oklch(0.445 0.032 117.636);
  --accent: oklch(0.901 0.021 116.75);
  --accent-foreground: oklch(0.406 0.041 118.203);
  --destructive: oklch(0.543 0.155 42.098);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.031 116.989);
  --chart-1: oklch(0.846 0.031 116.989);
  --chart-2: oklch(0.931 0.009 116.506);
  --chart-3: oklch(0.901 0.021 116.75);
  --chart-4: oklch(0.951 0.006 116.45);
  --chart-5: oklch(0.85 0.035 117.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.022 117.15);
  --foreground: oklch(0.986 0.002 116.363);
  --muted: oklch(0.202 0.004 17.526);
  --muted-foreground: oklch(0.753 0.02 17.594);
  --popover: oklch(0.149 0.022 117.15);
  --popover-foreground: oklch(0.986 0.002 116.363);
  --card: oklch(0.149 0.022 117.15);
  --card-foreground: oklch(0.986 0.002 116.363);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.031 116.989);
  --primary-foreground: oklch(0.315 0.028 117.994);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.302 0.014 17.971);
  --accent-foreground: oklch(0.829 0.012 17.399);
  --destructive: oklch(0.612 0.177 41.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.031 116.989);
  --chart-1: oklch(0.846 0.031 116.989);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.302 0.014 17.971);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.85 0.035 117.088);
}