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

前端 未结 3 746
清酒与你
清酒与你 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:28

    It's an old question but I just wanted to add one thing.

    Because all Semantic UI elements inherits the ui class you could do it like this:

    .ui {
       font-family: 'fontname' !important;
    }
    

    Not so elegant but it works.

提交回复
热议问题