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.json
by following the documentation on the repository page: https://packages.delegator.com/ -
Add the
delegator/magento2-scss
module to your project:
$ composer require delegator/magento2-scss
-
Create a
.scss
file 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