An open source design system that's fully customizable and agent ready
@astryxdesign/build
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
New Features
withAstryx()builds Astryx from source under Turbopack instead of refusing to. It points each package's documented entry points at their source (Core, Lab, Charts and Rich Text), compiles that source with the settings the prebuilt stylesheets use, and keeps the app's own Turbopack rules off it. The new PostCSS plugin@astryxdesign/build/next/postcssreplaces an@astryx;rule with each source-built package's prebuilt stylesheet, compiled from that source: the same rules and selectors, in the same order, inside@layer astryx-base. To set it up, list@astryxdesign/build/next/postcssin the app's PostCSS config and put one@astryx;rule in the app's global stylesheet (optioncwd, the app root, defaults to the working directory). Under Turbopack, the webpack setup's@astryxdesign/build/postcssrefuses to run besidewithAstryx(), since its rules never match the classes Turbopack renders. In this source build, an installed Astryx package with a malformedpackage.jsonfails the build instead of being left out. The webpack setup is unchanged: it builds Core and Lab from source, and Rich Text and Charts keep their prebuilt stylesheets there.
Other Changes
- The prebuilt stylesheet build and the Turbopack source build share one module walk, compile and layer block, so a source build prints the prebuilt rules by construction. Every prebuilt stylesheet keeps its bytes.
Contributors
Thanks to everyone who contributed to this release:
0.7.6
New Features
- A production build with
astryxStylexwarns when its stylesheet reads a StyleX-generated custom property that nothing declares, naming the variable and the rule that reads it. It checks the class-name prefixes the build uses,stylexOverrides.classNamePrefixincluded, and never reports a custom property an app declares in its own CSS. (#8075)
Fixes
astryxStylexresolvesdefineConstsvalues read from another file. With the{stylexOptions}form (the one Storybook uses), a file that read only constants from a.stylex.tsmodule lost that import once StyleX compiled it, so the constants never reached the CSS: a constant used as a media-query key failed the build ("Invalid empty selector") and one used as a value shipped as a custom property nothing declares. In either form, a constant defined on the other side of the layer split, or in an Astryx package (compiled with the library class-name prefix) and read from an app file (compiled with its own), stayed unresolved. (#8075)- Published packages no longer include repository test and benchmark files, reducing install size without changing exports. (#9153)
Documentation
- The Next.js setup in the README says that its Babel config turns off SWC, which
next/fontneeds, so a freshcreate-next-applayout must drop itsnext/fontimport before the webpack source build will compile. (#9439)
Contributors
Thanks to everyone who contributed to this release:
0.7.5
Documentation
- Package links now point to the project's GitHub home,
meta/astryx.
Contributors
Thanks to everyone who contributed to this release:
0.7.4
0.7.3
0.7.2
Fixes
withAstryx()builds again under pnpm's default isolated layout. It no longer turns off webpack's symlink resolution, which hid each Astryx package's own dependencies (Can't resolve 'intl-messageformat','lucide-react'). Astryx modules are still matched by their real path, so a workspace-linked package keeps resolving itssourceentries.- The PostCSS plugin now scans what each installed Astryx package publishes (its
filesfield, or the whole package minus nestednode_moduleswhen it has none) instead of everything undernode_modules/@astryxdesign. A package linked from a workspace no longer drags in its ownnode_modules, whose links can cycle back to it and made the build run out of memory, or its unpublished test fixtures. Registry installs scan the same files as before.
Performance
- The PostCSS plugin no longer loads the app's root Babel config when it compiles Astryx source. In the documented Next.js setup that config (
next/babelplus Astryx's StyleX plugin) ran over every installed Astryx module on each build only for the plugin to read StyleX metadata, roughly doubling the CSS pass. The emitted CSS is unchanged, and the app's own files still compile with its config.
Contributors
Thanks to everyone who contributed to this release:
0.7.1
0.7.0
Fixes
- Preserve native
light-dark()token values in Vite source builds by defaulting Lightning CSS to Astryx's supported browser floor. (#7330)
Contributors
Thanks to everyone who contributed to this release:
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
Fixes
- Keep PostCSS and Vite processing inside
@astryxdesign/build's declared dependency boundary (#6605) Packed consumers no longer depend on workspace hoisting to find PostCSS helpers or CSS compatibility processors. The package now owns Autoprefixer, Browserslist, and Lightning CSS, and a clean isolated-install test exercises the published tarball's PostCSS helper and Vite output. - Make source builds fail on unsupported StyleX declarations and load shared StyleX output from every Vite HTML entry.
Nested pseudo-elements and
stylex.keyframes()now have production-build regression coverage, and the maintained capability registry tracks the installed StyleX version.
Contributors
Thanks to everyone who contributed to this release:
0.6.3
0.6.2
0.6.1
0.6.0
Fixes
withAstryx()refuses a Turbopack config instead of building an unstyled app. Every alias the helper installs lives innextConfig.webpack, which Turbopack never calls, so the app resolved@astryxdesign/*to dist while PostCSS compiled the library from source — disjoint class names, an exit code of 0, and an unstyled page. It now throws, naming both ways out:--webpack, or drop the helper and consume the pre-built package. Also warns when the merged alias map claims none of the packages, which reaches the same unstyled state by another route. (#6109)
Contributors
Thanks to everyone who contributed to this release:
0.5.4
0.5.3
Fixes
withAstryx()now resolves an app's own@astryxdesign/*imports to the packages'sourceentries. The scoped webpack rule only governs requests issued from insidenode_modules, so app code resolved the library throughdefaulttodistwhile PostCSS compiled it from source — the two emit disjoint class names and the app rendered unstyled without erroring. (#5932)
Contributors
Thanks to everyone who contributed to this release:
0.5.2
0.5.1
Fixes
Vite build: Astryx and product styles are split into their own cascade layers, so a theme's component overrides apply in a production build (#5410) StyleX emits every rule it collects into one top-level
@layer priority1…priorityN. The dev server re-served those partitioned by source file — Astryx's own styles intoastryx-base, the app's intoproduct— but a build did neither, so the priority layers landed outside the@layer reset, astryx-base, astryx-theme, productorder and outranked all of it. Everycomponents: {…}override a theme set — a colour, a radius, a public custom property — was silently dropped in the built app while working in dev.The build now runs the same partition the dev server does, from the same helper, so the promised order holds in both: Astryx's styles are overridable by a theme, and an app's own styles still outrank everything.
Contributors
Thanks to everyone who contributed to this release:
0.5.0
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
Fixes
build: import
node:fsstatically so the Vite plugin's package discovery survives the ESM build (#4972)astryxStylex()'s config plugin discovered installed@astryxdesign/*packages withrequire('node:fs'). The./viteexport ships only an ESM bundle (dist/vite.mjs, esbuildformat: 'esm'), where esbuild lowersrequireto a shim that throwsDynamic require of "node:fs" is not supported— always, since nativerequirenever exists under ESM. The surroundingtry/catchswallowed the throw, sooptimizeDeps.excludesilently fell back to['@astryxdesign/core']and every other installed Astryx package stayed eligible for Vite pre-bundling, which stripsstylex.create/defineVarscalls and causes runtime errors.The discovery now uses a static
import fs from 'node:fs', which esbuild preserves as a real ESM import. A regression test compilesvite.tswith the same esbuild options asbuild.mjsand runs the discovery in a childnodeprocess, since in-process test runners provide arequireshim that masks the bug.
Contributors
Thanks to everyone who contributed to this release:
0.3.0
0.2.0
0.1.9
Fixes
- Scope the
sourceresolve condition to @astryxdesign packages in withAstryxwithAstryxset webpack'sconditionNamesto['source', …]globally, which resolved any dependency shipping asourceexport to its raw TypeScript — not just Astryx packages. Third-party deps that ship asourceexport (e.g.lexical, pulled in by the new RichTextEditor lab component) were then fed untranspiled.tsthrough Next's babel and failed on syntax likedeclareclass fields.
Contributors
Thanks to everyone who contributed to this release:
0.1.8
0.1.7
0.1.6
0.1.5
Other Changes
- Use node: protocol prefix for Node.js builtin imports (#3737)
Contributors
Thanks to everyone who contributed to this release:
0.1.4
0.1.3
Fixes
- Use
pnpm buildin theprepackscript so publishing no longer fails thedevEnginespackage-manager check (#3564).
Contributors
Thanks to everyone who contributed to this release:
0.1.2
Fixes
- ship TypeScript declarations for the
@astryxdesign/build/viteexport
Contributors
Thanks to everyone who contributed to this release:
0.1.1
Breaking Changes
- Rename
@xds/buildexports off the xds name The Vite integration's public exports are renamed:xdsStylex->astryxStylex, and the option typesXDSVitePluginOptions/XDSVitePluginLegacyOptions->AstryxVitePluginOptions/AstryxVitePluginLegacyOptions. Update imports from@xds/build/viteaccordingly. Internal plugin names and the babel wrapper are also rebranded. Part of removingxdsnaming from the public API. - Rename Next.js helper
withXDStowithAstryxThe Next.js configuration wrapper is renamedwithXDS->withAstryx(exported from@astryxdesign/build/next). Update yournext.config.mjs:import {withAstryx} from '@astryxdesign/build/next'. Part of removing xds naming from the public API.
Contributors
Thanks to everyone who contributed to this release:
0.1.0
Breaking Changes
- Default the StyleX library atomic-class prefix to
astryx(wasxds)@astryxdesign/build's babel/Vite integrations now emit library atomic classes as.astryx78zum5by default instead of.xds78zum5(thelibraryPrefix/stylexPrefixoption default flipsxds->astryx). This is an opaque, StyleX-generated namespace — consumers don't target these classes directly — but it completes the removal ofxdsnaming from build output. Consumers that explicitly configuredlibraryPrefix/stylexPrefixare unaffected. - Remove the XDS-prefix compatibility layer — astryx is now the only public surface
This release erases all
xdsnaming from the public API; there is no compatibility window. Consumers must migrate (we own all consumers pre-OSS): - Remove the daily, brutalist, and default themes; neutral is the new baseline Three theme packages are removed from the repo and will no longer be published:
Other Changes
Component names: the
XDS*aliases are gone — use bare names (ButtonnotXDSButton,useThemenotuseXDSTheme,ButtonPropsnotXDSButtonProps). Thedrop-xds-prefix-importscodemod automates this.CSS classes: components emit only
.astryx-*(the dual.xds-*class is gone). Update custom CSS selectors.xds-button->.astryx-button(prop/state value classes like.primary/.smare unchanged).data attributes: only
data-astryx-theme/data-astryx-mediaare written; update custom selectors and SSR root attributes offdata-xds-*.CSS layers:
@layer xds-base/xds-themeare renamed toastryx-base/astryx-theme; update your@layerorder line and any PostCSSlayersBeforeconfig.@astryxdesign/build's default library layer is nowastryx-base.Pre-compiled stylesheet: the
@astryxdesign/core/xds.cssexport is removed — import@astryxdesign/core/astryx.css.CSS custom properties: the
--xds-*padding fallback is gone; set--astryx-*.CLI config key:
@astryxdesign/clireads the package.json"astryx"field (was"xds"). Rename the block; a stale"xds"key silently drops the package from discovery.@astryxdesign/theme-daily@astryxdesign/theme-brutalist@astryxdesign/theme-defaultimport {defaultTheme} from '@astryxdesign/theme-default/built';
- import {neutralTheme} from '@astryxdesign/theme-neutral/built';
...
- ...
Rename the npm package scope from
@xds/*to@astryxdesign/*All published packages move to the new@astryxdesignscope (e.g.@xds/core→@astryxdesign/core), along with the workspace lockfile, build/runtime scope-directory scans, and docsite slug derivation. Consumers must update their imports and dependency names. The internal ESLint plugin namespace (@xds/*rules) is intentionally untouched and tracked separately. Existing@xds/*codemods continue to target the old scope so projects still on@xds/*can migrate.
Contributors
Thanks to everyone who contributed to this release:
0.0.15
Fixes
- Unprefix migration alignment — Build output and Vite plugin updated for the XDS-prefix migration (bare names canonical,
XDS*compat aliases) so generated CSS stays in sync with@xds/core(#2941).
Contributors
Thanks to everyone who contributed to this release:
0.0.14
First public release — @xds/build is now published to the npm registry.
New Features
- Streamlined
xdsStylex()Vite API — Simplified configuration for Vite projects (#2227) - Build step for Vite plugin — Proper dist output for the Vite integration (#2205)
Internal
- Migrated to pnpm (#2197)
- Bumped esbuild from 0.24.2 to 0.28.0 (#2246)