Welcome Guest! (App Version 3.1)
@import is used in Sass to import other files. For example, the partials that we made in the last chapter will be included in the main.scss file. Here comes the use of the @import tool. We use this keyword to import the partials and other style files into our main sass file.
_reset.scss _variables.scss _mixins.scss _functions.scss main.scss
@import "reset"; @import "variables"; @import "mixins"; @import "functions"; //After this other sass code can be added
Note: Kindly take a note that when adding partials we do not need to mention underscore ( _ ) or the extension of .sass. If file name is _abc.sass we just need to write
@import "abc";. That's all!