change default font in semantic-ui with @font-face

前端 未结 3 747
清酒与你
清酒与你 2021-02-06 05:58

i want to change semantic-ui default font with @font-face but no matter...

i tried change in less file(site.variables) but I do not know how change it

i tried ad

3条回答
  •  无人共我
    2021-02-06 06:34

    You can do the following:

    • Add the following to a .css file:

      @font-face  {
          font-family: 'fontname';
          src:url('themes/basic/assets/fonts/fontname.eot'); 
          src:url('themes/basic/assets/fonts/fontname.eot?#') format('eot'),    
              url('themes/basic/assets/fonts/fontname.woff') format('woff');
      }
      
    • Import the above code before semantic's site.min.css

    • Change the @fontName to 'fontname'

    • @importGoogleFonts should be false since you don't want to import any fonts from Google

    By default the above will applied to body

提交回复
热议问题