← Notes
July 4, 2026·1 min readopen-sourcecontributingastryx

Fix CLI theme override prefix stripping dead xds- namespace

Fix CLI theme override prefix stripping dead xds- namespace

Removed obsolete xds- prefix stripping from a CLI helper that was causing theme override selectors to generate with doubled prefixes like .astryx-astryx-base-table, which failed to match any styles.

What

The CLI helper that generates theme override documentation was stripping an xds- prefix that no longer existed after the project renamed from xds to astryx. This caused the output to print selectors with the wrong prefix. I removed the dead prefix stripping logic so selectors generate correctly as .astryx-base-table instead of .astryx-astryx-base-table.

Why

Theme overrides were silently failing because users copied selectors from the CLI output that didn't match anything in the actual component CSS. The prefix stripping was left over from before the rename and served no purpose. Removing it makes the generated selectors match what the components actually use.

Takeaway

Dead code from refactors can hide in utility functions and cause subtle failures downstream. The fix was straightforward once the root cause was identified in the prefix logic.

Draft PR: https://github.com/facebook/astryx/pull/3527

Building an AI agent?

I'm packaging how I ship them into one kit. Early access:

AI Agent Starter Kit →