Container/background bones are captured correctly but never actually rendered
Ran into this testing boneyard-js on a Next.js kanban board, columns with cards inside them, both having their own background and rounded corners.
The capture side works exactly as intended. Looking at the generated .bones.json, every card and column with a visible background or border does get a bone with c: true, which matches what extract.js's own comment says it's for: "emit a lighter bone... so that child bones rendered on top stand out against it."
The problem is that none of the renderers actually draw those bones. I checked all of them:
react.js(andreact.tsxonmain, so this isn't fixed upstream either):activeBones.bones.filter(raw => !normalizeBone(raw).c).map(...)runtime.js:if (b.c) continuevue.js,Skeleton.svelte,angular.js,vite.js: same filter, just written differently per framework
So c: true bones get captured fine and sit right there in the JSON, but every single framework adapter throws them away before rendering anything. In practice, any component that has cards inside a container (a kanban column, a list with card items, basically anything with nested backgrounds) only ever shows floating text lines and icon dots. No card or column boxes show up at all, which kind of defeats the "pixel-perfect skeleton that mirrors your real UI" idea for any layout that isn't totally flat.
I confirmed this is really the cause by patching react.js locally: just removed the filter and rendered c: true bones with a lighter, non-animated fill instead of skipping them. Card and column boxes immediately showed up, in the right places, matching the real layout.
It's not a complete fix since every container gets the same flat shade regardless of nesting depth, so a card sitting inside a column kind of blends into the column's own box instead of standing out from it the way the comment describes. A real fix probably wants some depth-aware shading rather than one flat lighter color.
Version: [email protected] (latest on npm). Also checked react.tsx on main, same filter is still there, so this isn't something already fixed in an unreleased version either.
Happy to send a PR for the minimal version (just stop filtering, render lighter) if that's useful, but since the "proper" fix probably needs per-depth shading, figured I'd flag it here first in case you already have a direction in mind for how nested containers should look.
Source: 0xGF/boneyard