Spiderpig86 / Cirrus

:cloud: The SCSS framework for the modern web.
https://www.cirrus-ui.com/
MIT License
1.37k stars 75 forks source link

Do not hard-code Google Fonts #99

Closed phoerious closed 2 years ago

phoerious commented 2 years ago

The Nunito and Montserrat Google font @ imports are hardcoded in base/font.scss, which causes a lot of privacy and some performance issues. I would like to be able to host fonts myself and perhaps even use different fonts than the default ones.

thepete89 commented 2 years ago

+1 for this, because it's especially important for people who reside inside the EU and in particular Germany from a legal standpoint. We have stringent data privacy laws (GDPR) here and more and more courts are ruling in such a way, that using anything directly from google (including google fonts!) without user consent is basically illegal.

My workaround right now is to remove/comment the imports out inside base/font.scss and add the fonts myself via fontsource later, but it would be great if we could tell Cirrus directly to use a local package/stylesheet or something similar. At least provide an option to disable those font-imports.

Spiderpig86 commented 2 years ago

Thanks for the suggestion! I agree with this. The future update was going to introduce the ability to change fonts so this would fit very well. I'll add this on the roadmap for 0.7.1.

Spiderpig86 commented 2 years ago

Resolved with dfaadb19914e92612f0f775ec13d4efc6c7ac7dc