Using external libraries

Until now, we've developed a number of mixins and referenced them from either our main Less file or from a library file that we've created to store a number of our mixins. This is all good, but—hold on for a minute—one of Less' core concepts is DRY or Don't Repeat Yourself. While we are creating these mixin library files, we are (in a sense) repeating what other individuals may have already done, by creating—and publishing—their own solution.

With this in mind, it is worth researching online to see if anyone has already made their own mixin library available for use; there are a number of good libraries you can try, which include:

Get Learning Less.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.