September 2017
Intermediate to advanced
450 pages
11h 24m
English
When you are working with Sass partials, it's often useful to create a directory to organize the different layers of partials that make up your custom CSS. We can do this by simply creating a styles directory and moving our partials inside it. For example, if we moved our colors partial to /src/styles/variables/_colors.scss, we can import it into our /src/styles.scss root file just by updating our import path:
@import "styles/variables/colors";
With our styles now moved out of our root directory, we can continue to add more partials to organize any other variables or configuration that we might need. As long as we import them in our styles.scss file before we reference them, we can rely on them being available.
Read now
Unlock full access