From 301d6b07f5266440f1a23c8c6ac391372b1f3c5a Mon Sep 17 00:00:00 2001 From: Jose Pradenas Navarro <54380196+lunar-cat@users.noreply.github.com> Date: Mon, 14 Feb 2022 08:17:06 -0300 Subject: [PATCH] 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 ` --- sass.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sass.md b/sass.md index 38593c8be..44586760f 100644 --- a/sass.md +++ b/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