Framework SASS Source Files is a Sass-powered framework accomplished by Sass variables, Sass maps, and utility CSS. Ready to use, drop it right into your Sass powered applications.
MIT License
0
stars
1
forks
source link
Improve the framework using Sass At-Rules & Built-In Modules #9
The Sass team discourages the continued use of the @import rule. Sass will gradually phase it out over this year (October, 1st 2021 at latest), and eventually remove it from the language entirely (October, 1st 2022 at latest).
Therefore, Sass’s extra functionality comes in the form of new at-rules it adds on top of CSS:
@use loads mixins, functions, and variables from other Sass stylesheets, and combines CSS from multiple stylesheets together.
@forward loads a Sass stylesheet and makes its mixins, functions, and variables available when your stylesheet is loaded with the @use rule.
Sass also provides many built-in modules which contain useful functions (and the occasional mixin). These modules can be loaded with the @use sass:[module_name] rule like any user-defined stylesheet, and their functions can be called like any other module member.
The Sass team discourages the continued use of the
@import
rule. Sass will gradually phase it out over this year (October, 1st 2021 at latest), and eventually remove it from the language entirely (October, 1st 2022 at latest).Therefore, Sass’s extra functionality comes in the form of new at-rules it adds on top of CSS:
@use
loads mixins, functions, and variables from other Sass stylesheets, and combines CSS from multiple stylesheets together.@forward
loads a Sass stylesheet and makes its mixins, functions, and variables available when your stylesheet is loaded with the@use
rule.Sass also provides many built-in modules which contain useful functions (and the occasional mixin). These modules can be loaded with the
@use sass:[module_name]
rule like any user-defined stylesheet, and their functions can be called like any other module member.