Skip to content

Point code comments at tokens.css and the change card, where the tokens and words now live - #5299

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/stale-token-pointers
Nov 4, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/stale-token-pointers

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Comments in the theme, runtime, bundled packages and two test docstrings still sent readers to base.css for tokens that #5121 moved into browser/styles/tokens.css. Two comments in browser/runtime/version.js still 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: every edited pointer names a token that tokens.css declares and base.css no 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-covered and --aim-floor's pointer query. I checked each by grepping both files for its declaration. Pointers to rules still in base.css are unchanged, such as --lf-top, --lf-block-frame and --lf-wears-ring.
  • version.js: the comment above diffWords now names the change card's diffWordsOf. The guard in the revision's activates now gives its real reason: activateRevision turns a selected comparison off and restores it, and that comparison's marks can own the rendered subject.

prek run passes on the changed files.

The same stale base.css pointers also appear in browser/AGENTS.md, the developing-leaf glossary and skills/leaf/references/package-themes.md. Those paths need the control-plane owner's approval, so they go in a separate PR.

…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.
@leaf-agent
leaf-agent merged commit 231db7e into main Nov 4, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the nightly/stale-token-pointers branch November 4, 2026 06:59
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant