Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Sass converter for Jekyll.
Jekyll Sass Converter is an open-source Jekyll plugin that compiles Sass and SCSS stylesheets into CSS files during site builds, using the sass-embedded engine.
Jekyll Sass Converter is a Ruby gem that serves as Jekyll's built-in converter for .sass and .scss files. It takes uncompiled Sass/SCSS source from the site's _sass directory or custom load paths and produces .css output along with optional source maps. It requires Jekyll 2.0.0 or greater, and since that version it is bundled with Jekyll, so most users get it automatically. The project is maintained by the Jekyll organization on GitHub and currently has 194 stars.
sourcemap: always), enabling Chrome DevTools and Firefox DevTools to display the original .sass/.scss when debugging generated CSS.style option accepts compressed or expanded, with expanded as the default, letting you minify production stylesheets or keep readable output.load_paths option accepts an array of filesystem paths to search for Sass partials, in addition to the default _sass directory set by sass_dir.fatal_deprecations, future_deprecations, and silence_deprecations arrays let you treat deprecation warnings as errors, opt into future deprecations, or silence specific ones.quiet_deps (default false) suppresses warnings from files loaded through sass_dir or load_paths, and verbose prints every deprecation warning instead of only five per compilation..scss partials in _sass and rely on the converter to compile them for any site using the theme.sass.style: compressed for production or keep expanded for readable output; both are supported by Dart Sass.sourcemap: development so maps are generated only when JEKYLL_ENV is set to development.load_paths in _config.yml so partials outside _sass resolve correctly.fatal_deprecations to make the compiler error when it encounters any listed deprecation during compilation.The converter hooks into Jekyll's build process, detecting files with .sass or .scss extensions. It then invokes the sass-embedded host, which launches a Dart Sass compiler subprocess and exchanges protobuf messages over the standard input/output channel to compile and retrieve the CSS result. Configuration is read from _config.yml under the sass key, with all options having documented defaults.
The v3.0 release is a breaking upgrade: it drops the implementation option and the sassc gem, requires Ruby 3.1.0+, and removes add_charset and line_comments options. It also restricts imports to .sass, .scss, and .css extensions, no longer resolves imports relative to the site source unless . is added to load_paths, and converts same-name parent/child imports into circular import errors. Classic GitHub Pages still uses the 1.x versions.
