Hexo-theme-next: 如何修改全局字体大小

Created on 6 Oct 2015  ·  5Comments  ·  Source: iissnan/hexo-theme-next

现在在字体太小了,而且还有点发虚,如何修改大一些,另外本主题哪里有更详细的文档,谢谢

Most helpful comment

编辑 source/css/_variables/custom.styl,添加:

$font-size-base = 16px; // 默认是 16px 大小
$font-family-headings = Georgia, sans // 标题,修改成你期望的字体族
$font-family-base = "Microsoft YaHei", Verdana, sans-serif // 修改成你期望的字体族

文档见: http://theme-next.iissnan.com

All 5 comments

编辑 source/css/_variables/custom.styl,添加:

$font-size-base = 16px; // 默认是 16px 大小
$font-family-headings = Georgia, sans // 标题,修改成你期望的字体族
$font-family-base = "Microsoft YaHei", Verdana, sans-serif // 修改成你期望的字体族

文档见: http://theme-next.iissnan.com

谢谢

@iissnan hello, I have changed: source/css/_variables/custom.styl
$font-size-base = 20px;
and when $ hexo s the font is bigger, but $ hexo -g d , it not worked, how can i do that?
thanks

@liguanghe

hexo clean && hexo g && hexo d

@ivan-nginx thanks, It works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhgcao picture zhgcao  ·  3Comments

dev-fancyluo picture dev-fancyluo  ·  3Comments

bingstyle picture bingstyle  ·  3Comments

ifyour picture ifyour  ·  4Comments

payne4handsome picture payne4handsome  ·  4Comments