Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Sass and Compass Designer's Cookbook

You're reading from   Sass and Compass Designer's Cookbook Over 120 practical and easy-to-understand recipes that explain how to use Sass and Compass to write efficient, maintainable, and reusable CSS code for your web development projects

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher Packt
ISBN-13 9781783286935
Length 436 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Bass Jobsen Bass Jobsen
Author Profile Icon Bass Jobsen
Bass Jobsen
Stuart Robson Stuart Robson
Author Profile Icon Stuart Robson
Stuart Robson
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Getting Started with Sass FREE CHAPTER 2. Debugging Your Code 3. Variables, Mixins, and Functions 4. Nested Selectors and Modular CSS 5. Built-in Functions 6. Using Compass 7. Cross-Browser CSS3 Mixins 8. Advanced Sass Coding 9. Building Layouts with Sass 10. Building Grid-based Layouts with Susy and Sass 11. Foundation and Sass 12. Bootstrap and Sass 13. Meeting the Bourbon Family 14. Ruby on Rails and Sass 15. Building Mobile Apps 16. Setting up a Build Chain with Grunt Index

Preface

Sass (Syntactically Awesome Stylesheets) is a CSS extension language or preprocessor, which means that Sass or SCSS code compiles into static CSS code. Sass changes the way you write and maintain your CSS code; the final CSS code will be the same, although better organized in many situations.

Since the introduction of CSS3 in 2012, the role of CSS in modern web development has become more and more important. Nowadays, CSS3 is not only used to style your HTML documents, but it also plays an important role in the responsibility of your designs too. Last, but not least, CSS3 extends CSS with features such as animations and transitions.

Writing correct functional CSS code will be the first thing; keeping this code readable, working on all major browsers, and maintainable will be the second. CSS files grow and become untidy in the development and maintenance processes. CSS doesn't have the ability to modify existing values or reuse common styles. Also, doing the math or defining variables is not possible in CSS. This is where the Sass language comes into the frame.

The Sass language enables you to write your CSS code DRY (Do not Repeat Yourself) because it extends the CSS syntax with variables, mixins, functions, and many other techniques. Sass makes the CSS language is more maintainable, themeable, and extendable.

Also, others know the power of Sass. Projects such as Bootstrap 4 and the Foundation are built with Sass. These projects create clear and extendable Frameworks with Sass. Bootstrap chose Sass because of the increasingly large community of Sass developers. You can't ignore these proofs. Stop writing cumbersome CSS with bugs and browser defects and learn Sass by reading this book.

In this book, you will learn to write, compile, and understand the Sass language. It helps with faster and more cost-effective web development. You will get practical tips to integrate Sass in your current and new projects. After reading this book, you will write clear and readable CSS3 with Sass. Instead of spending your time debugging your complex CSS code for a specific device or browser, you could pay more attention to your real design tasks.

Your clients will be happy with your advanced and stable designs. Development and maintenance time, and therefore costs, shall decrease.

Sass is available for use and modification under the MIT License. You can use Sass free of charge.

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image