Intro to Sass for WordPress Developers

Suzette Franck
Suzette FranckFreelance Web Professional um Suzette.Pro
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
1 von 47

Recomendados

How to use CSS3 in WordPress - Sacramento von
How to use CSS3 in WordPress - SacramentoHow to use CSS3 in WordPress - Sacramento
How to use CSS3 in WordPress - SacramentoSuzette Franck
1.3K views42 Folien
How to use CSS3 in WordPress von
How to use CSS3 in WordPressHow to use CSS3 in WordPress
How to use CSS3 in WordPressSuzette Franck
6.1K views39 Folien
Haml And Sass In 15 Minutes von
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 MinutesPatrick Crowley
18.6K views72 Folien
Efficient, maintainable CSS von
Efficient, maintainable CSSEfficient, maintainable CSS
Efficient, maintainable CSSRuss Weakley
41.3K views24 Folien
Sass: The Future of Stylesheets von
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheetschriseppstein
36.2K views93 Folien
Front End Best Practices von
Front End Best PracticesFront End Best Practices
Front End Best PracticesHolger Bartel
13.5K views99 Folien

Más contenido relacionado

Was ist angesagt?

Intro to css & sass von
Intro to css & sassIntro to css & sass
Intro to css & sassSean Wolfe
3K views212 Folien
CSS Systems von
CSS SystemsCSS Systems
CSS SystemsNatalie Downe
91.8K views78 Folien
Less css von
Less cssLess css
Less cssBill Chea
2K views12 Folien
CSS For Backend Developers von
CSS For Backend DevelopersCSS For Backend Developers
CSS For Backend Developers10Clouds
1.5K views60 Folien
CSS Best practice von
CSS Best practiceCSS Best practice
CSS Best practiceRuss Weakley
7.2K views30 Folien
6 Steps to Make Your CSS Code More Maintainable von
6 Steps to Make Your CSS Code More Maintainable6 Steps to Make Your CSS Code More Maintainable
6 Steps to Make Your CSS Code More Maintainable10Clouds
7.8K views23 Folien

Was ist angesagt?(20)

Intro to css & sass von Sean Wolfe
Intro to css & sassIntro to css & sass
Intro to css & sass
Sean Wolfe3K views
CSS For Backend Developers von 10Clouds
CSS For Backend DevelopersCSS For Backend Developers
CSS For Backend Developers
10Clouds1.5K views
6 Steps to Make Your CSS Code More Maintainable von 10Clouds
6 Steps to Make Your CSS Code More Maintainable6 Steps to Make Your CSS Code More Maintainable
6 Steps to Make Your CSS Code More Maintainable
10Clouds7.8K views
Spectrum 2015 going online with style - an intro to css von Neil Perlin
Spectrum 2015   going online with style - an intro to cssSpectrum 2015   going online with style - an intro to css
Spectrum 2015 going online with style - an intro to css
Neil Perlin679 views
Organize Your Website With Advanced CSS Tricks von Andolasoft Inc
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc87 views
Css best practices style guide and tips von Chris Love
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
Chris Love1.5K views
Front End Tooling and Performance - Codeaholics HK 2015 von Holger Bartel
Front End Tooling and Performance - Codeaholics HK 2015Front End Tooling and Performance - Codeaholics HK 2015
Front End Tooling and Performance - Codeaholics HK 2015
Holger Bartel1.5K views
Basics of Front End Web Dev PowerPoint von Sahil Gandhi
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
Sahil Gandhi1.4K views
How to dominate a free theme WCTO 2014 von James Strang
How to dominate a free theme WCTO 2014How to dominate a free theme WCTO 2014
How to dominate a free theme WCTO 2014
James Strang569 views
From PSD to WordPress Theme: Bringing designs to life von Derek Christensen
From PSD to WordPress Theme: Bringing designs to lifeFrom PSD to WordPress Theme: Bringing designs to life
From PSD to WordPress Theme: Bringing designs to life
Links and Navigation von sdireland
Links and NavigationLinks and Navigation
Links and Navigation
sdireland1K views
Visualizing The Code von sdireland
Visualizing The CodeVisualizing The Code
Visualizing The Code
sdireland1.7K views
Web standards pragmatism - from validation to the real world / Web Developers... von Patrick Lauke
Web standards pragmatism - from validation to the real world / Web Developers...Web standards pragmatism - from validation to the real world / Web Developers...
Web standards pragmatism - from validation to the real world / Web Developers...
Patrick Lauke123 views
How to manage a big scale HTML/CSS project von Renoir Boulanger
How to manage a big scale HTML/CSS projectHow to manage a big scale HTML/CSS project
How to manage a big scale HTML/CSS project
Renoir Boulanger4.1K views

