An updated version of the presentation that I delivered to the Philadelphia WordPress Meetup. This particular Sass presentation was delivered to the Philly 'burbs WordPress Meetup.
1. An Intro to Sass:
This Designer's Dive into Sass
Liam Dempsey
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
@liamdempsey
2. C’est moi!
• Designer who codes
• Not a developer
• Run an international consultancy
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
3. What We’ll Cover
• The WHAT and WHY of Sass
• Tweak local development setup for
Sass (on a Mac)
• Basic elements of Sass
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
4. My Goals for Tonight
• Remove the fear
• Put you on the
right road
• Provide resources
for moving forward
• Get you excited to
get started
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
5. Hat Tips
Ngaire Ackerley: @ngaireackerley
Tracy Levesque: @liljimmi
Jeremy Pry: @jpry
Owen Winkler: @ringmaster (for giving
me a ride to the meetup)
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
6. What is Sass?
• Kind of like CSS for CSS
• Very powerful: like CSS
on the sort of steroids
that would frighten even
Lance Armstrong
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
7. Why Sass?
• Improve workflows – make it easier
on yourself
• Improve efficiencies – build websites
faster
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
8. For a Designer: The Tools
• Working on a Mac
• Code editor: Sublime Text 2
• Codekit to compile the Sass
• A clean, local WordPress install using
MAMP
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
12. Configure Sublime Text 2
STEP 1: https://sublime.wbond.net/
installation
STEP 2: https://github.com/nathos/
sass-textmate-bundle
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
13. Organizing Your Sass Files
• Partials – the different sub-files that
are compiled into a single CSS file
• @import – the code used to
determine the order in which the
partials are compiled in the output
CSS
@liamdempsey
Philly ‘burbs WordPress Meetup: March 2014
28. Mixins + Placeholders
• A mixin lets you make groups of CSS
declarations that you want to reuse
throughout your site.
• Functions that drop CSS content
instead of returning a value.
Philly ‘burbs WordPress Meetup: March 2014
@liamdempsey
30. Mixins + Placeholders
• A placeholder is like a @mixin except
that it does not allow for variables
• Placeholder selectors look like class
and id selectors, except the # or . is
replaced by %.
Philly ‘burbs WordPress Meetup: March 2014
@liamdempsey