Grand for shadcn/ui

Grand is a shadcn/ui theme built around a muted green primary color (#525f4f) with muted red accents (#5f4f52). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#525f4f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020401black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#525f4fdarkolivegreen
#525f4fdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4f525fdarkslategray
#4f525fdarkslategray
Secondary foreground
#eeeff1whitesmoke
#eeeff1whitesmoke
Muted
#d7d8dbgainsboro
#242528darkslategray
Muted foreground
#4c4e57darkslategray
#a8aab3darkgray
Accent
#5f4f52dimgray
#5f4f52dimgray
Accent foreground
#f1eeefwhitesmoke
#f1eeefwhitesmoke
Destructive
#6f1e06maroon
#e9400corangered
Destructive foreground
#fbbfadlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#525f4fdarkolivegreen
#525f4fdarkolivegreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button6.78:1AA
Secondary button6.73:1AA
Muted text5.79:1AA
Accent6.69:1AA
Destructive7.01:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.78:1AA
Secondary button6.73:1AA
Muted text6.59:1AA
Accent6.69:1AA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.016 137.325);
  --muted: oklch(0.881 0.004 273.811);
  --muted-foreground: oklch(0.426 0.015 273.434);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.468 0.029 138.92);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.441 0.021 273.286);
  --secondary-foreground: oklch(0.952 0.003 273.83);
  --accent: oklch(0.444 0.021 3.366);
  --accent-foreground: oklch(0.952 0.003 2.155);
  --destructive: oklch(0.366 0.118 36.026);
  --destructive-foreground: oklch(0.854 0.074 37.602);
  --ring: oklch(0.468 0.029 138.92);
  --chart-1: oklch(0.468 0.029 138.92);
  --chart-2: oklch(0.441 0.021 273.286);
  --chart-3: oklch(0.444 0.021 3.366);
  --chart-4: oklch(0.468 0.022 273.278);
  --chart-5: oklch(0.473 0.038 138.934);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.266 0.006 273.614);
  --muted-foreground: oklch(0.739 0.013 273.659);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.468 0.029 138.92);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.441 0.021 273.286);
  --secondary-foreground: oklch(0.952 0.003 273.83);
  --accent: oklch(0.444 0.021 3.366);
  --accent-foreground: oklch(0.952 0.003 2.155);
  --destructive: oklch(0.618 0.212 34.9);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.029 138.92);
  --chart-1: oklch(0.468 0.029 138.92);
  --chart-2: oklch(0.441 0.021 273.286);
  --chart-3: oklch(0.444 0.021 3.366);
  --chart-4: oklch(0.468 0.022 273.278);
  --chart-5: oklch(0.473 0.038 138.934);
}