v5.0.0-next.2
Pre-release
Pre-release
·
116 commits
to master
since this release
Breaking Changes
- Minimum required Angular version is now v16
Features
-
SCSS variables and mixins can now be loaded from a single entrypoint:
@use "angular-material-css-vars" as mat-css-vars;
Before:
@use "angular-material-css-vars/main" as mat-css-main; @use "angular-material-css-vars/variables" as mat-css-variables; @include mat-css-main.init-material-css-vars(); $my-dark-theme-selector: mat-css-variables.$dark-theme-selector;
After:
@use "angular-material-css-vars" as mat-css-vars; @include mat-css-vars.init-material-css-vars(); $my-dark-theme-selector: mat-css-vars.$dark-theme-selector;
The old way of importing is still supported, but it's recommended to switch to the new single entrypoint syntax.
-
Support setting an application-wide density with the
$density
setting, for more details see the README