Skip to content

experimental theme: a fifth round of edge-case fixes, and in-process tests - #11765

Merged
josephfarina merged 17 commits into
mainfrom
theme-followup-17
Nov 14, 2026
Merged

josephfarina merged 17 commits into
mainfrom
theme-followup-17

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The fifth round of edge-case fixes for astryx experimental theme, plus faster, sturdier tests. Stacked on the previous follow-up; each fix is at its cause, with tests.

Your own theme file

  • One check walks every block a theme gives (tokens, local tokens, components, onDark/onLight, each adaptation rule) by its real shape. Misspelled properties, part values given as text, tokens of the wrong kind (background-color: var(--radius-element)), weights without a type scale, non-number scale fields and the tokens of a theme the export extends are named with their line.
  • CSS-escaped family names build; a family held in the theme's own custom property is loaded and named; export let/export var themes build. Phone-only type notes reach compile, with a rule that works.

Reading what was typed

  • An unknown family near a generic or preset can be kept as typed in quotes; aspect-ratio '16,9' means 16 / 9; a saved entry that set can repair gets that repair; one base reader (neutral-theme, neutralTheme); weight words in a family list are no family; a JSON entry's quotes belong to JSON.
  • new repairs values through the same gate as set, reads unquoted words of a flag value typed after the theme name as that value, and never offers a line it would refuse. An uninstalled base leads with its install. Case fixes of one line fold together. A saved 0.5rem corner reads as set saves it.

how

  • One-mode shadows and borders are answered through colors only (set --mode stays colors-only): each mode keeps exactly what it showed, and a card shadow keeps Core's selection ring.
  • Color steps keep alpha; "light mode" is never read as "lighter"; a role word scopes to its token or variant; keeps, excepts and swaps cover every item and both modes; headings grow by heading size; "as dark as the page" uses the page.

Parts and modes

  • A dark-only theme keeps its light settings where Core draws light (a toast, a lightbox), and says so. A one-mode token keeps the other half following the base. One-mode page backgrounds and gradients touch only their mode. Link color points to the token links read.
  • Text in the app's top bar is checked over the header's own ground, including see-through segmented items.

Preview

  • Every rebuild names the pictures it removed; a part-way picture run says which were taken; a two-Reacts refusal points at the package manager's listing; --section, --top and --template suggestions come from what was typed; base fonts loaded only from a remote stylesheet are named; template cells and ContextMenuItem render in the sheet; preview subcommands name mistyped options.

One reader per kind of input

  • Mode, base, state, value-splitting, family-list and free-name readings each have one reader; aliases kept only for one test are gone. One stray-option answer serves every editor and preview command. A part's conditions come from what its theming target declares, so a new state needs no code change. One keep grammar, one density word table.
  • undo names what it took back in its first line, and says when the last command was refused and changed nothing. "Selected table rows tinted with the accent" answers the selected-row state line. A warm or cool gray takes the vibrancy dial; a pure gray is refused with the measured reason.

Tests and in-process runs

  • 19 theme test files run the CLI in process (about 950 s → 130 s of test time); four keep a real process because they test the process itself. Running several commands in one process now releases compile locks after a refusal, rechecks a folder that became writable, and checks font packages fresh. A stopped preview change is tested in a real child process stopped at a real file step, and the importer scan takes its limit as a parameter, so the preview code carries no test-only hooks.

Scope

Components: ThemeEditUndoResponse

Its data.undid and data.refusedBefore members name what an undo took back and whether the command before it was refused.

Tests

New theme-hunt123, theme-hunt124–theme-hunt128, theme-hunt130, theme-hunt133, theme-hunt134, theme-parts55, theme-part-conditions, theme-undo-headline and theme-preview-importers files, each with a top describe that says what it checks, plus the updated expectations each fix names. The CLI suites pass on a main-based tree; structure, changesets, tsc, eslint and prettier are clean.

@josephfarina

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 14, 2026 8:54pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 14, 2026
@astracat-bot

astracat-bot Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 14, 2026, 9:04 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review cannot approve until an engineering owner decides on the spec, and it asks for three changes.

Owner decision needed: no current spec record covers three parts of this pull request: the experimental theme editor behaviour it changes (the input and new repair readers, how's one-mode answers, one-mode themes applying the other mode's settings, top-bar contrast, part conditions, the stray-option answer, and the undo headline with its two new ThemeEditUndoResponse members), whether a theme may read Core's private --_card-ring/--_card-elevation layers, and the stable astryx theme build reading of escaped and var()-held font names and let/var bindings. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, or names the record that governs these changes; the author may do so as an engineering owner.

Changes needed:

  • new puts the word typed after the theme name into the option typed before it, so new --font Open Sans my-theme offers new sans --font 'Open my-theme'; reset the open option when the name is read (commands/experimental/theme.mjs:1261-1271) and add a test with the option before the name.
  • ThemeEditUndoResponse.data.undid and refusedBefore are public type members outside this pull request's declared scope; name them in a ## Scope / Components: line for the owner decision, or split them out.
  • The description lists new test files theme-hunt124 to theme-hunt135, but hunt129, hunt131, hunt132 and hunt135 do not exist and the new hunt123 is not listed; correct the list.
Claims and files checked

Review mode: full; reason: no-earlier-review

Claims:

  • Escaped font family names are read as CSS reads them, and a family held in the theme's own property counts as built (editor): verified, theme-hunt125.
  • compile gives show's phone type note with a working rule, and the editor theme's full report wires the app copy: verified, theme-hunt125.
  • Top-bar text is checked over the header's background, including see-through parts: verified, theme-hunt130.
  • One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in how (changeset list): verified, theme-how.test.mjs and theme-hunt123.
  • One keep grammar, one density table, a fill color after "with", and vibrancy counting by changed shades: verified, theme-hunt134.
  • The own-value check covers every block (adaptation rules, localTokens, part property text and names, extended themes, typography scale): verified, theme-hunt124.
  • Preview fixes (removed pictures named, part-way picture runs, two-React advice, --section/--top/--template suggestions, remote base fonts, template and re-exported cells): verified, theme-hunt126.
  • Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified, theme-hunt127.
  • new repairs as set does, and unquoted words of a flag value belong to that value: false when the option comes before the theme name (the word after the name joins the option).
  • One mode, base, state and family-list reader (black/white/dim/bright no longer modes): verified in code (modeWord, baseWord, stateWord, fontFileReason).
  • One stray-option answer for every editor and preview command, and a part's color-prop token suggestion: verified, theme-hunt133.
  • In-process runs read installs and writable folders fresh, compile releases locks however it ends, and new refuses a valued option first: verified in code (packageInstalled, copyFailure, buildAction finally).
  • One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified, theme-parts55.
  • Part conditions come from what the theming target declares: verified, theme-part-conditions.
  • The undo headline names what it took back and says when the last command was refused: verified, theme-undo-headline.
  • theme build reads escaped names, names theme-held var() families, and builds a never-reassigned let/var theme: verified, theme-hunt125 and font-warning.test.mjs.
  • The description's list of new test files from hunt124 to hunt135: false (hunt129, hunt131, hunt132 and hunt135 do not exist; hunt123 is new and not listed).
  • 19 test files run in process, cutting test time from about 950 s to 130 s: not verified (this diff converts 16 existing files and adds 5 new ones; timings were not measured).
  • The preview code carries no test-only hooks: verified (the stop and scan-limit test hooks are removed, and the limit is a parameter).
  • CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: the 40 changed test files pass at this head (1,306 tests); the other checks were not run.

Files (all 85 visited):

  • packages/cli/clients/cli/commands/experimental/theme.mjs: finding: new reads the word after the theme name into the option before it (blocking)
  • packages/cli/api/theme-edit/theme-edit.type.mjs: finding: two undo type members outside the declared scope (blocking)
  • packages/cli/api/theme-edit/_edit.mjs: finding: themeEditNew passes an undeclared check option (non-blocking)
  • packages/cli/api/theme-edit/_settings.mjs: clear (reading Core's private card layers waits on the owner decision)
  • .changeset/: experimental-theme-css-family-names.md, experimental-theme-header-contrast.md, experimental-theme-how-modes-and-blocks.md, experimental-theme-how-one-keep-grammar.md, experimental-theme-hunt124.md, experimental-theme-hunt126.md, experimental-theme-hunt127.md, experimental-theme-hunt128.md, experimental-theme-hunt132.md, experimental-theme-hunt133.md, experimental-theme-in-process-runs.md, experimental-theme-parts55.md, experimental-theme-parts56.md, experimental-theme-undo-headline.md, theme-build-css-family-names.md — clear
  • packages/cli/api/theme-edit/: _adapter.mjs, _catalog.mjs, _check.mjs, _color.mjs, _compiler.mjs, _context.mjs, _how-commands.mjs, _how-question.mjs, _importers.mjs, _normal.mjs, _palette.mjs, _parts.mjs, _preview-app.mjs, _preview.mjs, _project.mjs, _tables.mjs, _vet.mjs, theme-how-families.test.mjs, theme-how.test.mjs, theme-hunt102.test.mjs, theme-hunt107.test.mjs, theme-hunt109.test.mjs, theme-hunt112.test.mjs, theme-hunt115.test.mjs, theme-hunt119.test.mjs, theme-hunt120.test.mjs, theme-hunt123.test.mjs, theme-hunt124.test.mjs, theme-hunt125.test.mjs, theme-hunt126.test.mjs, theme-hunt127.test.mjs, theme-hunt128.test.mjs, theme-hunt130.test.mjs, theme-hunt133.test.mjs, theme-hunt134.test.mjs, theme-hunt14.test.mjs, theme-hunt26.test.mjs, theme-hunt27.test.mjs, theme-hunt3.test.mjs, theme-hunt62.test.mjs, theme-hunt68.test.mjs, theme-hunt70.test.mjs, theme-hunt75.test.mjs, theme-hunt78.test.mjs, theme-hunt81.test.mjs, theme-hunt82.test.mjs, theme-hunt93.test.mjs, theme-new-suggestions.test.mjs, theme-part-conditions.test.mjs, theme-parts45.test.mjs, theme-parts51.test.mjs, theme-parts55.test.mjs, theme-preview-importers.test.mjs, theme-preview-safety.test.mjs, theme-stress.test.mjs, theme-undo-headline.test.mjs — clear
  • packages/cli/api/theme/build/: build.mjs, font-warning.mjs, icon-imports.mjs — clear
  • packages/cli/clients/cli/commands/: experimental-theme-editor-show.doc.mjs, theme.mjs — clear
  • packages/cli/clients/cli/lib/: json-shim.mjs — clear
  • packages/cli/foundation/fonts/: font-stylesheet.mjs — clear
  • packages/cli/foundation/text/: css-escape.mjs — clear
  • packages/cli/test-utils/: stop-at-step.mjs, stopped-run.mjs — clear

Automated review (maintainer link)

Comment thread packages/cli/api/theme-edit/_edit.mjs Resolved
…amilies count as built; let/var themes build; compile gives the phone note with a fix that works; the full report wires the app copy
…adaptation rules, localTokens a var() reads, part property text and names, a theme the export extends; a token of the wrong kind in a property is refused in set and the file; typography weights need a scale, scale fields are named as written)
…r what was typed, a ratio's comma separates its numbers, saved entries set repairs get that repair, one base reader for set/new/settings, a list item of weight/style/size words is no family, a JSON string's quotes are JSON's
…d; a part-way picture run says which pictures it took; two-React renders point at the package manager's listing; --section/--top/--template suggestions from what was typed; remote base fonts noted; template pages and re-exported parts bind their real export)
…new repairs values through the one gate (no untyped flag, whole-value did-you-means, the repaired value kept), unquoted words of a new flag value belong to it, show and preview read options with the one reader, an uninstalled base leads with its install, case fixes of one line fold together, and a corners size saved in rem reads as set saves it
…e theme keeps the other mode's settings for Core's other-mode regions

