4.2 Using your own SASS with JSPM

A lot of people change Materialize sass files to match their own preferences. If you're doing that, you'll have to make sure that your changed styles are loaded instead of the original ones.

When using JSPM you can make use of a feature names overrides to do this:

System.config({
...
  packages: {
    "materialize-css": {
      main: "dist/js/materialize.js",
      map: {
        '../css/materialize.css': 'my path'
      }
    }
  }
...
});

Last updated