Repository navigation
Point code comments at tokens.css and the change card, where the tokens and words now live - #5299
Merged
Merged
Conversation
…ns and words now live #5121 moved every :root token from base.css into browser/styles/tokens.css, but comments in the theme, runtime, packages and tests still sent readers to base.css for --font-ui, --raise-N, --chip-r, --lf-rail-room and others. Each edited pointer names a token that tokens.css declares and base.css no longer does; pointers to rules still in base.css (--lf-top, --lf-block-frame, --lf-wears-ring) are unchanged. #5249 replaced the inline before/after comparison with a change card, leaving two comments in version.js describing the removed mechanism. They now name the change card's diffWordsOf and the comparison that installation turns off and restores. Comments only; no behavior changes.
max-sixty
pushed a commit
that referenced
this pull request
Nov 18, 2026
…t cycles (#5301) Some agent instructions still point to where things used to live. #5121 moved every `:root` theme token from `browser/base.css` into `browser/styles/tokens.css`, and #5222 moved the import-cycle check from dependency-cruiser to knip. This PR updates those pointers and changes no rule. - **`browser/AGENTS.md`** - `--lf-line` and `--raise-1` to `--raise-3` now point to `styles/tokens.css`. - The Layout/style/widget rule now says the style's tokens are in `styles/tokens.css`. - The module-boundaries paragraph now credits knip (`knip.config.js`) with rejecting import cycles. `.dependency-cruiser.mjs` has had no cycle rule since #5222. - **The developing-leaf glossary:** **Focus ring** now places `--focus-ring` in `styles/tokens.css`. - **The shipped `skills/leaf/references/package-themes.md`:** the default palette and the "Where it stands" tokens (`--focus-region-gap`, etc.) now point to `browser/styles/tokens.css`. An agent writing a theme would otherwise search `base.css` and find none of them. I grepped both files to confirm each named token is declared in `tokens.css` and not in `base.css`. `prek run` passes on the changed files. #5299 fixes the same stale pointers in code comments. This PR is separate because these paths need the control-plane owner's approval. Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comments in the theme, runtime, bundled packages and two test docstrings still sent readers to
base.cssfor tokens that #5121 moved intobrowser/styles/tokens.css. Two comments inbrowser/runtime/version.jsstill described the inline comparison that #5249 replaced with a change card. This PR updates those pointers. It changes comments only, so nothing behaves differently.tokens.cssdeclares andbase.cssno longer does:--font-ui,--font-compact,--font-status,--font-message,--font-heading,--font-*,--muted,--chip-r,--r,--mark-size,--wide,--raise-*,--focus-shadow,--lf-rail-room,--lf-top-coveredand--aim-floor's pointer query. I checked each by grepping both files for its declaration. Pointers to rules still inbase.cssare unchanged, such as--lf-top,--lf-block-frameand--lf-wears-ring.version.js: the comment abovediffWordsnow names the change card'sdiffWordsOf. The guard in the revision'sactivatesnow gives its real reason:activateRevisionturns a selected comparison off and restores it, and that comparison's marks can own the rendered subject.prek runpasses on the changed files.The same stale
base.csspointers also appear inbrowser/AGENTS.md, the developing-leaf glossary andskills/leaf/references/package-themes.md. Those paths need the control-plane owner's approval, so they go in a separate PR.