Mixins in Vue are useful for writing in a functional style because ultimately, functional programming is about making code understandable by reducing moving parts. (There’s a great quote by Michael Feathers about this). A mixin allows you to encapsulate one piece of functionality so that you can use it in different components throughout the application. […]
Writing CSS is easy. Writing maintainable CSS is hard. You’ve probably heard this a 100 times before. The reason is that in CSS everything is global by default. If you’re a C programmer you know that global variables are bad. If you’re any kind of programmer you know that isolation and composable modules are key […]
Many CSS frameworks are meant to be included and left alone. But spaceBase is a boilerplate layer that can be built upon and tailored for your needs. It combines best practices for today’s responsive web with the core components we use on every project. Consider it the launch pad for your adventures into cyberspace.
In my previous article I used the maps feature of Sass to create a simple interface that can DRY up the creation of colour variations and help to bridge the gap between developers and designers. This article covers a similar methodology for a designer’s favourite but many developer’s nightmare; managing typographic rhythm consistently across different […]