Skip to content

Open UI and the Popover API

Visual open ui

If it pops, it belongs in HTML and CSS! Lately, I had a lot of fun playing around with this upcoming feature. The first version is being developed and it’s starting to look pretty good. It’s time to handle our basic popovers without the explicit need of JavaScript.

Read more about Open UI and the Popover API

Creating A High-Contrast Design System With CSS Custom Properties

High contrast design system css custom properties

Design should never be a trade-off when it comes to creating an accessible web. There are many features coming to the web that will make creating contrast a lot easier. But even though CSS functions such as color-contrast() are only available in Safari behind a flag, we can already do a lot to create contrast in an easy way by using custom properties.

Read more (Smashing Magazine) about Creating A High-Contrast Design System With CSS Custom Properties

Creating Animated, Clickable Cards With the :has() Relational Pseudo Class

Creating Animated, Clickable Cards With the :has() Relational Pseudo Class

The CSS :has() pseudo class is rolling out in many browsers with Chrome and Safari already fully supporting it. It’s often referred to it as “the parent selector” — as in, we can select style a parent element from a child selector — but there is so much more that :has() can help us solve. One of those things is re-inventing the clickable card pattern many of us love to use from time to time.

Read more (CSS-Tricks) about Creating Animated, Clickable Cards With the :has() Relational Pseudo Class

Using best practices to create CSS scroll snapping tabs

Accessible scroll snapping tabs visual

Scroll snapping is hip and while we all have styled numerous sorts of tab panes and scroll boxes, I had an idea of combining them. What started out as a simple “scroll snapping experiment” turned out to be an accessibility study.

Read more about Using best practices to create CSS scroll snapping tabs