Repository navigation
v0.46.0
The last release before the DMNC-1623 interface planning. One body size: every component's non-heading text is 16px (it ran 18 to 26px). HeaderButton is the one shape for header controls, so a ⌘K launcher matches the theme button. The page column is flush left with an 80-column text measure, and a non-sticky Header shows the page's ground. Display theme helpers (displayMenuItems, resolveDisplayTheme, syncThemeColor) give every site the same DOS / LIGHT rules and phone status-bar colour. amber-paper polish (DMNC-1620). Upgrade guide: migrations/0.46.0.md. Consumers: ^0.46.0 (0.x caret, bump explicitly).
Added
HeaderButton(new). The one control shape for the Headerendslot: a 36px outlined box (32px on phones) with an optional pixel glyph, text and chevron; hover and an open panel invert to the brand fill; 2px focus ring.icon,children,aria-label(defaults to string text),labelDisplay(labeldefault,responsive,icon),chevron, plus React Aria Button props (onPress,isDisabled). A ⌘K launcher is<HeaderButton aria-label="Open command palette">⌘K</HeaderButton>; DisplayMenu's trigger is a HeaderButton, so header controls always match in height, border and states. Show a ⌘K launcher from 480px up: on a phone there is no ⌘ key, and at 320px a lockup brand, two controls and MENU do not fit.- Display theme helpers.
displayMenuItems(state, setState, themes)builds the DisplayMenu rows for the themes a site offers: DOS (style: DOS or modern) and LIGHT (brightness; under DOS theamber-papertheme, nicknamed Eggyolk). A DOS-only site gets just LIGHT; with DOS off and a modern style that has one brightness, LIGHT is hidden.resolveDisplayTheme(state, themes)returns thedata-themeto set.syncThemeColor()writes<meta name="theme-color">from the current ground so the phone status bar matches the theme; call it on load and after every switch (it creates the meta in script; a meta rendered in JSX gets reset by React). - Storybook stability guard.
parameters.stable = { watch, themes, click }fails a story when a watched element moves or resizes across themes or after a click. DisplayMenu and HeaderButton stories use it: the trigger, the nav and the menu rows keep their boxes.
Changed
- One body size in every component (DMNC-1579). Visible for all consumers: all non-heading text in every component now renders at 16px (
text-dos-text-base). Size props keep their heights, padding and gaps; only the text size stopped changing with them. The only larger text is real headings (h1 to h6) and display numbers; Terminal and CommandPrompt keep their bitmap sizing. Under the DOS themes, keep the one size intact (see the guidelines). Text that got smaller, with its old size:Button: xs 18px, sm 20px, md 22px, lg 24px, xl 26px.BadgeandTag: sm 18px, md 20px, lg 22px.Checkbox: sm 18px, md 20px.Select: trigger sm 20px, md 22px, lg 24px; label, description and error 18px; options, search and empty text 20px.Progress: md 20px, lg 22px. The bar is text, sosizeno longer changes the bar.LabeledProgresslabel and value 20px.Statlabel and trend: sm 18px, md 20px, lg 22px (values unchanged).Gauge,Meter,RangeBar,SeriesBars,DecayStrip,VitalsStrip: labels, legends, notes and secondary text 18 to 22px by size (values unchanged); theVitalsStripstate word 20px.AlertandNotification20px (the notification progress label 18px).EmptyStatetitle 20px, description 18px.ChecklistRowandLedgerRowlabel 20px, note 18px.CopyButton18px.ChatMessage,ChatInputand theChatHistoryplaceholder 22px.Accordioncontent,Modalbody andLightboxcaption 20px.CmdPaletteinput 24px, items and empty text 20px, hints and footer 18px.DosWindowstrip title 18px (so also theCardandDosFigurestrips).DosFigureresolution and pin 18px, caption 20px.InlineExpandsource link 18px.FilterBaritems sm 18px, md 20px, lg 22px, counts 18 to 20px.Tabssm and md 18px, lg 20px.NavMENU trigger 20px, mobile panel links 24px.PageShelllead 18px. TheHeadercontext row return pill 18px.TimelineContainer: empty text and LOAD MORE 22px; entry card type and tags 18px, title 22px, preview 20px; article body and READ MORE 20px; month/day/hour view types and timestamps 18px, previews and content 20px; master-detail rail 20px, rail dates 18px, empty detail 22px, back link 20px.TimelineNodelabels 18px (large 20px); the below-480px label override is gone, labels are 16px at every width.TimelineFeedchips, dates and kinds 18px, titles 20px (22px from 640px).TimelinePagechips, counts and dates 18px, descriptions and the preview title 20px.DosDialogstrip title (Modal,Lightbox,CmdPalette) 18px: it is an<h2>, but the strip is chrome, so it matches theDosWindowstrip.- Unchanged: headings (
SectionHeading,PageSectionandPageShelltitles,LegalPageh1/h2,TimelinePageyear and entry titles) and display numbers (Stat,GaugeandVitalsStripvalues).
- New guard:
src/styles/one-body-size.test.ts. Fails on any larger body step (text-dos-text-xsto-xl,--typography-font-size-text-xsto-xl) in component source outside a short, reasoned allowlist of heading, display-number and Terminal/CommandPrompt lines. - Page layout is flush left (Dom: a DOS screen is not centred).
PageShell's column starts at the left gutter and runs to a 1200px cap (was centred at 1240px); text inside keeps an 80-column measure (45rem: intro, paragraphs, lists, section titles, an embedded LegalPage), and wide blocks (Bench, tables, galleries, card grids) may use the full cap from the same left edge.Header containedfollows: flush left, 1200px cap. One layout for every theme: themes restyle, never re-lay out. - A non-sticky
Headerpaints no ground. Withsticky={false}the header is transparent, so a CRT tint, RetroEffects or the amber-paper ground shows through; a sticky header keeps its opaque ground (content scrolls under it). DisplayMenu's trigger is aHeaderButton. Same look; the trigger styles moved toHeaderButton.cssand theeidotter-display-menuclass stays on the trigger.- amber-paper: secondary, muted and tertiary text are deeper (DMNC-1620).
#3A1F07, 8.3:1 on the ground (was 5.8:1, which read faint). - amber-paper: no glow on the Logo and Mark (DMNC-1620). The brand amber glow read as an orange smudge on the amber ground; the Mark keeps its breath.
- TimelineContainer card preview uses the secondary text role instead of 70% opacity (DMNC-1620), which dropped below AA on amber-paper.
Fixed
Tabslists scroll inside themselves when wider than their container (DMNC-1620) instead of widening the page.DosWindowtitles ellipsize inside a narrow card (DMNC-1620) instead of running past it (DosFigure, Card).