Martlet page shell
Martlet is an opinionated design language. Its reference website starts with the actual working shell of jameshoward.us, not a reconstruction from selected visual details. The imported source revision is cdf0ab30f269085a289f8f91e467103c07ca44cb from k3jph/k3jph.github.io.
Complete page composition
The masthead establishes the page title, introductory information and relevant metadata before the content begins. A solid background is a complete default; a photograph is optional. Titles wrap naturally. Dates, versions, authors and tags belong in named metadata or tag regions when the page has those values; empty regions add no placeholder content.
Light appearance uses the source dark masthead. Dark appearance reverses it to a light masthead with dark text. This inversion is an explicit owner-directed extension, not a claim that the original source implemented full-page dark mode. The appearance control is independent from the palette specimens.
Related-page navigation and same-page contents are different objects. The page composition and its available content width determine whether same-page contents use a left index or an inline list. A narrow blog can use inline contents on the same screen where a wider document uses a left index. Viewport reflow then preserves those relationships at smaller sizes.
Defaults and departures
The shell provides coherent defaults for the masthead, navigation, title and metadata hierarchy, reading measure, content regions and footer. An adopter can replace any part. The adopter is responsible for making the resulting composition coherent, accessible and responsive; the default does not become noncommittal to accommodate arbitrary overrides.
Implementation boundary
This website implements the source-derived shell. React references and published package APIs are being reconciled separately. The pinned canonical grammar remains a historical snapshot; this host standard records the newer composition explicitly.
Current framework support
| Implementation | Release | Use it for |
|---|---|---|
| Core | 3.0.1 | Tokens, fonts and shared visual rules |
| Astro | 3.0.0 | Native layouts and components |
| React | 1.0.1 | Interactive React 19 components |
| Jekyll | 2.0.0 | Source templates with synchronized Core assets |
Core owns the visual rules. Each framework supplies its native markup and behavior. The references share 50 canonical examples, dashboard applications and a scientific workspace, with representative data and simulated operations.
Original grammar review snapshot
The following table records the review-time implementations. It is retained for provenance; use the current release table above for installation.
| Implementation | Version | Guidance snapshot status |
|---|---|---|
| core | 2.2.2 | experimental |
| Astro | 1.2.2 | experimental |
| React | 0.1.0 | experimental |
| Vue | — | not-implemented |
| Svelte | — | not-implemented |
| native | — | not-implemented |
The source profile is opt-in. Core 3 changes the canonical stylesheet name; Astro 3 requires Core 3. Existing Astro component names and slots remain available. React event, state and focus APIs remain specific to React. See the separate publication and agent setup record for verified availability.
Pattern contracts and provenance
| Pattern | Basis | Rules |
|---|---|---|
| reading-contents | source-translation | Contents precedes body; Depth 2 parents and depth 3 children; Supporting information remains separate; Reflow according to available container width |
| grouped-footer | source-translation | Host supplies identity and destinations; Preserve independent family anatomy; Ownership and contact belong in base slot |
| collection-editor | application-extension | React specimen only; save, failure, draft protection and undo. |
| validated-form | application-extension | Field/group/region relationships; Retain values on failure; Summary links focus controls; Guard specimen reset; host navigation remains host-owned |
| query-results | application-extension | Separate draft and committed scope; Stable record identities; Current-page selection only; Cancel invalidates late completion; Keep all table columns in labelled scrolling region |
ArticleLayout adds a separate contents slot and retains its supporting sidebar. TableOfContents provides index and inline variants with depth-2 parents and depth-3 children. SiteFooter adds variant="grouped", labelled groups, and host-owned identity/base slots. Its existing plain variant remains the default.
Original source-profile and API review ↗. The original-site footer identity and destinations are supplied by the host, rather than embedded in the packages.
Host-owned menus follow source behavior: Martlet’s documentary index and its inline TOC are distinct objects; supporting asides stay separate. Astro SiteHeader remains a wrapping link header; the package does not provide a dropdown controller.
Read the preserved grammar review
Martlet: a grammar of related things
Experimental grammar 0.3 · Core 2.2.2 preview · Astro 1.2.2 preview · React 0.1.0
Martlet makes substantial work approachable through proportion, proximity, readable sequence, and continuity. Its warmth must survive a compact collection, an error, or a page without its mark. The adopted charter supplies the criteria; these rules turn them into an application vocabulary to exercise and revise.
Source authority and current decisions
Existing origin objects are the baseline. Read the decisions MCP reference or the source-decision profile before choosing visual rules. Distinguish observed source roles, a contextual translation, and a new application extension. Do not add a global gold stripe, decorative monospace labels, arbitrary accent rules, or mechanically opposite family layouts. Keep new capabilities only with a stated task purpose. The October 23 audit is a fixed record; the reconciliation ledger records implemented decisions and remaining gaps. This remains an experimental grammar, not a declaration of stability.
Begin with relationships
Decide what belongs together before drawing containers. A label, control, and useful explanation form a field. Related fields form a group. Groups participating in one decision form a task region. Use progressively stronger separation to express those changes of relationship. Do not give every paragraph or field its own card.
The optional source profile exposes --martlet-field-gap at 0.5rem, --martlet-group-gap at 1.5rem, and --martlet-region-gap at 2.5rem. They map to existing foundation scale steps 2, 4, and 5. These are experimental application defaults, not a requirement to space every adjacent element equally. Use the field role inside a relationship, the group role between related units, and the region role between different purposes. A compact composition may reduce local padding while retaining the relationship hierarchy.
Give the work a readable sequence
Establish orientation, the subject, supporting context, and the next useful action. Use a bounded reading measure for sustained text. Interface labels and metadata use Lato; Cambo supports prose and expressive headings; Cinzel remains selective rather than spreading to every control. In light mode use the observed source ink, navy heading and cream support roles; keep the actual rendered source link color. Existing dark semantic tokens supply an explicit extension with the same source anatomy. Retain original marks when identifying the system; adopting applications provide their own identity.
Reading hierarchy also applies to forms, tables, and working panels. A toolbar can be compact and a table can contain many rows. Neither requires display-size headings or article-sized spacing inside every control. Preserve an understandable sequence and proximity within each local group.
Place assistance at the decision
Keep a field’s requirement and useful hint beside it. Use explicit action labels that describe the outcome. Place an object’s actions with the object, and collection actions with the collection. Do not use a row’s whole surface as an ambiguous combination of selection, opening, and editing. Decide and communicate what activation does.
Reveal secondary options when relevant without hiding prerequisites. Put essential consequences in view before commitment. Warm language must still distinguish cancel, reset, discard, remove, and delete precisely.
Preserve continuity
Use expansion and loading to explain the change, preserving useful content and the person’s place. Do not erase an editor when a save fails. Announce meaningful completion and provide an immediate recovery path. On a failed form submission, show actionable errors, retain input, and move focus to a useful summary when errors are distributed.
Unsaved navigation requires a clear choice that keeps the draft available. Cancelling that choice returns to editing. A reversible removal can use an explicit undo path instead of interrupting every action with a modal. An irreversible action requires proportionate consequence guidance. Motion is optional explanation; the result must remain clear with reduced motion.
Choose the frame from the task
Top navigation, side navigation, and focused work without primary navigation are all native possibilities. Use a rail when persistent destinations are valuable. Use a top bar when compact orientation leaves the work more room. Use a focused frame when the task benefits from sustained attention. None defines Martlet by itself.
Change the composition when available space no longer supports its relationships. Use the left source document index, with unnumbered parent/child hierarchy and separate supporting material. The inline article TOC is a different named variant. Reflow the index into a cream in-flow block when the available width is insufficient, without losing hierarchy or navigation. Preserve source order, keyboard access, readable controls, and return paths. Long labels and enlarged text are design inputs, not exceptional content to clip away.
Choose a grouping, then a density
Give one decision a readable progression: purpose, related inputs, nearby assistance and the committing action. A border marks a change in purpose only when proximity and headings are insufficient. Related short fields may share a row; unrelated decisions do not become a grid merely because space is available.
Use comfortable density for the current reference patterns. A compact mode remains proposed, with no new public density prop. Adjust related padding locally only while preserving readable text, usable targets, visible labels and the field/group/region hierarchy. Source page section spacing does not belong inside an editor. A source index or footer is an object-specific composition; it does not establish a universal application rail or surface.
Bind actions to committed scope
Put a field’s assistance beside that field, object commands beside the object, and collection commands beside a named collection. A pending query and its previous results are different scopes: identify both. Retain input and useful results after failure, with a recovery action that names the failed operation. Selection belongs to stable record identities in a declared result scope; clearing, retaining or extending it must follow a documented transition, not an accidental rerender.
The validated-form and query-results contracts add concrete state transitions, focus destinations and narrow-layout rules. They are application extensions. Shared native keyboard conventions do not make the languages interchangeable, and a shared grammar rule does not imply the same framework API. The coverage ledger distinguishes documented rules, checked reference behavior and open consumer evidence.
Use layers for their actual purpose
An inline disclosure stays in document flow. A non-modal popup anchors to its trigger and retains the source navigation surface. A modal interrupts the task, names its consequence and uses the native dialog top layer with a clear dismissal route. A backdrop belongs to the modal; it is not required for every overlay. Keep focus visible and return it to a meaningful trigger when a temporary surface closes. Motion never carries the only explanation of a state change.
Working pattern: collection, reading, and editing
The Commonplace specimen lets a person browse related notes, narrow the collection, open one for sustained reading, and edit it. Its folder shelf and collection-level search provide orientation. The collection uses generous separation between ideas, with each note’s heading, excerpt, and explicit reading action forming one group. Opening a note changes to a bounded reading context; a named back action returns to the same folder and query. Edit enters an explicit form; the reading context is restored after saving or cancelling.
This is one Martlet pattern, not a universal application template. A comparison-heavy task can use a persistent split view. Select it when the work requires simultaneous reference, then apply the same grouping, hierarchy, and continuity rules.
Pattern rules and state coverage
Search stays scoped to the named folder. A no-match state explains how to recover and offers Clear search. Empty content explains what belongs there and offers creation. Choosing a different folder is a context change, distinct from changing the query. Successful saving commits the draft and announces success; failed saving retains the fields and offers retry. Leaving a changed editor asks whether to continue editing or discard. Moving a saved note to trash offers undo.
The specimen uses fictional, session-only data. Reloading restores its initial notes. The failure inspection control deliberately fails the next save; it is documentation tooling, not a production product feature. Network retrieval, durable persistence, collaboration, and rich text are outside this specimen’s implementation.
Review the grammar
Inspect relationships before decoration: can someone tell which help belongs to which control, which action affects which object, and where one task becomes another? Does the same reasoning work in a compact panel and a long form? Can they recover their place after a change? Remove the mark and reduce color distinctions; hierarchy, proportion, grouping, and interaction continuity must still carry the language.
Keyboard conventions, focus visibility, labels, and usable recovery are shared obligations with other sound systems. Do not invent unusual behavior merely to look independent. Manual assistive-technology review, localization, RTL adaptation, and sustained use remain required before stability.
Native HTML form vocabulary
Core 2.2.2 supplies the optional forms.css layer, also included by full.css. Read docs/form-styling.md for exact classes and semantic obligations. These are experimental application extensions; validation, persistence, draft guards, announcements and focus transitions remain host code. No framework implementation is inferred from a token.
Read the preserved coverage review
Martlet grammar coverage review
Review 0.3 · October 24, 2026 · Experimental
The baseline grammar described intent and an experimental collection/editor. This review adds decision rules for grouping, density, action scope, layers, validated forms and queried results. Existing origin objects remain authoritative. New application patterns are justified extensions and are not retrospectively attributed to the origin site.
| ID | Domain | Disposition | Rule or remaining work | Evidence surface |
|---|---|---|---|---|
| G01 | Source authority | Documented | Origin objects, translations and extensions remain distinct. | Source audit and source-decisions.md |
| G02 | Field / group / region spacing | Rule clarified + reference | Use relational roles; do not inherit page-section spacing inside forms. | Validated-form reference |
| G03 | Density and targets | Claim corrected; compact open | Comfortable examples only; 44px is a design target, not blanket certification. | Foundations; target-size checks |
| G04 | Typography and hierarchy | Observed roles retained | Keep prose, UI, selective display and code roles; no decorative monospace. | Source decisions; existing React/Astro checks |
| G05 | Surfaces and layers | Rule corrected + reference | Modal, popup and inline disclosure have different interaction contracts. | Native dialog in form/results |
| G06 | Action placement and scope | Rule clarified + reference | Commands name and follow their field, object or collection scope. | Validated-form and results references |
| G07 | Responsive composition | Reference checks | Reflow fields/actions; scroll only genuine comparison surfaces; retain source order. | Narrow/enlarged-text browser checks |
| G08 | Substantial forms | New experimental contract | Validate, retain values, retry and guard specimen reset. | docs/patterns/forms.md |
| G09 | Query / sort / page | New experimental contract | Draft query differs from applied results; changed query starts page 1. | docs/patterns/query-results.md |
| G10 | Selection | New bounded contract | Binary current-page selection; scope changes reset on commit, failure retains it. | Results reference; no mixed/select-all API |
| G11 | Pending / failed / empty states | Reference coverage expanded | Keep useful previous content and distinguish no matches from empty source data. | Form/results/collection specimens |
| G12 | Focus and recovery | Reference checks; manual open | Summary links, modal dismissal, return trigger and late-response cancellation. | Browser assertions; manual AT still open |
| G13 | Top / side / focused frames | Existing support retained | Frame follows task; source navigation direction is not a family restriction. | AppShell and existing browser checks |
| G14 | Reading / contents / footer | Existing source contracts retained | Contents, body, support and host identity remain separate. | Astro candidate and source audit |
| G15 | Cross-framework agreement | Availability clarified | Rules cross frameworks; React state/focus props do not become Astro APIs. | language.json; native-HTML guidance |
| G16 | Figure / footnote / maths / archive vocabulary | Open | Do not infer shipped components from origin CSS. | Source decisions; no new API claim |
| G17 | Localization / RTL / assistive technology | Open | Long-text checks are partial evidence; no manual or locale certification. | Consumer and manual review required |
| G18 | Sustained use / dashboard breadth | Open | Focused references do not establish production fitness or cover all application patterns. | Future consumer evidence |
Acceptance and limits
Each pattern contract names its purpose, anatomy, scope, states, keyboard/focus behavior, responsive behavior and implementation availability. Automated results are recorded separately from documented requirements. A rule is not stable merely because a specimen passes. New form and results specimens use deterministic session state and simulated latency/failure. They do not add a new application or change the collection/editor into a production service.
The foundations no longer claim that every React target is 44 pixels, no longer require a backdrop for all overlays, and now acknowledge the optional core source-profile aliases. Modal focus behavior, native read-only/disabled distinctions, selection scope and draft-versus-applied query are explicit. Compatibility remains additive; existing package defaults and APIs are retained.
Framework boundaries
Core owns grammar, semantic roles and source profiles. React supplies interactive specimens using existing exports. Astro retains its documented component inventory and can use the same native HTML semantics; host scripts own form/query controllers. The main reference and agent snapshots identify this exact canonical revision. No framework receives an implementation claim from shared prose alone.
Reference method
The source audit, adopted charter and actual exported APIs govern these decisions. Carbon’s form, loading and filtering guidance informed the breadth of questions, not either language’s palette or composition. Our search controls retain visible labels under our own grammar. Target sizing follows the distinctions in W3C SC 2.5.8, without treating automated checks as overall WCAG certification.
Independent adoption repair
Core 2.2.2 adds documented native form styling and direct-HTML anatomy. Astro 1.2.2 adds a runnable form specimen with assertion-based submit, validation, failure/retry, reset-dialog, appearance and reflow checks. These are bounded browser checks; manual assistive technology, localization and sustained adoption remain open. The independent Claude report is preserved at howardjp/prism7 commit 6649c63.
Read the preserved forms review
Martlet: a validated form
Experimental pattern contract 0.3 · Application extension · React reference specimen
Purpose and composition
Use this pattern for a deliberate submission with multiple related fields and recoverable errors. The specimen is a publication request with title, summary, request type, response name/address and a notification preference. It is a controlled documentation example; it sends nothing and stores nothing beyond the mounted specimen.
Start with the request and its purpose, then related details, then response preferences, and finally the committing action. Keep one readable progression. Related short fields may share a row when their labels and hints fit; the row returns to one column when it no longer does. Supporting explanation stays next to the decision it informs. A separate guidance region follows the form in source order.
Use the field relationship for label, control, hint and error; group spacing for sibling fields; and region spacing between different decisions. A native fieldset and legend identify a real group. Do not add a card per field. Keep the primary submit action after the editable groups. Secondary discard/reset actions describe their consequence and remain visually subordinate. The specimen uses comfortable density; it introduces no compact-density API.
Validation and state transitions
| Trigger | Result | Focus and retained work |
|---|---|---|
| Submit invalid fields | Show a summary and field-linked errors; mark only invalid controls. | Focus the summary; its links focus the actual controls. Keep all input. |
| Edit after an error | Retain the error until revalidation on submission. | Keep focus in the edited field. Do not announce validation on every keystroke. |
| Submit valid data | Enter pending state and prevent another submission. | Keep the form visible; make inputs temporarily unavailable and announce saving. |
| Simulated save failure | Explain that work is retained and offer retry. | Focus the actionable failure summary; preserve every field and preference. |
| Retry successfully | Commit the submitted values to the local example state and announce success. | Keep the same form and orientation; do not clear fields or move focus merely for success. |
| Reset a changed specimen | Open a native confirmation dialog with Keep editing and Discard changes. | Escape and Keep editing preserve the draft and return focus to Reset specimen. Discard resets the specimen and returns focus to that trigger. |
| Reset an unchanged specimen | Reset immediately. | Preserve orientation; no unnecessary dialog. |
The pending operation is short and simulated. Unmounting invalidates its completion; a late timer cannot update another specimen. Reset is unavailable while saving. The draft guard covers the specimen’s Reset action; documentation navigation is outside that guard and unmounts the example. This is an explicit hosting boundary, not a claim of full application navigation protection.
Semantics and responsive behavior
Use native form, label, input, select, textarea, checkbox, fieldset and button semantics. Required indicators appear in labels and requirements in hints. Read-only text remains inspectable and available to native form behavior; disabled controls are temporarily unavailable. Do not invent readOnly support for a native select or checkbox. Name the form, error summary and dialog, and expose meaningful pending/saved state without repeated announcements.
At narrow widths the groups and actions stack in source order. Long text and enlarged text wrap without clipping. The guidance region follows the fields; no visual reordering changes keyboard order. Reduced motion does not remove state text. For print, retain the current values and context; hide only documentation inspection controls.
Implementation and evidence boundaries
React composes Field, TextInput, Textarea, Select, Checkbox, Fieldset, Button, ErrorSummary and Dialog. These are existing exports; no new form-controller API is implied. Core supplies typography and spacing roles. Astro can express the same native HTML structure, but validation, transport, draft management and focus transitions remain host code; there is no Astro Form controller in this candidate.
The reference includes validation, pending, failed/retry, saved and discard-dialog examples. Browser assertions cover values, linked errors, focus restoration, reflow and automated accessibility. Real server errors, conflict resolution, authentication, uploads and manual assistive-technology review remain outside this specimen. New controls and full dark mode remain experimental.
Native HTML styling
For Astro or direct HTML, use core 2.2.2 @martlet/theme/forms.css (included by full.css) and the exact anatomy in docs/form-styling.md. The Astro 1.2.2 starter /form/ is a runnable host-controller example. Read the classes as visual contracts, not controllers. Set native labels, described-by links, invalid states, summary focus, disabled/pending behavior and dialog return focus in host code.
Direct HTML anatomy
This current installation guide adapts the preserved grammar snapshot to the published Core 3 package. Original grammar and review records remain available separately. Core owns these visual contracts; controllers and services belong to the host.
Core 3.0.1 · Framework-independent classes. Import @martlet/core/full.css and optional fonts.css, then use class="martlet" data-martlet="light" on your shell. A class beginning martlet- is namespaced; a primitive name in layout.json is not itself an HTML class. These contracts work in server HTML, Astro and React JSX (className) without reconstructing another framework’s implementation.
| Object | Classes / native structure |
|---|---|
| Container | martlet-container; add --reading or --archive modifier for that measure. |
| Stack / cluster | martlet-stack, martlet-cluster; --end / --between on cluster. |
| Grid | martlet-grid; --1, --2, --4 bound maximum columns; default maximum is 3. |
| Local spacing | martlet-space-small or martlet-space-large on the primitive whose own gap changes. |
| Sidebar | martlet-sidebar containing martlet-sidebar__main and martlet-sidebar__aside. Put an actual aside with an accessible name on support. Use DOM order appropriate to task; CSS does not reorder. |
| Split | martlet-split; --wide-start / --wide-end / --start modifiers. |
| Page header | header.martlet-page-header > .martlet-container > .martlet-page-header__copy with one h1; optional martlet-eyebrow, martlet-page-header__summary, martlet-page-header__metadata. |
| Reading | martlet-reading-context > .martlet-reading-layout containing martlet-reading-layout__contents then martlet-reading-layout__body; prose in article.martlet-prose. |
| Contents | nav.martlet-contents.martlet-contents--index (or --inline) with an accessible name, martlet-contents__label, unnumbered parent list and nested child list. Real fragment links target meaningful heading IDs. |
| Header | header.martlet-site-header > .martlet-container, host brand, named native nav, host links. Wrapping only; no dropdown controller. |
| Footer | footer.martlet-site-footer; add martlet-site-footer--grouped, inner container, martlet-site-footer__top containing optional __identity and __groups; each __group has heading and named nav. Separate __base follows __top. The host supplies identity and destinations. |
| Forms and state | See native form styling for exact supported classes, semantics and host obligations. |
Modifiers always retain their base class, for example class="martlet-grid martlet-grid--2". A source profile uses class="martlet martlet-source-profile" with its separate stylesheet imported last. Reading contents remain in source before the body; support remains separate from navigation. Set tabindex="-1" on fragment targets if activation should move keyboard focus.
The generic header is not the origin’s scrolling/floating masthead. Appearance inversion and scroll state on a documentation host do not automatically apply to adopting applications. Native HTML and host identity remain authoritative. Semantic markup and a task-appropriate page hierarchy are required, even when no framework wrapper is used.
Native HTML forms
This current installation guide adapts the preserved grammar snapshot to the published Core 3 package. Original grammar and review records remain available separately. Core owns these visual contracts; controllers and services belong to the host.
Core 3.0.1 · Experimental application extension. Import @martlet/core/full.css, or import colors, foundation, components and @martlet/core/forms.css explicitly. Add .martlet and data-martlet="light" or "dark" to a common ancestor. Fonts are optional and separately imported. The source profile is optional and loads last.
These classes reuse existing semantic colors and the family’s field/group/region hierarchy. They are supported markup contracts, not exported controllers or proof of origin-site use. The host supplies identity and state logic. No special layout or navigation orientation is required.
| Class | Required native anatomy and responsibility |
|---|---|
martlet-form | form; regions separated by the region role. Submission and pending state belong to the host. |
martlet-field | Visible label[for], control with matching id, optional hint/error; field-gap spacing. |
martlet-hint, martlet-error | Stable id, included in the control’s aria-describedby. Hide an absent error with hidden; set aria-invalid="true" only while invalid. |
martlet-fieldset | Native fieldset and legend for a real group, group-gap spacing. Can carry aria-invalid plus a described group error. |
martlet-checkbox, martlet-radio | Native label containing a matching choice input and text span; controls keep native geometry and keyboard behavior. |
martlet-button, martlet-button--secondary, martlet-button--quiet | Native button or an anchor for navigation. Always choose the button’s native type. A secondary or quiet modifier is used with the base class. Disabled material takes precedence over modifiers. |
martlet-actions | A wrapping command row attached to its task; commit first, subordinate reset/cancel after it. |
martlet-error-summary | Named error section with tabindex="-1", heading and links to real invalid targets. Set role="alert" deliberately and focus after failed validation; do not focus on initial render. |
martlet-notice | Information surface; --success / --error severity modifiers. Set role="status" for nonurgent completion, or role="alert" deliberately for an urgent failure. Styling never supplies an announcement. |
martlet-dialog | Native dialog opened with showModal(). Supply an accessible name, initial focus, Escape/cancel behavior and trigger focus restoration. Keep closed dialogs closed; CSS does not set their display. |
<form class="martlet-form" novalidate aria-label="Registration">
<section class="martlet-error-summary" id="summary" role="alert"
aria-labelledby="summary-title" tabindex="-1" hidden>
<h2 id="summary-title">Check your registration</h2>
<ul><li><a href="#name">Enter your name.</a></li></ul>
</section>
<fieldset class="martlet-fieldset">
<legend>Your details</legend>
<div class="martlet-field">
<label for="name">Name (required)</label>
<input id="name" name="name" required autocomplete="name" aria-describedby="name-hint name-error">
<p class="martlet-hint" id="name-hint">The name for your registration.</p>
<p class="martlet-error" id="name-error" hidden>Enter your name.</p>
</div>
<label class="martlet-checkbox"><input name="reminder" type="checkbox"><span>Send a reminder</span></label>
</fieldset>
<div class="martlet-actions">
<button class="martlet-button" type="submit">Register</button>
<button class="martlet-button martlet-button--secondary" type="reset">Reset</button>
</div>
<p class="martlet-notice" role="status" aria-atomic="true"></p>
</form>
This markup is not a validator. Follow docs/patterns/forms.md for the complete state sequence. The Astro reference at https://astro.martletdesign.dev/form/ supplies an explicitly simulated, nondurable host controller. It retains inputs through validation/failure, names retry, guards changed reset with a native dialog and returns focus. Copy the behavior deliberately; replace the simulation with your own service, cancellation and server validation.
Read-only inputs remain focusable and selectable. Disabled controls are unavailable; the host must explain why. aria-disabled alone does not prevent activation. Keep a busy submit target focusable only if the handler prevents duplicate submits; disable editable fields during pending work. Do not clear values or force focus for successful completion. Validation messages remain until revalidation.
For appearance switching, change the nearest data-martlet attribute. The host chooses initial preference, persistence and pre-paint handling. This is independent of validation. Fragment targets should have tabindex="-1" when navigation needs to move focus; leave heading order and meaningful IDs to content authors.
Automated starter checks cover both appearances, keyboard/focus, failure/retry, modal reset, reflow and enlarged text. They do not establish screen-reader, print, RTL or production-service fitness.
Read the preserved results review
Martlet: query, results and selection
Experimental pattern contract 0.3 · Application extension · React reference specimen
Purpose and composition
Use a results table when the task benefits from comparing several attributes across records. The reference uses the existing component catalogue as its dataset. Search, group filter, sorting, paging and selection are host logic composed from existing primitives. The preparation dialog makes no remote request or actual review decision.
Put scope and search before a readable table. The table is a deliberate comparison surface, not the default container for every collection. Keep each component name with its purpose and group; selected-item commands follow the named results region. A reading task may instead use the existing collection/read pattern. Choose by what the person must compare.
Visible search and filter labels name their scope. Enter or Apply query submits the draft query. Changing an unapplied input does not relabel old results. Show the committed query, result count and page independently of what is being typed. Put a table caption on the table and a keyboard-accessible name on its scrolling region. Do not make every row simultaneously mean selection, navigation and editing.
Query and result contract
| Event | Required behavior |
|---|---|
| Apply a changed search, filter or sort | Start at page 1. Retain old results with their applied-scope label while pending. Disable selection commands during the transition. |
| Pending result request | Announce loading, mark the result region busy, and retain useful content. Do not label previous results as matches for the new request. |
| Request fails | Explain that the previous results are still shown; preserve the failed request for Retry. Keep its old selection, with commands unavailable until results are current. |
| Retry succeeds | Commit the new result scope and announce its count. Clear the old page selection. |
| Change page | Request the page within the committed query/filter/sort; clear selection when the new page commits. |
| Refresh unchanged results | Retain selected identities that are still on the committed page. Do not restore selection by row index. |
| No matches | Name the applied scope and offer Clear query; retain the dataset. |
| Empty source dataset | Explain that no source records exist; do not present it as a failed query. |
The reference simulates asynchronous completion and an optional one-shot failure. Each request carries a generation: an obsolete completion cannot replace newer state or update an unmounted specimen. The available sample data and sorting are deterministic. No remote retrieval, server pagination or durable selection is claimed.
Selection and dialog contract
Selection means the checked records on the currently committed result page. Native checkboxes name each record. There is no select-all control, cross-page selection, mixed checkbox state or implied edit permission in this contract. The count is textual; row color is supplementary. Query/filter/sort/page changes clear selection only when their new result set commits. A failed request retains previous selection and scope for recovery.
Review selection opens a native modal listing the exact selected component names. Prepare comparison is a simulated operation. Failure keeps the dialog and selection available for retry. Success closes the dialog, retains selection and announces completion. Cancel or Escape cancels an in-flight preparation, preserves selection and returns focus to Review selection. A late completion cannot announce success after dismissal. No action in this specimen promotes component maturity or records a real readiness review.
Native dialog semantics make the background inert and keep modal keyboard behavior conventional. Non-modal navigation popups and disclosures do not inherit that modal contract or require a backdrop.
Responsive behavior and implementation
Query controls wrap into one coherent sequence; status and commands wrap without clipping. A genuinely comparative table may scroll within its labelled region at narrow widths. Keep its caption, row-selection labels and all columns. Do not hide data or turn each row into a different task simply to remove horizontal scrolling. Surrounding prose and controls must still reflow.
React uses Field, TextInput, Select, Checkbox, DataTable, Pagination, Button and Dialog. A host owns querying, sorting, paging, selection and request cancellation. Core owns the existing family styles. Astro native HTML guidance shares these semantics, but an interactive results controller is not supplied by the Astro package. Both languages permit a table or a list when the task supports it; neither is compulsory for one family.
Tests exercise changed/unapplied scope, pending and failed retrieval, retry, no matches, paging, selection reset, modal failure/cancel/success, focus restoration, long text, narrow reflow and automated accessibility. Manual screen-reader review, localization/RTL, large datasets and real network races remain open consumer work.
Read the preserved decisions review
Martlet source decisions
Origin reconciliation 0.2 · Consolidation candidate · Original palette and existing defaults retained
Use jameshoward.us as the authority for existing objects. This profile distinguishes restored source roles from application extensions. The full grammar remains experimental. Original source commit: 32b7166a629ea696147d0d779d911b713e4baf7e, repository k3jph/k3jph.github.io. Review src/styles/global.css, content.css, document-pages.css, and src/components/{SiteHeader,SiteFooter,PageIndex,TableOfContents,PageIntro}.astro at that commit. The audit and reconciliation ledger record evidence and remaining limits.
Existing source objects
| Role | Decision | Source / reason |
|---|---|---|
| Prose | Cambo, 1.075rem/1.72, ink #222a33 in light mode; headings navy #0b1c33. | Global typography and observed About Me rendering. |
| Reading width | 48rem, with independent media/code overflow. | Global reading-container and document composition. Do not widen prose to fill a playground. |
| UI typography | Lato; field labels .86rem/1.5, weight 700, .02em tracking. Cinzel is selective display/identity. | Global controls and source identity roles. |
| Links | Keep observed #154c9e and .16em underline offset. | The live cascade wins over the raw global declaration #255f91. |
| Headings | Foundation h1/h2/h3 scales, weight 400, 1.18 leading. Short gold rule below content h2. | Global and content styles. A full-width rule above every title is removed. |
| Document index | TableOfContents variant="index"; unnumbered, depth 2 bold, depth 3 indented/regular; gold uppercase label, 2px gold top rule; transparent at wide widths. | PageIndex and document-pages. items[].depth defaults to 2. |
| Index composition | Navigation before body, 16rem index + bounded 48rem text, adaptive gap. Sticky at 6rem when there is room. | Source document-layout. In a nested Article, the 74rem threshold uses available container width; portrait also stacks. Narrow index becomes in-flow cream. Its small label uses existing gold-700 for contrast on cream (source gold-600 measures 4.25:1 there); the wide white context retains source gold-600. This is an explicit accessibility improvement. |
| Inline contents | variant="inline"; cream, gold top rule, column flow when available, one column when narrow. | Separate source inline TOC. It is not a right-hand context panel. |
| Supporting content | Keep separate from navigation. Article’s aside renders after body; caller may compose a separate supporting region when comparison requires it. | Source has multiple insets/facts/media contexts; none authorizes merging all support with the index. |
| Quote | 4px gold leading rule, muted serif quotation. | Global blockquote. |
| Controls | Square primary button; source button padding .65rem/1.1rem; native inputs use their own small radius and .65rem/.8rem padding. | Global button and input declarations. Do not apply button radius indiscriminately to fields. |
| Table | .94rem Lato, .8rem/.9rem cells, top alignment, pale uppercase header, source rule. | Global table. Compact density must be a separate task choice; default row padding is not a family contrast. |
| Focus | White 3px outline with navy outer shadow, visible across light and dark surfaces. | Global focus and live keyboard observation. |
| Website navigation | Dark/transparent source header anatomy, white links with gold current/hover underline, collapsed Menu at 68rem or portrait. | SiteHeader. The documentation uses the solid state from the start because its pages have no photographic masthead behind navigation. |
| Footer | Navy, grouped links, separate identity/base line. | SiteFooter. Documentation link content and system mark belong to this host. No gold footer stripe. |
Explicit application extensions
AppShell is a compact application frame, not the origin website’s scrolling masthead. Top/side/none remain available. Its existing default remains top for compatibility; it carries no automatic gold stripe and no built-in prose. Navigation content and identity belong to the caller.
Field, hint and error linkage, native selection controls, a task dialog, error summary, status notice, badge, switch, manual tabs, controlled data paging, and note workflows are application extensions. Their purpose is visible labels, understandable scope/state, retained work and recovery. Keep native keyboard conventions and distinguish disabled, read-only, invalid, pending and saved. Invalid styling matches aria-invalid="true" only. ErrorSummary uses a consistent leading severity rule; no forced opposite Krigsvold treatment. Tabs have a selected underline without decorative rounded/fill variants. DefinitionList supports layout="rows", "stack" or "grid" in either family.
The field/group/region application roles are .5/1.5/2.5rem. They use source scale values but their relationship assignments remain experimental. They do not replace source section spacing or reading rhythm. Notebook rows have no meaningless ordinals. Its find/read/edit progression is a task choice available to other frames too.
Dark mode preserves source anatomy using existing theme semantic contrast roles. It is an extension, not evidence that every origin object has a dark counterpart. Code surfaces retain theme code roles pending source-matched code specimen review. The source index, its hierarchy and quote accents remain identifiable; do not turn dark mode into permission for decorative rules.
Boundary and evidence
The theme-site bird is an existing system mark used by documentation; adopting apps supply their own brand. The documentation component finder, preview frames, copy controls, failure simulator and local-only saves are host tools. Source imagery, seasonal treatments, personal identity, analytics and legal policy do not become global language requirements.
Full media/figure/footnote/maths, source card/archive variants and complete application pattern breadth are not shipped contracts merely because their CSS exists at the origin. Accessibility, localization/RTL, forced colors across complete pages and sustained use still require evidence. Retrieve this decision profile alongside grammar and API references; a source hash identifies content, not design correctness.
Framework consolidation
Core 2.2.2 and Astro 1.2.2 are preview packages. The source profile is an opt-in import and class; existing core defaults and existing Astro slots remain compatible. New TableOfContents and grouped SiteFooter anatomy are available in the paired candidate packages. React 0.1.0 retains its existing theme 2.1.0 dependency and React-specific events and focus contracts. Framework support is recorded in language.json. These additions do not make the grammar stable.
Grammar review 0.3
Validated forms and queried results add explicit application contracts for grouping, action scope, committed versus draft queries, current-page selection and modal recovery. These are experimental extensions, with separate family composition choices and shared native behavior. No original palette, mark, header direction or existing component default changes. Read docs/coverage.md and docs/patterns/ for the bounded evidence and remaining vocabulary.
Framework scope
The source website header observations describe the origin object and its reference-host translation. Astro SiteHeader retains a generic wrapping-link header; it does not claim the source masthead, responsive menu controller or React print behavior. Inspect the target platform API and complete composition rather than transferring another renderer’s props or defaults.
Adoption repair 0.3
The native-HTML form layer makes the existing application-extension vocabulary reusable outside React. It uses the existing semantic palette, leading severity rules, native choice controls, and field/group/region relationships. It does not claim that every form object was observed at the origin. The Lato .86rem label role is retained. Reduced-motion preferences and native modal semantics remain intact. The source profile provides inheritable primary-action defaults; secondary actions retain their own role.
Evidence and review scope
The preserved review below records the original open questions. Current automated checks cover the exercised builds, interactions, keyboard behavior and responsive layouts. Manual assistive technology, full localization/RTL and sustained consumer use remain separate work.
Original review questions
- Manual assistive-technology review
- Localization and RTL
- Sustained consumer use
- Broader form and data workflow evidence
- Matched origin code specimen
Machine-readable package and language specification. Source hashes establish provenance; they do not certify design quality or accessibility.
