Wibblz-small

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:


  1. base.sass

  2. structure.sass

  3. styles.sass

  4. forms.sass

  5. 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

Search Nathan Rambarran

About Nathan

Nathan is a Dim sum (Yum Cha) loving Ruby Hacker and an IT Consultant located in Toronto, Ontario.

More about Nathan

RSS Feed

Tags

Archives

My Links