Jekyll comes bundled with jekyll-sass-converter plugin. By default, Jekyll will look for Sass partials in the _sass directory relative to your site’s source directory.
You can further configure the plugin by adding options to your Jekyll config under the sass attribute. See the plugin’s documentation for details and for its default values.
If you see a warning in VSCode regarding@import "main";, you may ignore it as the same does not affect the functionality of the SCSS code in Jekyll. However, Jekyll 4 does not allow importing amainsass partial (_sass/main.scss) from a sass page of a same name, viz.css/main.scss.
Note that directory paths specified in the
sassconfiguration are resolved relative to your site'ssource, not relative to the location of the_config.ymlfile.
© 2025 Jekyll Core Team and contributors
Licensed under the MIT license.
https://jekyllrb.com/docs/configuration/sass/