Liam Dempsey gave a presentation on Sass (Syntactically Awesome Style Sheets) at the Philadelphia WordPress Meetup in February 2014. He discussed what Sass is, why designers should use it, and how to set up a local development environment with Sass. He covered basic Sass features like variables, nesting, extends, mixins and more. The goal was to help designers get started with Sass and remove fears about using it.
3. What Weâll Cover
â˘âŻ The WHAT and WHY of Sass
â˘âŻ Tweak local development setup for
Sass (on a Mac)
â˘âŻ Basic elements of Sass
Philadelphia WordPress Meetup: February 2014
@liamdempsey
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
Philadelphia WordPress Meetup: February 2014
@liamdempsey
5. Hat Tips
Ngaire Ackerley: @ngaireackerley
Tracy Levesque: @liljimmi
Jeremy Pry: @jeremypry
Brad, Doug and Reed: @williamsba,
@zamoose and @tangofoxtrot
Philadelphia WordPress Meetup: February 2014
@liamdempsey
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
Philadelphia WordPress Meetup: February 2014
@liamdempsey
7. Why Sass?
â˘âŻ Improve workďŹows â make it easier
on yourself
â˘âŻ Improve eďŹciencies â build websites
faster
Philadelphia WordPress Meetup: February 2014
@liamdempsey
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
Philadelphia WordPress Meetup: February 2014
@liamdempsey
12. ConďŹgure Sublime Text 2
STEP 1: https://sublime.wbond.net/
installation
STEP 2: https://github.com/nathos/
sass-textmate-bundle
Philadelphia WordPress Meetup: February 2014
@liamdempsey
13. Organizing Your Sass Files
â˘âŻ Partials â the diďŹerent sub-ďŹles that
are compiled into a single CSS ďŹle
â˘âŻ @import â the code used to deter the
order in which the partials are
compiled in the output CSS
Philadelphia WordPress Meetup: February 2014
@liamdempsey
18. Grab a Normalize.scss
â˘âŻ Preserves useful defaults
â˘âŻ Normalizes styles for a wide range of
elements.
â˘âŻ Corrects bugs + common browser
inconsistencies
â˘âŻ Code online at: https://github.com/
kristerkari/normalize.scss
Philadelphia WordPress Meetup: February 2014
@liamdempsey
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.
Philadelphia WordPress Meetup: February 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 %.
Philadelphia WordPress Meetup: February 2014
@liamdempsey