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:
parent
8a3d8c3449
commit
301d6b07f5
3
sass.md
3
sass.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue