CSS can become messy
• Many site sections
home, landings, products, etc.!
• Many page sections
header, footer, main, etc.!
• Many devices
desktop, tablet, smartphone, etc.!
• Many screen resolutions!
• Many colors, fonts, helpers, etc.
CSS can become messy
• Not a unique author!
• Not a unique coding style
CSS can become looong
• long CSS file vs split CSS file
we could split the code into more CSS files,
but it would result in less performing websites
(more HTTP requests)!
• long CSS file vs code readability
code is less readable if files are very long, especially
when you first look to someone else's code
CSS can be repetitive
• Sandboxed rules!
article header {...}
article h1 {...}
article p {...}
article footer {...}
article .author {...}!
• Rules that share styles!
button { background-color: #BADA55 }
a { color: #BADA55 }
body { border-bottom: 5px solid #BADA55 }
CSS is not a complete
language
• No variables (yet)!
• No extensibility!
• No math (yet)!
• Just a few functions (rgb, rgba, ...)
Click on the file name:line to
view the CSS file inspector
to get the original SASS/SCSS
file name and line
1. IT'S EASY TO DEBUG!
Inspect the element you
want to debug
to get the CSS rules in
the inspector
2. IT'S LOADED WITH
LOTS OF HELPERS &
PATTERNS
CSS3,Typography, Utilities (Reset,
Clearfix), Sticky Footer, and more
You just add the images, it
generates the sprite + gives you a
helper to use your images
3. IT MAKES CSS SPRITES
HOW TO SETUP
• in terminal / command prompt
go to your project folder
cd {your/project/path}!
• create the scaffolding
compass install compass!
• start watching changes / creating CSS
compass watch
HOW TO START
• SCSS format is CSS compliant!
• You can start writing SCSS as if you were
writing CSS / Rename your CSS files in
SCSS!
• Start using variables and nesting!
• Organize your CSS code in partials!
• Do more complex things using mixins, etc.
SOME ADVICE
• Keep in mind that you’re still writing CSS,
always figure how your CSS will become!
• Avoid unnecessary nesting
(a maximum of 3 levels is often enough)!
• In continuous integration environments,
always run compass clean before compass
compile (especially if you use branches)
GIVE IT A TRY !
• It takes no more than 30 minutes to be
installed and learned!
• It's used by more and more front-end
developers and companies!
• It would improve your technical skills