Installing Google Fonts as npm packages

1 · Amit Merchant · Dec. 30, 2023, 12:37 p.m.
Google Fonts is a great resource for finding free fonts for your web projects. It has a wide variety of fonts to choose from. You include these fonts in your project using the <link> tag or by using the @import rule in your CSS which points to the Google Fonts CDN. The problem with this approach is that it adds an extra HTTP request to your page which can be avoided if you download the fonts locally and include them in your project. But, this can be a tedious task if you’re using a lot of fonts ...