SR
Steven Richardson
About Articles. Skills Tools
Articles › selectors
TAG ARCHIVE

Everything on selectors.

3 articles tagged selectors, sorted newest first.

tailwind August 21st, 2026

Tailwind v4 nth-* Variants: Striped Tables and Staggered Lists Without a Plugin

Styling every third card used to mean an arbitrary selector or a community plugin. Tailwind v4 ships nth-* as core variants — here is the compiled CSS for each form and the three ways people get them wrong.

8 min read →
tailwind August 16th, 2026

Style State with Tailwind v4 data-* and aria-* Variants

Open, closed, loading, selected — each state ends up as another ternary in a `:class` string. Tailwind v4 lets you toggle one attribute and style it with a variant instead.

9 min read →
tailwind July 8th, 2026

Style the Exception with Tailwind v4's not-* Variant

CSS negation used to mean a base style plus a `:last-child` override. Tailwind v4's `not-*` variant compiles to `:not()` so you state the exception in one utility.

6 min read →
← Back to all articles
SR
Steven Richardson

CTO at Digitonic. Writing notes on Laravel, architecture, and the craft of leading software teams — from the west coast of Scotland.

Site

Home About Articles Skills Tools

Elsewhere

GitHub LinkedIn X RSS
© 2026 Steven Richardson
Terms Privacy Built with Laravel + Tailwind