Documentation
The full docs set for @ponchia/ui. The curated subset listed in
package.json files also ships inside the npm tarball, so an offline agent or
consumer gets it under node_modules/@ponchia/ui/docs/. A navigable static documentation site with individual, shareable pages is
published at Bronto UI documentation.
The original Markdown remains available for offline agents and direct reading.
New to the repo? Start with architecture.md → Repository layout for what each top-level directory is and which files are generated.
Upgrading? Start with
MIGRATIONS.jsonfor machine-readable rename rules, then usemigrations/for version-by-version notes.
Start here
App or service shell — start with the README quick start, then usage.md and the matching framework guide.
Report, audit, or provenance UI — start with frontier-primitives.md, reporting.md, sources.md, and generated.md.
compositions.md — service, inspector, and decision-report recipes.
Getting started (frameworks)
- First component: getting-started/first-component.md — a complete, working HTML page; getting-started/upgrade.md — coordinated consumer-upgrade checklist.
- getting-started/vanilla.md · getting-started/react-solid.md · getting-started/astro.md · getting-started/sveltekit.md · getting-started/vue.md
- integration.md — framework integration overview.
- interop/tailwind.md — Tailwind interop recipe.
- interop/react-flow.md — React Flow / Xyflow canvas interop recipe.
- interop/blocknote.md — BlockNote editor theme variables mapped to bronto tokens.
Usage & concepts
- concepts.md — the canonical mental model: CSS-first surface, cascade layer, colour tiers, primitive ownership, token projections, and package shape.
- usage.md — the decision guide: which primitive to reach for when.
- frontier-primitives.md — the design line for new analytical/communication primitives.
- reference.md — the generated catalog of every
.ui-*class and token. (generated — do not hand-edit)
Theming & color
- theming.md — the root-level
--accentmodel, its limits, and a full re-skin recipe. - contrast.md — the CI-gated WCAG contrast matrix (+ APCA advisory).
App/service primitives
- state.md — lifecycle / system-state vocabulary and sync bar.
- generated.md — trust surfaces for AI / system-generated content.
- command.md — the command-palette shell + behavior.
- workbench.md — tool-UI core (inspector, property rows, selection bar).
Reports & analytical primitives
- reporting.md — the static, PDF-first report grammar and the analytical toolbox available to a report.
- figure.md — reusable chart/diagram/media figure stage with overlay, key, and fallback-data slots.
- discussion.md — thread lists, quotations, messages and composers with host-owned state.
- annotations.md — SVG annotations (subject / connector / note), off-chart use, and the geometry helpers.
- legends.md — standalone data keys / legends.
- mermaid.md — theme Mermaid diagrams from bronto tokens, and annotate the rendered SVG.
- d2.md — theme D2 diagrams from bronto tokens (theme-override slots), and annotate the rendered SVG.
- vega.md — theme Vega-Lite charts from bronto tokens (resolved
config) — the recommended path when a report needs a chart, since bronto ships no chart component. - marks.md — text/evidence emphasis for running prose (
ui-mark,ui-bracket-note). - dots.md — the dot-matrix surface family: backgrounds, loaders, readouts, and data-bound dot primitives.
- glyphs.md — the display glyph API built on the dot-matrix primitive.
- sources.md — the citations / provenance trust layer.
- interval.md — host-normalised low/high uncertainty spans for estimates and evidence windows.
- clamp.md — bounded excerpts with optional CSS-only show-more / show-less reveal.
- highlights.md — CSS Custom Highlight API paint for evidence, search, and current ranges.
- diff.md — line/row change-review grammar (
ui-diff, add/remove/context rows). - code.md — fenced-code evidence chrome (
ui-code, line numbers + add/del/hl states; never parses). - spark.md — inline datawords / word-sized microcharts (
ui-spark, host-normalised--v). - sidenote.md — Tufte margin notes (
ui-sidenotenumbered,ui-marginnoteplain). - textref.md — deep-link a citation to the exact cited sentence (
ui-textref+::target-textpaint). - bullet.md — Stephen-Few bullet graph: measure vs target vs grayscale bands (
ui-bullet, host-normalised--v/--t). - term.md — inline glossary term + definition popover and end-of-report
<dl>(ui-term/ui-def/ui-glossary). - toc.md — sticky scrollspy table-of-contents rail (
ui-toc,aria-currentactive section). - tree.md — hierarchy outline on nested
<details>(ui-treebranches/leaves; disclosure group, not an ARIA tree). - connectors.md — leader lines between DOM elements.
- renderer.md — the live theme resolved for canvas, WebGL and SVG renderers.
- spotlight.md — guided-focus overlay.
- crosshair.md — plot ruler + pinned readout.
- selection.md — cross-cutting selection-emphasis vocabulary.
Contract & governance
- Package maintenance or agent integration — start with
architecture.md, stability.md, and
../llms.txt. - architecture.md — the layered architecture, the repository layout, drift control, and release gating.
- stability.md — what is contractual (and what is a convenience preset) across versions.
- package-contract.md — the generated package manifest matrix: every export, shipped path, and artifact provenance row. (generated — do not hand-edit)
- release.md — the release runbook.
- repository-map.md — the top-level directory map: what each directory owns, which are authored vs generated, and what to regenerate after editing each.
- adding-a-primitive.md — the end-to-end playbook for adding a new primitive: layer choice, CSS/classes/tokens, exports, the docs/demo/e2e matrices, regeneration, and gates.
Architecture Decision Records
- adr/0001-color-system.md — the five-tier color constitution.
- adr/0002-scope-and-2026-baseline.md — scope, the 2026 browser floor, and CSS-native motion.
- adr/0003-theme-model.md — the binary base × one-knob × orthogonal-axes theme model.
- adr/0004-prune-unused-adapters.md — deprecate unadopted framework adapters and the controlled-modal path.
- adr/0006-trusted-publishing.md — publish to npm by OIDC, with no stored credential.
Migrations
migrations/0.2-to-0.3.md · migrations/0.3-to-0.4.md · migrations/0.4-to-0.5.md · migrations/0.5-to-0.6.md · migrations/0.6-to-0.7.md · migrations/0.7-to-0.8.md · migrations/0.8-to-0.9.md
ADR-0005 — productive tools and editorial reports.
0.9 to 0.10 — coordinated visual and API migration.
0.10 to 0.11 — narrow-container layouts and consumer typography roles.
0.11 to 0.12 — the categorical palette, identity tokens and runtime renderer tokens.