Skip to content

experimental theme: thirteenth round of fixes (clause scope, family pictures, palette recipe v2) - #12011

Merged
josephfarina merged 86 commits into
mainfrom
theme-followup-25
Nov 16, 2026
Merged

josephfarina merged 86 commits into
mainfrom
theme-followup-25

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The thirteenth round of fixes for astryx experimental theme, from three more rounds of testing the editor with real requests. Each fix is at its cause, with tests.

how

  • One clause-scope reader decides each clause's part, state and mode: a part-less clause takes the part before it only as a modifier ("with …", a way, a value, a state, the part's own colon list); dials, fonts, text size and new sentences are the theme's. A leading "in dark mode:" covers its sentence.
  • Light and dark: a clearly light page, surface, line or fill goes to light mode and a clearly dark card fill to dark mode, with the other mode's line offered; a one-mode theme or "in both modes" writes it whole.
  • Places are strict: an element that cannot be kept to its container ("buttons inside cards", "tabs in the card") writes nothing and says why, unless a token on the container holds it; headings and titles in a container are set on it. Unknown words in a place or a part phrase are named.
  • Elements: a card's own fill, the text beside a checkbox, table header cells, an icon's color, menu separators, the calendar range band, a panel's text tokens, a part painted by an inner element (the token is offered).
  • Readers: one-line look requests split into asks, design color names, complaints that describe the current look, negated states ("unpressed"), "medium", "rounded", "grayscale", "only a bottom border", "a small shadow", side edges, gridlines, glass words, an app's own --brand-* variables by their role, value questions that read a token set on the part.
  • Amounts: "the controls 40px tall", one size's height, decimal heights, darker and lighter by a share, a size beside a text look.
  • A typed fill is measured against each look's text; where one is under 4.5:1 a separate readable-text line follows.

Checks and lines

  • Text on media surfaces (overlay, lightbox, a default button inside them) converges; a light overlay uses the overlay token.
  • A change scoped to one state or condition is contrast-checked on what the part draws there; a button color that also paints a toast's close button is measured on the toast.
  • Hairline borders are held to 3:1 only on controls; fixes are the nearest readable color, never black or white.
  • The missed list names parts whose base hard-codes the old accent, role tokens a base points elsewhere, and status fills left unchanged.
  • Hover and focus on parts drawn under an invisible native input are refused, naming the input's holder.
  • A value ending in an old IE hack escape is refused; var( --x ) is read as CSS reads it.

Pictures

  • show --png takes the sample page, the open states, and a picture of each family of components the theme sets a part of (the buttons when it sets none) instead of the full sheet; show --section <family> --png takes any other family. The overlays page starts with each control's states; drawn hover applies Core's own state rules behind (hover: hover); tables and code blocks take a full row; cells grow to their content; a selected and sorted table is drawn; sample-card buttons wrap; a label still cut short is measured with a fix line; a serif or cursive stack drawn in another font is named.

Reading what was typed

  • new reads a setting typed inside its own quotes and a built-in base typed beside another word; show --theme t offers show t; --when takes one condition per prop; settings fields the editor does not read are named; a color set with no --mode in a one-mode theme is saved for that mode; experimental help leads with its first examples.

Theme build and the palette

  • Typography shapes are judged by what Core reads (a scale with no base or ratio, weights that are no block, a level written twice); signed weights (-100, +500) are read as written. A [light, dark] pair of sizes, or a half that reads no token, is warned; non-ASCII token names are read.
  • A plain base a theme extends goes through defineTheme first; misspelled fields are warned in every input form; stylesheet imports are warned on every build; a throwing getter gives a load error.
  • --family: the root may extend a theme the family does not select; the receipt names that base in a new base field; a missing base package fails naming it.
  • Palette generation has a second recipe, astryx-oklch-v2, whose pale stops follow vibrancy and keep a dusty seed dusty; the dark side of every ramp (role text and dark fills) is drawn exactly as v1 draws it. A request that names no recipe runs v1, from the API and the command alike, so existing callers keep their colors; new editor palettes record v2, and a config keeps the recipe it records (record "recipe": "astryx-oklch-v1" or -v2 to pin it). The official palettes regenerate byte for byte.
  • The part data cache is keyed by a fingerprint of the code that builds it.

Scope

Components: experimental theme (editor, how, preview, pictures, compile), theme build (--family root base and receipt field, typography and value warnings), palette generator (recipe v2), foundation render (pictures, media queries)

Writing rubric results

AST-034 FR1 and FR2 edits, run against docs/contributing/spec-writing.md:

  • Narration: none; FR1 states the root-base rule and FR2 the one receipt field 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 palette 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.

@vercel

vercel Bot commented Nov 16, 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 16, 2026 1:59pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 2:19 PM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec c13bcce

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 9a1d66b

Storybook · Sandbox · built from this PR's head

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

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

7 API changes (advisory)
Package Where Signature Usage
+ cli ./api · Types · type TonalPaletteGenerationInput recipe?: "astryx-oklch-v1" | "astryx-oklch-v2" | undefined import type {TonalPaletteGenerationInput} from '@astryxdesign/cli/api'; const x: TonalPaletteGenerationInput = {recipe: …}
~ cli ./api · Types · type ThemeBuildResponse data: { name: string; tokenCount: number; componentCount: number; sizeKB: number; outputs: { css: string; cssDts: string; js: string; dts: string; variantsDts?: strin … #6bfc32a4 → data: { name: string; tokenCount: number; componentCount: number; sizeKB: number; outputs: { css: string; cssDts: string; js: string; dts: string; variantsDts?: strin … #1a55d687 import type {ThemeBuildResponse} from '@astryxdesign/cli/api'; const x: ThemeBuildResponse = {data: …}
~ cli ./api · Types · type ThemePaletteGenerateResponse data: { recipe: "astryx-oklch-v1"; status: "candidate"; familyCount: number; stopCount: number; modes: string[]; output: string | null; receipt: string | null; previe … #f5a77735 → data: { recipe: "astryx-oklch-v1" | "astryx-oklch-v2"; status: "candidate"; familyCount: number; stopCount: number; modes: string[]; output: string | null; receipt: s … #32b0e42c import type {ThemePaletteGenerateResponse} from '@astryxdesign/cli/api'; const x: ThemePaletteGenerateResponse = {data: …}
~ cli ./api · Types · type TonalPaletteCandidate recipe: "astryx-oklch-v1" → recipe: "astryx-oklch-v1" | "astryx-oklch-v2" import type {TonalPaletteCandidate} from '@astryxdesign/cli/api'; const x: TonalPaletteCandidate = {recipe: …}
~ cli ./api · Types · type TonalPaletteGenerationReceipt recipe: "astryx-oklch-v1" → recipe: "astryx-oklch-v1" | "astryx-oklch-v2" import type {TonalPaletteGenerationReceipt} from '@astryxdesign/cli/api'; const x: TonalPaletteGenerationReceipt = {recipe: …}
~ cli ./api · Types · type TonalPaletteNormalizedRequest recipe: "astryx-oklch-v1" → recipe: "astryx-oklch-v1" | "astryx-oklch-v2" import type {TonalPaletteNormalizedRequest} from '@astryxdesign/cli/api'; const x: TonalPaletteNormalizedRequest = {recipe: …}
~ cli ./api/experimental · Types · type ThemeEditUndoResponse data: { theme: string; action: "step"; undid: string; refusedBefore?: string; undone: string[]; next?: string; settings: number; stepsLeft: number; changedTokens: str … #1670011d → data: { theme: string; action: "step"; undid: string; refusedBefore?: string; undone: string[]; next?: string; settings: number; stepsLeft: number; changedTokens: str … #89204cd7 import type {ThemeEditUndoResponse} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditUndoResponse = {data: …}

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

@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 theme build --family root base and the new palette recipe; one code fix and six text fixes remain.

Blocking:

  • A family root whose base is defined in its own file (const brand = defineTheme({extends: neutralTheme}); export default defineTheme({extends: brand})) builds, and its receipt reports base as brand from @astryxdesign/theme-neutral export neutralTheme, because buildFamily reads the first extends: in the file (build.mjs:6827, :6844); FR1 says such a local base that supplies registries is refused, and FR2 says its package is null.
  • .changeset/palette-recipe-v2.md and .changeset/theme-build-family-root-base.md are tagged [fix] but add capabilities (a second recipe, and a family root that may extend an unselected theme with a new base receipt field), which the release record files under [feat].
  • .changeset/b-how-font-stack.md is tagged [fix] for a change confined to astryx experimental theme editor how, which the release record requires to be [experimental].
  • The description lists as this round's changes things main already has (the doc-module refusal, also in the Scope line; a number weight named as a type mismatch; new reading quoted and swapped pairs and --theme t2), so narrow those lines to what this round adds: signed weights, a setting typed inside its own quotes, and a built-in base beside another word.
  • .changeset/experimental-theme-I-sheet-cells.md says a drawn hover "no longer" applies a forced-colors rule, but main never did (that copy was added and removed within this pull request), so drop that clause.
  • .changeset/experimental-theme-corners-english-rung.md says corners squared is now offered square, which main already does, so keep only the rounded change.
  • docs/specs/AST-034/spec.md line 39 still lists "Add a new command, response field, error code …" as a non-goal while FR2 now adds the base receipt field, so amend that non-goal.

CI's test and typecheck jobs have not run on this head (CI was full), so they still need a run after these fixes. Optional: move the editor part of .changeset/b-picture-missing-font-kind.md into an [experimental] entry.

Claims and files checked

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

  • Changeset palette-recipe-v2: a second recipe runs only when named, v1 is unchanged, new editor palettes name v2. Behaviour verified (recipe test; all seven official themes regenerate their palettes identically); tag false ([fix] for a new capability).
  • Changeset theme-build-family-root-base: the root may extend an unselected theme, the receipt names it, a missing or non-exporting package fails naming it. Behaviour verified for a package base (family root-base test fails on the base code, passes here); false for a base defined in the root's own file, which builds with a package named; tag false.
  • Changeset b-how-font-stack: a font asked for on a part is offered as its preset's whole stack. Behaviour verified (its test fails on the base code, passes here); tag false ([fix] for an experimental-only change).
  • Changeset experimental-theme-I-sheet-cells: cells grow to their content, wide parts take the row, loops drawn at rest, empty containers get sample text. Verified (its test). The forced-colors clause is false as a change: main never applied one.
  • Changeset experimental-theme-corners-english-rung: rounded offers round, then Tailwind's 4px. Verified. squared offered square: already on main.
  • Changeset b-picture-missing-font-kind: pictures name a font kind the machine lacks, an Apple face's generic is offered once, doctor names the install command. Verified (picture-fonts, font and doctor tests).
  • Changeset b-typography-shapes: a scale with no base or ratio, a role or weights that is no block, a level written twice, boxed and signed values. Verified (typography build and editor tests).
  • Changesets theme-build-L-final44, theme-build-k44-values: a plain base through defineTheme, misspelled fields in every form, stylesheet imports, a throwing getter as a load error, [light, dark] size pairs, unset pair halves, non-ASCII names. Verified (their build tests fail on the base code and pass here).
  • Changesets experimental-theme-how-c-clause-scope, -how-c-final44, -how-c-final45, -how-c-final45b, -how-h-blind45, -how-h-final44, -how-h-final44b, -how-h-final46, -F-chaos46, -F-clone1, -F-final44, -F-final46, -F-tiles, -g2-wild46-vocabulary: how readings. Verified (their tests fail on the base code and pass here; the part cases the clause-scope reader keeps pass on both).
  • Changesets experimental-theme-F-banner, -F-inner-paint, -F-under-input, -F-multi-when, -F-range, -F-range-version, -F-census-key, -negated-state, -ie-hack-escape, -var-inner-spaces, -n-f44, -n-f46, -g2-final44b, -g2-final45-mode-wording, -g2-final45-show-theme, -g2-final46-help-lead, -g2-final46-mode-and-dial-words: set, undo, new and show readings and refusals. Verified (their tests fail on the base code and pass here).
  • Changesets experimental-theme-a-blind45, -a-cut-short, -a-leaks, -a-media-lines, -a-role-tokens, -a-scoped-text, -a-wild45, emphasized-border-never-fainter, flat-pieces-stay-visible, palette-notes-say-what-they-do, surface-fills-keep-page, track-follows-named: results, contrast lines and the missed list. Verified (their tests pass here; the new ones fail on the base code).
  • Changesets experimental-theme-I-family-pictures, -I-starter-home, -I-states-picture, -I-table-states: pictures and preview removal. Verified (their tests fail on the base code and pass here).
  • Description: the clause-scope reader, the light/dark rule, strict places, elements, readers, amounts, typed-fill text lines, checks and lines, pictures. Verified by the tests above.
  • Description: the doc-module refusal, a number weight as a type mismatch, new reading quoted and swapped pairs and --theme t2. False as this round's changes: already on main.
  • Description: v1 stays the default and official palettes reproduce byte for byte; new editor themes use v2; the part data cache is keyed by a code fingerprint. Verified. The --family root base and receipt field: verified for a package base, wrong for a base defined in the root's own file.
  • Description: the full CLI suite passes; structure, changesets, tsc, eslint and prettier are clean. Partly reproduced: the 81 changed and 70 related test files and the CLI typecheck pass here, and lint passes in CI.
  • Description: the held-out how score. Not verifiable from the repository. Test times "come in one more push": already in.
  • .changeset/ (56 files): the five named above have findings; the rest are clear.
  • docs/specs/AST-034/spec.md: non-goal contradicts FR2 (blocking).
  • packages/cli/api/theme/build/build.mjs: family base read from the wrong extends: (blocking); the other 13 files under packages/cli/api/theme/ (family, font-warning, input-fields, typography-values, written-values, the generator, theme.type.mjs, two .doc.mjs files and four tests): clear.
  • packages/cli/api/theme-edit/ (20 source files, 76 test files): clear.
  • packages/cli/api/doctor/ (3 files), packages/cli/clients/cli/ (8 files), packages/cli/foundation/ (8 files), packages/cli/README.md: clear; picture-window.mjs keeps two identical tables (non-blocking).
  • scripts/vitest-node-durations.json: clear (generated test timings).

Automated review (maintainer link)

Comment thread .changeset/palette-recipe-v2.md Resolved
Comment thread .changeset/b-how-font-stack.md Resolved
Comment thread docs/specs/AST-034/spec.md Resolved
@josephfarina josephfarina changed the title experimental theme: thirteenth round of fixes (FINAL-44/45/46 hunts, clause scope, family pictures) experimental theme: thirteenth round of fixes (clause scope, family pictures, palette recipe v2) Nov 16, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec fe962ba

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@github-actions github-actions Bot removed the needs:design-review Affects visuals — Design should review label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 3053a88

@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: six fixes are needed. The family-build spec edit and the editor, build and recipe directions have an engineering owner's approval at this head.

Blocking:

  • A bare generateTonalPalette() request now runs astryx-oklch-v2, while astryx theme palette generate runs v1 for the same request (generator.mjs:826-828). This contradicts the palette record, which says the API and the command use one v1 engine and agree on recipe semantics. It also makes callers edit source to keep their colours in a patch release. Fall back to v1, or amend that record in this pull request and file the default change as breaking.
  • Miss: for a font the editor's table does not know, such as a self-hosted Acme Sans, astryx doctor's fix now says "Install the packages that load them (pnpm add @fontsource/acme-sans)". That is a guessed package, and the step that fixes it (add the font stylesheet export or a local <slug>.fonts.css) is gone (_adapter.mjs:943, theme-checks.mjs:1964-1966). Name only packages the font table knows, and keep the stylesheet step for the rest.
  • Miss: palette-recipe-v2.md and the comment at generator.mjs:316-317 say v2 draws the middle of a ramp as v1 does at the default vibrancy. That holds only for vivid seeds: v2 caps every stop at the seed's own chroma (generator.mjs:224), so #c2603d stop 50 moves from #c34b1a to #b75733, and Tailwind's #16a34a changes all five middle stops. Qualify the note, or apply the cap only where v2 shares the gamut.
  • The release notes and help still describe the old show --png. experimental-theme-family-pictures.md says every family is pictured and sheet.png is still taken. experimental-theme-show-speed.md says it "is fast again", but the slowdown never shipped. The --png help of new, set and undo says show adds sheet.png. Describe the net change against main in one note, and update those help strings and the description line.
  • Miss: data-cs-group on the theme sheet's sections (_catalog.mjs:605, :615) is a new public data attribute that no record names. Cut the family pages on an id or a class instead, or use a private data-astryx-* name.
  • packages/core/src/BottomSheet/BottomSheetStacking.test.tsx renames five describe titles that have nothing to do with the theme editor. Drop that file from this pull request.

Fixed since the last review: the description states the decided recipe behaviour, the Node suite fits its CI leg budget again, and the family-build non-goal now excepts the receipt's base. Optional: document the options argument of generateTonalPalette(), which its doc signature omits.

Claims and files checked

Review mode: full; reason: history

  • Changeset palette-recipe-v2: a second recipe; configs keep their recipe, else v1; a bare API request runs v2. Matches the code, but the default conflicts with the palette record (blocking). That the middle of a ramp is unchanged at the default vibrancy is false for less vivid seeds (blocking).
  • Changeset b-picture-missing-font-kind: the Apple-face note is verified; that doctor names the package that loads a missing family is false for families the font table does not know (blocking).
  • Changeset theme-build-family-root-base: the root may extend an unselected theme, the receipt names its base, and a missing package fails by name. Verified (family root-base test).
  • Changeset experimental-theme-family-pictures: every family is pictured and sheet.png is still taken. False at this head (blocking).
  • Changeset experimental-theme-show-speed: show --png pictures only the families the theme sets and not the full sheet. Matches the code; "fast again" claims a fix for a slowdown that never shipped (blocking, with the note above).
  • Changeset experimental-theme-property-letters-listed-twice (renamed and extended): settings fields the editor does not read are named. Matches the description.
  • 196 earlier changesets are renamed by behaviour with identical text, and each still exists on main. No release note changes.
  • Description: the recipe behaviour, the family root base and receipt field, and the build warnings. Verified by the palette, family and build tests.
  • Description: show --png takes one picture per family. Too broad at this head (blocking, with the notes above).
  • Description: test times come in one more push. They are already in this push (non-blocking).
  • docs/specs/AST-034/spec.md: approved at this head; the non-goal is fixed.
  • packages/cli/api/theme/palette/, theme.type.mjs and the palette docs: the default (blocking); the doc signature omits options (non-blocking).
  • packages/cli/api/theme/build/, theme-build.doc.mjs, response-types.doc.mjs, packages/cli/README.md: clear; the official themes build the same.
  • packages/cli/api/doctor/: the guessed install line (blocking).
  • packages/cli/foundation/render/: clear; picture-window.mjs has two identical tables (non-blocking).
  • packages/cli/api/theme-edit/: data-cs-group (blocking); renamed tests clear.
  • packages/cli/clients/cli/: the --png help of new, set and undo (blocking); the rest clear.
  • packages/core/src/BottomSheet/BottomSheetStacking.test.tsx: unrelated (blocking).
  • scripts/vitest-node-durations*.json: recorded timing data; the plan fits.

Automated review (maintainer link)

…ads and the secondary text token; a reference in a look that draws none of that paint never gives the plain look's; a size named on a comparison's other part is read in that size or said; N times fainter; a part that draws no corners stays as it is under everything rounder except
…px\9, none\0) is refused as one a browser drops, with the value without it offered; css-tree's forgiveness of that ending is not trusted
…the cut-short test's fresh case is the theme the next case enlarges
…from one sheet section, and cases that change different parts share a theme
…he behavior they cover, and describe that behavior in their titles and comments
…, the new/set/undo help says the same, and the family pages are cut on the sheet's own classes
…rom the API and the command alike, and new palettes name v2; v2 draws every stop it does not share exactly as v1
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 555ce6c

…ide is drawn exactly as v1, so role text and dark fills keep their strength
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 8c197eb

@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 small fixes remain. An engineering owner approved the spec and direction changes at this head, and every blocker from the last review is fixed.

Blocking:

  • .changeset/doctor-font-step-self-hosted.md says astryx doctor now names a font package "only for an open font it knows" and keeps the stylesheet step "instead of a guessed @fontsource package", but doctor on main never names any package, so drop this note and fold its scope into b-picture-missing-font-kind.md.
  • Miss: the new base field of the theme build --family receipt (build.mjs:7093) is missing from ThemeBuildResponse.data in theme.type.mjs, and the family build's text output never names the base package its outputs require, which the stable response contract says must stay aligned with the JSON, so add the typed field and a text line.
  • Miss: .changeset/experimental-theme-help-lead-leads-examples.md says the remaining examples follow the options under "More examples:", but define-command.mjs repeats every example under "Examples:", so reword the note or render only the rest under that heading, with a test.

Optional: the description says recorded Node test times "come in one more push", but this push already has them.

Claims and files checked

Review mode: full; reason: history

  • Description, palette: a second recipe; a request or config that names no recipe runs v1 from the API and the command alike; new editor palettes record v2; a config keeps its recipe; the official palettes regenerate byte for byte. Verified by the palette tests and a base-against-head generation of all six shipped configs.
  • Description and changeset, recipe v2 draws the dark side of every ramp and every pale stop whose gamut holds the default as v1 does. Verified (generator.mjs gate above tone 50, and the recipe-v2 tests over the shipped and sample seeds).
  • Changeset and description, family root base: the root may extend an unselected theme, the receipt names it, a missing package fails by name, a local base that supplies icons is refused. Verified (family root-base tests); the response type is missing (blocking).
  • Changeset, doctor names a package only for a known open font and keeps the stylesheet step otherwise. The behaviour is verified; the claim that it replaces a guessed package is false against main (blocking).
  • Changeset, help lead: the first examples lead --help. Verified; the "More examples:" heading is false (blocking).
  • Changeset, show --png family pictures replace sheet.png, and the help of new, set, undo and show says so. Verified (family-pictures test, command docs).
  • Changesets, theme build warnings (pair sizes, unset halves, typography shapes, misspelled fields, stylesheet imports, throwing getter, plain base through defineTheme). Verified by their build tests.
  • The other added editor changesets were read; the 59 added or changed CLI test files pass, and no other false claim was found. 196 renamed changesets keep their text, and one is reworded.
  • Description, test times come in a later push. Stale (non-blocking).
  • docs/specs/AST-034/spec.md: approved at this head; the non-goal excepts base.
  • packages/cli/api/theme/palette/, theme.type.mjs palette types, palette docs: clear.
  • packages/cli/api/theme/build/, theme-build.doc.mjs, response-types.doc.mjs, packages/cli/README.md: ThemeBuildResponse lacks base (blocking); the rest clear.
  • packages/cli/api/doctor/: clear; its release note is blocking.
  • packages/cli/clients/cli/lib/define-command.mjs: the help-lead note (blocking); the rest is formatting.
  • packages/cli/clients/cli/commands/: clear.
  • packages/cli/foundation/render/: clear; picture-window.mjs has two identical tables (non-blocking).
  • packages/cli/api/theme-edit/ sources and tests: clear; the family pages are now cut on the sheet's own classes.
  • packages/cli/api/theme/themeTemplate.doc.mjs: formatting only.
  • scripts/vitest-node-durations*.json: recorded timing data.

Automated review (maintainer link)

Comment thread packages/cli/api/theme/build/build.mjs Resolved
…uts require, and the response type has base

A family build whose root extends a theme the family does not select prints
which package that base comes from ("requires <package> (<export>) for
<root>'s base <theme>"), or that it is a local theme, as the receipt's base
field says. ThemeBuildResponse.data gains the optional base field.
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 64c9e3b

@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 one-line text fixes remain. An engineering owner approved the spec and direction changes at this head, and the three blockers from the last review are fixed.

Blocking:

  • Miss: the theme.palette.generate entry in packages/cli/foundation/response/response-types.doc.mjs (and the README table generated from it) still says the response's recipe is astryx-oklch-v1, but a config that names astryx-oklch-v2 now gets v2 back (generate.test.mjs, "a config keeps the recipe it records"), so describe it as the recipe the config names, v1 when it names none, and regenerate the README.
  • Miss: .changeset/experimental-theme-help-lead-leads-examples.md says "A theme command with more than three examples" opens its help with "Start here:", but addDocHelp adds that lead only to experimental theme commands, and astryx theme build --help (five examples) still opens with "Usage:", so say "An experimental theme command".

Optional: picture-window.mjs holds two identical display tables, so its display !== DISPLAY_OFF[name] check is always false.

Claims and files checked

Review mode: incremental; reason: none

  • Description, palette: a second recipe; a request or config that names no recipe runs v1 from the API and the command alike; new editor palettes record v2; a config keeps the recipe it records; the official palettes regenerate byte for byte. Verified (palette generate and recipe-v2 tests, the editor's palette writer, and a base-against-head generation of the six shipped configs; the generator is unchanged since).
  • Description and changeset, recipe v2 draws the dark side of every ramp as v1 does. Verified (the v2 branch runs only above tone 50; recipe-v2 tests).
  • Description and changeset, family root base: the root may extend an unselected theme, the receipt names it as base, the text output names the package it requires, a missing package fails by name, a local base that supplies icons is refused. Verified (family root-base tests, 8 pass).
  • Changeset, doctor names the install command for an open font it knows and gives the stylesheet step for a self-hosted family. Verified (doctor check 9 and its tests).
  • Changeset, help lead: the first three examples lead the help and the full Examples section stays after the options. Verified for experimental theme commands; "a theme command" is broader than the code (blocking).
  • Changeset, show --png family pictures replace sheet.png, and the editor commands' help says so. Verified.
  • Changesets, theme build warnings (pair sizes, unset halves, typography shapes, misspelled fields, stylesheet imports, throwing getter, plain base through defineTheme). Verified by their build tests.
  • Description, the part data cache is keyed by a fingerprint of the code that builds it. Verified (_parts.mjs).
  • The other editor changesets and description lines were read at the last reviewed head and are unchanged; no false claim found.
  • docs/specs/AST-034/spec.md: approved at this head; the non-goal excepts base.
  • packages/cli/api/theme/palette/, theme.type.mjs, palette docs and generate-a-palette.doc.mjs: clear.
  • packages/cli/foundation/response/response-types.doc.mjs, packages/cli/README.md: the palette response entry (blocking); the theme.build entry clear.
  • packages/cli/api/theme/build/, theme-build.doc.mjs, themeTemplate.doc.mjs: clear.
  • packages/cli/api/doctor/: clear.
  • packages/cli/clients/cli/lib/define-command.mjs: clear; its release note is blocking.
  • packages/cli/clients/cli/commands/: clear.
  • packages/cli/foundation/render/: clear; picture-window.mjs has two identical tables (non-blocking).
  • packages/cli/api/theme-edit/ sources and tests: clear.
  • .changeset/: the help-lead note (blocking); the rest clear.
  • scripts/vitest-node-durations*.json: recorded timing data.

Automated review (maintainer link)

Comment thread packages/cli/api/theme/theme.type.mjs Resolved
…g names; the help-lead note says experimental theme commands; the picture window's display features read from one table
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9a1d66b

@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 Node test shards and one UI test leg are still running on this head, and the merge guard waits for them; typecheck, the build test and the docsite build have passed.

Both text fixes from the last review are in: the theme.palette.generate response reference now says the recipe is the one the request or config names, and the help-lead release note now says experimental theme commands. An engineering owner approved the spec and direction changes at this head, and this round found no new problem.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0)
  • Description and release note, palette: a second recipe; a request or config that names no recipe runs v1 from the API and the command alike; new editor palettes record v2; a config keeps the recipe it records; the official palettes regenerate byte for byte. Verified (palette generate and recipe-v2 tests; the editor's palette writer; each shipped theme's config regenerates its committed palette file, copyright header aside).
  • Release note, recipe v2 draws the dark side of every ramp and every pale stop the gamut holds as v1 does. Verified (recipe-v2 tests; a five-seed comparison changes only stops at 55 and above).
  • Description and release note, family root base: the root may extend an unselected theme, the receipt names it as base, the text output names the package it requires, a missing package fails by name, and a local base that supplies icons is refused. Verified (family root-base tests, on this head and on its merge with main).
  • Release note, doctor names the install command for an open font it knows and gives the stylesheet step for a self-hosted family; an Apple interface face's note offers its generic once. Verified (doctor check and its tests, on this head and merged with main).
  • Description and release notes, theme build warnings: typography shapes by what Core reads, signed weights read as written, [light, dark] size pairs and unset halves, non-ASCII var() names, a plain base through defineTheme first, misspelled fields in every input form, stylesheet imports on every build, a throwing getter as a load error. Verified (the changed theme build tests).
  • Release note, help lead: an experimental theme command with more than three examples leads with three and keeps the full Examples section after the options. Verified (the help gate matches only experimental theme commands).
  • Description and release notes, show --png takes the sample page, the open states and one picture per family the theme sets, no longer sheet.png; --section takes any other family. Verified (show code; main pictured the full sheet; family-pictures tests).
  • Description and release note, the part data cache is keyed by a fingerprint of the code that builds it, with no version number. Verified (the cache key replaces the hand-bumped version).
  • Description and release notes, the editor round (clause scope, light and dark modes, strict places, elements, readers, amounts, contrast lines, media surfaces, missed list, refusals under native inputs, old IE escapes, spaced var(), pictures, typed input, repeatable --when, show --theme). Verified by the editor tests the pull request adds and changes, all passing at this head, with spot checks in code.
  • Release notes renamed from numbered names: text unchanged, apart from one note that now also names unread settings fields. Verified (its test passes).
  • Description, tests: lint, typecheck, the build test and the docsite build pass at this head; the full Node suite is still running in CI.
  • docs/specs/AST-034/spec.md: approved at this head; no approval line changes.
  • packages/cli/api/theme/palette/, theme.type.mjs, the palette docs: clear.
  • packages/cli/foundation/response/response-types.doc.mjs, packages/cli/README.md: clear (fixed in this round; the README check passes).
  • packages/cli/api/theme/build/, theme-build.doc.mjs: clear.
  • packages/cli/api/doctor/: clear.
  • packages/cli/clients/cli/lib/define-command.mjs, packages/cli/clients/cli/commands/: clear.
  • packages/cli/foundation/render/: clear (the picture window's display features now read from one table, with the same answers).
  • packages/cli/api/theme-edit/ sources and tests: clear (unchanged since the last reviewed revision; the added tests pass).
  • .changeset/: clear.
  • scripts/vitest-node-durations*.json: recorded test timing data.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit ba7490a into main Nov 16, 2026
79 checks passed
@github-actions
github-actions Bot deleted the theme-followup-25 branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 9a1d66bb 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