SublimeText / Sass

Sass and SCSS syntax for Sublime Text
https://packagecontrol.io/packages/Sass
MIT License
50 stars 8 forks source link

Support for CSS Modules #74

Closed tuzemec closed 3 years ago

tuzemec commented 3 years ago

Any plans for supporting CSS modules?

It will be quite nice if there's proper syntax definition for composes:, :global, :export and so on.

braver commented 3 years ago

No, there are no plans. Sass has a module system now, and we support that. CSS modules feels kinda like a dead project, and I can't find a very formal spec of the syntax. One problem I see with it is that is introduces property names that are not properties, e.g. composes. Anyway, it looks easy enough to implement, but I'd like to know if that is actually a live project that more than a handful of people are using.

tuzemec commented 3 years ago

It's just my take on this, but as I see it the css modules are quite popular in the React toolchain. The last few projects that I've worked on had some kind of importing SCSS into React components. Using composes is quite rare with SCSS, but things like :global and :export come handy in a lot some situations. And again, that's just my take on this and I can be wrong :) ... or it's just my OCD kicking in when I see something not coloured properly in Sublime :)

braver commented 3 years ago

The group around the toolchain does look very active. I can imagine that the syntax is "done" and doesn't need a lot of working on. And implementing it wasn't too hard either. Have a look at #75 , see if I missed anything.

tuzemec commented 3 years ago

Looks good to me!