SlideShare a Scribd company logo
Intro to Sass for
WordPress Theme Developers
WordCamp Salt Lake City 2015
by
Suzette Franck
Who I Am
HTML and CSS teacher for Girl Develop It, Los Angeles
Born in Hollywood, resides in So. California
20 Years Coding & Web Development
Developed over 300 WordPress sites
Spoken at 25 WordCamps
Reg. Contributor: WPwatercooler.com
My Goal
Teach you at least one thing you
can put into practice right away
by Dan Cederholm
Sass For Web Designers
What is Sass?
Syntactically Awesome Style Sheets
“Sass” not SASS & not S.A.S.S.
sass-lang.com
Sass on the Web
Sass Basics
Sass is a CSS pre-processor, outputs .CSS from .SCSS file
Sass is a Ruby “Gem” or Application
Gems need to be installed once on your computer
World of pre-made additions (mixins) and other resources
Two flavors: .SCSS (Sassy CSS) & .SASS
.SCSS most closely resembles .CSS in syntax
“Getting Started with Sass and Compass”
thesassway.com/beginner/

getting-started-with-sass-and-compass
by Adam Stacoviak
Sassmeister.com
Try Sass Yourself!
Why is Sass better?
Backwards Compatible with all versions CSS
Fills holes in CSS: variables to represent values
Calculates values: colors, lengths
Bubbles up: Media Queries can be written within their
element
Supports Advanced Logic/if..then, while, else, etc.
Adopted by WordPress Core team & GPL Compatible*
* Reference: http://wptavern.com/wordpress-core-adopts-sass-css-preprocessor
How is Sass 

More Efficient?
When writing code: DRY Don’t Repeat Yourself!
Reduces HTTP requests with multiple stylesheets
@import
Helps you write more advanced code faster
Cleaner, easier to read once you are familiar
Using variables, make site-wide changes in fewer places
Different output styles can be chosen depending on
goals
Different Output Styles
Nested (default)
Expanded (closest to hand-crafted CSS)
Compact (saves space)
Compressed (saves most space, minified)
Output style can be specified in your config.rb

Different Output Styles
Expanded, Nested, Compact, Compressed
Preference can be specified in your config.rb
Example config.rb
Rename your .css file with
an .scss extension to get started
Are Sass Files Hard to Create?
Compiling Your Sass
Issue the “compass watch” command in your project directory
through Terminal or Command Prompt
When you save changes, the .CSS is automatically compiled
Adjust the values in your config.rb file as necessary to get
desired output
Will it affect my workflow?
After initial setup,
development is easier than before
Where Can I Get Sassified
WordPress Starter Themes?
All the cool kids are making starter themes from
Underscores, Sass & different responsive grid systems,
Here’s a few that I like, but feel free to explore!
“Underscores” WordPress Theme
by Automattic
http://underscores.me/
“Heisenberg” WordPress Theme
by Zeek Interactive
https://github.com/
ZeekInteractive/heisenberg
“Some Like it Neat” WordPress Theme
by DigiSavvy
https://github.com/digisavvy/
some-like-it-neat
“WD_S” WordPress Theme
by WebDevStudios
https://github.com/
webdevstudios/wd_s
“Roll Your Own” by You!
Simplest most obvious solution is best
Share your hard work on Github
Alrighty…
Ready for some .SCSS
Sassy CSS Code?
Alrighty…
Ready for some .SCSS
Sassy CSS Code?
Comments in Sass
_partials.scss
Partials are files that exist only as a fragment to be used in
another file
Partials are not complete by themselves, but they help you
modularize your code
Partials can be included in elaborate folder structures
Begins with an _ and end with .scss
Drop your partial folder on Sublime to open the folder - time
saver!
Working with Partials in Sublime
@import
Modularize your CSS into separate pages or partials
Re-use your favorite mixins on all of your projects
Compiled into one .css file at end
Fewer HTTP requests - performance!
Import others’ mixins and use them
@import
Nesting All The Things
Repeated selectors are nested inside curly
braces
& is a placeholder for the parent selector
Namespaces can also be nested, ie font,
background
Compiled CSS will always be more verbose

Nesting Selectors
Nesting Namespaces
$variables
Finally! Variables for CSS!
Declare in your .SCSS file like $name: value;
Call by $name in your CSS
Ability to change variables in one place and use
everywhere
Useful for defining colors in color palette, font
stacks, grid systems
Don’t forget 140 color names in CSS3! (Google it)

$variables
@mixin
Finally! Macros for CSS!
Re-usable blocks of styles
Define with @mixin declaration
Call with @include
Useful for CSS3 Vendor Prefixes
Powerful with arguments
Many pre-made mixins you can use in community
Compass, Bourbon, GitHub, Your Own Library

@mixin
@mixin with Arguments
darken, lighten, adjust-hue, saturate, desaturate,
invert, compliment, etc.
Full list at:

http://sass-lang.com/documentation/Sass/Script/
Functions.html
Hexidecimal # is calculated & output in final CSS

