UI Deploy

Curated, Short, Web UI Dev we Love.

Replicating preprocessor color functions with plain old CSS

I was ruminating on Sass’ lighten and darken functions today morning and wondered whether there was a way to do this via native CSS. I also remembered that I haven’t ever used HSL to define colors in my stylesheets and wondered whether this was the solution.

view source

Advertisement