Summary

Phew! We've covered a lot in this chapter! Let's recap what we learned.

We kicked off with a look at how to create variables in Less, and with care, we used them to good effect in creating our take on the time-honored Polaroid effect on a series of images. We saw how this can be a real timesaver, by reducing the number of alterations required to code, while at the same time, noting that the scope of variables can be varied, and how this can impact our code.

We then moved on to looking at mixins—both the static and parametric varieties. Here, we saw, with a little forethought, that we could create reusable blocks of code that can be dropped in with ease either within our main Less file or a code library file. We used this technique to iteratively ...

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.