Skip to content

experimental theme: follow-up fixes from the next edge-case round - #11738

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

josephfarina merged 20 commits into
mainfrom
theme-followup-13

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up fixes for astryx experimental theme, from the next round of edge-case testing across every command, subcommand and option. Each fix is at its cause, with tests.

Reading what was typed

  • Every repair value passes one gate of declared sources: the value typed (under exact readings), documented tables, saved values, a setting's fallback or step, or a typo's correction. Anything else gets a pointer to how. Every offered line is checked the way set checks it.
  • Names, flags and saved entries are read as meant: --only as a boolean, the theme typed after the setting, dial words in any case, corners in rem, and a thing and value in one word. Every suggested set, undo, new and compile line goes through one vetter before it is offered.

Own tokens and compile

  • The own-token check judges the evaluated build: imports, expressions and typography fields. Values are named with file and line.
  • compile refuses a source whose shape the editor cannot keep. App-copy fonts follow the families the build writes; a stable theme build counts fonts loaded by the theme's own <slug>.fonts.css beside the source (no other stylesheet); a blank --out is refused.

Parts and modes

  • A color word in a one-mode background becomes the mode's color. Variant and state one-mode colors keep the other mode's look. The corners dial writes the part radius token where the base pins one. Keywords with --mode are refused.

how

  • how --help lists the kinds of asks it understands, and a refusal points there.
  • One reader each for mode phrases, bounds and shadow strength. Prohibitions ("but leave X alone") become exceptions. Exceptions hold for every variant and state. The measured check covers typed values, see-through fills over the page, and token steps on a part.

Preview

  • The picture sweep deletes only pictures the editor recorded. Playwright runs as its own process with one temp folder and a time bound. Unwritable folders give ERR_WRITE_FAILED. One preview finder serves every command, and a workspace's theme is kept.

Tests

New theme-hunt<N> files, each with a top describe that says what it checks, plus the updated expectations each fix names. The theme-edit, theme, doctor and command suites pass. Structure, changesets, tsc and prettier are clean.

@josephfarina

…made now writes, through one path: imports, expressions, spreads, computed keys and pair halves by their built values, typography by the values the build was given and the families and sizes it writes; the source only names the file and line, and the facts a build erases)
…ts settings; the app copy loads every built family's installed font package; a build counts the font stylesheet beside its source; a blank --out is refused
…take the theme's own value around them, a gradient layer's color is that mode's background color, keywords take no mode, the corners dial reaches parts with their own radius, how lists margins among spacing)
… with examples it answers, and a question it cannot answer points there
…ery browser run has one temp folder, one bound and its real cause; an unwritable theme folder is a write failure; one list of previews for add, see, refresh and remove; a theme outside the project folder is kept; refusals offer what works)
…y as a boolean, the theme typed after the setting, dial words in any case, corners in rem, a thing and value in one word), and every suggested set, undo, new and compile is followed through one vetter before it is offered
…nd prohibitions each through one shared reader, and the measured check holds typed values, every variant of a kept part, see-through fills over the page and token steps on a part
…urces (the value typed under exact readings, documented tables, saved values, a setting's fallback or step, a typo's correction by the shared typo reader), and every offered line is checked as set checks it
…its own word, and a typed value waives the way only for what it writes
… the value the build writes, and an own-token reason ends with one period
…ne and then the same set, in any letters; how reads a thin or thick border as a width and steps only for thinner or thicker; tests follow the case rule and rem corners
@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 2:19pm 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
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review 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, 2:32 PM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6c6debd

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · d6b1227

Storybook · Sandbox · built from this PR's head

Package size: measured; main has no measurement of the merge base to compare yet.

API changes: unknown (base surface unavailable): richtext, theme-butter, theme-chocolate, theme-gothic, theme-matcha, theme-neutral, theme-stone, theme-y2k

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

…rocess and the font stylesheet's first-read postcss load
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 33e5c73

@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: three defects need fixing first.

  • The stable astryx theme build now refuses a blank --out and leaves fonts loaded by a *.fonts.css beside the source out of its "not loaded" note. The only release note for these is an [experimental] Changeset about experimental theme compile, and the release policy's experimental exception (AST-017 FR22) never covers stable CLI commands. Add a patch [fix] Changeset that names theme build and both changes, or split them into their own pull request.
  • fontsLoadedBeside (clients/cli/commands/theme.mjs:158) counts every *.fonts.css in the source's folder, so a stray stylesheet hides the "Fonts named but not loaded" note. theme add imports only <slug>.fonts.css, so read only that file.
  • The new family-plus-weight check (api/theme-edit/_check.mjs:2096-2145) refuses real family names that end in a weight word: Arial Black, Archivo Black and Segoe UI Semibold, all accepted before this change. It also offers a different face (font Arial). Refuse only a numeric weight such as Inter 600, or check the whole name against installed font packages and system families first.

Non-blocking: three tests in theme-hunt100.test.mjs would pass without the fix they name. One passes on the base, one checks its note only inside an if, and one swallows the add error.

The direction of the editor changes is covered by the engineering owner's approval for this exact commit. CI's test jobs have not finished on this head; the first run was stopped because the CI queue was full.

Claims and files checked

Claims (description):

  • Repair values come only from declared sources, and every offered line is checked as set checks it: verified (allowedLine, carryTyped and workingLines; the hunt98 tests).
  • Names, flags and saved entries are read as meant (--only, theme order, dial case, rem corners, thing and value in one word): verified (hunt103 tests).
  • Every suggested set, undo, new and compile line goes through one vetter: verified (followLine is used by all four paths).
  • The own-token check judges the evaluated build and names the file and line: verified (hunt101 tests).
  • compile refuses a source the editor cannot keep: verified (hunt102).
  • App-copy fonts follow the families the build writes: verified (hunt102).
  • A stable build reads *.fonts.css: verified, but it reads every such file in the folder (blocking finding).
  • A blank --out is refused: verified, and the stable theme build refuses it too (blocking finding on the release note).
  • One-mode background, variant and state colours; the corners dial on pinned radii; keywords with --mode refused: verified (parts48 tests).
  • how --help lists the asks it understands, and an unanswered question points there: verified (how-families tests).
  • Shared readers for mode phrases, bounds and shadow strength, including 8-digit hex: verified (hunt99 tests).
  • Prohibitions become exceptions that hold for every variant and state: verified (hunt99 tests).
  • The measured check covers typed values, see-through fills and token steps: verified (hunt99 tests; painted in _how-commands.mjs).
  • The picture sweep deletes only recorded pictures: verified by reading editorRecorded; its test also passes on the base.
  • Playwright runs as its own process with one temp folder and a time bound: verified (hunt100).
  • Unwritable folders give ERR_WRITE_FAILED: verified for show (hunt100).
  • One preview finder serves every command, and a workspace's theme is kept: verified (hunt100).
  • The named suites pass and the static checks are clean: partly verified; the 26 changed test files pass, and the full suites were not rerun here.

Claims (Changesets):

  • compile-source-shape-fonts: the compile refusal, the app-copy fonts and compile's font note are verified. "A theme build counts the stylesheet beside its source" is true but broader and stable (blocking). "A blank --out is refused" also reaches the stable build (blocking).
  • how-asks-list: verified.
  • how-dial-by-effect: verified ("more washed out colors" answers vibrancy less).
  • how-shared-readers: verified (hunt99).
  • hunt100: verified; the picture-copy item is verified by reading the code.
  • hunt101: verified.
  • hunt98: verified, except that the Inter 600 split also refuses real families such as Arial Black (blocking).
  • integration-fixes: the install line for an uninstalled base is verified (hunt41); thin and thick border widths are verified by reading the code.
  • names-flags: verified (hunt103).
  • own-token-message: verified.
  • parts48: verified.

Files:

  • .changeset/experimental-theme-compile-source-shape-fonts.md: finding 1.
  • packages/cli/clients/cli/commands/theme.mjs: findings 1 and 2.
  • packages/cli/api/theme/build/build.mjs: finding 1.
  • packages/cli/api/theme-edit/_check.mjs: finding 3.
  • packages/cli/api/theme-edit/theme-hunt100.test.mjs: non-blocking test note.
  • Clear:
    • the other 10 .changeset/experimental-theme-*.md files;
    • in packages/cli/api/theme-edit/: _adapter.mjs, _color.mjs, _edit.mjs, _how-commands.mjs, _how-question.mjs, _how.mjs, _normal.mjs, _playwright-picture.mjs, _preview-app.mjs, _preview.mjs, _settings.mjs, _tables.mjs, _vet.mjs, themeEditHow.doc.mjs, themeEditNew.doc.mjs, themeEditPreviewRemove.doc.mjs, theme-edit.test.mjs, theme-editor-refusals.behavior.test.mjs, theme-how-families.test.mjs, theme-how.test.mjs, theme-hunt.test.mjs, theme-hunt101.test.mjs, theme-hunt102.test.mjs, theme-hunt103.test.mjs, theme-hunt16.test.mjs, theme-hunt21.test.mjs, theme-hunt26.test.mjs, theme-hunt4.test.mjs, theme-hunt41.test.mjs, theme-hunt5.test.mjs, theme-hunt56.test.mjs, theme-hunt75.test.mjs, theme-hunt83.test.mjs, theme-hunt87.test.mjs, theme-hunt92.test.mjs, theme-hunt96.test.mjs, theme-hunt98.test.mjs, theme-hunt99.test.mjs, theme-palette.test.mjs, theme-parts48.test.mjs;
    • packages/cli/api/theme/build/font-warning.mjs;
    • in packages/cli/clients/cli/commands/: experimental-theme-editor-how.doc.mjs, experimental-theme-editor-new.doc.mjs, experimental-theme-editor-set.doc.mjs, experimental-theme-editor-show.doc.mjs, experimental-theme-editor-undo.doc.mjs, experimental-theme-preview-remove.doc.mjs, experimental/theme.mjs;
    • packages/cli/clients/cli/lib/json-shim.mjs;
    • packages/cli/foundation/doc-compiler/doc-loads.test.mjs;
    • packages/cli/foundation/fonts/font-stylesheet.mjs.

Automated review (maintainer link)

Comment thread packages/cli/api/theme-edit/_check.mjs Resolved
…stylesheet beside the source, which is the theme's own <slug>.fonts.css only
… of the name unless only the name without it is a known family; a weight number never is
…id stamped PNG copy, the default-page note asserted unconditionally in a preview of its own, add into a renamed preview with its result checked)
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 78e48da

@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 release-note gap remains. The three defects from the last review are fixed.

  • Adding Segoe UI Light, Semilight, Semibold and Black to the system font list (packages/cli/api/theme/build/font-warning.mjs:63-67) also changes the stable astryx theme build "not loaded" notice and astryx doctor's font check, but only the [experimental] editor Changeset describes it, and the release policy's experimental exception (AST-017 FR22) never covers stable CLI commands, so add a sentence to the [fix] Changeset for theme build saying both commands now treat those four families as system fonts.

The direction of the changes is covered by the engineering owner's approval for this exact commit. CI's test jobs have not finished on this head.

Claims and files checked

Claims (description):

  • Repair values come only from declared sources, and every offered line is checked the way set checks it: verified (allowedLine, followLine; the hunt98 tests).
  • Names, flags and saved entries are read as meant: verified (hunt103 tests); a family with a weight word is now kept whole when it is a known family (_check.mjs:2141-2150, hunt98 test).
  • Every suggested set, undo, new and compile line goes through one vetter: verified (followLine).
  • The own-token check judges the evaluated build and names the file and line: verified (hunt101 tests).
  • compile refuses a source the editor cannot keep, and app-copy fonts follow the families the build writes: verified (hunt102 tests).
  • A stable build reads the font stylesheet beside the source: verified; it reads only the theme's own <slug>.fonts.css (theme.mjs:158, hunt102 test).
  • A blank --out is refused: verified (build.mjs:3899), now with a [fix] release note for the stable command.
  • One-mode background, variant and state colors, the corners dial on pinned radii, and keywords with --mode: verified (parts48 tests).
  • how --help lists the asks it understands, and an unanswered question points there: verified (how-families tests).
  • Shared readers, prohibitions as exceptions, and the measured check: verified (hunt99 tests).
  • The picture sweep deletes only recorded pictures: verified (editorRecorded; the hunt100 test now stamps a valid picture copy).
  • Playwright runs as its own process with one temp folder and a time bound; unwritable folders give ERR_WRITE_FAILED; one preview finder; a workspace theme is kept: verified (hunt100 tests).
  • The named suites pass and the static checks are clean: not verified here; the test jobs had not finished on this head.

Claims (Changesets):

  • family-weight-words: the weight-word rule is verified; the Segoe UI system families also change stable theme build and doctor (blocking finding).
  • theme-build-blank-out-local-fonts: verified, but it does not yet name the Segoe UI change.
  • compile-source-shape-fonts, how-asks-list, how-dial-by-effect, how-shared-readers, hunt98, hunt100, hunt101, integration-fixes, names-flags, own-token-message, parts48: verified.

Files:

  • packages/cli/api/theme/build/font-warning.mjs, packages/cli/api/theme-edit/_tables.mjs, .changeset/experimental-theme-family-weight-words.md, .changeset/theme-build-blank-out-local-fonts.md: the blocking finding.
  • Clear, changed since the last review: .changeset/experimental-theme-compile-source-shape-fonts.md, packages/cli/api/theme-edit/_check.mjs, packages/cli/clients/cli/commands/theme.mjs, theme-hunt98.test.mjs, theme-hunt100.test.mjs, theme-hunt102.test.mjs.
  • Clear, unchanged since the last review and rechecked against the changes above: the other 58 files (the remaining 10 Changesets, the editor modules and tests in packages/cli/api/theme-edit/, api/theme/build/build.mjs, the command docs, experimental/theme.mjs, json-shim.mjs, doc-loads.test.mjs and foundation/fonts/font-stylesheet.mjs).

Automated review (maintainer link)

…read as system fonts by theme build and doctor
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec cbe3eba

