Book Image

Learning less.js

Book Image

Learning less.js

Overview of this book

Table of Contents (22 chapters)
Learning Less.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Migrating Your Site to Less

So, by now, you've hopefully spent some time using Less and are thinking that this could be really useful for your projects going forward, right?

The trouble is you'll also probably be thinking of existing projects that could easily benefit by using Less, but you're not sure how to go about converting them to use Less. No problem; in this chapter, I will take you through some of the tips and tricks of how to make this transition to use Less, without risking everything.

We'll start by taking a look at the kind of questions we need to ask ourselves and then move on to creating the basic framework that we'll use when beginning the conversion, going through a detailed example of converting a mini website to use Less.

The key to conversion is to remember that Less is, after all, just a superset of CSS—most of the work is about identifying those parts that can be changed easily and those that might require more work. In this chapter, we'll cover the following...