Fascia for shadcn/ui

Fascia is a shadcn/ui theme built around a neutral gray primary color (#2c2626) with neutral gray accents (#26262c). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#2c2626) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fdf7f7snow
#070303black
Foreground
#040101black
#fdfcfcsnow
Card
#fdf7f7snow
#070303black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fdf7f7snow
#070303black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#2c2626darkslategray
#2c2626darkslategray
Primary foreground
#c6bebesilver
#c6bebesilver
Secondary
#262c26darkslategray
#262c26darkslategray
Secondary foreground
#bec6besilver
#bec6besilver
Muted
#d6e0d6gainsboro
#1f291fblack
Muted foreground
#566156dimgray
#9ea99edarkgray
Accent
#26262cdarkslategray
#26262cdarkslategray
Accent foreground
#bebec6silver
#bebec6silver
Destructive
#942700saddlebrown
#ff5e24tomato
Destructive foreground
#ffd6c7bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c2626darkslategray
#2c2626darkslategray

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button8.16:1AAA
Secondary button8.19:1AAA
Muted text4.79:1AA
Accent8.15:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button8.16:1AAA
Secondary button8.19:1AAA
Muted text6.20:1AA
Accent8.15:1AAA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.276);
  --foreground: oklch(0.078 0.021 23.097);
  --muted: oklch(0.897 0.017 145.43);
  --muted-foreground: oklch(0.481 0.022 145.221);
  --popover: oklch(0.98 0.007 17.276);
  --popover-foreground: oklch(0.078 0.021 23.097);
  --card: oklch(0.98 0.007 17.276);
  --card-foreground: oklch(0.078 0.021 23.097);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.275 0.009 17.684);
  --primary-foreground: oklch(0.807 0.01 17.357);
  --secondary: oklch(0.284 0.013 145.221);
  --secondary-foreground: oklch(0.818 0.015 145.436);
  --accent: oklch(0.271 0.01 285.678);
  --accent-foreground: oklch(0.803 0.012 286.128);
  --destructive: oklch(0.443 0.15 36.529);
  --destructive-foreground: oklch(0.907 0.051 40.983);
  --ring: oklch(0.275 0.009 17.684);
  --chart-1: oklch(0.275 0.009 17.684);
  --chart-2: oklch(0.284 0.013 145.221);
  --chart-3: oklch(0.271 0.01 285.678);
  --chart-4: oklch(0.316 0.015 145.206);
  --chart-5: oklch(0.273 0.012 17.935);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.012 19.257);
  --foreground: oklch(0.991 0.002 17.192);
  --muted: oklch(0.267 0.023 144.894);
  --muted-foreground: oklch(0.722 0.02 145.364);
  --popover: oklch(0.107 0.012 19.257);
  --popover-foreground: oklch(0.991 0.002 17.192);
  --card: oklch(0.107 0.012 19.257);
  --card-foreground: oklch(0.991 0.002 17.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.275 0.009 17.684);
  --primary-foreground: oklch(0.807 0.01 17.357);
  --secondary: oklch(0.284 0.013 145.221);
  --secondary-foreground: oklch(0.818 0.015 145.436);
  --accent: oklch(0.271 0.01 285.678);
  --accent-foreground: oklch(0.803 0.012 286.128);
  --destructive: oklch(0.687 0.207 38.218);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.275 0.009 17.684);
  --chart-1: oklch(0.275 0.009 17.684);
  --chart-2: oklch(0.284 0.013 145.221);
  --chart-3: oklch(0.271 0.01 285.678);
  --chart-4: oklch(0.316 0.015 145.206);
  --chart-5: oklch(0.273 0.012 17.935);
}