hexo-starter icon indicating copy to clipboard operation
hexo-starter copied to clipboard

Use SCSS as default style sheet language

Open michaeljota opened this issue 7 years ago • 2 comments

Environment Info

Node version(node -v): 8.7.0

Hexo and Plugin version(npm ls --depth 0):

+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

For feature request

Maybe when Stylus was selected as the default style sheet language it was somehow popular or something, but now SCSS is used more than plain CSS (ref).

SCSS is used by the most popular CSS Frameworks, such Bootstrap 4, Materialize, and Fundation, so used by default would allow theme developers to use the files of such frameworks to develop better themes.

I know there is a SCSS plugin, I'm using it, but if SCSS is included by default, users won't need to install any plugins.

michaeljota avatar Feb 18 '18 23:02 michaeljota

I agree with your remark and also includes that the stylus is staffless to keep the project has a time without pull request and with it it is falling into disuse

lucianobarauna avatar Feb 19 '18 01:02 lucianobarauna

I made a rendering plugin based on dart-sass: https://github.com/next-theme/hexo-renderer-ruby-sass

Compared with stylus, scss still has some shortcomings, for example, it does not support @import under the @if statement.

stevenjoezhang avatar Feb 28 '21 13:02 stevenjoezhang