Skip to content

ADR-027: Shared Cross-Repository Site UI

Related sites may share optional UI primitives; the OSS site uses Ardo for its complete shell.

Page outline

Status: Accepted

Last updated: 2026-11-02

Decision

packages/site-ui is the open-source source package for shared site chrome. It owns:

  • Hellenic Spec Grid tokens and self-contained component CSS
  • SiteHeader, SiteFooter, SiteShell, Wordmark, Page, Section, Reveal, and button/link primitives
  • typed site configuration for navigation, footer columns, primary action, and an explicitly enabled or disabled counterpart link
  • SiteUiProvider, which lets each consumer inject its own router-aware link component

The package depends only on React. It does not depend on React Router, ARDO, a site's content tree, or files outside its package directory. Its component CSS works when imported directly by a plain Vite application; Tailwind theme and utility declarations are an additive integration for Tailwind consumers.

The OSS site uses Ardo directly and does not consume this package. Its local marketing primitives own product content composition, not another site shell. The package remains available to the separate commercial repository through a complete commit pin of its package subdirectory. Changes to that public contract still require consumer validation; simplifying the OSS site is not a reason to break or remove it.

Shared structure and accessibility fixes belong in Ardo when they benefit unrelated sites. Palamedes-specific typography, artwork, colors, and marketing composition stay in the consuming project. Ardo must not acquire Palamedes visual defaults. Prefer its existing public slots and theme options; add a general extension point only when an actual structural gap remains.

Family navigation is optional configuration through toolSwitcher and familyLine. SiteHeader and SiteFooter render those surfaces; ToolSwitcher and FamilyLine are also exported independently for hosts with their own chrome. Omitted configuration renders no family surface.

Consumers resolve family data from ferramenta-family/registry, the data-only entrypoint, and pass it into site-ui. The shared UI retains its React-only dependency boundary and the product's own brand. The Git dependency is pinned to the family package subdirectory; package identity and pins live in manifests.

Context

palamedes.dev is part of this open-source repository. The future plus.palamedes.dev site belongs to the separate commercial repository. They should look and navigate like related products without copying layout components, coupling deployments, or requiring the commercial repository to reach into private paths in this workspace.

The OSS site uses Ardo 6 with static document navigation. Keeping the optional package tied to a routing or documentation library would make it harder for the Plus site to reuse the design contract and would turn an integration detail into a cross-repository API.

Alternatives Considered

Copy the components into both sites

Rejected because fixes to layout, accessibility, tokens, and responsive behavior would drift immediately.

Share the whole OSS site application

Rejected because routes, content, ARDO integration, deployment, and product claims have different owners and release schedules.

Couple the package to React Router or ARDO

Rejected because those are consumer integration choices. The injected link contract preserves client-side routing without making it part of shared UI.

Consequences

  • Shared component and token changes are reviewed publicly in Palamedes.
  • Every consuming site supplies its own navigation data and router adapter.
  • A counterpart link cannot appear merely because a hostname or environment variable happens to exist; it must be deliberately enabled.
  • Changes to exported props, CSS variables, or .pmds-* classes are cross-repository interface changes and require tests in both consumers.

Validation And Review Triggers

Review this decision when:

  • the sites no longer share a React rendering layer
  • the source package needs a published package release instead of a commit pin
  • ARDO can consume the shared header directly without weakening its docs behavior
  • a new product site needs the design system but not the current chrome
Edit this page on GitHubLast updated: November 10, 2026