Grand for shadcn/ui

Grand is a shadcn/ui theme built around a vivid deep violet primary color (#130420) with muted light violet accents (#e6e2e9). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid deep violet primary (#130420) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#030204black
Foreground
#050109black
#ffffffwhite
Card
#faf8fcghostwhite
#030204black
Card foreground
#050109black
#ffffffwhite
Popover
#faf8fcghostwhite
#030204black
Popover foreground
#050109black
#ffffffwhite
Primary
#130420black
#130420black
Primary foreground
#e0c3f8thistle
#e0c3f8thistle
Secondary
#e6e2e9gainsboro
#312f32darkslategray
Secondary foreground
#4d4356darkslategray
#cac7cclightgrey
Muted
#ebe8edlavender
#151217black
Muted foreground
#4b3f55darkslategray
#b6aac0silver
Accent
#e6e2e9gainsboro
#312f32darkslategray
Accent foreground
#4d4356darkslategray
#cac7cclightgrey
Destructive
#8a1e0fdarkred
#d32d17firebrick
Destructive foreground
#fad6d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#130420black
#130420black

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button12.53:1AAA
Secondary button7.29:1AAA
Muted text8.09:1AAA
Accent7.29:1AAA
Destructive6.89:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button12.53:1AAA
Secondary button7.97:1AAA
Muted text8.40:1AAA
Accent7.97:1AAA
Destructive5.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 309.736);
  --foreground: oklch(0.096 0.033 312.415);
  --muted: oklch(0.935 0.007 309.716);
  --muted-foreground: oklch(0.388 0.04 308.765);
  --popover: oklch(0.982 0.005 309.736);
  --popover-foreground: oklch(0.096 0.033 312.415);
  --card: oklch(0.982 0.005 309.736);
  --card-foreground: oklch(0.096 0.033 312.415);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.155 0.062 306.131);
  --primary-foreground: oklch(0.859 0.078 308.883);
  --secondary: oklch(0.918 0.01 309.68);
  --secondary-foreground: oklch(0.4 0.036 308.905);
  --accent: oklch(0.918 0.01 309.68);
  --accent-foreground: oklch(0.4 0.036 308.905);
  --destructive: oklch(0.415 0.146 31.033);
  --destructive-foreground: oklch(0.905 0.041 26.807);
  --ring: oklch(0.155 0.062 306.131);
  --chart-1: oklch(0.155 0.062 306.131);
  --chart-2: oklch(0.918 0.01 309.68);
  --chart-3: oklch(0.918 0.01 309.68);
  --chart-4: oklch(0.943 0.007 309.714);
  --chart-5: oklch(0.154 0.064 306.034);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 310.894);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.01 309.274);
  --muted-foreground: oklch(0.755 0.034 309.341);
  --popover: oklch(0.085 0.012 310.894);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.012 310.894);
  --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.155 0.062 306.131);
  --primary-foreground: oklch(0.859 0.078 308.883);
  --secondary: oklch(0.307 0.007 309.545);
  --secondary-foreground: oklch(0.834 0.006 309.709);
  --accent: oklch(0.307 0.007 309.545);
  --accent-foreground: oklch(0.834 0.006 309.709);
  --destructive: oklch(0.565 0.204 31.035);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.155 0.062 306.131);
  --chart-1: oklch(0.155 0.062 306.131);
  --chart-2: oklch(0.307 0.007 309.545);
  --chart-3: oklch(0.307 0.007 309.545);
  --chart-4: oklch(0.336 0.008 309.538);
  --chart-5: oklch(0.154 0.064 306.034);
}