Case study: one CSS selector, two daisyUI regressions, eighteen releases

· Nathan Broadbent

daisyUI is a component library for Tailwind CSS. It's pure CSS: buttons, cards, menus and forms as class names. That makes it the kind of project where a visual change slips past unit tests. Its tests are unit tests of its build scripts, run before each release, and nothing in the repository renders a page. So we forked it, added VisualCI, and replayed two commits from its history.

The underline that came and went

Tailwind's typography plugin (.prose) underlines links. Buttons made from links (<a class="btn">) shouldn't be underlined, so daisyUI has a rule that removes the underline from buttons inside prose. Here's what happened to that rule.

  1. 11 November 2025: bbc8991 ("feat: button improvements and cleanup") rewrote the button styles. It replaced the rule with one for .btn-link only, so every other link button inside prose (a.btn, a.btn-outline) got an underline. It shipped in v5.4.8 and the next 15 releases, through v5.5.14, for about eleven weeks, until someone reported it.
  2. 1 February 2026: the fix, c1e1e11, changed one line: the selector became .prose :where(:not(.btn-link)). That matches every element in prose that isn't a link button, so every ordinary link in prose lost its underline (and a.btn-link gained one). It shipped in v5.5.15 and v5.5.16.
  3. 2 February 2026: 6ae4f6e narrowed it to a.btn:not(.btn-link), released in v5.5.17.

The same prose page with daisyUI 5.4.7, 5.4.8, 5.5.14, 5.5.15 and 5.5.17, top to bottom

The replay

Our fork (visualcihq/daisyui) builds daisyUI from the commit with its own build script, compiles two small test pages with Tailwind (a page of prose with links and buttons, and a page of components), and screenshots each in the light and dark themes. That's four screenshots per build. For each commit we pushed its parent as a baseline and opened a pull request with the commit on top.

  • bbc8991, build #12: 2 of 4 screenshots changed, the prose page in both themes. The diff marks new underlines under a.btn and a.btn-outline, and a few pixels along the top edges of three buttons from the rewrite. The components page didn't change: the rest of the rewrite was visually identical, so the reviewer sees only these changes.
  • c1e1e11, build #14: again only the prose page changed, in both themes. The diff shows the fix working (a.btn and a.btn-outline lose their underlines) and what else it did: both ordinary links in the text lose theirs, and a.btn-link gains one. A one-line fix, and its whole effect is marked on one screenshot.

We rejected both, with the reason on each build. Upstream, the first one shipped in 16 releases and the second in 2.

Build #14, the light prose page before c1e1e11: ordinary links underlined, and so are a.btn and a.btn-outline

The same page with c1e1e11: the buttons lose their underlines, and so do both ordinary links, while a.btn-link gains one

The changes VisualCI marked on build #14

What it takes

Two HTML pages, a Tailwind build and a Playwright script: about 100 lines, and four screenshots that run in a minute on GitHub's free runners. A component library's own docs pages make even better targets: every component, every variant, both themes.

Try it

Screenshots · GitHub Actions