A token set for one mode keeps its other half as what that mode shows: Core's own reference when the base theme's value follows it, so a focus ring keeps following the accent. A one-mode page background makes the main area see-through, and a gradient fixed, in its mode's block only. A one-mode shorthand replaces longhands of its mode only, never a both-mode longhand. A light-only or dark-only theme keeps the other mode's settings applied for the regions Core draws in that mode (a toast, a lightbox), says so, and takes --mode for that mode; its own mode needs no --mode. A color on a link is refused for the token its color prop reads, set on the link; the cached component docs carry each prop's documented default.
…r the header's background (see-through part backgrounds show the header), including the preview's own mode switch
…, keeping Core's shadow layers; how reads mode words, role words, keeps and except lists through shared readers
…cess with renders stood in (no spawn per call); compile's run locks release however the run ends, new refuses a valued option before run, and an API process reads removed packages and writable copy folders as they are now
…family list, top-level split, free theme name), test-only gate aliases moved into their test, and new's uninstalled-base lines through the one install helper
…mand (options it takes, its help, a line without the stray words only where safe), and the color-prop tokens a part offers come from its doc and part data
…rget declares

The part data reads as conditions the data attributes the element's own theming targets declare (each visual prop and runtime state), not a fixed list, and the aria context conditions are named as such. The readers keep every condition except the part's own size-like visual props: a runtime state, another target's prop on the same element (a selectable card's selection on its card), and an aria context stay, so a state Core adds needs no change to the editor. PART_DATA_VERSION 12.
…e is a real child process stopped at a file step; the importer scan limit is reached by a real 50001-file project); undo's headline names what it took back and says when the last command was refused
…ity through one table; vibrancy counts a color by whether its shades change
…mmand line (after --), not an ASTRYX_* variable
@josephfarina
josephfarina changed the base branch from theme-followup-16 to main November 14, 2026 20:01
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 7795d8a

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the spec question is settled for this head, and three fixes remain.

The engineering-owner approval for this head covers the experimental editor behaviour, the card-shadow layers, the undo type members and the theme build font and binding readings, so no spec decision is pending.

Changes needed:

  • new puts the word typed after the theme name into the option typed before it, so new --font Open Sans my-theme offers new sans --font 'Open my-theme'; reset the open option when the name is read (commands/experimental/theme.mjs:1261-1271) and add a test with the option before the name.
  • ThemeEditUndoResponse.data.undid and refusedBefore are public type members outside this pull request's declared scope; add a ## Scope section with Components: ThemeEditUndoResponse, or split them out.
  • The description lists new test files theme-hunt124 to theme-hunt135, but hunt129, hunt131, hunt132 and hunt135 do not exist and the new hunt123 is not listed; correct the list.

Non-blocking: themeEditNew passes an undeclared check option straight to newTheme (api/theme-edit/_edit.mjs:312), so check: true returns null and writes nothing.

Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Escaped font family names are read as CSS reads them, and a family held in the theme's own property counts as built (editor): verified, theme-hunt125.
  • compile gives show's phone type note with a working rule, and the editor theme's full report wires the app copy: verified, theme-hunt125.
  • Top-bar text is checked over the header's background, including see-through parts: verified, theme-hunt130.
  • One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in how (changeset list): verified, theme-how.test.mjs and theme-hunt123.
  • One keep grammar, one density table, a fill color after "with", and vibrancy counting by changed shades: verified, theme-hunt134.
  • The own-value check covers every block (adaptation rules, localTokens, part property text and names, extended themes, typography scale): verified, theme-hunt124.
  • Preview fixes (removed pictures named, part-way picture runs, two-React advice, --section/--top/--template suggestions, remote base fonts, template and re-exported cells): verified, theme-hunt126.
  • Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified, theme-hunt127.
  • new repairs as set does, and unquoted words of a flag value belong to that value: false when the option comes before the theme name (the word after the name joins the option).
  • One mode, base, state and family-list reader (black/white/dim/bright no longer modes): verified in code (modeWord, baseWord, stateWord, fontFileReason).
  • One stray-option answer for every editor and preview command, and a part's color-prop token suggestion: verified, theme-hunt133.
  • In-process runs read installs and writable folders fresh, compile releases locks however it ends, and new refuses a valued option first: verified in code (packageInstalled, copyFailure, buildAction finally).
  • One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified, theme-parts55.
  • Part conditions come from what the theming target declares: verified, theme-part-conditions.
  • The undo headline names what it took back and says when the last command was refused: verified, theme-undo-headline.
  • theme build reads escaped names, names theme-held var() families, and builds a never-reassigned let/var theme: verified, theme-hunt125 and font-warning.test.mjs.
  • The description's list of new test files from hunt124 to hunt135: false (hunt129, hunt131, hunt132 and hunt135 do not exist; hunt123 is new and not listed).
  • 19 test files run in process, cutting test time from about 950 s to 130 s: not verified (this diff converts 16 existing files and adds 5 new ones; timings were not measured).
  • The preview code carries no test-only hooks: verified (the stop and scan-limit test hooks are removed, and the limit is a parameter).
  • CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: the 40 changed test files (1,306 tests) passed on this same patch before its rebase onto main; the other checks were not run.

