Modify the default font for the Semantic UI

Source: Internet
Author: User

The Semantic UI uses Google fonts by default, and it uses Google's official link directly. Because everyone knows the reason, the Google site in the domestic access is very poor, even can not access, there is likely to use the Semantic UI in the offline environment, can not always rely on the online font, so you need to Semantic UI source files for manual modification.

1, first based on the previous tutorial (http://www.cnblogs.com/xwgli/p/4770984.html) to get to the Semantic UI before the source code is not compiled;

2. Find and open the file in the source code with a text editor:. \src\themes\default\globals\site.variables;

3, modify the value of the @fontName in the file, to set the default font of the Semantic UI, I use the direct Microsoft black;

4, the change in the file @importGoogleFonts value is False, to close the Google font of the outside chain;

5, save Site.variables, and then recompile the Semantic UI is OK ~

Modify the default font for the Semantic UI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.