Similar a Intro to Sass for WordPress Developers

Bliblidotcom - SASS Introduction von
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionIrfan Maulana
977 views28 Folien
Authoring Stylesheets with Compass & Sass von
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sasschriseppstein
5K views59 Folien
Sass:-Syntactically Awesome Stylesheet by Shafeeq von
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqDignitasDigital1
629 views15 Folien
UNIT 3.ppt von
UNIT 3.pptUNIT 3.ppt
UNIT 3.pptkavi806657
11 views99 Folien
The World of Stylesheet Languages von
The World of Stylesheet LanguagesThe World of Stylesheet Languages
The World of Stylesheet LanguagesAndrea Tino
479 views11 Folien
Getting SASSy with front end development von
Getting SASSy with front end developmentGetting SASSy with front end development
Getting SASSy with front end developmentMatthew Carleton
1.1K views49 Folien

Similar a Intro to Sass for WordPress Developers(20)

Bliblidotcom - SASS Introduction von Irfan Maulana
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS Introduction
Irfan Maulana977 views
Authoring Stylesheets with Compass & Sass von chriseppstein
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
chriseppstein5K views
Sass:-Syntactically Awesome Stylesheet by Shafeeq von DignitasDigital1
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
DignitasDigital1629 views
The World of Stylesheet Languages von Andrea Tino
The World of Stylesheet LanguagesThe World of Stylesheet Languages
The World of Stylesheet Languages
Andrea Tino479 views
Getting SASSy with front end development von Matthew Carleton
Getting SASSy with front end developmentGetting SASSy with front end development
Getting SASSy with front end development
Matthew Carleton1.1K views
Syntactically awesome stylesheets (Sass) von Tahmina Khatoon
Syntactically awesome stylesheets (Sass)Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)
Tahmina Khatoon2.5K views
Sass that CSS von Trish Ang
Sass that CSSSass that CSS
Sass that CSS
Trish Ang1K views
Using Sass in Your WordPress Projects von Jeremy Green
Using Sass in Your WordPress ProjectsUsing Sass in Your WordPress Projects
Using Sass in Your WordPress Projects
Jeremy Green2.1K views
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today! von Stefan Bauer
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Stefan Bauer944 views
Why are we using Sass to create Grid Frameworks? von sharjeet
Why are we using Sass to create Grid Frameworks?Why are we using Sass to create Grid Frameworks?
Why are we using Sass to create Grid Frameworks?
sharjeet243 views
Fasten RWD Development with Sass von Sven Wolfermann
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with Sass
Sven Wolfermann5.2K views
Introducing grunt, npm and sass von priyanka1452
Introducing grunt, npm and sassIntroducing grunt, npm and sass
Introducing grunt, npm and sass
priyanka1452274 views
Deep dive into sass von Knoldus Inc.
Deep dive into sassDeep dive into sass
Deep dive into sass
Knoldus Inc.1.6K views

Más de Suzette Franck

WCOC Plugin Palooza Entry: WP Art Store von
WCOC Plugin Palooza Entry: WP Art StoreWCOC Plugin Palooza Entry: WP Art Store
WCOC Plugin Palooza Entry: WP Art StoreSuzette Franck
1.2K views13 Folien
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015 von
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015Suzette Franck
2.3K views24 Folien
GDI - Intro to WordPress von
GDI - Intro to WordPressGDI - Intro to WordPress
GDI - Intro to WordPressSuzette Franck
937 views60 Folien
Introduction to Backups and Security von
Introduction to Backups and SecurityIntroduction to Backups and Security
Introduction to Backups and SecuritySuzette Franck
405 views25 Folien
WP Super Cache - Topanga WordPress Meetup von
WP Super Cache - Topanga WordPress MeetupWP Super Cache - Topanga WordPress Meetup
WP Super Cache - Topanga WordPress MeetupSuzette Franck
674 views29 Folien
Buddypress Pasadena Meetup von
Buddypress Pasadena MeetupBuddypress Pasadena Meetup
Buddypress Pasadena MeetupSuzette Franck
991 views16 Folien

Más de Suzette Franck(10)

