material-components-web
material-components-web copied to clipboard
Instruct the Sass imports more completely in the Readme
Feature Request
Clarify the sass imports in the documentation (readme)
Proposed solution
- Add that to use the mixins, you must
@use "@material/button/mixins"; - Add that other components use the same "end names", so you should
@use "@material/button/styles" as button-styles;, and@use "@material/button/mixins" as button;: - Add that to use e.g. the filled-accessible mixin, you should then write
@include button.filled-accessible():
Alternatives considered
- These instructions could also land on the main readme at https://github.com/material-components/material-components-web.
- And/or update the Getting Started at https://github.com/material-components/material-components-web/blob/master/docs/getting-started.md to reflect the new imports.
Additional context
For users new to MDC and not normally using sass, these things are quite hard to find out.