Grand for shadcn/ui

Grand is a shadcn/ui theme built around a vivid green primary color (#8af005) with vivid violet accents (#6b05f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#8af005) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#000000black
#fafcf8snow
Card
#ffffffwhite
#030402black
Card foreground
#000000black
#fafcf8snow
Popover
#ffffffwhite
#030402black
Popover foreground
#000000black
#fafcf8snow
Primary
#8af005lawngreen
#8af005lawngreen
Primary foreground
#172801black
#172801black
Secondary
#6b05f0darkviolet
#6b05f0darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7e2eelavender
#16111dblack
Muted foreground
#423e47darkslategray
#bcb8c1silver
Accent
#6b05f0darkviolet
#6b05f0darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#941805darkred
#f63113orangered
Destructive foreground
#fdd4cebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8af005lawngreen
#8af005lawngreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button10.84:1AAA
Secondary button7.24:1AAA
Muted text8.21:1AAA
Accent7.24:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button10.84:1AAA
Secondary button7.24:1AAA
Muted text9.50:1AAA
Accent7.24:1AAA
Destructive3.89: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 0 0);
  --muted: oklch(0.921 0.017 305.495);
  --muted-foreground: oklch(0.37 0.017 305.146);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.858 0.243 133.497);
  --primary-foreground: oklch(0.252 0.067 130.064);
  --secondary: oklch(0.494 0.279 289.2);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.494 0.279 289.2);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.43 0.16 31.475);
  --destructive-foreground: oklch(0.903 0.047 28.289);
  --ring: oklch(0.858 0.243 133.497);
  --chart-1: oklch(0.858 0.243 133.497);
  --chart-2: oklch(0.494 0.279 289.2);
  --chart-3: oklch(0.494 0.279 289.2);
  --chart-4: oklch(0.513 0.286 289.962);
  --chart-5: oklch(0.867 0.248 133.71);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 125.102);
  --foreground: oklch(0.988 0.005 125.812);
  --muted: oklch(0.19 0.025 303.965);
  --muted-foreground: oklch(0.789 0.014 305.509);
  --popover: oklch(0.099 0.011 125.102);
  --popover-foreground: oklch(0.988 0.005 125.812);
  --card: oklch(0.099 0.011 125.102);
  --card-foreground: oklch(0.988 0.005 125.812);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.858 0.243 133.497);
  --primary-foreground: oklch(0.252 0.067 130.064);
  --secondary: oklch(0.494 0.279 289.2);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.494 0.279 289.2);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.63 0.234 31.404);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.243 133.497);
  --chart-1: oklch(0.858 0.243 133.497);
  --chart-2: oklch(0.494 0.279 289.2);
  --chart-3: oklch(0.494 0.279 289.2);
  --chart-4: oklch(0.513 0.286 289.962);
  --chart-5: oklch(0.867 0.248 133.71);
}