Premier Graphite Black for shadcn/ui

Premier Graphite Black is a shadcn/ui theme built around a neutral gray primary color (#242829) with neutral gray accents (#282924). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the neutral gray primary (#242829) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#020708black
Foreground
#010404black
#f9fbfbghostwhite
Card
#f7fcfdghostwhite
#020708black
Card foreground
#010404black
#f9fbfbghostwhite
Popover
#f7fcfdghostwhite
#020708black
Popover foreground
#010404black
#f9fbfbghostwhite
Primary
#242829darkslategray
#242829darkslategray
Primary foreground
#bbc2c4silver
#bbc2c4silver
Secondary
#292428darkslategray
#292428darkslategray
Secondary foreground
#c4bbc2silver
#c4bbc2silver
Muted
#e1d6dfgainsboro
#291e28darkslategray
Muted foreground
#725a6edimgray
#a58da1rosybrown
Accent
#282924darkslategray
#282924darkslategray
Accent foreground
#c2c4bbsilver
#c2c4bbsilver
Destructive
#bc3510firebrick
#ed5931tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#dfe6e7gainsboro
#1f2729darkslategray
Input
#dfe6e7gainsboro
#1f2729darkslategray
Ring
#242829darkslategray
#242829darkslategray

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button8.24:1AAA
Secondary button8.18:1AAA
Muted text4.36:1AA Large
Accent8.31:1AAA
Destructive5.74:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button8.24:1AAA
Secondary button8.18:1AAA
Muted text5.27:1AA
Accent8.31:1AAA
Destructive6.08:1AA

CSS variables

Paste this into your globals.css to use Premier Graphite Black in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 211.04);
  --foreground: oklch(0.097 0.011 207.191);
  --muted: oklch(0.887 0.018 331.091);
  --muted-foreground: oklch(0.499 0.044 331.968);
  --popover: oklch(0.987 0.005 211.04);
  --popover-foreground: oklch(0.097 0.011 207.191);
  --card: oklch(0.987 0.005 211.04);
  --card-foreground: oklch(0.097 0.011 207.191);
  --border: oklch(0.919 0.007 211.038);
  --input: oklch(0.919 0.007 211.038);
  --primary: oklch(0.273 0.007 211.049);
  --primary-foreground: oklch(0.809 0.009 211.038);
  --secondary: oklch(0.266 0.011 331.384);
  --secondary-foreground: oklch(0.801 0.014 331.061);
  --accent: oklch(0.278 0.01 114.712);
  --accent-foreground: oklch(0.816 0.012 114.348);
  --destructive: oklch(0.53 0.177 34.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.273 0.007 211.049);
  --chart-1: oklch(0.273 0.007 211.049);
  --chart-2: oklch(0.266 0.011 331.384);
  --chart-3: oklch(0.278 0.01 114.712);
  --chart-4: oklch(0.297 0.013 331.41);
  --chart-5: oklch(0.274 0.009 211.072);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 207.641);
  --foreground: oklch(0.986 0.002 211.042);
  --muted: oklch(0.253 0.024 332.067);
  --muted-foreground: oklch(0.671 0.041 331.624);
  --popover: oklch(0.121 0.012 207.641);
  --popover-foreground: oklch(0.986 0.002 211.042);
  --card: oklch(0.121 0.012 207.641);
  --card-foreground: oklch(0.986 0.002 211.042);
  --border: oklch(0.266 0.012 211.121);
  --input: oklch(0.266 0.012 211.121);
  --primary: oklch(0.273 0.007 211.049);
  --primary-foreground: oklch(0.809 0.009 211.038);
  --secondary: oklch(0.266 0.011 331.384);
  --secondary-foreground: oklch(0.801 0.014 331.061);
  --accent: oklch(0.278 0.01 114.712);
  --accent-foreground: oklch(0.816 0.012 114.348);
  --destructive: oklch(0.655 0.19 35.967);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.273 0.007 211.049);
  --chart-1: oklch(0.273 0.007 211.049);
  --chart-2: oklch(0.266 0.011 331.384);
  --chart-3: oklch(0.278 0.01 114.712);
  --chart-4: oklch(0.297 0.013 331.41);
  --chart-5: oklch(0.274 0.009 211.072);
}