O'Reilly logo

Less Web Development Essentials by Bass Jobsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Migrating your project

With the different import rules, you can start using Less in your project without having to change your code. After importing your CSS, you can start defining variables and using mixins step by step. Always check the output of your new code before you start using it for production.

Tip

Please remember that style guides can help you manage the migration of your project, and also don't forget that you have to compile your Less on the server side into CSS code before using it in production.

Organizing your files

Try to organize your files in the same way as in the preceding examples. Create separate files for your project's variables and mixins. If your project defined a style sheet in project.css earlier, your main Less file can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required