Blog Postings Sass
How to manage and organize your Sass files
Posted by Mike Scriber on Friday, February 22, 2008
First of all when it comes to organization of your Sass, it's a good idea to have a solid framework laid out. Once you have a framework laid out you can re-use this for your other projects. I like to use this basic framework:
- base.sass
- structure.sass
- styles.sass
- forms.sass
- variables.sass - This can be it's own file or in base.sass depending on how many variables you will have.
You can add files to this as well if you feel it's necessary, but this is a great start to Sass organization. When it comes to calling all these files I usually import them into the base.sass file at the bottom. The reason for this is because Sass will write the imports above all your base styles. This brings me to the import feature.
Import is ve
... read more.Search Site
About Mike
Mike Scriber is a front-end developer located in Toronto, Ontario. Mike takes pride in knowing his work is usable, accessible and standard compliant.