Repository navigation
v0.3.0 — the first release
The first release. Ports Astryx 0.3.0 — the tag, not the tarball, where the two disagree.
Documentation: https://astryx-svelte.rohitk06.in/, generated from the same .doc.mjs modules
the CLI reads, so the site and the terminal cannot disagree.
Published
| Package | What it is |
|---|---|
@astryx-svelte/core |
Components, theme system, hooks, message catalogs |
@astryx-svelte/cli |
Docs, search, page templates, theme tooling and codemods |
@astryx-svelte/theme-{neutral,butter,chocolate,gothic,matcha,stone,y2k} |
Upstream's seven themes |
@astryx-svelte/theme-liquid-glass |
macOS translucent materials — no upstream counterpart, see below |
What is in it
- 101 / 101 upstream component directories, with a bidirectional diff confirming nothing here
is invented. Ours are 97 directories becauseHStack/VStackfold intostack/and
SizeContext/InteractiveRoleContextinto context modules; all four are exported. - 184 / 184 design tokens, and a 250-key
encatalog byte-identical to upstream's, alongside
fr-FR(upstream's own 3-key partial) andpseudo. - Eight theme packages — upstream's seven, plus
liquid-glass, which ports nothing and is
labelled as the port's own addition rather than presented as parity. - All 19 hooks, including
useContainerRevealand its pooled style module. - 43 page templates shipped by the CLI and injectable with
astryx-svelte template <name>. The
docs registry carries 42 of them, which is upstream's own count — its generator skipsscaffold
templates, droppingblankfrom the gallery while leaving it scaffoldable. - Upstream's
reset.cssported in full intobase.css, because the components are authored
against it and misrender without it. Upstream ships it as an opt-in subpath; here it is not
optional, so it is not separable.
Verified, not reviewed
Components are authored against the same design-token references Astryx uses, so the StyleX
compiler emits byte-identical atomic CSS. Two oracles diff our compiled output against the
already-compiled classes in the published @astryxdesign/* packages, in both directions — a
missing declaration, a wrong value and an invented one all fail the run:
- component classes: 1,528 style keys + 615 inline call sites, 0 skips, 0 mismatches
- theme declarations: 2,418 across the seven ported themes, 0 mismatches
Known limitations
Named rather than hidden; each is tracked in TODO.md.
- The class oracle cannot see a
stylex.createfunction style — 54 of them across 32 modules.
A clean run means "every static style matches", which is narrower than it sounds, and the
blindness was measured rather than assumed: inverting a!isDisabledguard intext-inputleft
the oracle at 0 mismatches while the bug was live in 13 call sites. - 434 upstream test cases have no counterpart here yet. Ported suites are case-for-case and the
count is the contract, but suites with no ported file have no header to be wrong, and that
blindness had already let a realChatComposerbug ship. - The full browser suite does not complete in one run. It passes in chunks; the shared Chromium
instance dies late in an unchunked run and takes the remaining files with it. Infrastructure, not
product. - Page templates are outside every tsconfig, so
svelte-checkreports 0 errors on a deliberate
type error in one. It matters more now that the templates import real icon packages. - The 28-name icon registry cannot keep upstream's glyphs distinct at page-template scale. Every
collision is named in its file's header and retires when the registry grows. - Upstream bugs are reproduced, not corrected, and each is written down in
TODO.md.
Setup that has no upstream counterpart
@astryxdesign/core ships pre-built CSS; this package cannot. svelte-package transpiles
TypeScript and does not run StyleX, so dist/**/*.stylex.js publishes uncompiled and every
consumer compiles it as part of their own build. Getting that wrong fails without an error —
the components render, unstyled. packages/core/README.md has the Vite/SvelteKit configuration,
including the two settings that exist because Vite has two ways to route a dependency around a
plugin.