Skip to content

Add layout library: six page-level scaffolds#46

Merged
minimaldesign merged 1 commit into
mainfrom
layout-library
Jul 23, 2026
Merged

Add layout library: six page-level scaffolds#46
minimaldesign merged 1 commit into
mainfrom
layout-library

Conversation

@minimaldesign

Copy link
Copy Markdown
Owner

What

Rebuilds global.layout.css from mcss.dev-specific styles into a real layout library, folded into the unreleased v1.0.0.

  • Scaffolds: .layout app shell (sticky footer) plus .layout-centered, .layout-sidebar (composable .layout-sidebar-end), .layout-docs (nav + main + TOC), .layout-split, .layout-cover.
  • Tokens: new --layout-content-width (70ch) and --layout-toc-width (1fr, any track size) in settings.ui.css, joining --layout-aside-width.
  • Framework/site split: TOC nth-of-type hack replaced by an explicit layout_content_aside-toc class; mcss.dev specifics (sticky side navs, 77ch column) moved to src/styles/site/global.layout.css, the dogfooding example the docs link to.
  • Full coverage: docs/components on .layout-docs, blog on .layout-centered, homepage and marketing template on the base .layout shell.
  • Demos: six full-page routes under /demos/layout/ (colored blocks, honest breakpoint/100dvh behavior) and clickable thumbnail diagrams in the rewritten Layouts docs section (WIP notice gone).

Behavior change

Generic .layout-sidebar now stacks on mobile instead of hiding its aside; hiding is .layout-docs behavior (documented, with a notice that docs nav belongs in the header menu on small screens). Called out in the 1.0.0 changelog Breaking section for 0.9 users.

Verification

  • Docs pages keep the exact old geometry at all three breakpoints (245px / 77ch / 1fr at --lg); blog column still resolves to 70ch.
  • All six demos verified at desktop and mobile widths; homepage and marketing template render identically with the shell applied, no horizontal overflow.
  • npm run build passes (110 pages); internal links and anchors on touched pages verified against the build output; dist/ rebuilt.

🤖 Generated with Claude Code

Rebuild global.layout.css from mcss.dev-specific styles into a proper
layout library: .layout app shell plus centered, sidebar (with
sidebar-end), docs, split, and cover variants, driven by new
--layout-content-width and --layout-toc-width tokens. The docs-only
plumbing (sticky navs, 77ch column, TOC nth-of-type hack) moves to the
site's own CSS, with docs pages switching to .layout-docs and an
explicit layout_content_aside-toc class. Every mcss.dev page now runs
on a scaffold, including the homepage and the marketing template.
Full-page demos under /demos/layout/ and thumbnail diagrams on the
docs page. Folded into the unreleased v1.0.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for mcssdev ready!

Name Link
🔨 Latest commit c70ef67
🔍 Latest deploy log https://app.netlify.com/projects/mcssdev/deploys/6a6288728869b30008926e54
😎 Deploy Preview https://deploy-preview-46--mcssdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 98
Accessibility: 98
Best Practices: 100
SEO: 99
PWA: 70
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@minimaldesign
minimaldesign merged commit 15df9f2 into main Jul 23, 2026
5 checks passed
@minimaldesign
minimaldesign deleted the layout-library branch July 23, 2026 21:39
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