This is the structure of the sass files that I use and recommend. It is very important to have the same folder structure in all your projects, so it is easier for you to navigate and modify the project. I don't use all the folders everywhere (some projects may not have themes, etc.). I also recommend using the BEM convention to name classes.
Only the main.scss file is compiled, it imports the other files.
Example:
@import "base/module";
Where the base is the folder and module is the imported module (where in turn it will import sass files from that specific folder).
!! In order not to copy the .scss files, we put a "_ ", so we have "_variable.scss"
Contains global styles, such as resets, typography, colors, etc.
Example:
@import "colors";
@import "typography";
Contains each self-contained component in its own .scss partial
Example:
@import "card";
Contains styling for larger layout components
Example:
@import "nav";
@import "header";
@import "container";
@import "footer";
Contains page-specific styling, if necessary
Example:
@import "html";
@import "homepage";
@import "about";
Contains styling for different themes
Example:
@import "default_theme";
@import "white_theme";
@import "dark_theme";
Contains global mixins, functions, helper selectors, etc.
Example:
@import "responsive";
@import "animations";