gantry5
gantry5 copied to clipboard
Directives @use/@forward will there be support?
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?
Do you mean in the blueprints? If so, I don't think so as the blueprints are supposed to stay pretty simple.
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/
@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
@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