Does Jekyll support the @use sass statement?

I manage to get things working with @import, but not with @use. Since @import is being deprecated, I would like to know if there is a way to make @use work with Jekyll.

I believe Jekyll uses the sassc-ruby gem to compile Sass, which is a Ruby version of libsass. Not sure if @use is locked behind a specific version, but I guess if libsass supports it Jekyll should.

1 Like

According to the Sass docs, only Dart Sass supports @use… so that’s a no for Jekyll.

You don’t have to use Jekyll’s native Sass compilation though. It’s entirely possible to wire up Sass compilation with npm scripts or a task runner like Gulp. Then you could use Dart Sass.

1 Like