Skip to content

FE-1455: Tighten the docs site chrome - #9255

Draft
kube wants to merge 1 commit into
cf/fe-1457-arch-docs-point-source-links-at-the-branch-being-builtfrom
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content
Draft

FE-1455: Tighten the docs site chrome#9255
kube wants to merge 1 commit into
cf/fe-1457-arch-docs-point-source-links-at-the-branch-being-builtfrom
cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content

Conversation

@kube

@kube kube commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

🌟 What is the purpose of this PR?

Implements FE-1455: the docs site ran on Starlight's defaults, which spent most of the width on the two side panels, and the header carried an oversized logo and title. Diagrams sat in square-cornered frames next to rounded cards.

Content column at 1440px: 720px → 869px, and 1024px with the sidebar collapsed.

Top of stack #9226, on FE-1457. apps/petrinaut-docs only; the bundle stays host-neutral.

🔗 Related links

  • FE-1455 (internal): this PR
  • FE-1447 (internal): the cards whose radius and border the images now match

🔍 What does this change?

  • Widths (src/styles/chrome.css, registered as Starlight customCss): sidebar 18.75rem → 15rem, content 45rem → 56rem. Starlight sizes both panels from --sl-sidebar-width, so the left nav gets its own --pnd-sidebar-width in the two places Starlight consumes it; collapsing it no longer gives the table of contents a negative width.
  • Collapse and resize (src/components/SiteTitle.astro): a toggle button and a drag handle. SiteTitle is the only overridable component in the fixed header, which is the chrome that stays on screen when the pane is gone. Collapsing sets data-pnd-sidebar on the root and widens content to 64rem; the handle resizes between 176px and 480px, with arrow-key support. Both persist in localStorage, restored by a head script that runs before the first stylesheet so a collapsed sidebar never renders open first.
  • Header: logo 2rem → 1.5rem, title from 20px semibold to 14px medium, uppercase with 0.09em letter-spacing.
  • Images: 0.5rem radius and a color-mix border, the same values .arch-card uses, so a diagram frame matches the cards in both themes. The SVG interior is untouched.

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • modifies a workspace but not a publishable library

📜 Does this require a change to the docs?

The changes in this PR:

  • require changes to docs which are made as part of this PR
    • The app README describes the custom CSS and the SiteTitle override.

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

🛡 What tests cover this?

Presentation only, so no unit tests. turbo run build --filter @apps/petrinaut-docs passes (61 pages) and lint:tsc covers the component.

Checked in the browser on generated and authored pages, in dev and in the production preview: 1440px, 1024px and 375px, light and dark. The toggle persists across a reload with no flash, drag and arrow keys resize and clamp, both controls hide at 375px where the mobile drawer still works, and no page overflows horizontally.

❓ How to test this?

  1. turbo run dev --filter @apps/petrinaut-docs
  2. Toggle the sidebar from the header control, drag its right edge, then reload: the state comes back.

🐾 Next steps

Collapsed content width is 64rem rather than the 68rem a 1440px viewport allows, because at 68rem the column sat flush against the edge.

🤖 Generated with Claude Code

@kube kube self-assigned this Aug 19, 2026
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview Aug 20, 2026 10:53am
petrinaut-docs Ready Ready Preview Aug 20, 2026 10:53am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
hashdotdesign-tokens Ignored Ignored Preview Aug 20, 2026 10:53am
petrinaut Skipped Skipped Aug 20, 2026 10:53am

@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 17:13 Inactive
@github-actions github-actions Bot added area/infra Relates to version control, CI, CD or IaC (area) area/apps labels Aug 19, 2026
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from b07f10d to b6bb9d9 Compare August 19, 2026 17:23
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 17:23 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from b6bb9d9 to 8cfa90e Compare August 19, 2026 17:32
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 17:32 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from 8cfa90e to 2e01c2a Compare August 19, 2026 19:01
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 19:01 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from 2e01c2a to 057f176 Compare August 19, 2026 19:08
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 19:08 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from 057f176 to 6cfd170 Compare August 19, 2026 19:27
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 19:27 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch 2 times, most recently from 6cfd170 to 1bed1ae Compare August 19, 2026 19:41
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 19:41 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from df6c6af to f3ea280 Compare August 19, 2026 22:16
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 22:16 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from f3ea280 to ff97806 Compare August 19, 2026 22:54
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 22:54 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from ff97806 to d51d057 Compare August 19, 2026 22:56
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 22:57 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from d51d057 to 40cc9bc Compare August 19, 2026 23:45
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 19, 2026 23:45 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from 40cc9bc to 86a44a6 Compare August 20, 2026 00:26
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 20, 2026 00:26 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from 86a44a6 to e66c571 Compare August 20, 2026 00:29
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 20, 2026 00:29 Inactive
@kube
kube force-pushed the cf/fe-1455-petrinaut-docs-site-tighter-chrome-and-more-room-for-content branch from e66c571 to cb030e7 Compare August 20, 2026 00:50
@vercel
vercel Bot temporarily deployed to Preview – petrinaut August 20, 2026 00:50 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/apps area/infra Relates to version control, CI, CD or IaC (area)

Development

Successfully merging this pull request may close these issues.

1 participant