Skip to content

feat: token CLI commands, unplugin sourcemap option; repair browser fixtures - #432

Merged
codecaaron merged 2 commits into
mainfrom
feat/leverage-batch-7
Nov 28, 2026
Merged

codecaaron merged 2 commits into
mainfrom
feat/leverage-batch-7

Conversation

@codecaaron

Copy link
Copy Markdown
Owner

Two changes, one commit each, on top of #431.

Browser-fixture tier repaired; slot-variable isolation pinned

  • verify:browser-fixtures runs outside every default tier, and 8 of its 56 probes had been failing on main: earlier commits removed the keyword classes one case expected and renamed the showcase's slot variable.
  • The stale runtime-keywords case is replaced by slot-variables, built from real extractor output and the real resolver.
  • New cases pin three contracts: a slot variable set on an ancestor does not reach a descendant using the same slot, for each CSS-wide keyword at base and at a breakpoint; an unset responsive slot variable falls back to the base value at each breakpoint; a transition on a slot-driven property interpolates.
  • 64 of 64 probes pass. With the slot @property registrations stripped, nine fail.

This came out of an investigation into whether the @property registrations (854 in the showcase, 3.4 KB gzipped) could be reduced. They cannot without changing rendering: each is inherits: false, every one is read by a rule, there are no duplicates, and Chromium rejects the shorter forms. No emitted CSS changed.

animus tokens; unplugin sourcemap

  • animus tokens export [--out <file>] prints the system's built theme as a DTCG 2025.10 document. It loads the system module in Node and calls the project's own toDTCG, so the output is exactly what the library gives. It needs a Node that strips TypeScript types, and a system whose imports Node can resolve.
  • animus tokens check <file> reports whether Animus can import a DTCG token or resolver document, with the token path in any error.
  • @animus-ui/unplugin gains sourcemap (default true). false turns off transform source maps on every host, including Rollup and Rolldown, which give no signal at transform time.
  • Kept: an assertion in e2e/rollup-app that animus tokens export prints a document containing the fixture's tokens, and a type-fixture line for the new option.

Verification

vp run verify:full passes at this commit: 55 of 55 tasks. verify:browser-fixtures: 64 of 64.

🤖 Generated with Claude Code

codecaaron and others added 2 commits November 28, 2026 05:19
Eight of 56 probes had been failing since earlier commits removed keyword classes and renamed the showcase's slot variable; the tier runs outside every default tier, so nothing reported it. The stale runtime-keywords case is replaced by slot-variables, built from real extractor output and the real resolver.

New cases pin three contracts: a slot variable set on an ancestor does not reach a descendant using the same slot, for each CSS-wide keyword; an unset responsive slot variable falls back to the base value at each breakpoint; a transition on a slot-driven property interpolates. With the @Property registrations stripped, nine probes fail. 64 of 64 pass.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
animus tokens export prints the system's built theme as a DTCG 2025.10 document by loading the system module in Node and calling the project's own toDTCG. animus tokens check reports whether a DTCG document can be imported, with the token path in any error. @animus-ui/unplugin gains a sourcemap option, default on; false turns off transform source maps on every host, including Rollup and Rolldown, which cannot say whether maps are wanted.

Verified at this commit: vp run verify:full (55 of 55 tasks).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecaaron
codecaaron merged commit 3b14026 into main Nov 28, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant