Summary
In an stx app served by bun-plugin-stx with @cwcss/crosswind, the dev server's on-the-fly crosswind pass omits grid utilities for the dashboard page: elements with grid grid-cols-* compute to display:block, and .grid / .grid-cols-* are absent from the served <style data-crosswind="generated"> — while .gap-4 on the same elements is present. So crosswind is being invoked, but not given (or not emitting) the grid classes for this page.
Crosswind core is fine — the same classes work in isolation (below) — so this is the stx ↔ crosswind serve integration (how bun-plugin-stx feeds content to crosswind), not crosswind.
Environment
@stacksjs/stx0.2.70,bun-plugin-stx0.2.70@cwcss/crosswind0.2.4, Bun 1.3.13, macOS
Evidence (dashboard page)
A grid container: class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4 p-6"
- computed
display: block,grid-template-columns: none - served stylesheet:
.grid{display:grid}→ missing;.grid-cols-6→ missing;.gap-4→ present
Result: the cards stack vertically instead of laying out in a 6-column grid.
What works (rules out crosswind core and @include)
- A minimal view
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4">→ renders 6 columns atlg. - The same via an
@include'd partial → also renders grid (display:grid). crosswind buildscanning the project's.stxfiles → output includesgrid-cols-6.
Reproduction
I could not minimize it — every minimal case renders grid correctly; only the full dashboard render drops it. It reproduces in the ts-analytics dashboard: bun dev (+ the API server), load /dashboard?siteId=<id> → the stat cards stack vertically instead of a grid.
The contrast (minimal works, full page doesn't) suggests something scale- or content-specific in how the serve pass collects classes for crosswind on a large, component-heavy page (the grid classes live in an @include'd StatsRow and in the view's own panel rows; neither generates on the dashboard, while both generate in isolation).