Added @use rule (#1765)

* Added @use rule

The new @use rule has been added, and a warning has been given regarding the phasing out of @import.

* Fixed md from ``` to `
This commit is contained in:
Jose Pradenas Navarro 2022-02-14 08:17:06 -03:00 committed by GitHub
parent 8a3d8c3449
commit 301d6b07f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -145,8 +145,11 @@ body {
```scss
@import './other_sass_file';
@use './other_sass_file';
```
The `@import` rule is discouraged because will get eventually [removed from the language](https://sass-lang.com/documentation/at-rules/import).
Instead, we should use the [`@use` rule](https://sass-lang.com/documentation/at-rules/use).
The `.scss` or `.sass` extension is optional.
## Color functions