Granite Black Raccoon for shadcn/ui

Granite Black Raccoon is a shadcn/ui theme built around a neutral gray primary color (#303136) with muted light blue accents (#cdd0df). The light mode uses a neutral background (#f7f8fc). Dark mode keeps the neutral gray primary (#303136) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f8fcghostwhite
#000000black
Foreground
#000000black
#f5f6fawhitesmoke
Card
#f7f8fcghostwhite
#000000black
Card foreground
#000000black
#f5f6fawhitesmoke
Popover
#f7f8fcghostwhite
#000000black
Popover foreground
#000000black
#f5f6fawhitesmoke
Primary
#303136darkslategray
#303136darkslategray
Primary foreground
#c9cacflightgrey
#c9cacflightgrey
Secondary
#e5e6eblavender
#1e1e1fblack
Secondary foreground
#43465bdarkslategray
#b6b7b9silver
Muted
#e5e6eblavender
#14151ablack
Muted foreground
#585b6adimgray
#9598a7darkgray
Accent
#cdd0dflightgrey
#292b32darkslategray
Accent foreground
#30334bdarkslategray
#c1c3cdsilver
Destructive
#911803darkred
#fb5437tomato
Destructive foreground
#fed0c8pink
#000000black
Border
#dfdfe2gainsboro
#1b1b1dblack
Input
#dfdfe2gainsboro
#1b1b1dblack
Ring
#303136darkslategray
#303136darkslategray

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.91:1AAA
Secondary button7.41:1AAA
Muted text5.39:1AA
Accent8.02:1AAA
Destructive6.44:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.91:1AAA
Secondary button8.28:1AAA
Muted text6.37:1AA
Accent8.07:1AAA
Destructive6.43:1AA

CSS variables

Paste this into your globals.css to use Granite Black Raccoon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 279.252);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.925 0.007 279.226);
  --muted-foreground: oklch(0.473 0.024 278.507);
  --popover: oklch(0.98 0.006 279.252);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.006 279.252);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.905 0.004 279.281);
  --input: oklch(0.905 0.004 279.281);
  --primary: oklch(0.315 0.008 278.952);
  --primary-foreground: oklch(0.84 0.006 279.231);
  --secondary: oklch(0.925 0.008 279.208);
  --secondary-foreground: oklch(0.401 0.035 277.878);
  --accent: oklch(0.859 0.022 278.951);
  --accent-foreground: oklch(0.33 0.042 277.119);
  --destructive: oklch(0.424 0.158 32.013);
  --destructive-foreground: oklch(0.895 0.053 29.796);
  --ring: oklch(0.315 0.008 278.952);
  --chart-1: oklch(0.315 0.008 278.952);
  --chart-2: oklch(0.925 0.008 279.208);
  --chart-3: oklch(0.859 0.022 278.951);
  --chart-4: oklch(0.95 0.005 279.256);
  --chart-5: oklch(0.311 0.013 278.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.005 279.258);
  --muted: oklch(0.196 0.01 278.482);
  --muted-foreground: oklch(0.682 0.022 278.829);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.005 279.258);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.973 0.005 279.258);
  --border: oklch(0.223 0.005 279.014);
  --input: oklch(0.223 0.005 279.014);
  --primary: oklch(0.315 0.008 278.952);
  --primary-foreground: oklch(0.84 0.006 279.231);
  --secondary: oklch(0.236 0.002 279.211);
  --secondary-foreground: oklch(0.778 0.004 279.273);
  --accent: oklch(0.289 0.015 278.531);
  --accent-foreground: oklch(0.818 0.014 279.086);
  --destructive: oklch(0.671 0.207 32.362);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.315 0.008 278.952);
  --chart-1: oklch(0.315 0.008 278.952);
  --chart-2: oklch(0.236 0.002 279.211);
  --chart-3: oklch(0.289 0.015 278.531);
  --chart-4: oklch(0.268 0.002 279.202);
  --chart-5: oklch(0.311 0.013 278.693);
}