Privacy Friendly Google Fonts Alternative

Going through and cleaning up some of my bookmarked tools and wanted to share this- when you want to use a google font but want to be GDPR compliant
Cool Labs

You just change your head from this:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">


To This:
<!— COOL LABS-GDRP COMPLIANT GOOGLE FONT —>
<link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin />

        <link href="https://api.fonts.coollabs.io/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">


(Can also be used in css @import as well, see the GH link for examples)
GitHub
A privacy-friendly drop-in replacement for Google Fonts - coollabsio/fonts
GitHub - coollabsio/fonts: A privacy-friendly drop-in replacement f...
Was this page helpful?