Files (all 85 visited):

  • packages/cli/clients/cli/commands/experimental/theme.mjs: finding: new reads the word after the theme name into the option before it (blocking)
  • packages/cli/api/theme-edit/theme-edit.type.mjs: finding: two undo type members outside the declared scope (blocking)
  • packages/cli/api/theme-edit/_edit.mjs: finding: themeEditNew passes an undeclared check option (non-blocking)
  • packages/cli/api/theme-edit/_settings.mjs: clear (reading Core's private card layers is owner-approved for this head)
  • .changeset/: experimental-theme-css-family-names.md, experimental-theme-header-contrast.md, experimental-theme-how-modes-and-blocks.md, experimental-theme-how-one-keep-grammar.md, experimental-theme-hunt124.md, experimental-theme-hunt126.md, experimental-theme-hunt127.md, experimental-theme-hunt128.md, experimental-theme-hunt132.md, experimental-theme-hunt133.md, experimental-theme-in-process-runs.md, experimental-theme-parts55.md, experimental-theme-parts56.md, experimental-theme-undo-headline.md, theme-build-css-family-names.md: clear
  • packages/cli/api/theme-edit/: _adapter.mjs, _catalog.mjs, _check.mjs, _color.mjs, _compiler.mjs, _context.mjs, _how-commands.mjs, _how-question.mjs, _importers.mjs, _normal.mjs, _palette.mjs, _parts.mjs, _preview-app.mjs, _preview.mjs, _project.mjs, _tables.mjs, _vet.mjs, theme-how-families.test.mjs, theme-how.test.mjs, theme-hunt102.test.mjs, theme-hunt107.test.mjs, theme-hunt109.test.mjs, theme-hunt112.test.mjs, theme-hunt115.test.mjs, theme-hunt119.test.mjs, theme-hunt120.test.mjs, theme-hunt123.test.mjs, theme-hunt124.test.mjs, theme-hunt125.test.mjs, theme-hunt126.test.mjs, theme-hunt127.test.mjs, theme-hunt128.test.mjs, theme-hunt130.test.mjs, theme-hunt133.test.mjs, theme-hunt134.test.mjs, theme-hunt14.test.mjs, theme-hunt26.test.mjs, theme-hunt27.test.mjs, theme-hunt3.test.mjs, theme-hunt62.test.mjs, theme-hunt68.test.mjs, theme-hunt70.test.mjs, theme-hunt75.test.mjs, theme-hunt78.test.mjs, theme-hunt81.test.mjs, theme-hunt82.test.mjs, theme-hunt93.test.mjs, theme-new-suggestions.test.mjs, theme-part-conditions.test.mjs, theme-parts45.test.mjs, theme-parts51.test.mjs, theme-parts55.test.mjs, theme-preview-importers.test.mjs, theme-preview-safety.test.mjs, theme-stress.test.mjs, theme-undo-headline.test.mjs: clear
  • packages/cli/api/theme/build/: build.mjs, font-warning.mjs, icon-imports.mjs: clear
  • packages/cli/clients/cli/commands/: experimental-theme-editor-show.doc.mjs, theme.mjs: clear
  • packages/cli/clients/cli/lib/: json-shim.mjs: clear
  • packages/cli/foundation/fonts/: font-stylesheet.mjs: clear
  • packages/cli/foundation/text/: css-escape.mjs: clear
  • packages/cli/test-utils/: stop-at-step.mjs, stopped-run.mjs: clear

Automated review (maintainer link)

…re it; checking new without writing is an argument of the internal newTheme, never a public option
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 1d25a7c

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one wording fix remains.

This push fixes the new word-order regression, closes the undeclared check path in themeEditNew, scopes the undo type members and corrects the test-file list; the spec direction is approved for this head.

Changes needed:

  • The hunt128 changeset and the description say unquoted words of a flag value on new belong to that value, but with the option typed first new --font Open Sans my-theme is offered new sans-my-theme --font Open (pinned by theme-hunt128.test.mjs:240), so qualify both to words typed after the theme name, or read the words straight after the value into it when a later word is left for the name.
Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Escaped font family names are read as CSS reads them, and a family held in the theme's own property counts as built (editor): verified, theme-hunt125.
  • compile gives show's phone type note with a working rule: verified, theme-hunt125.
  • Top-bar text is checked over the header's background, including see-through parts: verified, theme-hunt130.
  • One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in how: verified, theme-how.test.mjs and theme-hunt123.
  • One keep grammar, one density table, a fill color after "with", and vibrancy's gray rule: verified, theme-hunt134.
  • The own-value check covers every block (adaptation rules, local tokens, part property text and names, extended themes, typography scale): verified, theme-hunt124.
  • Preview fixes (removed pictures named, part-way picture runs, two-React advice, option suggestions, remote base fonts, template cells): verified, theme-hunt126.
  • Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified, theme-hunt127.
  • new repairs a value as set does and offers only lines it would accept: verified, theme-hunt128.
  • Unquoted words of a flag value on new belong to that value (changeset and description): verified when typed after the theme name; false when the option is typed before it, where the next word becomes the name (theme-hunt128.test.mjs:240).
  • One mode, base, state and family-list reader (black, white, dim and bright are no longer modes): verified in code.
  • One stray-option answer for every editor and preview command: verified, theme-hunt133.
  • Several commands in one process read installs and writable folders fresh, compile releases its locks however it ends, and new refuses a valued option first: verified in code.
  • One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified, theme-parts55.
  • Part conditions come from what the theming target declares: verified, theme-part-conditions.
  • The undo headline and the undid and refusedBefore members name what an undo took back and whether the command before it was refused: verified, theme-undo-headline and theme-edit.type.mjs:175.
  • theme build reads escaped names, names theme-held var() families, and builds a never-reassigned let/var theme: verified, theme-hunt125 and font-warning.test.mjs.
  • The description's list of new test files: verified, it names the 13 test files the pull request adds.
  • 19 test files run the CLI in process and four keep a real process: four verified (four editor suites still start the CLI); 19 not reproduced (16 existing suites move to the in-process runner and 5 new ones use it); the timings were not measured.
  • The preview code carries no test-only hooks: verified (the stop and scan-limit hooks are gone, and the limit is a parameter).
  • CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: CI's lint and typecheck jobs passed on this head and the changed suites passed on the previous push; CI's node tests were still running at the last read.

Files (all 85; five changed or rechecked in this push, the rest unchanged since the last review):

  • .changeset/experimental-theme-hunt128.md: finding: the flag-value claim overstates for an option typed before the name (blocking)
  • packages/cli/clients/cli/commands/experimental/theme.mjs: clear (the name now closes an option typed before it)
  • packages/cli/api/theme-edit/_edit.mjs: clear (check-only mode is an internal argument)
  • packages/cli/api/theme-edit/theme-hunt128.test.mjs: clear (pins both readings)
  • packages/cli/api/theme-edit/theme-edit.type.mjs: clear (the two members are now in the declared scope)
  • .changeset/: experimental-theme-css-family-names.md, experimental-theme-header-contrast.md, experimental-theme-how-modes-and-blocks.md, experimental-theme-how-one-keep-grammar.md, experimental-theme-hunt124.md, experimental-theme-hunt126.md, experimental-theme-hunt127.md, experimental-theme-hunt132.md, experimental-theme-hunt133.md, experimental-theme-in-process-runs.md, experimental-theme-parts55.md, experimental-theme-parts56.md, experimental-theme-undo-headline.md, theme-build-css-family-names.md: clear
  • packages/cli/api/theme-edit/: _adapter.mjs, _catalog.mjs, _check.mjs, _color.mjs, _compiler.mjs, _context.mjs, _how-commands.mjs, _how-question.mjs, _importers.mjs, _normal.mjs, _palette.mjs, _parts.mjs, _preview-app.mjs, _preview.mjs, _project.mjs, _settings.mjs, _tables.mjs, _vet.mjs: clear
  • packages/cli/api/theme-edit/ tests: theme-how-families, theme-how, theme-hunt102, theme-hunt107, theme-hunt109, theme-hunt112, theme-hunt115, theme-hunt119, theme-hunt120, theme-hunt123, theme-hunt124, theme-hunt125, theme-hunt126, theme-hunt127, theme-hunt130, theme-hunt133, theme-hunt134, theme-hunt14, theme-hunt26, theme-hunt27, theme-hunt3, theme-hunt62, theme-hunt68, theme-hunt70, theme-hunt75, theme-hunt78, theme-hunt81, theme-hunt82, theme-hunt93, theme-new-suggestions, theme-part-conditions, theme-parts45, theme-parts51, theme-parts55, theme-preview-importers, theme-preview-safety, theme-stress, theme-undo-headline (.test.mjs): clear
  • packages/cli/api/theme/build/: build.mjs, font-warning.mjs, icon-imports.mjs: clear
  • packages/cli/clients/cli/commands/: experimental-theme-editor-show.doc.mjs, theme.mjs: clear
  • packages/cli/clients/cli/lib/json-shim.mjs, packages/cli/foundation/fonts/font-stylesheet.mjs, packages/cli/foundation/text/css-escape.mjs: clear
  • packages/cli/test-utils/: stop-at-step.mjs, stopped-run.mjs: clear

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec fd84fc5

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: some of CI's test jobs are still running on this head.

The new release note and the description now scope the flag-value reading to words typed after the theme name, which is what the code and its test do; that was the last open point. The spec direction for the editor changes, the undo type members and the theme build fix is approved for this head.

Claims and files checked

Review mode: incremental; reason: none

Claims:

  • new reads unquoted words of a flag value typed after the theme name into that value (release note and description): verified, theme-hunt128.test.mjs:216-240 and the word walk in commands/experimental/theme.mjs:1241-1276.
  • Refusals offer new only for a settings file new remakes, a setting listed twice gets keep and remove lines, a malformed lifted is dropped, new repairs values through set's gate, a saved corners size in rem reads as px: verified, theme-hunt128 and _settings.mjs (settingsRemade, cornersPlain).
  • The own-value check judges every block (adaptation rules, local tokens, part property text and names, extended themes, typography scale and weights): verified, theme-hunt124 and judgeBlock in _edit.mjs.
  • Font family names are read as CSS reads them, a var()-held family counts, let/var themes build, compile gives the phone type note with a working rule, the full report wires the app copy: verified, theme-hunt125, font-warning.test.mjs.
  • Preview fixes (removed pictures named by every build, part-way picture runs, two-React advice, typo-based suggestions, remote base fonts, template and re-exported cells): verified, theme-hunt126.
  • Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified, theme-hunt127.
  • One reader each for mode, base, state and family lists; black, white, dim and bright are no longer modes; new on an uninstalled base leads with the install: verified in code (modeWord and baseWord in _normal.mjs, onBuiltInSteps in newTheme), base names also in theme-hunt127.
  • One stray-option answer for every editor and preview command, and a part's color-prop token offered from its doc: verified, theme-hunt133.
  • One keep grammar, one density table, a fill color after "with", and vibrancy counting warm or cool grays: verified, theme-hunt134.
  • One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in how; card shadows keep Core's layers: verified, theme-how.test.mjs and theme-hunt123.
  • One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified, theme-parts55.
  • Part conditions come from what the theming target declares: verified, theme-part-conditions.
  • Top-bar text is checked over the header's background, including see-through parts: verified, theme-hunt130.
  • The undo headline names what was taken back and when the last command was refused (undid, refusedBefore): verified, theme-undo-headline and theme-edit.type.mjs:175.
  • Several commands in one process read installs and writable folders fresh, compile releases its locks however it ends, and new refuses a valued option first: verified in code (packageInstalled, copyFailure, the build action's finally).
  • theme build reads escaped names, names theme-held var() families, and builds a never-reassigned let/var theme: verified, theme-hunt125 and font-warning.test.mjs; the seven shipped themes build to identical CSS.
  • 19 theme test files run the CLI in process and four keep a real process: verified (19 changed suites use the in-process runner, 16 of them newly; four suites still start the CLI); the timings were not measured.
  • The preview code carries no test-only hooks, and the importer scan takes its limit as a parameter: verified (_importers.mjs, the stop hooks are gone).
  • The description's list of new test files and its scope line: verified against the 13 added test files and ThemeEditUndoResponse.
  • CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: the 48 affected test files pass on this head; CI's lint and typecheck passed; some CI test jobs were still running.

Files (all 85):

  • .changeset/experimental-theme-hunt128.md: clear (the flag-value sentence is fixed in this push)
  • .changeset/: experimental-theme-css-family-names.md, experimental-theme-header-contrast.md, experimental-theme-how-modes-and-blocks.md, experimental-theme-how-one-keep-grammar.md, experimental-theme-hunt124.md, experimental-theme-hunt126.md, experimental-theme-hunt127.md, experimental-theme-hunt132.md, experimental-theme-hunt133.md, experimental-theme-in-process-runs.md, experimental-theme-parts55.md, experimental-theme-parts56.md, experimental-theme-undo-headline.md, theme-build-css-family-names.md: clear
  • packages/cli/api/theme-edit/: _adapter.mjs, _catalog.mjs, _check.mjs, _color.mjs, _compiler.mjs, _context.mjs, _edit.mjs, _how-commands.mjs, _how-question.mjs, _importers.mjs, _normal.mjs, _palette.mjs, _parts.mjs, _preview-app.mjs, _preview.mjs, _project.mjs, _settings.mjs, _tables.mjs, _vet.mjs, theme-edit.type.mjs: clear
  • packages/cli/api/theme-edit/ tests: theme-how-families, theme-how, theme-hunt102, theme-hunt107, theme-hunt109, theme-hunt112, theme-hunt115, theme-hunt119, theme-hunt120, theme-hunt123, theme-hunt124, theme-hunt125, theme-hunt126, theme-hunt127, theme-hunt128, theme-hunt130, theme-hunt133, theme-hunt134, theme-hunt14, theme-hunt26, theme-hunt27, theme-hunt3, theme-hunt62, theme-hunt68, theme-hunt70, theme-hunt75, theme-hunt78, theme-hunt81, theme-hunt82, theme-hunt93, theme-new-suggestions, theme-part-conditions, theme-parts45, theme-parts51, theme-parts55, theme-preview-importers, theme-preview-safety, theme-stress, theme-undo-headline (.test.mjs): clear (all pass)
  • packages/cli/api/theme/build/: build.mjs, font-warning.mjs, icon-imports.mjs: clear
  • packages/cli/clients/cli/commands/: experimental/theme.mjs, experimental-theme-editor-show.doc.mjs, theme.mjs: clear
  • packages/cli/clients/cli/lib/json-shim.mjs, packages/cli/foundation/fonts/font-stylesheet.mjs, packages/cli/foundation/text/css-escape.mjs: clear
  • packages/cli/test-utils/: stop-at-step.mjs, stopped-run.mjs: clear

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · fd84fc5

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 4.65 MB packed (+27.5 kB); no new dependencies.

API changes: cli +0 · ~1 · −0

1 API change (advisory)
Package Where Signature Usage
~ cli ./api/experimental · Types · type ThemeEditUndoResponse data: { theme: string; action: "step"; undone: string[]; settings: number; stepsLeft: number; changedTokens: string[]; problems: string[] } & ThemeEditPreviewFields → data: { theme: string; action: "step"; undid: string; refusedBefore?: string; undone: string[]; settings: number; stepsLeft: number; changedTokens: string[]; problems: string[] } & ThemeEditPreviewFields import type {ThemeEditUndoResponse} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditUndoResponse = {data: …}

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit 270f680 into main Nov 14, 2026
75 checks passed
@github-actions
github-actions Bot deleted the theme-followup-17 branch November 15, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — fd84fc54 Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant