Skip to content

Sass CSS preprocessor for Magento 2, to enable using Sass in themes

License

Notifications You must be signed in to change notification settings

splashlab/magento-2-sass-preprocessor

Repository files navigation

Magento 2 Sass Preprocessor by SplashLab

This extension allows compiling Sass files in Magento 2 themes, just like LESS files. It works with the normal Magento deploy process, normalizing module structures using @magento_import, as expected. It uses the leafo/scssphp

Based on this official sample project: https://github.com/magento/magento2-samples/tree/master/module-sample-scss

Install via composer

Edit your project's composer.json to add the GitHub repo and require the project.

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/splashlab/magento-2-sass-preprocessor"
        }
    ],
    "require": {
        "splashlab/magento-2-sass-preprocessor": "dev-master"
    }
}
composer install
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Tests

Unit tests could be found in the Test/Unit directory.

About

Sass CSS preprocessor for Magento 2, to enable using Sass in themes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published