We used SASS to write styles for the theme. This can be helpful when style customization is required.
Install hexo-renderer-sass
in your project:
1 | $ npm install hexo-renderer-sass --save |
Update your configuration and add:
1 | node_sass: |
Create a file as the entry point for your custom styles at source/style/doc.scss
in your project dir and import the theme core styles:
1 | @import "hexo-theme-doc/_doc.scss" |
The entry point location must be
source/styles/doc.scss
so that it will override the css pre-compiled version that theme tries to include by default.
To override variables you should declare them before including theme core styles, example:
1 |
|
To see the list of available variables, have a look to
hexo-theme-doc/source/style/_doc/vars.scss
file.