Using prebuilt mixin libraries

If we've created a number of mixins, we could turn these into a library. However, this may not always be necessary; instead, we can always look for ways to reuse mixins from libraries that are available for download from the Internet.

Why should we use them? There are two good reasons for doing so:

  • We can avoid the need to reinvent the wheel
  • We don't need to worry about the support for, or the updating of, the library—this will be handled by the author, frequently with the help of the open source community at large

There are lots of libraries that are available—they can all be imported using the same @import statement we've already seen in use. We will cover how to use such a library in more detail in the practical example ...

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.