@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 release-note correction. The Segoe UI release-note gap from the last review is fixed.

  • Miss: .changeset/experimental-theme-how-shared-readers.md lists "8-digit hex shadow colors scale and measure" as part of this change, but the base already scales and measures them the same way (how "softer shadows" over #2d241b0D gives #2d241b08 on both, and the 8-digit test in theme-hunt99.test.mjs passes against the base), so please drop that clause and the "(8-digit hex included)" in the description.

The direction of the changes is covered by the engineering owner's approval for this exact commit. Two new test cases pass without their fix and could be tightened: the phone-note case in theme-hunt101.test.mjs needs a base theme to reproduce the note, and the long-input case in theme-hunt98.test.mjs needs a long value that holds a setting name.

Claims and files checked

Claims (description):

  • Repair values come only from declared sources and anything else points to how: verified (allowedLine in _normal.mjs, carryTyped in _edit.mjs; hunt98 tests).
  • Every offered line is checked the way set checks it: verified (followLine in _vet.mjs, vetSuggestions, workingLines).
  • Names, flags and saved entries are read as meant (only, theme typed after the setting, dial words in any case, rem corners, thing and value in one word): verified (hunt103 tests).
  • Suggested set, undo, new and compile lines go through one vetter: verified (followChangeLine, followNewLine, editorFollowCompile all use followLine).
  • The own-token check judges the evaluated build and names file and line: verified (ownTokenProblems, evaluatedTheme; hunt101 tests).
  • compile refuses a source the editor cannot keep: verified (themeSourceRefusal; hunt102 test).
  • App-copy fonts follow the families the build writes: verified (copyFontsCss; hunt102 test).
  • A stable build reads the font stylesheet beside the source: verified; it reads only the theme's own <slug>.fonts.css (commands/theme.mjs).
  • A blank --out is refused: verified (build.mjs; hunt102 test, stable and experimental).
  • One-mode colors in backgrounds, variants and states, the corners dial on pinned radii, and keywords with --mode: verified (compileTheme, checkOne; parts48 tests).
  • how --help lists the asks it understands and a refusal points there: verified (how-families tests).
  • One reader each for mode phrases, bounds and shadow strength: verified (noMode, boundOf, shadowWay); "8-digit hex included": false, the base already handled it (blocking finding).
  • Prohibitions become exceptions, and exceptions hold for every variant and state: verified (draftAnswer; hunt99 tests).
  • The measured check covers typed values, see-through fills over the page and token steps on a part: verified (measureFit, painted).
  • The picture sweep deletes only recorded pictures: verified (editorRecorded; hunt100 test).
  • Playwright runs as its own process with one temp folder and a time bound: verified (_playwright-picture.mjs, runBrowser; hunt100 tests).
  • Unwritable folders give ERR_WRITE_FAILED, one preview finder serves every command, a workspace theme is kept: verified (themeEditShow, themePreviews, themeElsewhere; hunt100 tests).
  • New theme-hunt files each with a top describe that says what it checks: true for all but theme-hunt98.test.mjs, whose top describe is just hunt98 (non-blocking).
  • The named suites pass and the static checks are clean: the eight new files pass here (257 tests); typecheck, lint and two of the five node test shards passed in CI at this head, and the other shards were still running.

Claims (Changesets):

  • how-shared-readers: false for the 8-digit hex clause (blocking finding); the other clauses verified.
  • theme-build-blank-out-local-fonts: verified, including the Segoe UI sentence for theme build and doctor.
  • compile-source-shape-fonts, family-weight-words, how-asks-list, how-dial-by-effect, hunt98, hunt100, hunt101, integration-fixes, names-flags, own-token-message, parts48: verified.

Files:

  • .changeset/experimental-theme-how-shared-readers.md, theme-hunt99.test.mjs: the blocking finding.
  • theme-hunt101.test.mjs, theme-hunt98.test.mjs: one case each passes without its fix, and theme-hunt98.test.mjs's top describe names no check (non-blocking).
  • Clear: the other 12 Changesets; _adapter.mjs, _check.mjs, _color.mjs, _edit.mjs, _how-commands.mjs, _how-question.mjs, _how.mjs, _normal.mjs, _playwright-picture.mjs, _preview-app.mjs, _preview.mjs, _settings.mjs, _tables.mjs, _vet.mjs; themeEditHow.doc.mjs, themeEditNew.doc.mjs, themeEditPreviewRemove.doc.mjs; theme/build/build.mjs, theme/build/font-warning.mjs; the six experimental-theme-*.doc.mjs command docs; experimental/theme.mjs, commands/theme.mjs, lib/json-shim.mjs; foundation/fonts/font-stylesheet.mjs, doc-loads.test.mjs; theme-hunt100, theme-hunt102, theme-hunt103, theme-parts48, theme-how-families tests; and the 17 updated test files (theme-edit, theme-editor-refusals.behavior, theme-how, theme-hunt, theme-hunt4/5/16/21/26/41/56/75/83/87/92/96, theme-palette).

Automated review (maintainer link)

…e phone rule sets the type again, and first shows the note for a tokens-map family
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 77c7aa9

@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: two sentences in the pull request description do not match the code. The last round's release-note correction is in, and this round's two tests now fail without their fix.

  • Miss: the description says "a stable build reads *.fonts.css", but theme build reads only the theme's own <slug>.fonts.css (packages/cli/clients/cli/commands/theme.mjs:156-162), and theme-hunt102.test.mjs checks that a stray other.fonts.css is ignored, so please describe it that way.
  • Miss: the description says each new theme-hunt<N> file has a top describe that says what it checks, but packages/cli/api/theme-edit/theme-hunt98.test.mjs:217 is describe('hunt98', …), so please rename it to what it checks or reword the sentence.

The last review raised both only as non-blocking notes; nothing else blocks.

Claims and files checked

Changeset entries:

  • Compile refuses a source that no longer carries its settings, the app copy's fonts follow the built families, a build counts the theme's own font stylesheet, and a blank --out is refused: verified (_adapter.mjs compile check, _preview.mjs copyFontsCss, theme-hunt102.test.mjs).
  • A weight word ending a family name stays part of the name unless only the shorter name is known, and the Segoe UI weights are system fonts: verified (_check.mjs:2127, _tables.mjs, the hunt98 weight test).
  • how --help lists the asks it understands, and an unanswered question points there first: verified (experimental-theme-editor-how.doc.mjs, _how.mjs, theme-how-families.test.mjs).
  • how judges a dial step by its effect, and a typed value waives the direction only for what it writes: verified (_how-commands.mjs measured check).
  • how reads mode phrases, bounds, shadow strength and prohibitions through shared readers: verified (_how-question.mjs; "weaker shadows" gets no command on the base and softer shadows on the head).
  • Preview: only recorded pictures are deleted, browsers run bounded in their own temp folder, unwritable folders fail clearly, renamed and workspace previews are found, and refusals offer what works: verified (_settings.mjs, _preview.mjs, _preview-app.mjs, theme-hunt100.test.mjs).
  • The own-token check judges built values, and typography families get no phone note: verified (_edit.mjs; the phone-note test fails on the base).
  • Every repair value passes one gate of declared sources, with the listed cases: verified (_normal.mjs:881, theme-hunt98.test.mjs; the long-input case fails on the base).
  • A base theme that is not installed names its install line, and thin or thick borders name a width: verified (_edit.mjs, _how-question.mjs).
  • Names, flags and saved entries are read as meant (only, theme order, vibrancy undo, new flags, --base, show options, reserved names, rem corners, dial words, one-word thing and value, the single theme, the compile line): verified (_settings.mjs, _edit.mjs, experimental/theme.mjs, json-shim.mjs, theme-hunt103.test.mjs).
  • An own-token reason ends with one period: verified (_edit.mjs own-token refusal).
  • One-mode colours in a variant or state, gradient colour layers, keywords without a mode, the corners dial on pinned radii, the override note and margins in how: verified (_settings.mjs, _check.mjs, _tables.mjs, theme-parts48.test.mjs).
  • Stable theme build refuses a blank --out, its font note leaves out the theme's own <slug>.fonts.css families, and it and doctor treat four Segoe UI weights as system fonts: verified (build.mjs:3891, theme.mjs:156-162, font-warning.mjs:63-67).

Description claims:

  • Repair values come only from declared sources, and every offered line is checked as set checks it: verified.
  • Names, flags and saved entries are read as meant, and suggested lines go through one follow-through: verified (_vet.mjs:159).
  • The own-token check judges the evaluated build and names file and line: verified.
  • Compile refuses an unkeepable source, app-copy fonts follow the build, and a blank --out is refused: verified.
  • "A stable build reads *.fonts.css": false; it reads only <slug>.fonts.css (theme.mjs:156-162).
  • One-mode backgrounds, variant and state colours, the corners dial on pinned radii, and keywords with --mode: verified.
  • how --help lists the asks, and shared readers, prohibitions, exceptions and the measured check work as described: verified.
  • The picture sweep, the bounded Playwright process, the write failure, the shared preview finder and the workspace theme: verified.
  • Each new theme-hunt<N> file has a top describe that says what it checks: false for theme-hunt98.test.mjs:217.
  • The suites pass and tsc and prettier are clean: typecheck, lint and test-node shards 1 to 3 pass at this head; shards 4 and 5 were still running.

Files (68):

  • Changesets (13): experimental-theme-compile-source-shape-fonts.md, experimental-theme-family-weight-words.md, experimental-theme-how-asks-list.md, experimental-theme-how-dial-by-effect.md, experimental-theme-how-shared-readers.md, experimental-theme-hunt100.md, experimental-theme-hunt101.md, experimental-theme-hunt98.md, experimental-theme-integration-fixes.md, experimental-theme-names-flags.md, experimental-theme-own-token-message.md, experimental-theme-parts48.md, theme-build-blank-out-local-fonts.md: clear.
  • Source (20): api/theme-edit/_adapter.mjs, api/theme-edit/_check.mjs, api/theme-edit/_color.mjs, api/theme-edit/_edit.mjs, api/theme-edit/_how-commands.mjs, api/theme-edit/_how-question.mjs, api/theme-edit/_how.mjs, api/theme-edit/_normal.mjs, api/theme-edit/_playwright-picture.mjs, api/theme-edit/_preview-app.mjs, api/theme-edit/_preview.mjs, api/theme-edit/_settings.mjs, api/theme-edit/_tables.mjs, api/theme-edit/_vet.mjs, api/theme/build/build.mjs, api/theme/build/font-warning.mjs, clients/cli/commands/experimental/theme.mjs, clients/cli/commands/theme.mjs, clients/cli/lib/json-shim.mjs, foundation/fonts/font-stylesheet.mjs: clear.
  • Docs (9): themeEditHow.doc.mjs, themeEditNew.doc.mjs, themeEditPreviewRemove.doc.mjs, experimental-theme-editor-how.doc.mjs, experimental-theme-editor-new.doc.mjs, experimental-theme-editor-set.doc.mjs, experimental-theme-editor-show.doc.mjs, experimental-theme-editor-undo.doc.mjs, experimental-theme-preview-remove.doc.mjs: clear.
  • Tests (26): theme-edit.test.mjs, theme-editor-refusals.behavior.test.mjs, theme-how-families.test.mjs, theme-how.test.mjs, theme-hunt.test.mjs, theme-hunt100.test.mjs, theme-hunt101.test.mjs, theme-hunt102.test.mjs, theme-hunt103.test.mjs, theme-hunt16.test.mjs, theme-hunt21.test.mjs, theme-hunt26.test.mjs, theme-hunt4.test.mjs, theme-hunt41.test.mjs, theme-hunt5.test.mjs, theme-hunt56.test.mjs, theme-hunt75.test.mjs, theme-hunt83.test.mjs, theme-hunt87.test.mjs, theme-hunt92.test.mjs, theme-hunt96.test.mjs, theme-hunt99.test.mjs, theme-palette.test.mjs, theme-parts48.test.mjs, doc-loads.test.mjs: clear; theme-hunt98.test.mjs: its top describe does not match the description (finding above).

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d6b1227

@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: CI's test jobs have not finished on this head yet.

The two description points from the last review are fixed: the description now says theme build counts only the theme's own <slug>.fonts.css, and the top describe of theme-hunt98.test.mjs says what it checks. Nothing else blocks; the stable theme build and doctor corrections ship under their own [fix] Changeset, and the editor changes stay under [experimental].

Claims and files checked

Changeset entries:

  • Compile refuses a source that no longer carries its settings, the app copy's fonts follow the built families, a build counts the theme's own font stylesheet, and a blank --out is refused: verified (_adapter.mjs compile check, _preview.mjs copyFontsCss, theme-hunt102.test.mjs).
  • A weight word ending a family name stays part of the name unless only the shorter name is known, a weight number never is, and the Segoe UI weights are system fonts: verified (_check.mjs:2127-2150, _tables.mjs, the theme-hunt98 weight test).
  • how --help lists the kinds of ask it understands, and an unanswered question points there first: verified (experimental-theme-editor-how.doc.mjs, _how.mjs, theme-how-families.test.mjs).
  • how judges a dial step by its effect, and a typed value waives the direction only for what it writes: verified (_how-commands.mjs measured check, theme-hunt26 and theme-hunt99 tests).
  • how reads mode phrases, bounds, shadow strength and prohibitions through shared readers, with the listed cases: verified (_how-question.mjs boundOf, shadowWay, noMode; theme-hunt99.test.mjs).
  • Preview: only recorded pictures are deleted, each browser runs bounded in its own temp folder and keeps its real cause, unwritable folders fail clearly, renamed and workspace previews are found, and refusals offer what works: verified (_settings.mjs editorRecorded, _preview.mjs runBrowser, _preview-app.mjs, theme-hunt100.test.mjs).
  • The own-token check judges built values and names the file and line, typography is checked as built, and a typography family gets no phone note: verified (_edit.mjs own-token check, theme-hunt101.test.mjs).
  • Every repair value passes one gate of declared sources, with the listed cases: verified (_normal.mjs:881, theme-hunt98.test.mjs).
  • A base theme that is not installed names its install line, and a thin or thick border names a width while thinner or thicker steps from the width now: verified (_edit.mjs base check, _how-question.mjs border width).
  • Names, flags and saved entries are read as meant (only, theme order, vibrancy undo, new flags, --base, show options, reserved names, rem corners, dial words, one-word thing and value, the single theme, the compile line from a subfolder): verified (_settings.mjs, _edit.mjs, experimental/theme.mjs, json-shim.mjs, theme-hunt103.test.mjs).
  • An own-token reason ends with one period: verified (_edit.mjs own-token refusal).
  • One-mode colours in a variant or state, gradient colour layers, keywords without a mode, the corners dial on pinned radii, the override note and margins in how: verified (_settings.mjs, _check.mjs, _tables.mjs, theme-parts48.test.mjs).
  • Stable theme build refuses a blank --out, its font note leaves out the theme's own <slug>.fonts.css families, and it and doctor treat four Segoe UI weights as system fonts: verified (build.mjs:3891, theme.mjs:156-162, font-warning.mjs:63-67).

Description claims:

  • Repair values come only from declared sources, and every offered line is checked as set checks it: verified (_normal.mjs:881, theme-hunt98.test.mjs).
  • Names, flags and saved entries are read as meant, and suggested lines go through one vetter: verified (_vet.mjs:159, theme-hunt103.test.mjs).
  • The own-token check judges the evaluated build and names file and line: verified (theme-hunt101.test.mjs).
  • Compile refuses a source the editor cannot keep, app-copy fonts follow the build, a stable build counts only the theme's own <slug>.fonts.css, and a blank --out is refused: verified (theme-hunt102.test.mjs).
  • One-mode backgrounds, variant and state colours, the corners dial on pinned radii, and keywords with --mode: verified (theme-parts48.test.mjs).
  • how --help lists the asks, and the shared readers, prohibitions, exceptions and measured check work as described: verified (theme-how-families.test.mjs, theme-hunt99.test.mjs).
  • The picture sweep, the bounded Playwright process, the write failure, the shared preview finder and the workspace theme: verified (theme-hunt100.test.mjs).
  • Each new theme-hunt<N> file has a top describe that says what it checks: verified (theme-hunt98.test.mjs:217 and the others).
  • The suites pass and the repository checks, Changesets, tsc and Prettier are clean: the changed suites, the CLI typecheck, Prettier and the Changeset check pass at this head and the Lint workflow passed; the full test shards wait on CI.

Files (68):

  • Changesets (13): experimental-theme-compile-source-shape-fonts.md, experimental-theme-family-weight-words.md, experimental-theme-how-asks-list.md, experimental-theme-how-dial-by-effect.md, experimental-theme-how-shared-readers.md, experimental-theme-hunt100.md, experimental-theme-hunt101.md, experimental-theme-hunt98.md, experimental-theme-integration-fixes.md, experimental-theme-names-flags.md, experimental-theme-own-token-message.md, experimental-theme-parts48.md, theme-build-blank-out-local-fonts.md: clear.
  • Source (20): api/theme-edit/_adapter.mjs, _check.mjs, _color.mjs, _edit.mjs, _how-commands.mjs, _how-question.mjs, _how.mjs, _normal.mjs, _playwright-picture.mjs, _preview-app.mjs, _preview.mjs, _settings.mjs, _tables.mjs, _vet.mjs; api/theme/build/build.mjs, font-warning.mjs; clients/cli/commands/experimental/theme.mjs, clients/cli/commands/theme.mjs, clients/cli/lib/json-shim.mjs; foundation/fonts/font-stylesheet.mjs: clear.
  • Tests (26): theme-edit.test.mjs, theme-editor-refusals.behavior.test.mjs, theme-how-families.test.mjs, theme-how.test.mjs, theme-hunt.test.mjs, theme-hunt4, 5, 16, 21, 26, 41, 56, 75, 83, 87, 92, 96, 98, 99, 100, 101, 102, 103 (.test.mjs), theme-palette.test.mjs, theme-parts48.test.mjs, foundation/doc-compiler/doc-loads.test.mjs: clear.
  • Command and API docs (9): experimental-theme-editor-how.doc.mjs, -new, -set, -show, -undo, experimental-theme-preview-remove.doc.mjs, themeEditHow.doc.mjs, themeEditNew.doc.mjs, themeEditPreviewRemove.doc.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 6acf36a into main Nov 14, 2026
74 checks passed
@github-actions
github-actions Bot deleted the theme-followup-13 branch November 15, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — d6b12274 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant