Skip to content

State that Layout, style and widgets never read each other - #1760

Merged
max-sixty merged 5 commits into
mainfrom
layout-survey
Oct 4, 2026
Merged

max-sixty merged 5 commits into
mainfrom
layout-survey

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

The workspace-density round (#1697, #1722, #1724) settled three owners that never read each other: a Layout (layouts.css) places boxes, a style (the kernel theme.css) sets type, spacing and form under a class such as density-working, and widgets and chrome read only their own box and the theme's tokens. Nothing wrote that down.

  • skills/leaf/assets/AGENTS.md states the three axes and the one way they meet: the owner sets a token saying what the box is (--lf-full-height, --lf-wide-page, --lf-resident, --lf-density), and the reader keys on it with a style query.
  • skills/leaf/references/packages.md tells widget authors the same.
  • A Layout takes the room between boxes from the theme's spacing tokens, so density-working tightens a sidebar's or tiles' gaps with everything else; the contract says so.
  • test_layout_style_and_widgets_never_read_each_other fails when a Layout class is named outside layouts.css, a style class outside the kernel theme, or layouts.css sets type. Planting each violation fails it.
  • TODO.md keeps the round's last proposal, a visible active pane and a key to move between panes, under Etc with its trigger.
  • content-layout.js comments named theme.css as --lf-resident's home; Keep column geometry in the Layout and title type in the theme #1722 moved it to layouts.css.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

max-sixty and others added 4 commits October 4, 2026 14:20
The density work settled three owners: a Layout (layouts.css) places boxes, a style
(the kernel theme) sets type, spacing and form under a class, and widgets and chrome
read only their own box and the theme's tokens. Nothing wrote that down, so the next
change had no rule to check itself against.

assets/AGENTS.md now states the three axes and the one way they meet: the owner sets
a token saying what the box is (--lf-full-height, --lf-wide-page, --lf-resident,
--lf-density) and the reader keys on it with a style query. The package reference
tells widget authors the same. test_layout_style_and_widgets_never_read_each_other
fails when any sheet or module other than layouts.css names a Layout class, or when
layouts.css sets type; planting each of the three violations fails it.

content-layout.js's comments named theme.css as --lf-resident's home; #1722 moved it
to layouts.css.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The workspace-density round left P7, a visible active pane and a key to move between
panes, for later rather than designing it now.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The new contract says a Layout and a style do not read each other and that a Layout sets no spacing, but .layout-sidebar and .layout-tiles in layouts.css set gap: var(--sp-4). The .density-working rule in theme.css changes --sp-4 from 24px to 14px, so changing only the style changes the Layout's inter-box spacing. This is a live boundary in the current code. The contract needs to say who owns that spacing, and the code and gate need to reflect that choice; as written, the rule future changes are meant to follow is already false.

Comment thread tests/test_interact_layer.py Resolved
A Layout's sidebar and tiles gaps read --sp-4, which density-working
restates, so the contract now says a Layout takes the room between boxes
from the theme's spacing tokens. The orthogonality test now also fails when
a style class (one the kernel theme gives its own type or spacing tokens) is
named outside the kernel theme.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 01eb391 into main Oct 4, 2026
4 of 5 checks passed
@max-sixty
max-sixty deleted the layout-survey branch October 4, 2026 23:23
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