Huge Astrogranite for shadcn/ui

Huge Astrogranite is a shadcn/ui theme built around a neutral gray primary color (#777779) with neutral gray accents (#797877). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#777779) on a blue-tinted background (#07090d).

Color palette

TokenLightDark
Background
#ffffffwhite
#07090dblack
Foreground
#040a15black
#f8f9fcghostwhite
Card
#ffffffwhite
#07090dblack
Card foreground
#040a15black
#f8f9fcghostwhite
Popover
#ffffffwhite
#07090dblack
Popover foreground
#040a15black
#f8f9fcghostwhite
Primary
#777779gray
#777779gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#797877gray
#797877gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1dcd0gainsboro
#2f291edarkslategray
Muted foreground
#5f5f5ddimgray
#a2a1a0darkgray
Accent
#797877gray
#797877gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e44d01orangered
#fe7734tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#eeeff2whitesmoke
#16181dblack
Input
#eeeff2whitesmoke
#16181dblack
Ring
#777779gray
#777779gray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button4.45:1AA Large
Secondary button4.39:1AA Large
Muted text4.67:1AA
Accent4.39:1AA Large
Destructive3.91:1AA Large
Dark mode
Text on background18.91:1AAA
Text on card18.91:1AAA
Primary button4.45:1AA Large
Secondary button4.39:1AA Large
Muted text5.57:1AA
Accent4.39:1AA Large
Destructive7.91:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.028 260.277);
  --muted: oklch(0.895 0.017 86.069);
  --muted-foreground: oklch(0.485 0.002 86.024);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.028 260.277);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.028 260.277);
  --border: oklch(0.952 0.004 265.988);
  --input: oklch(0.952 0.004 265.988);
  --primary: oklch(0.571 0.003 265.986);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.003 86.025);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.003 86.025);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.199 39.185);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.003 265.986);
  --chart-1: oklch(0.571 0.003 265.986);
  --chart-2: oklch(0.574 0.003 86.025);
  --chart-3: oklch(0.574 0.003 86.025);
  --chart-4: oklch(0.6 0.003 86.025);
  --chart-5: oklch(0.566 0.011 265.913);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.01 263.361);
  --foreground: oklch(0.983 0.004 265.99);
  --muted: oklch(0.284 0.021 85.996);
  --muted-foreground: oklch(0.709 0.002 86.018);
  --popover: oklch(0.14 0.01 263.361);
  --popover-foreground: oklch(0.983 0.004 265.99);
  --card: oklch(0.14 0.01 263.361);
  --card-foreground: oklch(0.983 0.004 265.99);
  --border: oklch(0.21 0.01 265.741);
  --input: oklch(0.21 0.01 265.741);
  --primary: oklch(0.571 0.003 265.986);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.003 86.025);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.003 86.025);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.72 0.182 44.176);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.571 0.003 265.986);
  --chart-1: oklch(0.571 0.003 265.986);
  --chart-2: oklch(0.574 0.003 86.025);
  --chart-3: oklch(0.574 0.003 86.025);
  --chart-4: oklch(0.6 0.003 86.025);
  --chart-5: oklch(0.566 0.011 265.913);
}