Skip to content

fix(cli): a color said with a tint word fills with that color again - #13186

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
theme-how-tint-solid
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
theme-how-tint-solid

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Someone theming with astryx experimental theme editor how who says a color with a tint word, for example "secondary button light blue tint with blue text" or "header with a light gray wash", gets that color at 15% over the page. For a pale color the fill barely shows, and the readable-text line for it is not offered. Before the tint reading, the same asks filled with the color itself. A strong color said with a tint word ("cards tinted blue", "a slightly blue tint") fills solid again too.

Problem and solution fit

  1. Why does it happen? The tint reading mixes every color said with a tint word at 15% over what is beneath.
  2. Why does it hurt? A pale color mixed at 15% nearly matches the page, so the asked fill does not show.
  3. Why does it matter? The person named the color they wanted to see.

Expected behavior and authority

Regression against the behavior before the tint reading: a color said with a tint word filled with that color.

Smallest restoration

The tint reading is withdrawn: the step that mixed a tint word's color at 15%, and the step that copied that mix into the answer that runs a whole ask. Nothing else changes; the clause binding for tint words ("cards tinted blue with a navy header": the cards' blue, never the header) stays.

Evidence

  • Reproduction before the change: how "secondary button light blue tint with blue text" writes background-color 'color-mix(in srgb, #dbeafe 15%, transparent)' --on button --when variant:secondary and no readable-text line.
  • Result after the change: the fill is background-color '#dbeafe' --on button --when variant:secondary, solid, the same as before the tint reading (checked by replaying every ask against the CLI before and after; the text lines for that ask are also the same as before, and its "blue text" read as the tint's light blue is an older, separate matter).
  • Representative unchanged path: "translucent glassy window frames, soft blue-tinted glass, white content" answers as before.
  • Regression test or other mutation-sensitive proof: theme-how-list-items.test.mjs ("a tint word fills with the color it names") asserts the solid fill and no mix. The text-on-fill pass keeps its tests, restated with asks that still write a see-through fill ("buttons 15% blue with white text"), plus the readable-ink test, and the test that a color said for one part ("cards tinted blue with a navy header") stays that part's.

Scope

Components: CLI experimental theme editor (how tint reading)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

The unreleased release note line for the tint reading is removed, and the part of it that described the text-on-see-through-fill check, which stays, is restated with a see-through ask; no published version had the tint reading, so no new release note is added.

Testing

vitest run --project node packages/cli/api/theme-edit (full directory, 546 files) passes; strict typecheck and changeset checks pass.

replay: worse 0 at 3b8b145

preflight: pass 3b8b145

@vercel

vercel Bot commented Nov 21, 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 21, 2026 6:30am UTC

Request Review

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

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 21, 2026, 7:05 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision, and two findings need fixes either way.

No current spec record settles whether astryx experimental theme editor how reads a tint word ("cards tinted blue", "a slightly blue tint") as the color at 15% over what is beneath or as the solid color, and the round-15 editor change's spec approval covered the reading this pull request withdraws. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

Blocking findings:

  • The change deletes the only tests of the text-measurement pass it keeps: "names an ink that reads at 4.5:1, never one just short of it" asks no tint word and still passes on this head, and the deepen and keep-to-modes branches still run for fills written as "N% " ("buttons 15% blue with white text" is deepened to 60%), so keep that test and restate the other two with such asks.
  • .changeset/experimental-theme-how-tint-solid.md tells release readers that the tint reading is withdrawn, but no release shipped it (0.7.16's changelog has none and its notes are still pending), and the two edited notes already keep changeset coverage for @astryxdesign/cli, so delete the new note.

Non-blocking: the kept pass's comments in _how-question.mjs (lines 31359-31369) still describe tint-word fills and "the tint pass", and the "(a tint: …)" strip at lines 31561-31565 is now dead.

Claims and files checked

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

  • Claim: before the change, the light-blue-tint secondary-button ask writes a 15% mix and no readable-text line: verified on the base.
  • Claim: after the change, that ask writes a solid #dbeafe fill, #dbeafe text and a dark-mode #000000 text line, the same lines as before the tint reading: verified (identical to the editor before the round-15 change); the #dbeafe text is the fill's color rather than the asked blue, which predates this change.
  • Claim: the glassy-window ask answers as before: verified (same answer on base and head).
  • Claim: the list-items test asserts the solid fill and no mix: verified (passes on head; the base answers that ask with the mix).
  • Claim: the tint reading's own tests are removed with it: false (the removal also takes the tests of the text-measurement pass the change keeps).
  • Claim: nothing else changes and the clause binding for tint words stays: verified ("cards tinted blue with a navy header" keeps the navy header solid).
  • Claim: two unreleased release-note lines about the tint reading are removed: verified.
  • Claim: the theme-edit tests, typecheck and changeset checks pass: partly verified (the two changed test files and the 50 theme-edit test files that mention a tint or wash word pass on head; the full directory, typecheck and lint were not rerun, and CI was skipped for this commit).
  • Changeset claim: a color said with a tint word fills with that color: verified; "as before" and "withdrawn": false for release readers (finding above).
  • .changeset/experimental-theme-how-tint-solid.md: finding (blocking).
  • .changeset/theme-round15-part-02.md: clear.
  • .changeset/theme-round15-part-13.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear for the removal; non-blocking stale comments on the kept pass.
  • packages/cli/api/theme-edit/theme-how-list-items.test.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-tint-and-mode-pairs.test.mjs: finding (blocking).

Automated review (maintainer link)

@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; the findings from the earlier review are fixed.

No current spec record settles whether astryx experimental theme editor how reads a tint word ("cards tinted blue", "a slightly blue tint") as the color at 15% over what is beneath or as the solid color, and the round-15 editor change's spec approval covered the reading this pull request withdraws. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

Claims and files checked

Review mode: full; reason: history

  • Claim: before the change, the light-blue-tint secondary-button ask writes a 15% mix and no readable-text line: verified on the base.
  • Claim: after the change, that ask writes a solid #dbeafe fill, #dbeafe text and a dark-mode #000000 text line, the same lines as before the tint reading: verified (identical to the editor before the round-15 change).
  • Claim: the glassy-window ask answers as before: verified (same answer on base and head).
  • Claim: the list-items test asserts the solid fill and no mix: verified (it fails on the base and passes on the head).
  • Claim: the text-on-fill pass keeps its tests, restated with see-through asks, plus the readable-ink test: verified (they pass on the head, and their asks still reach the deepen and keep-to-modes branches).
  • Claim: only the tint step and its copy into the whole-ask answer are withdrawn, and the clause binding for tint words stays: verified ("cards tinted blue with a navy header" keeps the navy header; "N% " fills and tints of the accent answer as on the base).
  • Claim: two unreleased release-note lines about the tint reading are removed, and no new note is added because no published version had it: verified (the 0.7.16 changelog has no tint-word reading, and the edited notes still cover the CLI).
  • Claim: no new public API, default or interaction model, and no internal context in public text: verified.
  • Claim: the theme-edit tests, strict typecheck and changeset checks pass: partly verified (all 546 theme-edit test files and the changeset check pass on the head; the strict typecheck stops only on two unrelated page templates that import a theme package not built here, the same on the base).
  • Title: a color said with a tint word fills with that color again: verified.
  • .changeset/theme-round15-part-02.md: clear.
  • .changeset/theme-round15-part-13.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-list-items.test.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-tint-and-mode-pairs.test.mjs: clear.

Automated review (maintainer link)

…before; the low-strength tint reading is withdrawn

[skip ci]

@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; no other finding remains.

No current spec record settles whether astryx experimental theme editor how reads a named color said with a tint word ("cards tinted blue", "a slightly blue tint") as that color at 15% over what is beneath or as the solid color, and the round-15 editor change's spec approval covered the reading this pull request withdraws. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The restated release note and the restored part test check out, and the findings from the earlier reviews stay fixed.

Claims and files checked

Review mode: full; reason: history

  • Claim: before the change, the light-blue-tint secondary-button ask writes a 15% mix and no readable-text line: verified on the base.
  • Claim: after the change, that ask writes a solid #dbeafe fill, #dbeafe text and a dark-mode #000000 text line, the same lines as before the tint reading: verified (identical to the editor before the round-15 change).
  • Claim: the glassy-window ask answers as before: verified (same answer on base and head).
  • Claim: the list-items test asserts the solid fill and no mix: verified (it fails on the base and passes on the head).
  • Claim: the text-on-fill pass keeps its tests, restated with see-through asks, plus the readable-ink test and the test that a color said for one part stays that part's: verified (they pass on the head; the one-part test fails on the base).
  • Claim: only the tint step and its copy into the whole-ask answer are withdrawn, and the clause binding for tint words stays: verified ("cards tinted blue with a navy header" keeps the navy header; fills with a strength said as a number and tints of the accent answer as on the base).
  • Claim: the unreleased tint-word note line is removed, the part about text on a see-through fill is restated, and no new note is added because no published version had the reading: verified (the 0.7.16 changelog has no tint-word reading).
  • Claim: no new public API, default or interaction model, and no internal context in public text: verified.
  • Claim: the theme-edit tests, strict typecheck and changeset checks pass: partly verified (all 546 theme-edit test files and the changeset check pass on the head; the strict typecheck stops only on two unrelated page templates that import a theme package not built here, the same on the base).
  • Changeset: text asked with a see-through fill deepens it until it reads, else is kept to the modes it reads in with a readable ink named: verified ("buttons 15% blue with white text" is deepened to 60%; the yellow ask keeps white to dark mode and names #111827; the editor before round 15 did neither).
  • Title: a color said with a tint word fills with that color again: verified.
  • .changeset/theme-round15-part-02.md: clear.
  • .changeset/theme-round15-part-13.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-list-items.test.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-tint-and-mode-pairs.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 07:25
@josephfarina
josephfarina merged commit ebed8d2 into feature/theme-editor Nov 21, 2026
13 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…13186)

Reviewed pull request #13186, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…13186)

Reviewed pull request #13186, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…13186)

Reviewed pull request #13186, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…13186)

Reviewed pull request #13186, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13225 experimental theme: a whole-theme border color reaches the fields' edge at the nearest shade that keeps 3:1...
- #13186 fix(cli): a color said with a tint word fills with that color again
- #13091 experimental theme: a kept palette stays as saved through hand edits and undo
- #13233 fix(cli): on a one-family base, a body font set alone keeps empty-state titles on the heading font
- #13256 fix(cli): the fields-at-3:1 note prints its exact-color command in full, with the color quoted
- #13044 feat(cli): experimental theme how: readings held back from round 15
- #13241 experimental theme: a text color on an option row reaches the tokens its label and description read
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13276.

@github-actions
github-actions Bot deleted the theme-how-tint-solid branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 3b8b145a Deployed Nov 21, 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