Skip to content

experimental theme: eleventh round of fixes (FINAL-40/41 hunts, era and brand coherence) - #11937

Merged
josephfarina merged 71 commits into
mainfrom
theme-followup-23
Nov 16, 2026
Merged

josephfarina merged 71 commits into
mainfrom
theme-followup-23

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The eleventh round of fixes for astryx experimental theme: two more row-group hunt rounds with their seeded chaos rounds, and the fixes from coherence passes on a period look and a brand look (build a theme, open every input, menu, tooltip, dialog and toast, and check that it matches). Each fix is at its cause, with tests.

Coherence: what agents see matches the app

  • missed covers more: a tooltip or toast still on the base's dark surface, soft shadows under square corners, a corner token the theme left behind, a focus ring offset that no longer fits, and status fills only when the vibrancy dial is set. Its count reads "misses on parts", and every line it offers is one set accepts.
  • A toast's own color reaches its text on the toast alone, and the pictures draw a toast's text on the side the app's own measurement picks, per mode and per toast type.
  • A button on Core's media surface (an overlay, a lightbox, a toast) is measured with the text tokens that surface gives it, so a light glossy button on an overlay is caught.
  • The open-states page draws more: a calendar's days, a context menu, a submenu flyout, a popover with a form, a time list, the command palette's items, the mobile drawer, and a states strip (rest, hover, focus, pressed) for buttons, inputs, checks, switches, tabs and nav items.
  • A token family follows a source written as one light-dark() value or as a reference to another token.
  • An accent you type is the link color wherever it reads at 4.5:1, else the nearest shade that does, with a note.

how

  • Bounds: a bound said with an ask limits every ask of its kind, before or after it ("cards rounder, never past 12px"), and a part already past it is left alone.
  • Places and elements: "the selected option row in the selector", "the current page in pagination", "the menus' separators" each reach that element of that part. An unknown word in the part slot is named, never painted.
  • Amounts: "twice as thin", "half as tall", "30% fainter", "50% transparent" are read as amounts of the way named. A part's text made transparent is its text alpha, never opacity.
  • References: "menus grey like the dialogs", "buttons the same color as the links", "the card border color" read the reference part's own paint. A color word is the theme's own shade where it has a family for it.
  • States: ARIA states (current, pressed, expanded) and combined states (checked+disabled, hover+selected) are settable where Core paints them. Disabled or hovered text steps each variant from its own color.
  • Guards: a fainter or removal ask never strengthens a line or shadow, a way asked of a line never adds one where none was drawn, and a kept look is held to what it drew.
  • Dividers: color, darker, fainter, hide and thickness work per variant; row dividers say why their width can't change.

Reading what was typed

  • Undo: a value alone, a value listed twice by hand, a setting with its value in one word, and comma values are each read the way set reads them. Undo never offers a stray new.
  • Options typed before a subcommand, or with none, are moved where they belong. A theme left out keeps every option typed. Settings typed after new's name become its dial options.
  • Mode labels with a typo that keeps their letters (drak, ligth) are that mode. Labels naming a part are that part. Several pasted lines in one argument each get a checked line.
  • Fonts: weight numbers (Inter 650, Inter 450.5), words the editor knows (Inter Tight), and the body role in capitals are read; a number that is no weight is refused as a number.
  • A part's own state saved in another spelling (is-pressed) loads, and a toggle button's pressed state builds the selector it renders.

Own theme file, build and compile

  • A theme module read in the CLI's process leaves nothing behind: timers and handles it opens are let go, a late callback cannot end the command, an uncaught throw or rejection becomes a warning, and the working folder and built-in objects are restored.
  • The build warns a field defineTheme() drops (with the near field), a BigInt, function or Date value, a misspelled pseudo-class, and a loop through Core's own root and surface tokens; a symbol value stops the build at its line. The editor refuses own tokens that read each other.
  • Paths with #, ? or %20 load, a stylesheet the build writes may be imported by its own source, --out naming a .d.ts is refused, and a starter refuses every stylesheet language the build loads.

Scope

Components: experimental theme (editor, how, preview, compile), ThemeEditChangeData (adds missedParts and alsoRemoved), theme build (--out refuses a .d.ts or .css.map name; new warnings), foundation render and module loader

Writing rubric results

The app-themes record (AST-050) FR8 edit, run against docs/contributing/spec-writing.md:

  • Narration: none; FR8 states the present --out behavior in the present tense.
  • Research: none.
  • Evidence: none cited in the record.
  • Rejected alternatives: none.
  • Change references: none.
  • Open questions: none.
  • Project status: none.

Tests

New editor, build and render test files for each item, plus the updated expectations each fix names. The full CLI suite passes on a main-based tree (only this box's known environment failures). Structure, changesets, tsc, eslint and prettier are clean. The held-out how key scores the same as or better than the previous round on the same tree (236 right, 14 wrong writes, 14 held back, 36 other writes, measured with main's committed Core). Recorded Node test times are added for the new editor files; editor test fixtures now share part data built once per run, and the slowest new files render through the stand-in.

…ider's own paint; thinner and thicker step from the thickness it shows

- _parts walkMarkup: an empty element with no theming target inside a part that paints no background of its own at rest (a divider's line) records what it paints (a fill or a border color read from a token, a border width or style, and a size read from the border width) as the part's own, under the conditions of the part's element (each element on the stack carries them), so every reader finds the line's color per variant and its thickness. Its declarations still go to what the part holds. PART_DATA_VERSION 20.
- how: a divider's thinner or thicker steps from the border width its line reads now (half of a width at or below 1px, else 1px less; 1px more), as a border's width does.
- New theme-parts67: the census record per variant, less visible (the general fainter reader, per variant), thinner and thicker, darker.
…ed lines for it (one missed reader, shared); a color named like another part's is that part's color, never a change to it; hard, unblurred and flat shadows have no blur
…'s dark inverted surface once the theme's surfaces changed, a soft shadow beside square corners or a border, and a status fill only where its dial builds a color of its own; each line changes the built theme, in the modes the theme draws; how's answer for such a part, asked about its look, leads with its line
…t has a family for it (grey: the theme's grays; another hue: the palette family of that name), at the stop nearest its usual color, in each mode
…er at a zero border width; the starter's font note names only weight sheets that can exist; a theme importing a Sass, Less or Stylus file is refused before writing; a node_modules or version-control entry is left out as such whatever its kind)
…po; a misspelled style word is answered as the exact words; any weight number after a known family is a weight; NaN and undefined are refused at set
… own seed; a see-through wash or a gray seed gives a true reason, never a write that changes nothing (chaos42 N28)
…by the editor; a surface token judged against what that surface sets; theme build reads var() in any letter case, follows a loop through Core's root token definitions and warns a misspelled pseudo-class; a null token's warning says a property reading it acts as if it were not set)
…ped; undo reads a value of several words and the scope's spellings; new reads a Settings list; a token is never a theme to make
…ubcommand is moved after it, never read as an unknown subcommand
…-button's isPressed) is read back as saved, so the theme keeps loading; a saved state the part does not have gets its undo and a set line that writes it in place
…rever it reads, moving only where it fails and saying so; the on-accent note names the normal-text rule and how to keep the other text exactly)
… a status except on each input that draws a border, reads a part's fainter text as its text color's alpha (a toast's from its surface's on-dark and on-light colors), and keeps a role, a keep, a ground and a corner shape where they are said
…the toast alone; text on a gradient is measured where it sits; missed names shape and ring: corners left at the base's size beside one the theme changed, and a focus ring drawn outside a square part)
… variant, by amount, removed, and guarded; token families follow light-dark(); variant contrast listed once; status rings kept under state shadows; pieces named after a part's catalog name

- how: a border in one mode on a part that draws none is an inset ring in its box-shadow, see-through in the other mode, before the one shadow it draws at rest (a dialog's), on its flat renders where it rises with an elevation prop; with several resting shadows it says why it cannot. The every-word gate reads an inset ring as a border; the answer's intent includes the shadow.
- how: a one-mode option may keep a dial step (the buttons dial's outline) beside its colors, said to be the same in both modes; the width/style reason never fires for a border color.
- census: an empty untargeted element's paint is recorded as the part's own only for a part that holds no other parts (a divider), marked as the line's (line), and undone for a layout, outline or slider control; what targeted parts inside a part draw with at rest is recorded (held). PART_DATA_VERSION 21.
- set: a property the line draws, set on the part's own element, is refused with the token lines that reach it; a token set under a variant that only other variants read is refused naming the variant's own token.
- how: a divider's color, lighter/darker and removal go to each variant's line token (the strong divider's --color-border-emphasized), scoped by a variant said; thickness takes the amount said (three times, 50%); a removal with no aspect on a line part is its line taken away.
- how: a part with no border made thicker takes its own fixed height or width (a slider's track), per render; a border colored through parts inside counts only parts that draw with that color there.
- build: a token family follows a source written as one light-dark() value or a var() of another token; a state shadow for the whole part that keeps Core's plain ring keeps each status's own ring in that state.
- contrast: a census pair the census already draws per variant is measured only as the scoped variant copy (one problem, a fix for that variant).
- how: every catalog part named after a part is a piece of it by the rest of its name ("checkbox check"), unless that rest names a part of its own; a select's arrow is its indicator icon.
- preview: a part whose paint is a line suggests the line's token.
- Tests updated with the reason (divider answers per variant, the one-mode ring, a card for the gradient split, the all-borders ring); new theme-parts68.
…e-argument undo of a typo or an unheld setting, held values in bare undo words, a setting's name where the theme goes, several pasted lines, {,}, part-typo and state labels; a damaged entry beside a clean one gets only its undo)
… it (a part-less one the parts they name, one inside another ask leaving it whole, a size bound each size written); a color bound holds by the step's own ink and a dial seed by the modes within it; a ratio's ground names its variant or a background token; typed amounts, see-through fills and text opacity read as written; status, focus ring and line thickness questions answered; typed tokens move the way asked; the page's dials are the whole theme's; a token named before border or text is that token; motion words are never an unknown part
… says why: the cells draw the row line at a width Core sets per render, and the only width that reaches it would thicken every control's border inside the row too
…tight as half of now in that way, keeping what the words change (a divider's line, the room inside)
…e in how labels, set labels and --mode, by one reader
…roup spreads only where its members are alike; the part data reads list rows, row icons and every part an element carries; a fill drawn inside a part

- set/how/build: aria-current, aria-pressed and aria-expanded conditions in the part data are the states current, pressed and expanded (less one a part's doc names as its own, a toggle button's isPressed), built as the attribute (:is([aria-current]:not([aria-current="false"])) and so on). how names them as --state, and drops an attribute a part has no prop for that every render draws alike (a toggle button's variant).
- Several states at once, --state checked+disabled, are taken where a condition of Core's names each; built as the style key for Core's own states and one joined pseudo key for the rest (stateSlot, used by every block). how writes such a condition as one --state with +.
- A group styled alike (checks, inputs) spreads a CSS property only to members Core draws alike at rest: a checkbox's corners stay off the round radios.
- Part data: a group of many values (a checkbox list's string[]) gets its value as a list, so its rows render; the first item takes the icon its doc lets it take; every part an element carries holds what is inside it (a checkbox list's root is a field too). PART_DATA_VERSION 22.
- how: a part whose own element paints no background while an element inside it does from one color token (a slider's filled range in its control) takes that token on the part, naming the parts inside that read it too; 'fill' is a piece of a part, never one its own name says.
- Tests updated with the reason: a button's pressed is a state now (refusal tests use checked and down), the current page's fill is --state current.
… nothing behind: family --json warns of the replace; a module's process.exitCode is put back; .postcss/.stylus/.sss load empty; deferred prints go to stderr; an unsettled top-level await is ERR_THEME_LOAD; a source may import its own built stylesheet; every handle it opens is let go; an unhandled rejection is a warning; a value two parents up is named in its file)
…nt of that part and its state; the page those words seem to name is the part inside it that takes the state (the current page in pagination is its current button), and "current" is the state Core paints from aria-current
…e draws a context menu, a submenu's flyout, a form in a popover, a time list, a command palette's items and a navigation drawer; a states section shows hover, keyboard focus and a press; a nav icon and an icon-only button draw their icon; a border on the inputs lands on a date and time field's boxes

- A part whose server render keeps content inert until the browser runs (a calendar's month waits for today) is drawn as the browser mounts it; so is an overlay shown open with no layer (a command palette loads its items).
- The layer drawing answers media queries as a desktop window with a mouse, presses the controls an opened overlay holds, closes an open auto popover when it presses outside it, focuses what it presses, and right-clicks a part that holds a layer and opened nothing.
- The sheet's overlays section adds editor-owned scenes for deeper open states, and a states section that marks each control of the sample page with its state; the render's stylesheet applies each state's rules to what a page marks.
- Sample props: a required prop takes the first element its doc suggests; a look flag gets the prop its name reads; a search source its defaults leave out is the page's sample one.
- A border spread over a group lands on the parts that draw each member's edges.
…sured with the text that surface gives it, and fixed by a color on the button; a label on its own fill is measured on its variant's fill)
…'s own element, by the rest of its catalog name and the state said; the last place said is the place

- "the selected option row in the selector" is selector-option-row, "the hovered option in the selector" selector-option: a catalog part named after the place, its rest said before the place (the longest), never another component the words seem to name (a table's rows) or the place itself. When the one named lacks the state said, the one element of that name in the place that takes it ("the checked item in the dropdown menu": dropdown-menu-radio).
- The place is the last one said ("the text in the hovered menu item of the dropdown" is in the dropdown), and an element of it in a state after "of" leaves the place unwritten.
- New theme-parts70.
…typed (is-pressed, ispressed) is read as that state, by the census half of the one state reader the saved-setting check and the build both run
…t theme with multi-word values, no new from undo, held values and typos, comma values, settings after new's name, options before nested groups or with no subcommand
…on text lighter) from each variant's own color, scoped to the variant and the state, never one variant's color on all
…ponent (toggle-button's isPressed) is built on the value Core writes, [data-is-pressed="true"]

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

Approval waits on an engineering owner's decision, and the fixes below are needed. No current record decides this round's experimental editor behavior or the new stable theme build loading guards, warnings and accepted inputs. An engineering owner records the decision by commenting /approve-spec 7e867482fb4571a0d2ef8b9adde010bc08ec87a0 on this pull request (the author may do so as an engineering owner).

Blocking:

  • Stable theme build --out now exits 1 for a name ending in .d.ts or .css.map (build.mjs:5505), where the released CLI builds with a warning, as the app-themes record (FR8) and the command's own --out doc still say; keep the warning on stable theme build, or ship the refusal as a declared incompatible change with its doc.
  • Every stable theme subcommand run with a missing argument now prints Usage: and Run: lines and returns two JSON suggestions (json-shim.mjs:607), but the only release note is an [experimental] one naming theme build alone; add a [fix] changeset or confine the branch to experimental theme.
  • The editor's pictures answer every width media query as matching (layers.mjs:160), so the open-states page draws AlertDialog in its phone layout, Delete stacked over Cancel, in a 1280 px window; answer width and height queries for the picture's window.
  • All eight test-node legs stop because the Node suite plans 11,944 s against the 11,096 s eight legs hold, with 47 new test files unrecorded in scripts/vitest-node-durations.json; record measured times and speed up the slowest new editor tests until the plan fits.
  • ThemeEditChangeData.alsoRemoved and ThemeEditChangeData.missedParts, and the theme build --out change, are public API rows outside this pull request's scope (the title and body name no component scope); name them in a ## Scope line for the owner decision, or split them out.

Also worth taking: the response-types doc still calls missed a count of parts and leaves out alsoRemoved.

Claims and files checked

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

  • Claim: --out naming a declaration file or a source map is refused. True on the head; the released CLI builds with a warning (both run), so this is the first blocking point.
  • Claim: experimental theme compile and theme build with no file name their usage and help. True; the same branch also changes theme eject and other stable theme subcommands (second blocking point).
  • Claim: the new theme build warnings leave the output as before. Verified: the seven official themes build byte-identical files on both trees, with no warnings.
  • Claim: a theme module's later exits, exit codes, listeners, handles, rejections, unsettled top-level await and changes to the working folder and built-ins no longer decide the command. Verified by the new stable build tests, which pass.
  • Claim: a plain-object theme with no tokens builds, and typography values are warned at their line. Verified by their tests; a numeric weight is warned as not text, though Core builds it.
  • Claim: the open-states page draws a calendar's days, a context menu, a submenu flyout, a popover with a form, a time list, the command palette's items, the mobile drawer and a states strip. Verified on pictures taken on both trees (1,586 px to 3,039 px tall); the AlertDialog layout is the third blocking point.
  • Claim: what agents see matches the app. False for AlertDialog at desktop width (third blocking point).
  • Claims about how, undo, new, the option readers, fonts, missed, media-surface contrast and the accent link color: covered by the new editor tests, which all pass here; not traced line by line.
  • Claim: the full CLI suite passes and structure, changesets, tsc, eslint and prettier are clean. Lint passed at this head; CI's Node legs did not run (fourth blocking point); the 81 changed and related test files pass here.
  • Claim: the held-out how key score. Not checkable from the repository.
  • Changed lines read in full: stable theme build sources (build.mjs, input-fields.mjs, typography-values.mjs, written-values.mjs, style-keys.mjs, null-values.mjs, source-syntax.mjs), the module loader and its rejection module, stylesheet-file.mjs, run.mjs, json-shim.mjs, the render stand-in (layers.mjs, page-worker.mjs, render-page.mjs, css-cut.mjs, charts.mjs), experimental/theme.mjs, the undo command doc, theme-edit.type.mjs, the test-time record and all 58 release notes; findings as above.
  • Editor sources (_how-question.mjs, _edit.mjs, _settings.mjs, _missed.mjs, _check.mjs, _parts.mjs, _catalog.mjs, _palette.mjs, _how.mjs, _preview-app.mjs, _compiler.mjs, _project.mjs, _how-commands.mjs, _preview.mjs, _normal.mjs, _part-words.mjs): checked through their tests and pictures, read only in part.
  • Tests: all 80 changed test files run and pass.

Automated review (maintainer link)

Comment thread packages/cli/api/theme/build/build.mjs Resolved
export function typographyValueProblem(key, value) {
const field = key.split('.').pop();
// A weight is a CSS value Core writes as it is: text, never a number.
if (

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.

Non-blocking: stable theme build now warns heading: {weight: 600} as "not text", but Core builds --text-heading-1-weight: 600, which browsers use. The warning matches Core's string FontWeight type. Consider wording it as a type mismatch rather than a value no browser uses.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 9c27df1

Storybook · Sandbox · built from this PR's head

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

API changes: cli +2 · ~0 · −0; unknown (base surface unavailable): richtext, theme-butter, theme-chocolate, theme-gothic, theme-matcha, theme-neutral, theme-stone, theme-y2k

2 API changes (advisory)
Package Where Signature Usage
+ cli ./api/experimental · Types · type ThemeEditChangeData alsoRemoved?: ThemeEditSetting[] | undefined import type {ThemeEditChangeData} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditChangeData = {alsoRemoved: …}
+ cli ./api/experimental · Types · type ThemeEditChangeData missedParts?: number | undefined import type {ThemeEditChangeData} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditChangeData = {missedParts: …}

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

… input's inherited weight), keeps a variant that draws no line with nothing written back, and says an unknown word between a part and what changes, writing nothing
…[light, dark] pair with an empty or a number half is warned; a boxed primitive in a part is written as its primitive
… folder to fixtures through provide/inject, never an ASTRYX_ variable; the warm-up uses the editor public command, so no editor helper gains a test importer
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9c27df1

@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. An engineering owner's /approve-spec for this head settles the direction of the editor round and the stable theme build changes; the fixes below are still needed.

Blocking:

  • theme build --out now refuses .d.ts and .css.map names (build.mjs:5509), but the command's --out doc (theme-build.doc.mjs:56) and the app-themes record (FR8) still say another name builds with a warning; update both in this pull request.
  • json-shim.mjs:611 gives every stable theme subcommand run with a missing argument new Usage: and Run: lines and two JSON suggestions, but the only release note is [experimental], which the release record (FR22) does not allow for stable commands; add a [fix] changeset or limit the branch to experimental theme.
  • The editor's pictures answer every width media query as matching (layers.mjs:170), so sheet-overlays.png draws AlertDialog in its phone layout, Delete stacked over Cancel, at 1280 px where the base drew them side by side; answer width and height queries for the picture's window.
  • ThemeEditChangeData.alsoRemoved and ThemeEditChangeData.missedParts are public API rows outside this pull request's scope (the title has no conventional-commit scope and the body no ## Scope line); name ThemeEditChangeData in a ## Scope Components: line, or split the rows out.
  • The narrowed theme build --out option is also outside that scope; name theme build in the same line, or split the change out.
  • writtenPrimitives (build.mjs:338) copies the boxed-primitive test and the BigInt replacer that written-values.mjs already has (boxed, partJsonText), so the value the build writes and the value its warning judges can drift apart; export them from written-values.mjs and call them.
  • The description says recorded Node test times are added for every new editor file, but theme-how-c-final42b, theme-how-c-final42c and theme-k43-values have no entry in scripts/vitest-node-durations.json; record them, or narrow the sentence.

Also worth taking: the response-types doc still calls missed a count of parts and names neither missedParts nor alsoRemoved. The Node suite now fits CI's eight legs.

Claims and files checked

Review mode: full; reason: over-500-lines

  • Claim: --out naming a declaration file or a source map is refused. Verified on both trees: the released CLI wrote CSS into p.css.d.ts and p.css.map; this head exits 1 and names p.css (first blocking point is the stale doc and record).
  • Claim: a theme source may import the stylesheet its own build writes. Verified: it builds here and fails on the base.
  • Claim: a plain-object theme with no tokens builds. Verified (export default {name: 'q'}).
  • Claim: the build warns a field defineTheme() drops, with the near field. Verified (tokenz warns "did you mean tokens?").
  • Claim: the new warnings leave the output as before. Verified: the seven official themes build byte-identical files on both trees.
  • Claim: a theme module's late exits, exit codes, listeners, handles, rejections and changes to the working folder and built-ins no longer decide the command. Verified by the new stable build tests, which pass.
  • Claim: experimental theme compile and theme build with no file name their usage and help. True; the same branch changes theme eject and the other stable theme subcommands (second blocking point).
  • Claim: the open-states page draws more parts open and a states strip. Verified on pictures from both trees (1,586 px to 3,039 px).
  • Claim: what agents see matches the app. False for AlertDialog at desktop width (third blocking point).
  • Claim: recorded Node test times are added for every new editor file. False for three files (seventh blocking point).
  • Claim: the full CLI suite passes and structure, changesets, tsc, eslint and prettier are clean. Lint and typecheck pass at this head; the 21 changed and related test files run here pass; two of CI's eight Node legs had passed and the rest were still running.
  • Claim: the held-out how score. Not checkable from the repository.
  • Claims about how, undo, new, the option readers, fonts, missed, media-surface contrast and the accent link color: covered by the changed editor tests; not traced line by line.
  • Release notes (62): read against the code paths above; the stable missing-argument change sits under an experimental note (second blocking point).
  • Files read in full: the stable theme build sources (build.mjs, input-fields.mjs, typography-values.mjs, written-values.mjs, style-keys.mjs, null-values.mjs, source-syntax.mjs), the module loader with its rejection and stylesheet modules, run.mjs, json-shim.mjs, the render stand-in (layers.mjs, page-worker.mjs, render-page.mjs, css-cut.mjs, charts.mjs), cache-eviction.mjs, jiti-cache.mjs, the test support and global setup, the test-time record, the undo doc and the type file; findings as above, the rest clear.
  • Editor sources (_how-question.mjs, _settings.mjs, _edit.mjs, _missed.mjs, _check.mjs, _catalog.mjs, _compiler.mjs, _how.mjs, _how-commands.mjs, _palette.mjs, _parts.mjs, _preview-app.mjs, _preview.mjs, _project.mjs, _normal.mjs, _part-words.mjs) and experimental/theme.mjs: the changes since the last review read in full, the rest read in part and checked through tests and pictures.
  • Test files (89): read by title; 21 run here.

Automated review (maintainer link)

Comment thread packages/cli/api/theme/build/build.mjs Resolved
… as it is: missed counts misses, missedParts the parts, and an undo names alsoRemoved
…ource-map names

The --out docs (theme build, theme compile, the themeBuild API) and the
app-themes record FR8 say a .d.ts or .css.map name is refused with the .css
path to give, and any other name builds with a warning naming the .css path
meant.
…e commands only; stable theme build keeps its released output
…ht media queries for the window the pictures are taken in, one shared size, so AlertDialog draws its desktop row of buttons
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ece06cd

@github-actions github-actions Bot added needs:spec-owner-review Current knowledge records await owner approval and removed needs:spec-owner-review Current knowledge records await owner approval labels Nov 15, 2026

@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. An engineering owner's /approve-spec for this head settles the direction of the editor round, the stable theme build changes and the amended app-themes --out requirement; the earlier blocking points are fixed, and four text fixes remain.

Blocking:

  • Miss: .changeset/theme-build-k42-values.md says a boxed string in a part is warned and written as JSON text, but the head writes its text with no warning and theme-build-k43-values.md says so, so drop that clause.
  • Miss: the description says the build warns a symbol value, but a symbol stops the build with ERR_THEME_INVALID at its line, as the k42 note says, so reword that sentence.
  • Miss: the description lists "a family built twice in one process reads each member as it is then", which build.family-reload.test.mjs already proves on the base and this pull request does not change, so drop that line.
  • The description says recorded Node test times are added for the new editor files, but theme-I-media-width.test.mjs, added in the last commit, has no entry in scripts/vitest-node-durations.json, so record it or narrow the sentence.

Also worth taking: the typography warning for weight: 600 could say it is a type mismatch rather than a value no browser uses, and the description has no ## Writing rubric results for the app-themes record edit.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: theme build --out naming a declaration file or a source map is refused and nothing is written. Verified on both trees: the released CLI wrote CSS into p.css.d.ts and p.css.map; this head exits 1 with ERR_INVALID_ARGUMENT and names p.css; the command docs and the app-themes record now say so.
  • Claim: a slip after .css (p.css.bak) is told the name meant. Verified: the warning names p.css, where the base named p.css.css.
  • Claim: experimental theme compile with no file names its usage and help, and stable theme build keeps its released output. Verified on both trees and by the updated test.
  • Claim: a theme module read in the CLI's process leaves nothing behind (handles let go, late exits and exit codes ignored, rejections and late throws warned, working folder and built-ins restored). Verified by reading the loader and by the five new stable build test files, which pass.
  • Claim: the build warns a misspelled defineTheme() field, a BigInt, function or Date value, a misspelled pseudo-class and a loop through Core's root and surface tokens. Verified by the code and the stable build tests; the seven official themes build byte-identical files.
  • Claim: the build warns a symbol value. False: a symbol stops the build at its line (second blocking point).
  • Claim: paths with #, ? or %20 load, a source may import the stylesheet its build writes, and a plain-object theme with no tokens builds. Verified by the stable build tests (empty theme: exit 1 on the base).
  • Claim: a family built twice in one process reads each member as it is then. Already true on the base (third blocking point).
  • Claim: the open-states page draws more parts open and a states strip, and AlertDialog keeps its desktop row. Verified on pictures from both trees (1,586 px to 3,039 px; Cancel beside Delete).
  • Claim: missed counts misses on parts, undo reports alsoRemoved, and the response-types doc says so. Verified in the type file, the text output and the doc test.
  • Claims about how, undo, new, the option readers, fonts, saved spellings, toasts, media-surface contrast and the accent link color: covered by the changed editor tests, which pass; not traced line by line.
  • Claim: recorded Node test times are added for the new editor files. False for theme-I-media-width.test.mjs (fourth blocking point).
  • Claim: the full CLI suite passes and lint, typecheck and formatting are clean. All 87 changed test files pass here (1,501 tests, 1 skipped); CI lint, typecheck and the build jobs pass at this head, and four Node legs were still running.
  • Claim: the held-out how score. Not checkable from the repository.
  • Release notes, stable (b-typography-values-one-judge, theme-build-L-final42, theme-build-empty-theme, theme-build-hunt230, theme-build-hunt236, theme-build-hunt241L, theme-build-k41-values, theme-build-k43-values): verified against the code, runs and tests. theme-build-k42-values: false on boxed part values (first blocking point).
  • Release notes, experimental (55, including the response-types [docs] note): each matched to its named test file, all passing, and to the editor code paths read.
  • Files read in full: the stable theme build sources, the module loader with its rejection and stylesheet modules, run.mjs, json-shim.mjs changes, the render stand-in and picture scripts, the cache modules, test support and global setup, the test-time record, the type, response-types and command docs, the app-themes record change; findings as above, the rest clear.
  • Editor sources (_how-question.mjs, _settings.mjs, _edit.mjs, _missed.mjs, _check.mjs, _catalog.mjs, _compiler.mjs, _how.mjs, _how-commands.mjs, _palette.mjs, _parts.mjs, _preview-app.mjs, _preview.mjs, _project.mjs, _normal.mjs, _part-words.mjs) and experimental/theme.mjs: read in part and checked through their tests and pictures; clear.
  • Test files (87): read by title; all run here and pass.

Automated review (maintainer link)

Comment thread .changeset/theme-build-k42-values.md Resolved
…string; theme-I-media-width's Node time is recorded
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec dc4b848

@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. An engineering owner's /approve-spec for this head settles the direction of the editor round, the stable theme build changes and the amended app-themes --out requirement, and the four text fixes from the last review are in; two claims still describe changes that already ship on main.

Blocking:

  • Miss: .changeset/theme-build-hunt230.md says a null token's warning now says what a property reading it does, but main already prints that warning word for word and this pull request does not change it, so drop that sentence.
  • Miss: the description lists "A token family follows the token it is made from" (a set surface carries cards, popovers and code blocks, an opaque border its emphasized border, the neutral dial the page) as a fix in this round, but that already ships on main, and this pull request only adds reading a source written as one light-dark() value or a token reference, so narrow the line to that.

Also worth taking: the typography warning for weight: 600 could say it is a type mismatch rather than a value no browser uses.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: theme build --out naming a declaration file or a source map is refused and nothing is written. Verified on both trees: the released CLI wrote CSS into p.css.d.ts and p.css.map; this head exits 1 with ERR_INVALID_ARGUMENT and names p.css; the command docs and the app-themes record say so.
  • Claim: a theme module read in the CLI's process leaves nothing behind (handles, late exits and exit codes, rejections, the working folder, built-ins). Verified by reading the loader and by the stable build tests; a module that sets process.exitCode makes the released CLI exit 3 and this head exit 0.
  • Claim: the build warns a misspelled defineTheme() field, a BigInt, function or Date value, a misspelled pseudo-class and a loop through Core's root and surface tokens, and a symbol stops the build at its line. Verified on both trees for tokenz, 10n, :hovr and a symbol, and by the stable tests.
  • Claim: paths with #, ? or %20 load, a source may import the stylesheet its build writes, and a starter refuses every stylesheet language the build loads. Covered by the new build and starter tests, which pass.
  • Claim: missed covers more and counts misses on parts, with missedParts and alsoRemoved in the result. Verified in the type file, the response-types doc and the missed tests.
  • Claim: toasts, buttons on the media surface and a typed accent read as the app draws them. Covered by their new tests, which pass.
  • Claim: the open-states page draws more parts open and a states section. Verified on pictures from both trees (1,586 px to 3,039 px tall).
  • Claim: a token family follows the token it is made from. Already on main (second blocking point); the new part is a light-dark() or token-reference source.
  • Claims about how (bounds, places, amounts, references, states, guards, dividers) and reading typed input (undo, options, mode typos, fonts, saved spellings): covered by the changed editor tests, which pass; not traced line by line.
  • Claim: recorded Node test times are added for the new editor files. Verified: every added test file has an entry.
  • Claim: editor test fixtures share part data built once per run. Verified in the global setup and the test support it seeds.
  • Claim: the full CLI suite passes and lint, typecheck and formatting are clean. The 87 changed test files pass here (1,501 tests, 1 skipped); CI lint, typecheck and build pass at this head, and the Node test legs were still running.
  • Claim: the held-out how score. Not checkable from the repository.
  • Claim: the writing rubric for the app-themes edit. Present, and the added text states present behavior only.
  • Release notes, stable: b-typography-values-one-judge (family stack, quoted family and role weight without a scale warned on this head, silent on main), theme-build-L-final42, theme-build-empty-theme (plain theme with no tokens: exit 1 on main, builds here), theme-build-hunt236, theme-build-hunt241L, theme-build-k41-values, theme-build-k42-values, theme-build-k43-values: verified against the code, runs and tests. theme-build-hunt230: var() letter case, the root-token loop and the pseudo-class warning verified; the null-token sentence is false (first blocking point).
  • Release notes, experimental (55, including the response-types [docs] note): each matched to its named test file, all passing, and to the code paths read.
  • Files read in full: the stable theme build sources, the module loader with its rejection and stylesheet modules, run.mjs, the json-shim.mjs changes, the render stand-in and picture scripts, the cache modules, test support and global setup, the type, response-types and command docs, and the app-themes record; findings as above, the rest clear.
  • Editor sources (16) and experimental/theme.mjs: read in part and checked through their tests and pictures; clear.
  • Test files (87): all run here and pass. scripts/vitest-node-durations.json: an entry for every added test file; clear.
  • The seven official themes build byte-identical on both trees.

Automated review (maintainer link)

Comment thread .changeset/theme-build-hunt230.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 8f4de83

@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 has not finished on this head yet. An engineering owner's /approve-spec for this head settles the direction of the editor round, the stable theme build changes and the amended app-themes --out requirement, and both claim corrections from the last review are in: the null-token sentence is gone from the theme build release note, and the description's token-family line names only the new light-dark() and token-reference sources.

No blocking findings remain.

Also worth taking: the typography warning for weight: 600 could say it is a type mismatch rather than a value no browser uses.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: theme build --out naming a declaration file or a source map is refused and nothing is written. Verified on both trees: the released CLI wrote CSS into p.css.d.ts and p.css.map; this head exits 1 with ERR_INVALID_ARGUMENT and names p.css; the command docs and the amended app-themes record say so.
  • Claim: a theme module read in the CLI's process leaves nothing behind (handles, late callbacks, exit codes, rejections, the working folder, built-ins). Verified in the loader and by the stable build tests; a module that sets process.exitCode makes the released CLI exit 3 and this head exit 0.
  • Claim: the build warns a misspelled defineTheme() field, a BigInt, function or Date value, a misspelled pseudo-class and a loop through Core's root and surface tokens, and a symbol stops the build at its line. Verified on both trees for tokenz, 10n and a symbol; the pseudo-class near-name check is new in style-keys.mjs and covered by its test; the token loops by the stable tests.
  • Claim: the editor refuses own tokens that read each other. Covered by its new test, which passes.
  • Claim: paths with #, ? or %20 load, a source may import the stylesheet its build writes, and a starter refuses every stylesheet language the build loads. Covered by the new build and starter tests, which pass.
  • Claim: missed covers more and counts misses on parts, with missedParts and alsoRemoved in the result. Verified in the type file, the response-types doc and the missed tests.
  • Claim: toasts, buttons on the media surface and a typed accent read as the app draws them. Covered by their new tests, which pass.
  • Claim: the open-states page draws more parts open and a states section. Verified on pictures from both trees (1,586 px to 3,039 px tall).
  • Claim: a token family follows a source written as one light-dark() value or a token reference. Verified in the editor's settings code and its test.
  • Claims about how (bounds, places, amounts, references, states, guards, dividers) and reading typed input (undo, options, mode typos, fonts, saved spellings): covered by the changed editor tests, which pass.
  • Claim: recorded Node test times are added for the new editor files. Verified: every added test file has an entry.
  • Claim: editor test fixtures share part data built once per run. Verified in the global setup and the test support it seeds.
  • Claim: the full CLI suite passes and lint, typecheck and formatting are clean. The 87 changed test files pass on code identical to this head; CI's lint, typecheck, build and Node legs 1–3 pass here, and the other Node legs were still running.
  • Claim: the held-out how score. Not checkable from the repository.
  • Claim: the writing rubric for the app-themes edit. Present, and the added text states present behavior only.
  • Release notes, stable: b-typography-values-one-judge, theme-build-L-final42, theme-build-empty-theme, theme-build-hunt230 (now only the var() letter case, the root-token loop and the pseudo-class warning), theme-build-hunt236, theme-build-hunt241L, theme-build-k41-values, theme-build-k42-values, theme-build-k43-values: verified against the code, runs and tests.
  • Release notes, experimental (55, including the response-types [docs] note): each matched to its named test file, all passing, and to the code paths it names.
  • Files: the stable theme build sources, the module loader with its rejection and stylesheet modules, run.mjs, the json-shim.mjs changes, the cache modules, the render stand-in and picture scripts, test support and global setup, the type, response-types and command docs, and the app-themes record: clear apart from the typography wording note.
  • Files: editor sources (16) and experimental/theme.mjs: checked through their tests, pictures and targeted reads; clear.
  • Files: test files (87) pass; scripts/vitest-node-durations.json has an entry for every added test file; release notes (64) as above; clear.
  • The seven official themes build byte-identical on both trees.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 22a5c03 into main Nov 16, 2026
85 checks passed
@github-actions
github-actions Bot deleted the theme-followup-23 branch November 16, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 8f4de83c Deployed Nov 16, 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