Using Bootstrap as a Mixin Library

June 6, 2014

If you’re already using Less for your custom stylesheets but importing Bootstrap as plain CSS, you’re missing out.

The Bootstrap website doesn’t do a great job of encouraging you to use their source Less files, but it makes it a lot easier to write clean, semantic markup.

Getting it setup in your project is also really simple, and if you do it right, you can actually get a nice reduction in file size.

Read the rest of this post »

Extend vs. Mixins in Less

May 27, 2014

If you’ve ever used Less before, you’ve almost definitely leveraged the power of mixins to DRY up your stylesheets.

Maybe you had some standard button styling like this:

.btn {
  background: blue;
  color: white;

…and you wanted to include those styles in another more specific button.

Read the rest of this post »