

With Maxime’s approach, you can define a part of the hue and saturation through a CSS variable and reuse it to define your other color values - to build a color scale from scratch, for example. When you use similar colors - different shades of blue, for example, - you will notice that they share the same hue and saturation. HSLA stands for Hue Saturation Lightness Alpha, the four main components necessary to define a color. How do you usually define colors in CSS? With HEX? RGBA? Or do you use HSLA? Maxime Heckel used a mix of HEX and RGBA, until he came across a clever pattern that helped him clean up the mess and lighten his codebase. If you’re interested in more tools like these ones, please do take a look at our lovely email newsletter, so you can get tips like these drop right into your inbox! CSS Variables And HSLA

This collection is by no means complete, but rather a selection of things that the team at Smashing found useful and hope will make your day-to-day work more productive and efficient. Today, we’re shining the spotlight on color tools and resources for all kinds of projects, from all types of color palettes and generators to getting contrast and gradients just right for your projects. We’ve also just recently covered CSS auditing tools, CSS generators, accessible front-end components, front-end boilerplates and VS code extensions - you might find them useful, too. Do you need a little inspiration boost? We’ve collected some useful color tools and resources that we’ve discovered lately - to help you get the most out of your creativity.
