Skip to content

feat(cli): experimental theme editor: round 15 parts 20–25 in one change - #13048

Closed
josephfarina wants to merge 5 commits into
theme-r15-p14-19from
theme-r15-p20-25
Closed

josephfarina wants to merge 5 commits into
theme-r15-p14-19from
theme-r15-p20-25

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary: experimental theme editor: round 15 parts 20–25 as one change, so they review and merge together (a bar reaches only its row; checkboxes and radios sized by their box; how <picture> measures a look's traits; family sizes; a meaningless saved --only reads as absent). Mostly the experimental theme editor in packages/cli; it also rewrites the stable "Use a theme" guide paragraph (the page-colour note, use-a-theme.doc.mjs) and re-times scripts/vitest-node-durations.json. No Core change.

Replaces the six part PRs #12516, #12517, #12518, #12519, #12520 and #12521 (closed when this merges). Based on theme-r15-p14-19; it retargets onto main once parts 1–19 land.

  • _how-question.mjs line delta for the whole change: +386/-49 (each part's own delta below counts the lines that part changes, so where a later part edits an earlier part's lines the part deltas overlap and do not sum to the whole).
  • A saved --only on a bar's height or vertical padding is meaningless under AST-050 DEC-11 (a bar spreads through no group): set saves it without --only and says so, and a saved one reads as absent.

Restored to main's reading (last commit, after review): every editor answer from rounds 2–25 was replayed against main on about 17,400 asks. Where round 15 read an ask worse than main, the last commit restores main's reading: state lists keep their state on every item; a text color asked for every button goes to every mode; family groups are named only with --on (a look said of one member stays on that member); checkboxes and radios answer a size ask as main does; progress-bar pieces, shadow words, colour-word alerts, accents, links, badges and corners read as main reads them. The release notes name only what ships, so some part sections below describe readings this change no longer has (the checkbox and radio size step, the family-group reach from how, a gradient reaching the toasts).

Where main misreads the ask, this change's answer stays:

These answers differ from main on purpose, because main's answer does not do what was asked:

  • Main writes on the wrong part, or writes theme-wide from an ask about one part ("controls: 12px corners", "rounded photos and a blue accent").
  • Main drops a color that was asked for ("give the top bar our brand color #1E3A8A with white text" writes no brand color and keeps the white text to dark mode).
  • Main drops text that was asked for, or drops the state on one item of a state list ("active side nav items: a #eeeeee fill and gray text" drops the gray text).
  • Main writes a state's look at rest on every item ("disabled list items: a shadow and white text").
  • Main writes typed text on parts the typed fill didn't reach ("badges #26272b with #d0d6e0 text", "buttons #808080 with white text": the destructive button keeps its own text).
  • Main misreads sides and corners ("tabs border colors: top red, bottom blue" fills the tab blue; "cards rounded on top" rounds all four corners; "buttons padding top and bottom 8px" sets the top to 0.625rem, not 8px).
  • Main keeps only the first of per-side colors ("cards border 2px #eee #eee #ddd").
  • Main misreads sizes and weights ("avatars circular, 32px" sets no size; "checkboxes 18px, 4px corners" makes the size the radius; "heavy condensed headings" makes headings light).
  • Main puts a list item on the wrong piece ("hovered tabs: an underline and bold text" bolds the underline bar; "status badges: green, amber, red" is refused as a contradiction).
  • Main writes a line for a mode the same answer removes (two "make it look like GitHub's dark theme" prompts set a dark-only theme; main still writes light-mode button text).
  • Main reads a word as the wrong thing ("Charcoal-style bold system font" becomes a charcoal accent; "cards 8px corners, brighter and more cheerful" darkens the cards; "page #202020, cards #2D2D2D" paints the light-mode cards dark too).
  • Main writes a look nobody asked for, or a value CSS does not accept ("menus semi-transparent" fades the text too; a font named "Lato-like").

Known differences from main:

These 19 asks answer worse than main here. Each is fixed in a follow-up pull request after this one merges:

  • A page gradient said after "the page:" ("the page: a purple-to-pink gradient") writes a solid tint instead of the gradient (5 asks).
  • Card looks inside a longer page description (a "white background, 8px radius, shadow-sm, ring-1" card, and three brand-look prompts) miss part of main's card lines (4 asks).
  • A text color said for every button with a fill or a mode ("in light mode, buttons white text", "gold buttons with black text", "buttons with a navy background in dark mode and white text", "secondary button light blue tint with blue text") is written on fewer variants than main (4 asks).
  • "No rounding anywhere, badges and switches too" leaves avatars round (1 ask).
  • "Popover, tooltip and hover card: dark" does not read "dark" as a color for the hover card (1 ask).
  • An unknown word before a look holds the clauses after it: "bold system type" writes nothing, and "bold system type, blue accent" or "bold system type and rounded corners" loses the second change too (4 asks).

The sections below are the six parts' own descriptions.

Ruling recorded: a saved only on a family role (e.g. button-like) gets main's existing rule for an only on a group: the same refusal and an unchanged file as main gives for inputs with only; only the wording differs, because main has no family roles. That is main's behaviour for an only on a group, so it needs no new AST-050 rule.

Also in this change (it lands in the same batch as parts 2–19): a side list said as where a border goes ends before a comma, ", and" or " and" when another look follows ("cards with a border on top and bottom padding 8px" gives the top border and the bottom padding, as main does; "a border on top and bottom" is still both sides; the same holds for a side said right after its look word: "cards with border left and right padding 12px" gives the left border and the right padding, and "an outline top, bottom padding 8px" reads the outline as a look, never a part); and part 2's release note on per-mode text now covers text asked together with a fill only.

Side lists, replayed family: a side list said after its look word, or placed with on/at/along/across/around (with or without "the", "its" or "their"), ends before another look; replayed against main on 2,938 asks with no answer worse than main. Side-list readings beyond that family are tracked in #13044.

Known, one line short of main (6 asks, tracked in #13044): an ask that contradicts itself about corners, "rounded corners on the left, and 12px corners", offers corners round and border-radius 12px without main's extra theme-wide corners 12px line.

experimental theme set: a bar's height reaches the row inside it

Summary: experimental theme set: a bar's height reaches the row inside it. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

What changes

  • experimental theme set: a bar's height reaches the row inside it; a part taller than its bar is a problem

Phrase rules

  • _how-question.mjs line delta: +0/-0.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.
  • Look gate on this change: the header and top nav are clean at desktop and phone width; other findings on that page are tracked separately.

experimental theme: the page colour note leads with AppShell

Summary: experimental theme: the page colour note leads with AppShell. Mostly the experimental theme editor in packages/cli; it also rewrites the stable "use a theme" guide's page-colour paragraph (assets/docs/use-a-theme.doc.mjs). No Core, spec record or official-theme change.

What changes

  • experimental theme how and set: the page color note leads with AppShell, the body rule as the fallback, on the token path too (how asked by the token, the first set of it in a theme), and a one-mode theme says its page needs that color in every OS mode

Phrase rules

  • _how-question.mjs line delta: +2/-1.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

experimental theme how: a corner ask the part already answers says so

Summary: experimental theme how: a corner ask the part already answers says so. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

What changes

  • experimental theme how: a corner ask the part already answers says so and writes nothing

Phrase rules

  • _how-question.mjs line delta: +168/-44.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

experimental theme how: display headings are every display size

Summary: experimental theme how: display headings are every display size. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

What changes

  • experimental theme how: display headings are every display look; a numbered look said in the plural is its whole family

Phrase rules

  • _how-question.mjs line delta: +95/-5.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

experimental theme how: checkboxes and radios are sized by their box

Summary: experimental theme how: checkboxes and radios are sized by their box. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

What changes

  • experimental theme how: checkboxes and radios are sized by their box's width and height, never spacing

Phrase rules

  • _how-question.mjs line delta: +115/-0.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

experimental theme how: how <picture> measures the look's traits from its pixels

Summary: experimental theme how: how <picture> measures the look's traits from its pixels. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

What changes

  • feat(cli): theme editor how measures the look's traits from its pixels
  • fix(cli): how writes no control trait from one kind of control
  • fix(cli): how writes field height on inputs, not the buttons' size
  • fix(cli): how sets the control size on the control families only
  • fix(cli): how review: large and grainy pictures, kept values, one renderer
  • fix(cli): how keeps corners set by the dial, and prints whole line height ratios
  • fix(cli): how keeps the dials the theme sets, and gives the checks a square box at each size
  • experimental theme: a saved --only on a part styled on its own opens
  • experimental theme: a meaningless saved --only is read as absent, as on main
  • fix(cli): --only means nothing on every group --on takes, family roles included (one predicate); how keeps a checks box the theme sizes on any member and offers the width and height pair; one helper writes a self-sized box's lines; a rounded corner is no text hole; equal readings agree, so corners pill is offered; no leading dial is named
  • fix(cli): round 15 part 22 review fixes: how drops two imports it no longer uses
  • experimental theme: the saved-only reader is the one only rule, no exception
  • fix(cli): how writes one theme-wide control radius only when every control agrees, else per family; edge width is read only from boxes that draw an edge, never 0px from filled buttons; the box helper's move leaves no unused imports
  • (test times: round 15's record of test times, measured on the same box against main)

Phrase rules

  • _how-question.mjs line delta: +56/-49.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

@vercel

vercel Bot commented Nov 20, 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 20, 2026 11:38pm UTC

Request Review

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

astracat-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 20, 2026, 11:43 PM UTC

@josephfarina
josephfarina changed the base branch from theme-r15-p19 to theme-r15-p14-19 November 20, 2026 03:29
@josephfarina
josephfarina force-pushed the theme-r15-p20-25 branch 3 times, most recently from 9e7725b to d90a658 Compare November 20, 2026 03:56
@josephfarina
josephfarina force-pushed the theme-r15-p14-19 branch 2 times, most recently from d915401 to b5c927f Compare November 20, 2026 04:04
@josephfarina
josephfarina force-pushed the theme-r15-p20-25 branch 3 times, most recently from 3ae9844 to 7942b54 Compare November 20, 2026 04:27
@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers round 15 parts 20–25 under the owner's rulings: a bar's height reaches the row inside it; checks use a 4px step, the spacing refusal, and borrowed doc values; a corner ask the part already answers says so, with longhands; plural looks and scaling; picture traits given as commands; the page-colour note and its guide. A saved only on a family role gets main's existing group-only rule (same refusal, unchanged file), so no new AST-050 rule.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 7a5f4c3

@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.

Outcome: changes requested. An engineering owner's /approve-spec for this exact head settles the direction, and the checkbox-size release note now names the command it changes. What remains is in the description, and fixing it needs no new commit:

  • The description says _how-question.mjs changes +386/−49 for the whole change, but this head changes it +627/−441.
  • The "one line short of main" note is stale: how "rounded corners on the left, and 12px corners" answers exactly as main does, offering corners round or corners 12px, with no border-radius 12px line.
  • "page #202020, cards #2D2D2D" is listed as a main misreading, but on a neutral theme main already writes the cards for dark mode only, as this head does.
  • "secondary button light blue tint with blue text" is listed as written on fewer variants than main, but both write the text on the secondary variant only; what differs is the fill and main's dark-mode text line.

Non-blocking: the earlier inline notes still apply (the two-colours note on every line of an answer, the bar's divider, the dead page-colour guard, the orphaned doc comment, the progress-bar test row, and two release-note wordings). CI has not run on this stacked head yet.

Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Checks release note, reworded in this push (set … --on checkbox-indicator takes the box sizes CheckboxInput names, such as --when size:sm, borrowed from another doc that lists the same part): verified against the compiler change and the CheckboxInput and Indicator docs; it now names its command.
  • Bar release note (a bar's height or vertical padding reaches its one row; the row's own value stays; --only saved without it; a taller part is named): verified by the bar tests.
  • Corner positions, corners already-so, picture traits, plural looks and page colour release notes: verified by their tests and earlier probes; the plural note repeats a phrase.
  • Saved-only release note: verified; it drops the later-entry sentence.
  • Part 2, 3, 4, 5, 7, 8, 9, 10, 11 and 13 release-note edits: verified by probes and tests, each saying what ships.
  • Every release note is an [experimental] patch note that names its command: verified for all 18.
  • Description, six parts in one change, mostly the experimental editor plus the guide paragraph and test times, no Core change: verified.
  • Description, the question reader's delta for the whole change (+386/−49): false; it is +627/−441 (blocking).
  • Description, a saved --only on a bar is saved without it and read as absent; a saved only on a family role gets the group rule: verified by the tests.
  • Description, the restored readings (state lists keep their state, a text colour for every button goes to every mode, family groups only with --on, checkbox and radio size asks as on main, and the others listed): verified by probes and tests.
  • Description, where main misreads the ask: verified against main except "page #202020, cards #2D2D2D", which does not reproduce (blocking); the two GitHub dark theme prompts are not given, so not verified.
  • Description, known differences from main: the page gradient, the button text colours, rounding and the hover card verified; "secondary button light blue tint with blue text" writes the same variant as main (blocking); the card-look prompts are not given, so not verified.
  • Description, the side-list readings: verified by the side-list tests.
  • Description, one corner ask "one line short of main": stale; it answers as main does (blocking).
  • Description, the replays and the held-out answer key: not verifiable from the repository.
  • Description, it replaces six part pull requests: not rechecked.
  • Description, CI has not run on this head: verified.

Files:

  • .changeset/experimental-theme-how-checks-size.md: clear (fixed in this push)
  • theme-edit/_how-question.mjs: non-blocking: the two-colours note on every line; a dead page-colour guard
  • theme-edit/theme-how-clause-subjects.test.mjs: non-blocking: the progress-bar row passes while the answer says the ask contradicts itself
  • theme-edit/_settings.mjs: non-blocking: the bar reach subtracts only the bar's padding
  • theme-edit/_tables.mjs: non-blocking: the Heading weights doc comment is orphaned
  • .changeset/experimental-theme-how-plural-numbered-looks.md: non-blocking: a repeated phrase
  • .changeset/experimental-theme-saved-only-reads.md: non-blocking: drops the later-entry sentence
  • clear, unchanged since the last review: the other 15 release notes, theme-edit/_check.mjs, _compiler.mjs, _css.mjs, _edit.mjs, _how.mjs, _part-pieces.mjs, _part-words.mjs, _parts.mjs, _picture-traits.mjs, how/how.mjs, themeEditHow.doc.mjs, themeEditSet.doc.mjs, assets/docs/use-a-theme.doc.mjs, both command docs, test-utils/long-ask-binding-rows.mjs, scripts/vitest-node-durations.json, and the other 34 changed test files

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #13083.

This was referenced Nov 21, 2026

This branch was successfully deployed

1 active deployment
Preview — 7a5f4c3d Deployed Nov 20, 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