Using Fonts in Web Components

Including those Font Awesome icons somehow

The Problem

Photo by Serg Antonov on Unsplash

Solution 1: Get Rid of the Shadow DOM

Solution 2: Include Your Font Globally and Your Style Locally

The embedded font
And the rest of the style

Conclusion

Some Other Resources

Developer, writer and a pure genious ... I may have exagerated a little ... have a look: https://ziga-petek.medium.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store