gantry5 icon indicating copy to clipboard operation
gantry5 copied to clipboard

Directives @use/@forward will there be support?

Open kosh2323 opened this issue 2 years ago • 4 comments

Are there plans to use such directives as @use, @forward as a replacement for import rules in the future? Right now it doesn't seem to be supported yet? Or will everything remain as @import?

kosh2323 avatar Jun 26 '22 17:06 kosh2323

Do you mean in the blueprints? If so, I don't think so as the blueprints are supposed to stay pretty simple.

mahagr avatar Jun 28 '22 08:06 mahagr

Do you mean in the blueprints? If so, I don't think so as the blueprints are supposed to stay pretty simple.

Hi Matias. No, I mean importing plug-in files into custom.scss. Now all style files are connected via the @import string, even embedded ones, for example in _dependencies.scss. Sass developers will change the connection methods and instead of @import, the commands @use/@forward.

_https://css-tricks.com/introducing-sass-modules/

kosh2323 avatar Jun 28 '22 13:06 kosh2323

@mahagr While the article that @kosh2323 referenced is from 2019, I found this link in the article which shows they are in fact moving forward with this.

https://github.com/sass/sass/blob/main/accepted/module-system.md#summary

N8Solutions avatar Jul 01 '22 09:07 N8Solutions

@mahagr While the article that @kosh2323 referenced is from 2019, I found this link in the article which shows they are in fact moving forward with this.

https://github.com/sass/sass/blob/main/accepted/module-system.md#summary

Now development is moving towards Dart Sass, and the developers themselves do not recommend using the old rules, here from the official documentation:

https://sass-lang.com/documentation/at-rules/import

kosh2323 avatar Jul 01 '22 17:07 kosh2323