diff --git a/DESIGN.md b/DESIGN.md index 83ba8b9..bcd99d8 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -46,9 +46,11 @@ they read against the sky. ## Typography Atkinson Hyperlegible is the reading and display face. Azeret Mono is reserved -for paths, package names, versions, operations, and structural labels. Page -titles are large and regular (about 2.4rem); section headings are 1.3rem -semibold; body text is 17px. Reading columns use a 72ch measure. +for paths, package names, versions, operations, and structural labels, with +ligatures off so code shows every character as typed. Page titles are large +and regular (about 2.4rem); section headings are 1.3rem semibold; body text is +17px. Paragraphs keep to about 75 characters a line (`34em`), and no text +that carries meaning is set below 12px. ## Layout @@ -58,6 +60,12 @@ visible title and lede (`.page-intro`) under a still band of sky at the top right; documentation pages keep their three-column layout. Navigation, buttons, tables, callouts, and footer links remain visually quiet. +The header is the same on every page: the wordmark (the link home), then +Search, the theme control and a boxed "Sign up" on one row, and the five +section links on a ruled row below. The current section is not underlined +and carries a short bar on the lower rule. Below 28rem the section links fold behind a "Menu" button. Header +controls keep a 44px-high target. + ## Motion Only the homepage moves: the sky drifts and the particle field explains the diff --git a/src/components/DocsLayout.astro b/src/components/DocsLayout.astro index 4b5df82..4a387f0 100644 --- a/src/components/DocsLayout.astro +++ b/src/components/DocsLayout.astro @@ -69,7 +69,7 @@ const { label, navLabel, headerCurrent, sourcePath, meta, groups: docGroups } = const docsNavigation = document.querySelector("[data-docs-nav]"); if ( docsNavigation instanceof HTMLDetailsElement - && window.matchMedia("(max-width: 60rem)").matches + && window.matchMedia("(max-width: 68rem)").matches ) { docsNavigation.open = false; } diff --git a/src/components/SiteHeader.astro b/src/components/SiteHeader.astro index c21dbbc..17caa63 100644 --- a/src/components/SiteHeader.astro +++ b/src/components/SiteHeader.astro @@ -8,8 +8,8 @@ interface Props { const { current } = Astro.props; const section = current === "sdk" || current === "runtime" || current === "spec" ? "developers" : current; +// The wordmark is the link home, so the list starts with the product pages. const links = [ - { href: "/", label: "Home", key: "home" }, { href: "/connect/", label: "Connect", key: "connect" }, { href: "/downloads/", label: "Downloads", key: "downloads" }, { href: "/apps/", label: "Apps", key: "apps" }, @@ -18,13 +18,25 @@ const links = [ ] as const; --- -