Sass Color Functions
http://sassme.arc90.com/
Sass Color Functions
http://jackiebalzer.com/color
Sass Color Functions
Sass Color Functions
mashable.com/2013/06/11/
sass-compass-tools
Other Resources
So…
Who is going to
experiment with Sass?
Thank you to SiteGround!
Highly Recommended Web
Hosting for WordPress
Q & A
Any Questions?
Thank you for being here!
Suzette Franck
Twitter: @suzette_franck

linkedin & speakerdeck & slideshare

More Related Content

PDF
How to use CSS3 in WordPress - Sacramento
PDF
How to use CSS3 in WordPress
PDF
Haml And Sass In 15 Minutes
PDF
Efficient, maintainable CSS
KEY
Sass: The Future of Stylesheets
PDF
Front End Best Practices
PDF
01 Introduction To CSS
PDF
SMACSS Workshop
How to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress
Haml And Sass In 15 Minutes
Efficient, maintainable CSS
Sass: The Future of Stylesheets
Front End Best Practices
01 Introduction To CSS
SMACSS Workshop

What's hot (20)

PDF
Intro to css & sass
PDF
CSS Systems
PPTX
Less css
PDF
CSS For Backend Developers
PDF
CSS Best practice
PDF
6 Steps to Make Your CSS Code More Maintainable
PDF
CSS Reset
PDF
PPT
Spectrum 2015 going online with style - an intro to css
PDF
Organize Your Website With Advanced CSS Tricks
PPT
Css best practices style guide and tips
PDF
Front End Tooling and Performance - Codeaholics HK 2015
PPTX
Basics of Front End Web Dev PowerPoint
PPTX
How to dominate a free theme WCTO 2014
PPTX
From PSD to WordPress Theme: Bringing designs to life
PDF
Links and Navigation
PDF
[Worskhop Summits] CSS3 Workshop
PDF
Visualizing The Code
PDF
Web standards pragmatism - from validation to the real world / Web Developers...
PPT
How to manage a big scale HTML/CSS project
Intro to css & sass
CSS Systems
Less css
CSS For Backend Developers
CSS Best practice
6 Steps to Make Your CSS Code More Maintainable
CSS Reset
Spectrum 2015 going online with style - an intro to css
Organize Your Website With Advanced CSS Tricks
Css best practices style guide and tips
Front End Tooling and Performance - Codeaholics HK 2015
Basics of Front End Web Dev PowerPoint
How to dominate a free theme WCTO 2014
From PSD to WordPress Theme: Bringing designs to life
Links and Navigation
[Worskhop Summits] CSS3 Workshop
Visualizing The Code
Web standards pragmatism - from validation to the real world / Web Developers...
How to manage a big scale HTML/CSS project
Ad

Similar to Intro to Sass for WordPress Developers (20)

PDF
Css preprocessor-140606115334-phpapp01
PDF
CSS preprocessor: why and how
PPTX
Bliblidotcom - SASS Introduction
PPTX
SCSS Implementation
PPTX
Sass:-Syntactically Awesome Stylesheet by Shafeeq
PPT
UNIT 3.ppt
PDF
Using Sass in Your WordPress Projects
ODP
Deep dive into sass
PPTX
Syntactically awesome stylesheets (Sass)
PPTX
PDF
Fasten RWD Development with Sass
ODP
Sass presentation
PDF
Getting Sassy with CSS
PPTX
The sass way - Yatendra Bhardwaj
PDF
Sass that CSS
PDF
Sass conferencia css-sp
PDF
Sass and compass workshop
PDF
DrupalCamp Chattanooga - September 2014 - Sass 101
PDF
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
PDF
Getting SASSy with front end development
Css preprocessor-140606115334-phpapp01
CSS preprocessor: why and how
Bliblidotcom - SASS Introduction
SCSS Implementation
Sass:-Syntactically Awesome Stylesheet by Shafeeq
UNIT 3.ppt
Using Sass in Your WordPress Projects
Deep dive into sass
Syntactically awesome stylesheets (Sass)
Fasten RWD Development with Sass
Sass presentation
Getting Sassy with CSS
The sass way - Yatendra Bhardwaj
Sass that CSS
Sass conferencia css-sp
Sass and compass workshop
DrupalCamp Chattanooga - September 2014 - Sass 101
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
Getting SASSy with front end development
Ad

More from Suzette Franck (10)

PDF
WCOC Plugin Palooza Entry: WP Art Store
PDF
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
PDF
GDI - Intro to WordPress
PDF
Introduction to Backups and Security
PDF
WP Super Cache - Topanga WordPress Meetup
ODP
Buddypress Pasadena Meetup
ODP
WordPress Security
ODP
Design Best Practices for WordPress
ODP
Jetpack 2.0
PPTX
BuddyPress OCWC 2010
WCOC Plugin Palooza Entry: WP Art Store
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
GDI - Intro to WordPress
Introduction to Backups and Security
WP Super Cache - Topanga WordPress Meetup
Buddypress Pasadena Meetup
WordPress Security
Design Best Practices for WordPress
Jetpack 2.0
BuddyPress OCWC 2010

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology
“AI and Expert System Decision Support & Business Intelligence Systems”
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The AUB Centre for AI in Media Proposal.docx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Intro to Sass for WordPress Developers