Sass Rules
File structure
Categorized styles; making them easier to maintain
5-1 Pattern architecture; for clearer organization (based on the 7-1 Pattern)
Clear delineation between grouped and associated rules
Encourages common style, components and variable (inline with Atomic Design)
Modular style management that facilitates Styleguide Driven Development
Reusable approach
Styles.scss
Charset should be included
Only directory files
-dir.scss
files should be importedChanges should not be made to this file
Filename is always ‘styles’ as it is a compiled file containing multiple stylesheets
All files except /styles.scss require an underscore at the beginning of each filename
Use abstract folder
abstract folder contains functions, mixins, variables or other things that can be used repeatedly
this is how to use it
Last updated