You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mrfantasticwonders@toastercup
After encountering an issue with css class definition precedence, which resulted in the inability to modify the background gradient on an element by applying additional classes I thought that maybe being able to specify the order of classes in module imports could alleviate that.
Anyways, I am fine either way but would just like to hear your input.
One thing I thought of this morning is about a potential benefit of CSS Modules is it would make finding relevant styles much faster and easier. Additionally it could make removing unused dead styles safer since the modules would be name spaced.
toastercup
changed the title
Discussion: Should We Use Sass Modules For Cortex?
Should We Use Sass Modules For Cortex?
Jan 13, 2018
toastercup
changed the title
Should We Use Sass Modules For Cortex?
Should we use Sass Modules?
Jan 13, 2018
toastercup
changed the title
Should we use Sass Modules?
Should We Use Sass Modules?
Jan 13, 2018
Just an update:
Since I created this issue I have had hands on experience with CSS/SASS modules and have concluded they present more complications than any solutions they offer.
@mrfantasticwonders @toastercup
After encountering an issue with css class definition precedence, which resulted in the inability to modify the background gradient on an element by applying additional classes I thought that maybe being able to specify the order of classes in module imports could alleviate that.
Anyways, I am fine either way but would just like to hear your input.
About Sass Modules:
https://medium.com/@marcmintel/how-to-use-the-module-pattern-in-your-scss-sass-stylesheets-89fe38a6e1f3
Anyways Below I have included some articles one Pro CSS Modules, and the other Anti CSS Modules.
Pro:
https://m.alphasights.com/css-evolution-from-css-sass-bem-css-modules-to-styled-components-d4c1da3a659b
Con:
https://medium.com/@gajus/stop-using-css-in-javascript-for-web-development-fa32fb873dcc
The text was updated successfully, but these errors were encountered: