Skip to content

Point agent docs at tokens.css for theme tokens and at knip for import cycles - #5301

Merged
max-sixty merged 2 commits into
mainfrom
nightly/stale-token-pointers-docs
Nov 18, 2026
Merged

max-sixty merged 2 commits into
mainfrom
nightly/stale-token-pointers-docs

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

…t cycles

#5121 moved every :root token from base.css into browser/styles/tokens.css,
and #5222 moved the import-cycle check from dependency-cruiser to knip. The
instructions still named the old homes: browser/AGENTS.md for --lf-line,
--raise-1..3, the style's tokens and cycle rejection; the developing-leaf
glossary for --focus-ring; and the shipped package-themes reference for the
default palette and "Where it stands".

Pointers only; no rule changes.
# Conflicts:
#	.claude/skills/developing-leaf/references/glossary.md
#	browser/AGENTS.md
#	skills/leaf/references/package-themes.md
@max-sixty
max-sixty merged commit 947e7de into main Nov 18, 2026
5 checks passed
@max-sixty
max-sixty deleted the nightly/stale-token-pointers-docs branch November 18, 2026 05:10
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.

2 participants