josh-collinsworth / sveltekit-blog-starter

A preconfigured SvelteKit static blog starter, with Sass, Markdown, MDSvex, Rehype, background preloading, and more. See the README for full details.
https://sveltekit-static-starter.netlify.app/
MIT License
419 stars 81 forks source link

`font: inherit` overrides heading `--accentFont` #7

Closed acidtone closed 2 years ago

acidtone commented 2 years ago

Problem: Changing the --accentFont CSS Variable does not affect heading font-family.

Root cause: Line 7 of _layout.scss is causing the headings to inherit from the body text --primaryFont CSS Variable.

Potential Solutions:

josh-collinsworth commented 2 years ago

Good spot. Thanks for letting me know! I've changed :where to :is, which allows the heading styles to override the generic styles.

acidtone commented 2 years ago

I knew there was a scss fix for that. Not my strongest area :)