-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How could I use semantic-ui offline? #1521
Comments
You would need to download the font itself and change the link in the CSS file to point to your copy of it. You can do this either by manually editing the CSS file directly, or compile from src using Gulp. If choosing the latter, you need to change the font variables in the I ran into this problem myself when I wanted to use a custom font. Good luck! |
@importGoogleFonts: false; in your then add your own Fonts will default to Compile with any less compiler, or use our build tools. |
Thank you all, I change it already. |
I cannot really find any information about clean way to customized the web font used by semantic. I can easily change the font imported from google, but I would like to serve the fonts hosted locally and therefore need to override the @font-face. I could locate the @headerFont and @pageFont, but they seem to refer to the css font family attribute. |
Thanks @jlukic! You can locate the src/site/ folder by looking in semantic.json generated during installation and don't forget to rebuild semantic after with
|
An easy way to get google fonts locally, is with this package :
|
Does anyone have any examples of pointing Semantic to a local copy of fonts? I have the font downloaded and I see here how to define a Will someone post an example here just so I can fill this hole in my knowledge? |
Please fix this issue. We are using SemanticUI at a embedded device which works as stand alone AP. Due to this dependency, I we cannot simplify our release production. |
@huseyinkozan This is what I did:
Of course you have to make sure that the browser can find the files that are referenced in |
Following a similar guide to: Semantic-Org/Semantic-UI#1521 Using a new endpoint to handle offline mode to host semantic.min.css and other CSS files. Need to wrap these in templates to provide URL for static font files when hosting under a directory.
Following a similar guide to: Semantic-Org/Semantic-UI#1521 Using a new endpoint to handle offline mode to host semantic.min.css and other CSS files. Need to wrap these in templates to provide URL for static font files when hosting under a directory.
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 Thanks. Will you continue to support newer versions ? |
Hi, I am using emantic-ui with dotnet core by nuget. I can't modify |
Hi all,
I found semantci-ui since 1.0 version will to find the font on google web site, but for some reasons I can't visit google web site, so I get the error below.
My question is: how could I use semantic-ui offline, and don't need to get some other thing on web, just use the semancti.css and semantic.js?
Thanks.
The text was updated successfully, but these errors were encountered: