Skip to content


feat(react-md): Simplify sass usage with: @use 'react-md';
Browse files Browse the repository at this point in the history
With latest `sass-loader` and `sass`, code can be updated to:

-@import 'react-md/dist/mixins';
+@use 'react-md' as *;

 @include react-md-utils;

Note: If you override variables, do:

-@import 'react-md/dist/mixins';
+@use 'react-md' as * with (
+  // all $rmd-* variable overrides

 @include react-md-utils;
  • Loading branch information
mlaursen committed Aug 13, 2021
1 parent 2d0a0e6 commit 787bfb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"module": "./es/index.js",
"unpkg": "./dist/umd/react-md.production.min.js",
"types": "./types/index.d.ts",
"sass": "./dist/_everything.scss",
"sideEffects": [
Expand Down

0 comments on commit 787bfb5

Please sign in to comment.