Docs Reference & maintenance

Frontier primitives

Bronto's specialist surfaces help people understand complex work: what changed, where a claim came from, how objects relate, and which action or state matters. This guide explains the current boundary and where to find the shipped pieces. For the complete HTML cookbook, start with reporting.md; for application layouts, use compositions.md.

The project direction is objects on a canvas that explain themselves, with reports and ordinary application shells as supported uses. The roadmap owns current priorities. This document is a design guide, not a queue of promised components.

Boundary

  • Bronto owns presentation and narrow interaction: visual grammar, class vocabulary, tokens, accessibility guidance, pure geometry helpers, and small behavior initializers.
  • The host owns product meaning and state: data mapping, chart scales, fetching, persistence, routing, selection, command execution, tour order, orchestration, and announcements requiring product-specific wording.
  • Specialized surfaces are opt-in. Add their CSS beside the default bundle, or compose the leaves required by a narrower surface. Universal application chrome is the only candidate for the core stylesheet.
  • Start with markup and CSS. Add a behavior when the interaction needs measurement, filtering, focus management, or pointer tracking. A framework component API is not required to use the same styles.

The result can be used in normal HTML, server-rendered templates, Astro, SvelteKit, React, Vue, Solid, Qwik, and static reports. The maintained packed examples cover a subset of those integrations; the README distinguishes executable examples from lifecycle recipes.

Shipped surfaces

These are available now. Load the named CSS leaf through a bundler, or use its dist/css/ URL in a standalone page. The package contract is the authoritative path inventory.

Task Surface and guide Host responsibility
Explain a figure Figure, annotations, and legends Render the chart or diagram, choose the data mapping, and provide accessible descriptions and fallback data.
Connect related elements Connectors Identify endpoints and explain the relationship; the geometry helper computes a path.
Show provenance Sources and generated content Supply source records, claim relationships, authorship, trust decisions, and redaction.
Explain a change Diff and code evidence Compute and classify changes, tokenize code, and supply lines and context.
Show compact quantitative evidence Spark, bullet, and interval Normalize values, define units and thresholds, and provide a written equivalent.
Help readers navigate evidence Marks, highlights, text references, sidenotes, terms, and contents rail Register ranges, build URLs, supply definitions and notes, and update active-section state.
Present lifecycle state State and jobs Own polling, saving, retry, cancellation, and the source of truth for status.
Build a tool panel Workbench, command palette, and tree outline Own pane content, saved layout, selection, actions, hierarchy data, and product shortcuts.
Emphasize a selection or location Selection, crosshair, and spotlight Own hit-testing, data readouts, selected objects, and tour state.
Present discussion Discussion Own posting, persistence, identity, resolution, anchors, and focus policy.

The @ponchia/ui/css/analytical.css roll-up includes figure, annotations, legend, marks, connectors, spotlight, crosshair, selection, and highlights. It does not include all rows in the table. sources, interval, clamp, state, generated, workbench, command, and discussion remain separate imports. The report cookbook documents which additional leaves a report needs.

Important distinctions

Figure framing and chart rendering

A figure stage supplies a frame, overlay slots, key, caption, and fallback-data area. Bronto's chart data supplies colors and patterns. Neither computes chart scales, axes, domains, or data binding.

Use a renderer for those jobs. Bronto provides resolved theme data for Vega, Mermaid, and D2, and a runtime token resolver for other SVG, canvas, or WebGL consumers. The renderer remains a consumer dependency. Keep a figure's text description and fallback table understandable independently of its visual encoding.

Annotation grammar and the annotation engine

@ponchia/ui/annotations currently contains deprecated dependency-free SVG geometry for the subject / connector / note grammar. The UI-owned annotation CSS and classes are likewise deprecated for removal after a full minor window. New consumers should use @ponchia/annotations and its own bronto.css; Bronto UI continues to own generic figure styling and token values.

The richer placement, collision handling, editing, and renderer integrations live in the separate @ponchia/annotations package. Do not recreate that engine here or add it as a runtime or public type dependency of Bronto UI. Use the annotation guide to choose the appropriate surface.

Visual state and product state

A lifecycle class can represent "saving"; it cannot know when the save is complete. A source card can identify an unverified claim; it cannot verify the claim. Generated-content labels can disclose origin; they do not establish accuracy or confidence. The application must supply truthful state and wording.

Likewise, a discussion surface styles messages and composers without providing a messaging backend or chat runtime. A command palette filters and navigates items, then emits an event; the host authorizes and executes the action.

Native outlines and ARIA trees

The tree outline composes nested <details> elements. It is a disclosure group, not an ARIA tree with roving focus and tree-specific keyboard behavior. A host needing an interactive file explorer should choose its interaction owner first and apply the shared visual vocabulary to that implementation.

Progressive enhancement and essential content

Custom Highlight API paint, text-fragment targeting, anchor positioning, and some motion effects depend on browser support. Preserve useful text, links, controls, and print output when an enhancement is absent. A highlighted range still needs a meaningful citation; a popover definition used by a report also needs a printable glossary entry.

Priority

Consolidate complete compositions before expanding the catalog. A useful review starts with a real screen, document, or workspace object and asks:

  1. Can the reader identify the important content, state, and available action?
  2. Does the composition work with realistic text, narrow containers, keyboard and touch input, both themes, and relevant print output?
  3. Can existing classes replace duplicated presentation or behavior code?
  4. Is any remaining difficulty a missing reusable primitive, or product logic that belongs in the host?

A packed example proves package compatibility. A real consumer upgrade supplies evidence of practical value. Record both when deciding whether a new public surface is justified; class count and test count are not proxies for either.

Potential work such as conflict-resolution affordances, drag/drop presentation, or richer outline navigation needs a concrete consumer and an explicit ownership boundary. It is not a committed roadmap merely because related CSS already exists. When existing primitives can express the result, add a recipe.

Use adding a primitive for implementation steps and stability for compatibility rules.

Design history

The analytical and provenance foundations shipped in the 0.5 line. Later releases added report evidence, lifecycle, workbench, and discussion vocabulary, then refined typography, tokens, and consumer integration. Earlier scout lists are historical research; the CHANGELOG records what actually shipped. The current scope is defined by architecture, ADR-0004, and ADR-0005.