scss bower-material support
I am using bower-material, Is there a way to provide the sass files along with the compiled css?
We would love that too! Looking forward to it, as we prefer scss over the already compiled css.
Duplicate of #381
#381 has been closed but I believe there are valid use cases for this request.
It is my understanding that the source repository is meant to be used by whoever wants to develop angular-material and the deployment repository is for developers that use angular-material in their own projects.
If that's the case, I would argue that there are valid uses cases for exposing the SCSS in the project builds repository. In these cases the developer doesn't want to mess with the original angular-material css but rather use the SCSS as a library to build his own classes. For instance I might want to access the SCSS variables, or use the handy mixins to build more *-sm *-gt classes.
I personally see the SCSS as being integral part of the library exposed to the developers rather than purely part of the library sources.
an example of something similar is done in this repo for bootswatch. The use cases for this are several, of course the most important is building additional element that leverage existing mixins. Exposing just the core/style folder would be already a big improvement. Another use case would be to intercept and modify the variables before they are used in the material style sheets, or simply using the variables in your own style sheets.
+1
@rschmukler should chime in on this, but I believe the reason CSS is provided in a compiled format is due to theming support, where theme CSS is generated dynamically.
+1
+1
For those interested I extracted the styles and put them into their own repository: https://github.com/johannesjo/angular-material-sass-files
@johannesjo how will that be sustainable? It looks like there are specific filenames referenced in your shell script and not all of them are present (ex. typography.scss). Also, what about the themes scss?
@marcysutton the colors would have to be replaced with sass-variables/functions. Still working on it. Thank you for reporting the issue, but maybe the repos page is a better place for this. I'm glad for help and suggestions.
:+1: I am also lost on how to properly use the .scss files. There is the Gulp build process but that seems overkill for this use case. Looking forward to seeing how this one pans out :)
+1
this would be great
Each build of Angular Material now [also] deploys angular-material.scss; with required mixins and variables.
- This resource was deployed for developers wanting the SCSS master file.
- The AM team will not document how to compile or use this file, etc.
woohoo! :confetti_ball:
also, +1 point for using !default :ok_hand:
This is great! Thanks.
:tada: thanks!