This Magento 2 module allows the use of SCSS for your CSS preprocessor, instead of Magento's default choice of LESS. It uses the scssphp compiler to compile your SCSS.
This module is intended to be installed using composer.
-
Add the Delegator composer repository to your
composer.jsonby following the documentation on the repository page: https://packages.delegator.com/ -
Add the
delegator/magento2-scssmodule to your project:
$ composer require delegator/magento2-scss-
Create a
.scssfile in your theme and pull it in via layout XML. -
This module will automatically process your SCSS in the same way Magento 2 processes its own LESS files.
Unit tests can be found in the Test/Unit directory.
Magento Core team