Skip to content
Vitops
GuidesComponentsPackagesThemeReferenceChangelog

Start here

VitopsInstallationStart a new EmDash siteYour design systemYour config

Live preview

Theme previewAnimation libraryIconsPatternsMastheadConfigure a site

Components

OverviewCSS classesWeb componentsAstro componentsBricks elementsEmDash blocks

Packages

@getvitops/cli@getvitops/astro@getvitops/vite@getvitops/generator@getvitops/core@getvitops/utils@getvitops/emdash@getvitops/create

Reference

Config referenceOutput formatsColour systemType & space scalesComponent patternsIconsConsent gateConversion trackingSearchLegal documentsCSS class vocabularyBricks elements

Releases

Changelog

Legal documents

How the privacy policy, terms of service, cookie notice and accessibility statement are derived from config facts, why the provider table exists, and the four delivery paths.

Generated page. Rendered from this project’sdesign-system.json by @getvitops/generator — the same bundlevitops docs prints against your own config. Don’t edit it by hand.

The governing ruleWhat derives from whatThe accessibility statementThe markdown subset is closedJurisdictionsDelivery: one renderer, four consumersThe review banner

A privacy policy, terms of service, cookie notice and accessibility statement, rendered from a full config: the company from organization, what the site actually does from site.

It is a sibling of the docs generator, not a generate() format — structurally, not stylistically. generate() is keyed to a design system, so a “legal format” would be a format that ignores its own input.

The governing rule

The config records facts; the template owns prose.

Nothing in the derivation writes a sentence a lawyer would review, and no template invents a fact. That is what lets wording be corrected without touching your config, and your provider change land without touching prose.

⚠️ It also means the fix for a wrong policy is a corrected config. Hand-editing the output is overwritten by the next build.

What derives from what

  • The provider table is what makes derivation possible. A policy naming Plausible while the site runs GA is a compliance defect, not a typo — so the provider comes from which analytics ID is set, whether site.security.turnstile.siteKey exists, and what site.deployment.platform says. Never from a hand-maintained string.

    It covers only what the schema can imply. Everything else — payment, CRM, mail — is declared in site.legal.privacyPolicy.processors and flows through the same pipeline.

  • cookies: [] is meaningfully different from undefined. It asserts a provider is cookieless (Plausible), which the cookie notice states positively rather than omitting.

  • “Stored in” is not the same fact as “reachable by”. A processor’s storage is where the information rests; operatorCountry is the jurisdiction that can compel the provider to hand it over. Privacy law turns on foreign access, not merely foreign storage, so the two get separate sentences — an Azure tenant in a Canadian region never moves the data and is still subject to US law. country is shorthand asserting both, and combining it with either is rejected rather than resolved by a silent rule: whether it narrows or adds is a contradiction between two legal claims, not a formatting choice.

    A storage entry may be scoped to a category, which is what makes a Canadian tenant holding identity data abroad expressible. A country in the policy’s own jurisdiction is not a transfer and is filtered out — that is what stopped country: "Canada" rendering “outside of Canada, including Canada”. Only what the config states is asserted: hosts like Cloudflare declare an operatorCountry and no storage, because anycast means the config cannot know which region served a request, and “we don’t know” is a fact.

  • Form templates are the PII inventory. site.templates entries of type form are the only place the config says what personal information the site actually collects, so the disclosed list derives from their fields. hidden fields and honeypots are excluded — neither is visitor-supplied, and describing them as collected would be untrue.

  • First-party cookies are declared, not detected. The attribution cookie _ac is disclosed this way; see tracking.md.

The accessibility statement

Enabled with site.legal.accessibilityStatement.enabled, and read from two places: site.accessibility (the WCAG standard and level, and whether the high-contrast toggle exists) and the statement block (contact, test date, known limitations, formats offered, policies).

It asserts only what is declared, which is the governing rule at its strictest because a false statement here is a claim about someone’s ability to use the site. No conformance sentence without conformance and testedOn; full cannot sit beside a non-empty limitations list; AODA wording needs law: "aoda"; and site.accessibility.acceptedRisk is internal and never printed. Statute thresholds are not encoded: what the template calls “50+ or public sector” is the fact mandatory, and the headcount tiers live in the vitops-accessibility skill.

The document is written to the Level AAA content criteria (plain language, abbreviations and unusual words explained where first used, link text that names its destination, real headings and lists, no tables), and accessibility-statement.content.test.ts enforces that over every combination of optional sections. Paint and layout are the site’s: link it from every footer, carry the high-contrast toggle, set lang.

The markdown subset is closed

We author every template, so the renderer is exactly as capable as they are: #/##/###, - bullets, > quote, **strong**, \code`, and textlinks (made safe at the output; images and tables stay out). **An unsupported construct is an error, not a silent degrade** — that is what stops a literal| — |` reaching a published page.

Portable Text maps the > quote to a banner block and drops the # heading, which is EmDash’s own title field.

Jurisdictions

Adding one is: author three templates, add one enum member, add one registry key. The two are checked against each other at compile time, so skipping either fails to compile rather than rendering against the wrong body of law.

⚠️ ca (PIPEDA) and qc (Quebec Law 25) ship, English only (French is a TODO). The ca prose names the Office of the Privacy Commissioner of Canada and frames transfers as “outside of Canada” — do not reuse it for another jurisdiction.

Delivery: one renderer, four consumers

Consumer How
any stack vitops legal [--doc <name>] [--format md|html|portable-text] [--out <dir>] — stdout without --out. Hugo, Eleventy or a hand-built WordPress theme need no integration code.
WordPress generate({ site }) also emits dist/legal/*.html; [vitops_legal doc="privacy"] renders one. doc is matched against a fixed allowlist, because it lands in a filesystem read.
Astro vitops({ legal: { input, out } }) — a sibling of css, not a widening of it. Regenerates on config change; writes markdown to a content collection. No route injection.
EmDash --format portable-text, pasted into the admin.

The CLI is the load-bearing one: it is the surface every consumer has regardless of stack.

The review banner

Every document opens with a non-optional review banner. These are rendered from a template by a build tool; the one failure mode with real consequences is a consumer publishing one as-is.

Built with the design system it documents.

@getvitops on npm