SlideShare a Scribd company logo
1 of 29
Revamp Your
Stylesheets
Gary Homidas
UX Designer and Front-end Developer
mail@ghomidas.com
What’s the
point?
The beauty of it all. You can write standard CSS and begin to use the features of
the preprocessor as you work. Your code will become more complex as your
knowledge grows.
It is a time saver…. seriously!
• What’s wrong with your CSS?
• Learn the fundamentals
• Play with Code
• 3rd Party Tools
Online Editors:
• LESS: http://lesscss.org/less-preview/
• SASS: http://www.sasseditor.xyz/
Objectives
What’s wrong
with your CSS?
 She becomes too high maintenance (updating colors, images,
fonts, etc.)
 Redundant selectors
 Lengthier document
 Vendor prefixes
Similarities between LESS and SASS
∎Variables
∎Mixins
∎Nesting
∎Functions
∎Import
∎Conditional / Comparison Operators
∎Loops
∎3rd Party Tools
Learning the
Fundamentals
Variables
a + 4 = 7When a = 3
Just like you’ve learned in school!
• Makes reusing code easy
• Can be treated like a variable or function.
• Can include CSS selectors and their attributes (nested
Classes/ID's)
• Great way to print different attributes based on a situation
Blending things together
Mixins
• Pass arguments and include conditional statements and loops
• Accept “named parameters” (LESS) or “keyword Arguments”
(SASS) where you can explicitly designate which argument to
satisfy
• LESS allows you to declare multiple mixins with the same name
and accepting different number of arguments
Mixins
∎ Allows coder to visualize the selector’s
hierarchy
∎ Minimizes scrolling throughout the file and
reduces the size of your CSS file
Nesting
The key here is “program” with
flexibility in mind
∎Pass values to your mixin/function for a more of dynamic stylesheet
∎LESS uses mixins as functions
∎SASS can use either mixins or actual functions
∎Both can be used to return a value
Functions
“Program” with flexibility in mind
∎LESS returns values by assigning the results into a variable
∎SASS has the “return” keyword
∎SASS function returns single value of any SASS data type, including:
numbers, strings, colors, booleans, or lists.
Functions
∎Allows the author to include other stylesheets into project.
∎Compartmentalize your styles while reducing http requests
∎Both will merge files with their respective file extension into a single
CSS
file.
∎Both treat files with the CSS extension as a normal CSS import
Import
 LESS Exception: You can import a CSS file directly into the LESS
file using the @import (inline) directive (one http request). See
Examples
 SASS allows you to import multiple files w/ one import
 SASS: some circumstances where the traditional import will be
used are as follows: If the @import has any media queries, url, and
others
Import
CONDITIONAL STATEMENTS
Only add specific styles under certain
situations. For example, if a statement
is true, execute a code.
COMPARRISON OPERATORS
Compare arguments and execute code
based on the items. For example, when
a text color is dark, change to a light
background color
Logical Operators
 LESS calls them “Mixin Guards”
 LESS tries to stick to the declarative nature of CSS
 Uses “when” to compare
 Traditional comparison operators: >, >=, =, =<, <, true (doesn’t use
false)
 Other keywords: ‘AND’, ‘isnumber’, ‘not’
Logical Operators
- LESS
 Traditional programming conditional and comparative statements;
@if, @else, and, or, not
>, >=, =, =<, <,
Note: and, or, not are written verbatim.
 Boolean values: True or False
Logical Operators
- SASS
Work smarter
not harder.
Effectively using loops
 Repeat parts of your code.
 Create column grids
 Create new CSS selectors
 LESS: recursive mixins (mixins can “call” themselves)
 SASS: resemble traditional programming keywords
@for, @each, @while,
Loops
Let the computer handle redundancy
3’rd Party
Tools
Let someone else do
the heavy lifting
3’rd Party
Tools
∎Allow automatic vender prefix update via Can I Use
∎Extensive Mixin library with documentation
∎Helper Functions
∎Generate Image Sprites
∎Asset urls (i.e.. http_path, image-url, etc.)
∎Typography (vertical rhythm)
Sass Supporters: Compass
3’rd Party
Tools
∎Very Lightweight with tons of mixins
∎Simpler font-face declarations
∎Helpers aka (Add-ons)
∎Timing Functions
Sass Supporters: Bourbon
3’rd Party
Tools
∎Cross-browser CSS-prefix
∎Automatic LESS updater
∎Easy Drag-n-Drop project setup
∎Inconsistent debugger
LESS Supporters: SimpLESS
3’rd Party
Tools
∎Easy to use
∎Automatically watch your LESS files after the first crunch!
∎Comes standard with an IDE (only uses HTML, CSS, JS, PHP,
LESS)
∎Debugger (informs you of where errors are but not too detailed
on why
it’s an error.
□I.e.. passing too many arguments to a mixin: it will say “runtime”
LESS Supporters: Crunch 2
(Free version)
3’rd Party
Tools
∎Easy Drag-n-Drop project setup
∎Use globally installed less (instead of what’s bundled with
WinLESS)
∎Automatically compile LESS files on change.
∎Debugging is easier with more descriptive error messages
LESS Supporters: WinLESS
3’rd Party
Tools
∎Comprehensive Mixin libraries with 86 Mixins
∎Unlimited number of shadows, gradients, animations, etc.
∎Well documented with real code examples
∎Animations uses cubic-bezier timing functions
LESS Supporters: LESS Hat
3’rd Party
Tools
∎Codekit (Mac only)
∎Koala
Dual Supporters
Check Them
Out
∎Scott Kellum Color-Schemer:
https://github.com/at-import/color-schemer
∎Sass Bites (YouTube)
∎Scott Level Up Tuts
http://leveluptuts.com/
THANKS!Any questions?
Linkedin:gary homidas
Email: mail@ghomidas.com

More Related Content

What's hot

What's hot (15)

LESS CSS
LESS CSSLESS CSS
LESS CSS
 
Less presentation
Less presentationLess presentation
Less presentation
 
Advanced sass
Advanced sassAdvanced sass
Advanced sass
 
Basic Website 101
Basic Website 101Basic Website 101
Basic Website 101
 
Trivadis TechEvent 2017 Tools and Methods for DB Migrations by Kim Berg Hansen
Trivadis TechEvent 2017 Tools and Methods for DB Migrations by Kim Berg HansenTrivadis TechEvent 2017 Tools and Methods for DB Migrations by Kim Berg Hansen
Trivadis TechEvent 2017 Tools and Methods for DB Migrations by Kim Berg Hansen
 
Sass installation
Sass installationSass installation
Sass installation
 
Sass - basic to advance
Sass  - basic to advanceSass  - basic to advance
Sass - basic to advance
 
Web Languages
Web LanguagesWeb Languages
Web Languages
 
First steps to Azure Cosmos DB: Getting Started with MongoDB and NoSQL
First steps to Azure Cosmos DB: Getting Started with MongoDB and NoSQLFirst steps to Azure Cosmos DB: Getting Started with MongoDB and NoSQL
First steps to Azure Cosmos DB: Getting Started with MongoDB and NoSQL
 
Introduction to sass
Introduction to sassIntroduction to sass
Introduction to sass
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Analyzing Large-Scale User Data with Hadoop and HBase
Analyzing Large-Scale User Data with Hadoop and HBaseAnalyzing Large-Scale User Data with Hadoop and HBase
Analyzing Large-Scale User Data with Hadoop and HBase
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
 
MySQL 101
MySQL 101MySQL 101
MySQL 101
 
Conhecendo o Apache HBase
Conhecendo o Apache HBaseConhecendo o Apache HBase
Conhecendo o Apache HBase
 

Viewers also liked

We’re All UX: Designing a Whole Company Design Team - Giant Conf 2014
We’re All UX:  Designing a Whole Company Design Team - Giant Conf 2014We’re All UX:  Designing a Whole Company Design Team - Giant Conf 2014
We’re All UX: Designing a Whole Company Design Team - Giant Conf 2014
Phillip Hunter
 
Importance of Wireframes in Web Design
Importance of Wireframes in Web DesignImportance of Wireframes in Web Design
Importance of Wireframes in Web Design
Hitesh Mehta
 

Viewers also liked (20)

Government 2.0: architecting for collaboration
Government 2.0: architecting for collaborationGovernment 2.0: architecting for collaboration
Government 2.0: architecting for collaboration
 
UX Deliverables for the NCPTSD
UX Deliverables for the NCPTSDUX Deliverables for the NCPTSD
UX Deliverables for the NCPTSD
 
Picking colors for your presentations
Picking colors for your presentationsPicking colors for your presentations
Picking colors for your presentations
 
Website User Experience Analysis
Website User Experience AnalysisWebsite User Experience Analysis
Website User Experience Analysis
 
UX/UI Design : Methodology . Artifacts . Acumen
UX/UI Design : Methodology . Artifacts . AcumenUX/UI Design : Methodology . Artifacts . Acumen
UX/UI Design : Methodology . Artifacts . Acumen
 
UX Deliverables
UX DeliverablesUX Deliverables
UX Deliverables
 
Don’t Just Build Pretty Websites — UX in the Real World
Don’t Just Build Pretty Websites — UX in the Real WorldDon’t Just Build Pretty Websites — UX in the Real World
Don’t Just Build Pretty Websites — UX in the Real World
 
2012.10 Liferay Europe Symposium, Alistair Oldfield
2012.10 Liferay Europe Symposium, Alistair Oldfield2012.10 Liferay Europe Symposium, Alistair Oldfield
2012.10 Liferay Europe Symposium, Alistair Oldfield
 
We’re All UX: Designing a Whole Company Design Team - Giant Conf 2014
We’re All UX:  Designing a Whole Company Design Team - Giant Conf 2014We’re All UX:  Designing a Whole Company Design Team - Giant Conf 2014
We’re All UX: Designing a Whole Company Design Team - Giant Conf 2014
 
UX Design Deliverables: Expert's Choice
UX Design Deliverables: Expert's ChoiceUX Design Deliverables: Expert's Choice
UX Design Deliverables: Expert's Choice
 
More Elements of UX: real-world design deliverables
More Elements of UX: real-world design deliverablesMore Elements of UX: real-world design deliverables
More Elements of UX: real-world design deliverables
 
From User Experience to Citizen Experience
From User Experience to Citizen ExperienceFrom User Experience to Citizen Experience
From User Experience to Citizen Experience
 
UX Project Starter Kit
UX Project Starter KitUX Project Starter Kit
UX Project Starter Kit
 
Pixelate 2006-10 Evaluation Report Final
Pixelate 2006-10 Evaluation Report FinalPixelate 2006-10 Evaluation Report Final
Pixelate 2006-10 Evaluation Report Final
 
Designing Government: Transforming the Citizen Experience
Designing Government: Transforming the Citizen ExperienceDesigning Government: Transforming the Citizen Experience
Designing Government: Transforming the Citizen Experience
 
Liferay Digital Experience (DXP): Redefining customers experience
Liferay Digital Experience (DXP): Redefining customers experienceLiferay Digital Experience (DXP): Redefining customers experience
Liferay Digital Experience (DXP): Redefining customers experience
 
Importance of Wireframes in Web Design
Importance of Wireframes in Web DesignImportance of Wireframes in Web Design
Importance of Wireframes in Web Design
 
Citizen Experience Design, UX Lisbon
Citizen Experience Design, UX LisbonCitizen Experience Design, UX Lisbon
Citizen Experience Design, UX Lisbon
 
Case study: UX Methodology Design for Public E-services in Lithuania
Case study: UX Methodology Design for Public E-services in LithuaniaCase study: UX Methodology Design for Public E-services in Lithuania
Case study: UX Methodology Design for Public E-services in Lithuania
 
Introduction to Alfresco Activiti BPM
Introduction to Alfresco Activiti BPMIntroduction to Alfresco Activiti BPM
Introduction to Alfresco Activiti BPM
 

Similar to Revamp Your Stylesheet

CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
Zohar Arad
 
The sass way - Yatendra Bhardwaj
The sass way - Yatendra BhardwajThe sass way - Yatendra Bhardwaj
The sass way - Yatendra Bhardwaj
Yatendra Bhardwaj
 

Similar to Revamp Your Stylesheet (20)

Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS Implementation
 
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.ppt
 
An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS Frameworks
 
Bliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS Introduction
 
Web technology
Web technologyWeb technology
Web technology
 
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)
 
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!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress Developers
 
Client side performance compromises worth making
Client side performance compromises worth makingClient side performance compromises worth making
Client side performance compromises worth making
 
Styling your projects! leveraging css and r sass in r projects
Styling your projects! leveraging css and r sass in r projectsStyling your projects! leveraging css and r sass in r projects
Styling your projects! leveraging css and r sass in r projects
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Roadmap 01
Roadmap 01Roadmap 01
Roadmap 01
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.
 
Stop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS MunichStop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS Munich
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
The sass way - Yatendra Bhardwaj
The sass way - Yatendra BhardwajThe sass way - Yatendra Bhardwaj
The sass way - Yatendra Bhardwaj
 
European SharePoint Webinar - Make SharePoint Sassy
European SharePoint Webinar - Make SharePoint SassyEuropean SharePoint Webinar - Make SharePoint Sassy
European SharePoint Webinar - Make SharePoint Sassy
 
Less(CSS Pre Processor) Introduction
Less(CSS Pre Processor) IntroductionLess(CSS Pre Processor) Introduction
Less(CSS Pre Processor) Introduction
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Revamp Your Stylesheet

  • 1. Revamp Your Stylesheets Gary Homidas UX Designer and Front-end Developer mail@ghomidas.com
  • 2. What’s the point? The beauty of it all. You can write standard CSS and begin to use the features of the preprocessor as you work. Your code will become more complex as your knowledge grows. It is a time saver…. seriously!
  • 3. • What’s wrong with your CSS? • Learn the fundamentals • Play with Code • 3rd Party Tools Online Editors: • LESS: http://lesscss.org/less-preview/ • SASS: http://www.sasseditor.xyz/ Objectives
  • 4. What’s wrong with your CSS?  She becomes too high maintenance (updating colors, images, fonts, etc.)  Redundant selectors  Lengthier document  Vendor prefixes
  • 5. Similarities between LESS and SASS ∎Variables ∎Mixins ∎Nesting ∎Functions ∎Import ∎Conditional / Comparison Operators ∎Loops ∎3rd Party Tools Learning the Fundamentals
  • 6. Variables a + 4 = 7When a = 3 Just like you’ve learned in school!
  • 7. • Makes reusing code easy • Can be treated like a variable or function. • Can include CSS selectors and their attributes (nested Classes/ID's) • Great way to print different attributes based on a situation Blending things together Mixins
  • 8. • Pass arguments and include conditional statements and loops • Accept “named parameters” (LESS) or “keyword Arguments” (SASS) where you can explicitly designate which argument to satisfy • LESS allows you to declare multiple mixins with the same name and accepting different number of arguments Mixins
  • 9. ∎ Allows coder to visualize the selector’s hierarchy ∎ Minimizes scrolling throughout the file and reduces the size of your CSS file Nesting
  • 10. The key here is “program” with flexibility in mind
  • 11. ∎Pass values to your mixin/function for a more of dynamic stylesheet ∎LESS uses mixins as functions ∎SASS can use either mixins or actual functions ∎Both can be used to return a value Functions “Program” with flexibility in mind
  • 12. ∎LESS returns values by assigning the results into a variable ∎SASS has the “return” keyword ∎SASS function returns single value of any SASS data type, including: numbers, strings, colors, booleans, or lists. Functions
  • 13. ∎Allows the author to include other stylesheets into project. ∎Compartmentalize your styles while reducing http requests ∎Both will merge files with their respective file extension into a single CSS file. ∎Both treat files with the CSS extension as a normal CSS import Import
  • 14.  LESS Exception: You can import a CSS file directly into the LESS file using the @import (inline) directive (one http request). See Examples  SASS allows you to import multiple files w/ one import  SASS: some circumstances where the traditional import will be used are as follows: If the @import has any media queries, url, and others Import
  • 15. CONDITIONAL STATEMENTS Only add specific styles under certain situations. For example, if a statement is true, execute a code. COMPARRISON OPERATORS Compare arguments and execute code based on the items. For example, when a text color is dark, change to a light background color Logical Operators
  • 16.  LESS calls them “Mixin Guards”  LESS tries to stick to the declarative nature of CSS  Uses “when” to compare  Traditional comparison operators: >, >=, =, =<, <, true (doesn’t use false)  Other keywords: ‘AND’, ‘isnumber’, ‘not’ Logical Operators - LESS
  • 17.  Traditional programming conditional and comparative statements; @if, @else, and, or, not >, >=, =, =<, <, Note: and, or, not are written verbatim.  Boolean values: True or False Logical Operators - SASS
  • 19.  Repeat parts of your code.  Create column grids  Create new CSS selectors  LESS: recursive mixins (mixins can “call” themselves)  SASS: resemble traditional programming keywords @for, @each, @while, Loops Let the computer handle redundancy
  • 20. 3’rd Party Tools Let someone else do the heavy lifting
  • 21. 3’rd Party Tools ∎Allow automatic vender prefix update via Can I Use ∎Extensive Mixin library with documentation ∎Helper Functions ∎Generate Image Sprites ∎Asset urls (i.e.. http_path, image-url, etc.) ∎Typography (vertical rhythm) Sass Supporters: Compass
  • 22. 3’rd Party Tools ∎Very Lightweight with tons of mixins ∎Simpler font-face declarations ∎Helpers aka (Add-ons) ∎Timing Functions Sass Supporters: Bourbon
  • 23. 3’rd Party Tools ∎Cross-browser CSS-prefix ∎Automatic LESS updater ∎Easy Drag-n-Drop project setup ∎Inconsistent debugger LESS Supporters: SimpLESS
  • 24. 3’rd Party Tools ∎Easy to use ∎Automatically watch your LESS files after the first crunch! ∎Comes standard with an IDE (only uses HTML, CSS, JS, PHP, LESS) ∎Debugger (informs you of where errors are but not too detailed on why it’s an error. □I.e.. passing too many arguments to a mixin: it will say “runtime” LESS Supporters: Crunch 2 (Free version)
  • 25. 3’rd Party Tools ∎Easy Drag-n-Drop project setup ∎Use globally installed less (instead of what’s bundled with WinLESS) ∎Automatically compile LESS files on change. ∎Debugging is easier with more descriptive error messages LESS Supporters: WinLESS
  • 26. 3’rd Party Tools ∎Comprehensive Mixin libraries with 86 Mixins ∎Unlimited number of shadows, gradients, animations, etc. ∎Well documented with real code examples ∎Animations uses cubic-bezier timing functions LESS Supporters: LESS Hat
  • 27. 3’rd Party Tools ∎Codekit (Mac only) ∎Koala Dual Supporters
  • 28. Check Them Out ∎Scott Kellum Color-Schemer: https://github.com/at-import/color-schemer ∎Sass Bites (YouTube) ∎Scott Level Up Tuts http://leveluptuts.com/

Editor's Notes

  1. Thinking back to Mixins You won’t always want to execute the same code for every situation