Skip to content

Keep column geometry in the Layout and title type in the theme - #1722

Merged
max-sixty merged 2 commits into
mainfrom
workspace-density
Oct 4, 2026
Merged

max-sixty merged 2 commits into
mainfrom
workspace-density

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

This PR finishes keeping Layout and style apart, as #1697 set out. A Layout says where boxes stand and how large they are, and the theme owns type. Two rules still crossed that line, and both move to their owners. Neither changes what a page looks like.

  • The column's margin postures move to layouts.css. These rules say where the column's first sidebar, a contents map and a sidenote stand beside the column: geometry keyed on main.layout-column, which sat in the kernel theme.css. They now sit in the column Layout, with the comment that explains them. The theme keeps how a sidebar and a sidenote look.
  • The wide page's title size moves to the theme. The wide Layouts set their title's size in layouts.css. Now they set only --lf-wide-page: 1, and the theme sizes the title with a style query on it, the same way widgets read --lf-full-height.

Checked.

  • The title's computed size, weight and line height are identical to main on a column page and a sidebar page.
  • The margin, page and render-gate tests pass (568), and every example passes the render gate (27).

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

🤖 Generated with Claude Code

max-sixty and others added 2 commits October 4, 2026 08:22
The column's margin postures (where its first sidebar, a contents map
and a sidenote stand beside it) were geometry keyed on
`main.layout-column` in the kernel theme; they move to the column Layout
in layouts.css. The theme keeps how a sidebar and a sidenote look.

The wide Layouts set their title's size in layouts.css. They now say only
that the page is as wide as the window (`--lf-wide-page`), and the theme
sets the title a size up for such a page with a style query, the same way
a widget reads `--lf-full-height`. Titles measure the same as before on
column and wide pages.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 4fad6fc into main Oct 4, 2026
4 checks passed
@max-sixty
max-sixty deleted the workspace-density branch October 4, 2026 16:46
max-sixty added a commit that referenced this pull request Oct 4, 2026
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; #1722 moved it to `layouts.css`.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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.

2 participants