Krigsvold page shell
Krigsvold is an opinionated design language. Its reference website starts with the actual working shell of krigsvold.org, not a reconstruction from selected visual details. The imported source revision is a3cf072c516c59ed35814e0fa153028cc91ceecd from basuhoward/krigsvold.org.
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.3 | 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 | application-extension | 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 |
Tables of contents are optional and omitted by default. An author can supply a manual list through TableOfContents with variant="inline", above the reading content. Contents are separate from site navigation and related-reading regions. SiteFooter supplies variant="grouped", labelled groups, and host-owned identity/base slots; its plain variant remains available.
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: the desktop dropdown remains white on a dark header; below 992px the submenu becomes transparent and in-flow. Astro SiteHeader remains a wrapping link header; the package does not provide a dropdown controller.
Read the preserved grammar review
Krigsvold: a grammar of clear regions
Experimental grammar 0.3 · Core 2.2.3 preview · Astro 1.2.2 preview · React 0.1.0
Krigsvold makes complex work legible through purposeful regions, stable alignment, controlled contrast, and precise state. Its clarity must remain approachable when a person is uncertain or an operation fails. Its adopted charter supplies the criteria for these experimental application rules.
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.
Assign each region a job
Identify orientation, scope, work, supporting information, and commands. Align related information so that a person can compare it without reconstructing the layout. Use a boundary when purpose or context changes; use local proximity inside a working region. A border around every field does not explain the larger structure, and a large empty gap does not automatically make it clear.
The optional source profile exposes --krigsvold-field-gap, --krigsvold-group-gap, and --krigsvold-region-gap. This pattern maps local grouping to the existing 0.5rem scale step, groups to 1.5rem, and distinct regions to the existing 3rem scale step. These experimental application roles explain relationships rather than replacing the foundation’s reference scale. Regional space and compact local rows can coexist. Density is a region-level decision; keep readable text, visible focus, and usable targets.
Make hierarchy exact
Use Roboto for interface and body text, Roboto Slab for heading roles, and Roboto Mono where code or numerical comparison benefits. Establish common edges for related labels, values, and actions. Keep the existing navy, glacier, paper, and bronze vocabulary assigned through semantic roles. Contrast should identify importance and interaction state, not merely alternate decorative sections.
Keep the desktop navigation popup white with ink text and source pointer/elevation, even inside a dark header. Below 992px its source mobile submenu becomes transparent and in-flow. Use other surface changes only to distinguish purpose or depth. A selected result needs a visible non-color cue as well as contrast. Metadata must remain subordinate without becoming illegible. Truncation is appropriate only when the complete information remains available at a predictable destination.
Make scope visible
Keep commands near the region they affect. Distinguish collection operations from object operations and persistent state from draft state. Show the current scope beside filtering and search. A result-row activation opens its record; a separate Edit action starts modification. Selection does not silently imply a destructive command or an edit.
Use explicit labels for what is pending, completed, unavailable, or failed. Put the recovery action where the failure occurred. Precision is assistance: explain a useful next step rather than displaying only a diagnostic code.
Keep change controlled
Retain context while results, details, and forms change. Prefer stable region boundaries during loading and filtering; preserve useful previous information when it remains valid. A save’s pending state prevents duplicate submission without hiding the work. A failed save keeps the changed data visible and recoverable. Move keyboard focus when a new task surface requires orientation, and announce state changes without unnecessary interruptions.
Before leaving a changed editor, offer an explicit choice and preserve the draft when that choice is cancelled. Use reversible operations and undo where the domain permits. Explain irreversible consequences before commitment. Transitions may clarify state, but the same information must remain understandable without animation.
Let the frame follow the work
A horizontal navbar, side rail, or focused workspace without primary navigation can each be Krigsvold. Choose based on destination count, frequency, available space, and the task’s need for persistent context. Vertical navigation is not a language rule. A reading page deserves the same coherent regional structure as an operations console.
At narrow widths, place regions in a meaningful reading order rather than compressing all of them into unusable columns. Keep the current object identifiable and supply a clear return route. Long labels, enlarged text, and translated content must not depend on fixed-width assumptions.
Choose a grouping, then a density
Assign orientation, query, work, supporting context and commands distinct jobs. Align comparable information within each job. Use a boundary when scope changes; do not repeat a border around every local relationship. A region can be compact internally while remaining clearly separated from the next region.
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 and detail workspace
The Notes workspace specimen puts collection scope and search in a common command region. Results use aligned rows with title, collection, and preview. A clear selected edge identifies the opened record. The detail region remains beside results when width permits, so a person can move through records without losing the collection. Editing is explicit and stays within the detail region. Local working density supports scanning; stronger separation distinguishes the collection from the current note.
When the available width is insufficient, results precede the detail region and opening a note moves focus to its heading. Closing returns focus to the collection heading. The layout changes while scope and task meanings persist.
This pattern does not require every Krigsvold application to use a split view. A sustained-reading task may use a dedicated page. The language’s regional, alignment, contrast, and state rules apply in either frame.
State and recovery rules
Search names its scope and reports the result count. No matches offer a clear reset; an empty collection offers creation. Changing folders is an explicit context change. Opening and editing remain separate actions. Save success returns the note to a committed reading state; failure keeps the editor and offers retry. A context change from a changed editor requires a keep-or-discard choice. Moving a saved note to trash preserves an undo route.
The specimen contains fictional, session-only data. Reload restores initial examples. Its failure-inspection control deliberately fails one save and is separate from ordinary product commands. It does not implement network retrieval, durable storage, collaboration, or rich text.
Review the grammar
Can someone identify the current region, command scope, selected record, and save state without relying on color? Does aligned information support comparison? Are boundaries meaningful rather than repetitive decoration? Does the regional structure remain understandable in a compact table, a form, and a reading experience? Test these questions across complete transitions, not only the populated initial view.
Expected keyboard behavior and accessible semantics need not differ from Martlet. Independence comes from coherent decisions that serve the task, not arbitrary opposites. Manual assistive-technology review, localization, RTL adaptation, and sustained consumer evidence remain open before stability.
Native HTML form vocabulary
Core 2.2.3 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
Krigsvold 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.3 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
Krigsvold: 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.
Define a request region, a response region and a command region. Use shared edges within each region, and a restrained boundary only where the job changes. Short related fields may align in columns when space permits. Supporting guidance follows the work in source order and can sit beside it when each region retains useful width. The command row belongs to the form it commits.
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.3 @krigsvold/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 @krigsvold/core/full.css and optional fonts.css, then use class="krigsvold" data-krigsvold="light" on your shell. A class beginning krigsvold- 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 | krigsvold-container; add --reading or --archive modifier for that measure. |
| Stack / cluster | krigsvold-stack, krigsvold-cluster; --end / --between on cluster. |
| Grid | krigsvold-grid; --1, --2, --4 bound maximum columns; default maximum is 3. |
| Local spacing | krigsvold-space-small or krigsvold-space-large on the primitive whose own gap changes. |
| Sidebar | krigsvold-sidebar containing krigsvold-sidebar__main and krigsvold-sidebar__aside. Put an actual aside with an accessible name on support. Use DOM order appropriate to task; CSS does not reorder. |
| Split | krigsvold-split; --wide-start / --wide-end / --start modifiers. |
| Page header | header.krigsvold-page-header > .krigsvold-container > .krigsvold-page-header__copy with one h1; optional krigsvold-eyebrow, krigsvold-page-header__summary, krigsvold-page-header__metadata. |
| Reading | krigsvold-reading-context > .krigsvold-reading-layout containing krigsvold-reading-layout__contents then krigsvold-reading-layout__body; prose in article.krigsvold-prose. |
| Contents | nav.krigsvold-contents.krigsvold-contents--index (or --inline) with an accessible name, krigsvold-contents__label, unnumbered parent list and nested child list. Real fragment links target meaningful heading IDs. |
| Header | header.krigsvold-site-header > .krigsvold-container, host brand, named native nav, host links. Wrapping only; no dropdown controller. |
| Footer | footer.krigsvold-site-footer; add krigsvold-site-footer--grouped, inner container, krigsvold-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="krigsvold-grid krigsvold-grid--2". A source profile uses class="krigsvold krigsvold-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.
When both contents and a supporting sidebar are present, add krigsvold-reading-layout--supported to the reading layout. This lets the body use available container width while the prose retains its own 760px measure. The sidebar wraps when main minimum + sidebar basis + gap no longer fit.
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 @krigsvold/core/full.css, or import colors, foundation, components and @krigsvold/core/forms.css explicitly. Add .krigsvold and data-krigsvold="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 |
|---|---|
krigsvold-form | form; regions separated by the region role. Submission and pending state belong to the host. |
krigsvold-field | Visible label[for], control with matching id, optional hint/error; field-gap spacing. |
krigsvold-hint, krigsvold-error | Stable id, included in the control’s aria-describedby. Hide an absent error with hidden; set aria-invalid="true" only while invalid. |
krigsvold-fieldset | Native fieldset and legend for a real group, group-gap spacing. Can carry aria-invalid plus a described group error. |
krigsvold-checkbox, krigsvold-radio | Native label containing a matching choice input and text span; controls keep native geometry and keyboard behavior. |
krigsvold-button, krigsvold-button--secondary, krigsvold-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. |
krigsvold-actions | A wrapping command row attached to its task; commit first, subordinate reset/cancel after it. |
krigsvold-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. |
krigsvold-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. |
krigsvold-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="krigsvold-form" novalidate aria-label="Registration">
<section class="krigsvold-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="krigsvold-fieldset">
<legend>Your details</legend>
<div class="krigsvold-field">
<label for="name">Name (required)</label>
<input id="name" name="name" required autocomplete="name" aria-describedby="name-hint name-error">
<p class="krigsvold-hint" id="name-hint">The name for your registration.</p>
<p class="krigsvold-error" id="name-error" hidden>Enter your name.</p>
</div>
<label class="krigsvold-checkbox"><input name="reminder" type="checkbox"><span>Send a reminder</span></label>
</fieldset>
<div class="krigsvold-actions">
<button class="krigsvold-button" type="submit">Register</button>
<button class="krigsvold-button krigsvold-button--secondary" type="reset">Reset</button>
</div>
<p class="krigsvold-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.krigsvolddesign.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-krigsvold 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
Krigsvold: 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.
Give query, committed results and selection commands separate jobs. Align names, groups and purposes within the table so comparisons share common edges. Keep the applied scope and pending request distinguishable. Selected-item commands operate on the visible result page and stay beside its count. These regional rules apply whether the query sits above or beside the work.
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
Krigsvold source decisions
Origin reconciliation 0.2 · Consolidation candidate · Original palette and existing defaults retained
Use krigsvold.org as the authority for existing objects. This profile distinguishes restored source roles from application extensions. The full grammar remains experimental. Original source commit: a3cf072c516c59ed35814e0fa153028cc91ceecd, repository basuhoward/krigsvold.org. Review src/styles/site.css, src/components/SiteHeader.astro, SiteFooter.astro, src/layouts/Page.astro and active Material Kit styles. The audit and reconciliation ledger record evidence and remaining limits.
Existing source objects
| Role | Decision | Source / reason |
|---|---|---|
| Canvas/type | Paper #fbfaf7, ink #17202a, Roboto 1rem/1.65. Editorial prose 1.06rem/1.65. | Host overrides and live origin. |
| Headings | Roboto Slab, weight 700, source scale/leading/tracking. | Source global/editorial/masthead roles. Medium-weight alternate docs headings were removed. |
| UI labels | Roboto; .76rem/.16em uppercase blue eyebrow where the source uses it. | Source eyebrow and navbar. Roboto Mono is for code and useful numerical work, not ordinary status/folder labels. |
| Reading | Bounded 760px editorial measure with source hierarchy. Supporting facts can have their own region. | Page layout and editorial CSS. An accent rail/mono label is not mandatory article anatomy. |
| Desktop navbar | Navy rgba(6,19,37,.84), .4rem radius, white 20% border, 14px blur, source navbar shadow. | Source site-navbar. Docs retains a contained in-flow variant because there is no photographic masthead. |
| Desktop popup | White surface, ink text, ice hover; 15rem min width; .55rem padding; .3rem radius; source rule and 0 18px 44px rgba(6,19,37,.18) shadow; white 12px pointer. | Source dropdown and live observation. The light surface is independent of the dark parent and full-page mode. |
| Popup item | .9rem/1.65 Roboto; .62rem/.7rem padding; small item radius. | Source dropdown-item. Use source SVG chevron. |
| Mobile navigation | Collapsed Menu below 992px; submenu static/indented/transparent on navy; no popup pointer, border or shadow. | Source mobile overrides. Do not impose desktop popup styling here. |
| Navigation behavior | Native details retains click/Enter/Space and exclusive groups; Escape restores summary, blur closes; mobile Menu Escape restores trigger. | Explicit implementation translation of source dropdown capability. Hover is visual feedback, not the only access route. |
| Search | Source field material, label and underline retained. Docs uses an explicitly labelled live component filter rather than site-wide GET search. | Source site-search visual role; task-specific documentation extension. |
| Primary action | Navy with blue hover in light mode; .75rem bold uppercase UI type, .035em tracking, .625rem/1.5rem padding. | Observed source navy button and foundation dimensions. Dark mode uses semantic contrast roles. |
| Input | Native control and own small radius, theme/source padding; keep visible labels. | Source control vocabulary; site-search is not the default general form geometry. |
| Table | .95rem UI type, .85rem/.7rem cells, top alignment, source rule; no arbitrary compact-family default. | Editorial source table. Explicit compact density remains future task-specific work. |
| Quote | 4px blue leading rule, Slab quotation text. | Editorial blockquote. |
| Footer | Navy identity column spanning two tracks, four link groups, and a separate ownership/contact base line; 5rem/1.5rem vertical padding, 48px desktop gap. | SiteFooter/site.css. The adopting host owns identities, organizations and destinations. |
Explicit application extensions
AppShell is an application frame, not the entire origin website. Both languages support top, side and none. The existing Krigsvold default side frame is retained for compatibility with the workbench; it is not a grammar requirement. The hard-coded rail colophon is removed.
No origin object establishes a universal Krigsvold TOC. The experimental index/inline extension uses native fragment navigation, unnumbered depth-aware hierarchy and reading order before body. A persistent rail appears only when the available width supports it. No invented accent top rule or mono eyebrow is required. DefinitionList supports rows, stack and grid in either family; source fellow facts already demonstrate stacking.
Task dialogs, validation summaries, notices, badges, switches, tabs, file controls and controlled result paging are explicit new application objects. They preserve native semantics, visible focus, clear labels and recoverable operations. ErrorSummary uses a leading severity rule, consistent with its task rather than a forced opposite Martlet treatment. Tabs use a selected underline, not an invented filled institutional badge. Invalid styling means aria-invalid="true", never mere attribute presence.
Field/group/region roles are .5/1.5/3rem source-scale values with experimental relational assignments. Local density serves comparison; generous source page section spacing remains a different role. A 3px selection edge explains the current note, while nonnumeric status/folder labels use Roboto. The results/detail composition is a task choice, not compulsory Krigsvold anatomy.
Dark mode keeps the source object hierarchy and existing semantic contrast roles. The source desktop navbar popup remains light; mobile remains transparent on navy. New status/error/switch surfaces are application extensions and need state/contrast evidence. Code keeps theme roles pending a matched origin code specimen review.
Boundary and evidence
The theme-site crystal is the existing system mark used by documentation. It does not replace an adopting application’s own identity or the origin institution’s snowflake badge. Docs preview, finder, copy/download controls, simulated failure and session-only notes are host tooling.
Polar imagery, title/arms, award content, legal policy and analytics remain host responsibilities. Origin masthead, evidence/fellow/card/figure/FAQ variants outside the current 22 exports remain named vocabulary gaps, not silently shipped components. Full accessibility, RTL/localization and sustained-use evidence remain open. Read this profile with the grammar/API references; catalogue hashes do not ratify design choices.
Framework consolidation
Core 2.2.3 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 Roboto .9rem/1.5, weight 700 field labels are an explicit application extension; they are not the uppercase navigation eyebrow. Legends use the same local UI label role, with regional headings supplied by the host. 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.
