June 2025
Beginner
817 pages
31h 30m
English
When the projects become more extensive, it isn’t advisable to write everything in an SCSS file. As with CSS, in Sass, you can split SCSS files into meaningful sections such as reset, setup, layout, navigation, and so on; import them via @import; and compile all the spun-off sections into SCSS files to create a CSS file. As a web designer, you can still keep track of everything thanks to the individual SCSS files. For example, I personally use a style.scss file into which I import all other SCSS files. Here’s an example of using @import:
@import "reset";@import "layout";@import "basic";
Listing 16.6 /examples/chapter016/16_13/style/style.scss
When importing with @import, the file name between "" is sufficient. In this ...
Read now
Unlock full access