The five best design links, every weekday

Domain: lea.verou.me

lea.verou.me

Proposal: CSS Variable Groups

CSS Variable Groups is a way to define multiple properties under the same namespace and pass the entire group around.

lea.verou.me

Proposal: CSS Variable Groups

CSS Variable Groups is a way to define multiple properties under the same namespace and pass the entire group around.

lea.verou.me

Minimalist Affordances: Making the right tradeoffs

Unfortunately, sometimes usability and aesthetics can be at odds, also known as “form over function”.

lea.verou.me

Numbers or Brackets for numeric questions?

Which input type is better for surveys?

lea.verou.me

Help Design the Inaugural State of HTML Survey

It turns out, just like JavaScript and CSS, HTML is actually going through an evolution of its own!

lea.verou.me

On ratings and meters

I set out to create a proper web component for star ratings.

lea.verou.me

Releasing Color.js: A library that takes color seriously

This post has been long overdue: Chris and I started working on Color.js in 2020, over 2 years ago!

lea.verou.me

82% of developers get this 3 line CSS quiz wrong

Let’s start by what revert does: It reverts the cascaded value of the property from its current value to the value the property would have had.

lea.verou.me

Dark mode in 5 minutes, with inverted lightness variables

By now, you probably know that you can use custom properties for individual color components.

lea.verou.me

The case for Weak Dependencies in JS

One issue with ESM (and other module systems) is that you can't have optional dependencies.

lea.verou.me

The -​-var: ; hack to toggle multiple values with one custom property

What if I told you you could use a single property value to turn multiple different values on and off across multiple different properties?

lea.verou.me

The failed promise of Web Components

Web Components had so much potential to empower HTML to do more, make dev more accessible to non-coders & easier for coders. Or that was the idea.

lea.verou.me

The Cicada Principle, revisited with CSS variables

Many of today’s web crafters were not writing CSS at the time Alex Walker’s landmark article The Cicada Principle was published in 2011.

lea.verou.me

Today's Javascript, from an outsider's perspective

Today I tried to help a friend who is a great computer scientist, but not a JS person use a JS module he found on Github.

lea.verou.me

LCH colors in CSS: what, why, and how?

I was always interested in color science. In 2014, I gave a talk about CSS Color 4 at various conferences around the world called "The Chroma Zone".

lea.verou.me

Responsive tables, revisited

Many people have explored responsive tables.

lea.verou.me

jQuery considered harmful

lea.verou.me

Image comparison slider with pure CSS

lea.verou.me

Cleanest CSS spinner, ever

lea.verou.me

Slanted tabs with CSS 3D transforms