Skip to content

experimental theme: a whole-theme border color reaches the fields' edge at the nearest shade that keeps 3:1... - #13225

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
josephfarina/editor-field-edge-border
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
josephfarina/editor-field-edge-border

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

User impact

astryx experimental theme editor set <theme> --color-border <color>: a whole-theme border color also moves the edge the fields draw (the token the census reads for their border color, today --color-border-emphasized) to that color where it reads at 3:1 on the field's fill, else to the nearest shade of it that does, in each mode, so "thin light gray borders" reach inputs and selectors while they keep a boundary people can see. The result names the shade ("fields kept at 3:1"), with the line that gives fields the exact color; a field edge the theme sets itself keeps its value; one undo takes both back.

Problem and solution fit

The theme editor is experimental. Each change is one behaviour of its set or how commands, with its own test, and touches nothing outside packages/cli/api/theme-edit.

Smallest restoration

  • .changeset/experimental-theme-field-edge-follows-border.md | 7 ++
  • packages/cli/api/theme-edit/_settings.mjs | 132 +++++++++++++++++-----------
  • packages/cli/api/theme-edit/theme-border-follows.test.mjs | 9 +-
  • .../cli/api/theme-edit/theme-field-edge-follows-border.test.mjs | 108 +++++++++++++++++++++++
  • .../api/theme-edit/theme-token-family-follows-fills.test.mjs | 17 +++-

Evidence

Tests on this layer (CI=1, applied on its base in order):

  • packages/cli/api/theme-edit/theme-border-follows.test.mjs
  • packages/cli/api/theme-edit/theme-field-edge-follows-border.test.mjs
  • packages/cli/api/theme-edit/theme-token-family-follows-fills.test.mjs

The whole packages/cli/api/theme-edit suite on the top of this stack fails only what its base fails in the same environment (app-copy and compile-check fixtures); eslint and prettier are clean on the changed files.

Scope

Components: theme editor (CLI, experimental)

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

preflight: pass f67054e (review deferred to batch: subagent cap)

Replaces #12763, which merged into the theme-editor branch and was reverted there before its replay; same commit.

replay: worse 0 at f67054e

…ge at the nearest shade that keeps 3:1 on their fill
@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:41am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Nov 21, 2026, 6:41 AM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026
@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 06:42
@josephfarina
josephfarina merged commit 4cbabab into feature/theme-editor Nov 21, 2026
180 of 186 checks passed
@josephfarina

Copy link
Copy Markdown
Contributor Author

Taken out of landing #13226 because the review of the combined head flagged a line this change made. It stays on the working branch and rides the next landing together with its fix: open the fix as a new pull request (base main or the working branch) whose description names #13225.

josephfarina added a commit that referenced this pull request Nov 21, 2026
…ge at the nearest shade that keeps 3:1... (#13225)

Reviewed pull request #13225, 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
…ge at the nearest shade that keeps 3:1... (#13225)

Reviewed pull request #13225, 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
…ge at the nearest shade that keeps 3:1... (#13225)

Reviewed pull request #13225, 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
…ge at the nearest shade that keeps 3:1... (#13225)

Reviewed pull request #13225, 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 josephfarina/editor-field-edge-border branch November 22, 2026 06:04

This branch was successfully deployed

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