Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Gary Jennings
Gary Jennings
22,408 Points

Sass Template / Starting Place

When I start a new project, I find myself structuring my Sass the same way all the time with my variables and mixins. Do you people usually make a generic Sass structure with variables premade and mixins defined, and use it as a starting place for all their projects? If so, are their examples online?

peyton caseria
peyton caseria
Courses Plus Student 12,281 Points

Good question, I was wondering the same thing while on rails. You can save code you've done and reuse it, Sass is made to be extremely simple though.

Even more so than bootstrap and other frameworks, I actually need to start saving my work to a usb drive soon to stay more organized, on top of that it is good practice to have physical backups.

I would suggest saving it, and if you are using a mac then make a custom tag for it and other snippets of code you need to store.

3 Answers

Tim Knight
Tim Knight
28,888 Points

Gary,

Absolutely! I actually have a prototyping framework that I use when starting to work up an application that includes all of my default mixins and organizational style.

See: https://github.com/timknight/middleman-ethos/tree/master/source/assets/stylesheets

Mina Markham also has a Sass project that she's released to help in organizational style, so that's something else you might want to consider: http://minamarkham.github.io/sassy-starter/

Gary Jennings
Gary Jennings
22,408 Points

The first link gives me a 404

Tim Knight
Tim Knight
28,888 Points

Interesting, it's not giving me a 404... you might try just looking up on Github.

Aaron HARPT
Aaron HARPT
19,845 Points

You can look at either compass or bourbon for examples of premade mixins/variables and other Sass features.

Gary Jennings
Gary Jennings
22,408 Points

I love the treehouse community, thanks so much guys. I'll take a look at your suggestions Tim Knight.
I have done a few projects and have found myself sortof reinventing the wheel each time. Now I am ready to get a reusable work flow and start implementing some best practices.