Semantic-UI-CSS
Semantic-UI-CSS copied to clipboard
remove google fonts
Hi, could you please remove the google font dependency? We use this package also for internal/offline projects.
Thanks!
https://github.com/Semantic-Org/Semantic-UI/issues/5642#event-1200113927
Here is an example how to do it manually.
Thanks for the hint, but actually this example doesn't help users of semantic-ui-css per se. What we need is a way to remove not only the @import, but also all font-family instances so that using semantic-ui-css in existing projects doesn't override our font choices.
One way to do it could be to confine font-family entries to a specific CSS file (perhaps a typography.css or simply the current site.css?). Users could then avoid fonts by simply hand-picking the CSS files they need in components/ instead of using the pre-built semantic.css.
Hello, my solution was to make a local copy of semantic.css (from this repo) as well as assets (under themes/default/assets), changing the paths for assets (just replace themes/defaults/assets/ with your folder, or nothing if in the same folder as semantic.css) and removing the @import line (at the very beginning) in semantic.css.
Basically, a local fork of this project.
I have made a fork for this issue : https://github.com/arthurlacoste/semantic-ui-offline
You can use this for the css with fonts included :
npm i semantic-ui-offline
Interesting idea. How about a replacement? One that can be embedded and free of restrictions (as many open source projects are still out there true to digital freedom). I'm not so sure that they have been living up to their motto "don't be evil".. I would be very happy if I could at least disable them but still have a good upgrade path.