Semantic-UI-CSS icon indicating copy to clipboard operation
Semantic-UI-CSS copied to clipboard

remove google fonts

Open geromueller opened this issue 8 years ago • 5 comments

Hi, could you please remove the google font dependency? We use this package also for internal/offline projects.

Thanks!

geromueller avatar May 02 '17 01:05 geromueller

https://github.com/Semantic-Org/Semantic-UI/issues/5642#event-1200113927

Here is an example how to do it manually.

mjasnikovs avatar Aug 10 '17 05:08 mjasnikovs

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.

vphantom avatar Aug 18 '17 13:08 vphantom

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.

cristovao-trevisan avatar Oct 18 '17 03:10 cristovao-trevisan

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

arthurlacoste avatar Oct 31 '17 01:10 arthurlacoste

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.

jcalfee avatar Dec 06 '19 17:12 jcalfee