WCOC Plugin Palooza Entry: WP Art Store von Suzette Franck
WCOC Plugin Palooza Entry: WP Art StoreWCOC Plugin Palooza Entry: WP Art Store
WCOC Plugin Palooza Entry: WP Art Store
Suzette Franck1.2K views
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015 von Suzette Franck
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
Suzette Franck2.3K views
Introduction to Backups and Security von Suzette Franck
Introduction to Backups and SecurityIntroduction to Backups and Security
Introduction to Backups and Security
Suzette Franck405 views
WP Super Cache - Topanga WordPress Meetup von Suzette Franck
WP Super Cache - Topanga WordPress MeetupWP Super Cache - Topanga WordPress Meetup
WP Super Cache - Topanga WordPress Meetup
Suzette Franck674 views
Design Best Practices for WordPress von Suzette Franck
Design Best Practices for WordPressDesign Best Practices for WordPress
Design Best Practices for WordPress
Suzette Franck1.3K views

Último

Web Dev - 1 PPT.pdf von
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdfgdsczhcet
55 views45 Folien
Uni Systems for Power Platform.pptx von
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
50 views21 Folien
DALI Basics Course 2023 von
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023Ivory Egg
14 views12 Folien
Unit 1_Lecture 2_Physical Design of IoT.pdf von
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdfStephenTec
11 views36 Folien
Perth MeetUp November 2023 von
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023 Michael Price
15 views44 Folien
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors von
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensorssugiuralab
15 views15 Folien

Último(20)

Web Dev - 1 PPT.pdf von gdsczhcet
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet55 views
DALI Basics Course 2023 von Ivory Egg
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023
Ivory Egg14 views
Unit 1_Lecture 2_Physical Design of IoT.pdf von StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec11 views
Perth MeetUp November 2023 von Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors von sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab15 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 von IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
Special_edition_innovator_2023.pdf von WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2216 views
STPI OctaNE CoE Brochure.pdf von madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb12 views
Spesifikasi Lengkap ASUS Vivobook Go 14 von Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 views
Transcript: The Details of Description Techniques tips and tangents on altern... von BookNet Canada
Transcript: The Details of Description Techniques tips and tangents on altern...Transcript: The Details of Description Techniques tips and tangents on altern...
Transcript: The Details of Description Techniques tips and tangents on altern...
BookNet Canada130 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... von Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker26 views

Intro to Sass for WordPress Developers

  • 1. Intro to Sass for WordPress Theme Developers WordCamp Salt Lake City 2015 by Suzette Franck
  • 2. 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
  • 3. My Goal Teach you at least one thing you can put into practice right away
  • 4. by Dan Cederholm Sass For Web Designers
  • 5. What is Sass? Syntactically Awesome Style Sheets “Sass” not SASS & not S.A.S.S.
  • 7. 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
  • 8. “Getting Started with Sass and Compass” thesassway.com/beginner/
 getting-started-with-sass-and-compass by Adam Stacoviak
  • 10. 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
  • 11. 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
  • 12. 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

  • 13. Different Output Styles Expanded, Nested, Compact, Compressed Preference can be specified in your config.rb
  • 15. Rename your .css file with an .scss extension to get started Are Sass Files Hard to Create?
  • 16. 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
  • 17. Will it affect my workflow? After initial setup, development is easier than before
  • 18. 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!
  • 19. “Underscores” WordPress Theme by Automattic http://underscores.me/
  • 20. “Heisenberg” WordPress Theme by Zeek Interactive https://github.com/ ZeekInteractive/heisenberg
  • 21. “Some Like it Neat” WordPress Theme by DigiSavvy https://github.com/digisavvy/ some-like-it-neat
  • 22. “WD_S” WordPress Theme by WebDevStudios https://github.com/ webdevstudios/wd_s
  • 23. “Roll Your Own” by You! Simplest most obvious solution is best Share your hard work on Github
  • 24. Alrighty… Ready for some .SCSS Sassy CSS Code?
  • 25. Alrighty… Ready for some .SCSS Sassy CSS Code?
  • 27. _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!
  • 28. Working with Partials in Sublime
  • 29. @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
  • 31. 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

  • 34. $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)

  • 36. @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

  • 39. 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
  • 44. So… Who is going to experiment with Sass?
  • 45. Thank you to SiteGround! Highly Recommended Web Hosting for WordPress
  • 46. Q & A Any Questions?
  • 47. Thank you for being here! Suzette Franck Twitter: @suzette_franck
 linkedin & speakerdeck & slideshare