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 trialAakash Srivastava
5,415 PointsSeperate your stylesheet into partials
I watched both the course "Sass Basics" and "CSS to Sass" , the major difference what I saw between the two courses is "stage at which partial is getting created" .
In this course , he is creating partials in much later stage i,e after creating mixins, variables etc.
While , in CSS to Sass course , he created the partials right at the beginning of the course and then created the mixins and variables.
I am confused and not able to implement SASS into my project due to this confusion - which way to go?
Should I create partials at the beginning or after creating refactoing your whole CSS withi mixins , variables , extend , placeholder ?
Any help would be much appreciated.
1 Answer
Austin Whipple
29,725 PointsGenerally, when starting from scratch with Sass, you'll want to think through and create partials to cover the big chunks of your styles and mixins. No correct answer for what those should be, since they can be different for every developer, team, and/or project. You can also always add more and split partials into smaller files as you go. Whatever workflow works best for you and the project.
The CSS to Sass course is strictly discussing refactoring existing CSS into Sass for easier future maintenance. When starting a new project, there's no reason you need to start with CSS and then refactor into Sass.
Aakash Srivastava
5,415 PointsAakash Srivastava
5,415 PointsAustin Whipple So , can we start right from SASS ?
I was thinking about starting from SASS ,then I thought it would be difficult .
I need you help , is it possible to start from SASS rather than css?
Which methodology should i follow , I am a newbie and I understood almost all the concepts related to SASS .
But , when it comes to implementation , i got freezed. I have no clue ,how to start.