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

Config reference

Every field of the three-section config — designSystem, organization and site — plus the full design-token schema. Browsable, filterable, and generated from the published JSON Schema.

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.

Generated from config.schema.json and schema.json, the same schemasvitops validate checks against — so they always match validation. Every field is linkable by its dotted path: #site.analytics.clarityId, #colors.palette.

For what belongs in each section and when you need a config at all, start withYour config. Agents should read vitops docs config and vitops docs authoringinstead of this page.

Project config

The three sections of a project config. Token fields live under designSystem and are listed in full below, so this tree stops at the wrapper.

  • designSystemobjectrequired

    The design system: named themes plus the system-wide facts (which theme, which appearance). A bare design system, or a bare theme map, is accepted as shorthand for { themes: … }.

    • themesmaprequired

      Named themes. default is the base; others may extends another and supply a partial patch. Light/dark is NOT a theme — the functional tokens flip per appearance within each one, so default already has both. Only the default theme is built today; multi-theme output and a picker are not wired yet.

    • defaultThemestring

      Which themes entry to use (convention: "default"). Validated against the map; selecting a non-default theme is not wired yet.

    • defaultColorSchemelight | dark | system

      Initial appearance. "dark" makes the site DARK-ONLY: the dark tokens become the :root appearance (with color-scheme: dark), no light block or data-theme flip is emitted, and the light-mode contrast checks are skipped — so a palette that only works dark (bright fills with dark text, for example) builds. Do not ship <wc-color-scheme-toggle> on such a site. "system" follows the OS via prefers-color-scheme and is what makes <wc-color-scheme-toggle>'s "System" position resolve to anything — it removes the theme attribute, so without this the page falls through to light. It also gives a no-JS page the OS appearance. Defaults to "light", because switching an existing site to "system" visibly flips it dark for dark-OS visitors.

  • organizationobject

    The company: schema.org Organization details for JSON-LD (name, legalName, logo, tax IDs, sameAs), plus its contact, physical locations, services and public profiles. These stay true across sites — several sites can share one organization and differ only in site.

    • nameone of

      Trading name, as a reader would recognise it (e.g. "Acme"). Localisable.

      • one ofstring
      • one ofmap
    • legalNamestring

      Registered legal name (e.g. "Acme Widgets Inc."). The generated legal documents prefer this over name — a policy is a statement by the legal entity.

    • foundingDatestring

      Date the organization was founded (YYYY-MM-DD).

    • logoone of

      Organization logo → JSON-LD logo.

      • one ofstring
      • one ofobject
        • srcstringrequired
        • altstringrequired
        • widthnumber
        • heightnumber
    • emailstring

      General contact address. Also the last fallback for privacy requests — see contact.

    • phonestring

      General contact telephone number.

    • addressobject

      Registered/mailing address. Its addressRegion and addressCountry are what the governing-law clause of the generated terms of service defaults to.

      • streetAddressstring

        Street line. Optional: a business with no public street address (home-based, service-area) omits it, and the generated legal documents and JSON-LD simply leave the line out.

      • addressLocalitystringrequired

        City.

      • addressRegionstring

        State / province.

      • postalCodestring
      • addressCountrystringrequired

        Country (ISO 3166-1 alpha-2 preferred).

    • descriptionone of

      One or two sentences on what the organization does → JSON-LD description and a fallback for SEO. Localisable.

      • one ofstring
      • one ofmap
    • taxIDstring

      Tax identification number.

    • vatIDstring

      VAT identification number.

    • sameAsarray of string

      Profile URLs → JSON-LD sameAs (mirrors links).

    • contactone of

      Primary contact: either a locations key (string reference) or an inline name/email/phone/address object.

      • one ofstring
      • one ofobject
        • namestring
        • emailstring
        • phonestring
        • addressobject

          schema.org PostalAddress field names, so JSON-LD generation is lossless.

          • streetAddressstring

            Street line. Optional: a business with no public street address (home-based, service-area) omits it, and the generated legal documents and JSON-LD simply leave the line out.

          • addressLocalitystringrequired

            City.

          • addressRegionstring

            State / province.

          • postalCodestring
          • addressCountrystringrequired

            Country (ISO 3166-1 alpha-2 preferred).

    • primaryLocationstring

      The main locations key (for JSON-LD and defaults).

    • locationsmap

      Physical locations (schema.org LocalBusiness): address, geo, opening hours, service area.

      • <name>object
        • slugone of

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • nameone ofrequired

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • emailstring
        • phonestring
        • addressobject

          schema.org PostalAddress field names, so JSON-LD generation is lossless.

          • streetAddressstring

            Street line. Optional: a business with no public street address (home-based, service-area) omits it, and the generated legal documents and JSON-LD simply leave the line out.

          • addressLocalitystringrequired

            City.

          • addressRegionstring

            State / province.

          • postalCodestring
          • addressCountrystringrequired

            Country (ISO 3166-1 alpha-2 preferred).

        • geoobject
          • latitudenumberrequired
          • longitudenumberrequired
        • hoursarray
          • [items]object
            • dayOfWeekarray of Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sundayrequired
            • opensstringrequired
            • closesstringrequired
        • hoursSpecialarray

          Holiday/temporary hours, as dated deviations from the recurring hours — distinct from it because these carry a date range rather than a weekday.

          • [items]object
            • validFromstringrequired
            • validThroughstring
            • opensstring
            • closesstring
        • typeLocalBusiness | Store | Restaurant | CafeOrCoffeeShop | ProfessionalService | MedicalBusiness | HealthAndBeautyBusiness | HomeAndConstructionBusiness | AutomotiveBusiness | FinancialService | LegalService | RealEstateAgent | Organization
        • descriptionone of

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • areaServedarray of string
        • priceRangestring
        • paymentAcceptedarray of string
        • currenciesAcceptedstring
        • knowsLanguagearray of string
        • photosarray

          Location photos (logo, storefront, interior, …) → JSON-LD image. Every listing platform (GBP, Bing Places, Apple Business Connect) wants these; none can derive them.

          • [items]one of
            • one ofstring
            • one ofobject
              • srcstringrequired
              • altstringrequired
              • widthnumber
              • heightnumber
        • sameAsarray of string

          This location's own profile URLs (its Google Business Profile, Bing Places listing, Apple Business Connect location, Facebook page, …) → JSON-LD sameAs. Distinct from organization.sameAs, which is the company overall — a multi-location org's locations do not share one GBP listing.

        • listingsmap

          External listing IDs for this location, keyed by platform — the Google Business Profile location id, the Bing Places business id, the Apple Business Connect location id. Not consumed by the generator today; recorded here so a future sync has a stable id to match against instead of risking a duplicate listing.

    • servicesmap

      Services offered (schema.org Service/Offer): name, description, slug, price offers.

      • <name>object
        • nameone ofrequired

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • descriptionone of

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • slugone of

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • offersarray
          • [items]object
            • nameone of

              A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

              • one ofstring
              • one ofmap
            • pricestringnumber
            • priceCurrencystring
            • availabilitystring
            • urlstring
            • validFromstring
            • priceValidUntilstring
    • linksobject

      Public profile URLs (also feed JSON-LD sameAs via organization.sameAs).

      • googleMapsstring
      • instagramstring
      • facebookstring
      • xstring
      • linkedinstring
      • youtubestring
      • githubstring
  • siteobjectrequired

    This published site: locales, domains, environments, content templates, SEO, analytics, legal documents, icons, favicon and deployment. Facts about a presentation of the organization rather than the organization itself.

    • defaultLocalestringrequired

      The locale used when none is specified; must be a locales key.

    • localesmaprequired

      Locales the site is published in, keyed by BCP 47 tag (e.g. "en", "fr").

      • <name>object
        • namestringrequired

          Display name of the locale (e.g. "English").

        • taglinestring

          Site tagline in this locale.

        • basePathstring

          URL prefix for this locale (e.g. "/fr").

    • domainsobject

      Canonical domain + redirecting aliases.

      • canonicalstringrequired

        The canonical origin used for absolute URLs and SEO.

      • aliasesarray

        Alias domains and how they redirect to the canonical one.

        • [items]object
          • domainstringrequired
          • redirectTypenumber | number | number | numberrequired
          • redirectTostringrequired
          • environmentstring
    • dnsmap

      Desired DNS state per domain (provider, nameservers, records) — declarative reference, not applied automatically.

      • <name>object
        • providerstring
        • nameserversarray of string
        • recordsarray
          • [items]object
            • typeA | AAAA | CNAME | TXT | MX | NS | SRV | CAA | PTR | SOArequired
            • namestring
            • valuestringrequired
            • ttlinteger
            • proxiedboolean
    • cloudflaremap

      Deliberate escape hatch for provider-specific Cloudflare settings — out of scope to model here.

    • googleobject

      This site's Google Cloud project. Not a secret — the credentials stay in the environment.

      • projectstringrequired

        Google Cloud project id that API usage is attributed to (quota and billing). One project per site keeps usage separate — Search Console today, Maps and anything else later. Sent as x-goog-user-project, which is required when the credential is a user one (an ADC login from gcloud auth application-default login, or VITOPS_GOOGLE_*): those use a shared OAuth client that carries no project of its own. A service-account credential belongs to a project already, so this is not needed for it. The identity must hold serviceusage.services.use on the project, and the APIs being called must be enabled there.

    • searchConsolemap

      Domains to onboard as Google Search Console domain properties via vitops search setup, keyed by bare hostname (mirrors dns). Credentials come from the environment (CLOUDFLARE_API_TOKEN + the Google OAuth vars) — never in this file. Set google.project when using a user credential.

      • <name>object
        • delegatedOwnersarray of string

          Emails added as verification owners on the Site Verification web resource. Automated via the API — additive and idempotent, never removes an existing owner.

        • fullUserGroupstring

          A Google Group to grant Full-User access in Search Console. SURFACED AS A REMINDER only: Search Console exposes no user/permission API, so this step stays manual by design.

    • environmentsmaprequired

      Deploy environments (production, dev, …): URL, API origin, analytics toggle, robots policy, active A/B variant.

      • <name>object
        • urlstringrequired

          Public origin of this environment.

        • apistring

          API origin, when different from url.

        • analyticsboolean

          Whether analytics fire in this environment.

        • adsboolean

          Whether site.ads pixels fire in this environment. Defaults to analytics, then true — a preview deployment sending pageviews is survivable, one firing conversion pixels is not, so this can be turned off on its own.

        • robotsstring

          Robots policy (e.g. "noindex,nofollow" for dev).

        • variantstring

          Active abTesting.variants key for this environment.

    • planobject

      Commercial plan/add-on entitlement, gating which capability fields below may be turned on. Absence means unrestricted.

      • keystringrequired

        Commercial plan identifier (e.g. "essentials", "growth") — open string, not a closed enum.

      • addonsarray of string

        Add-on keys this site is entitled to (e.g. "ab_testing", "server_side_tracking") — checked against PLAN_CAPABILITIES.

    • abTestingobject

      A/B testing: cookie-based split plus named variants whose overrides patch the config per environment.

      • enabledbooleanrequired
      • cookieNamestring
      • cookieMaxAgeinteger

        Seconds.

      • splitRationumber

        Fraction of traffic sent to the variant (0–1).

      • variantsmap

        Named variants; each targets an environment and may deep-merge config overrides.

        • <name>object
          • environmentstringrequired
          • descriptionstring
          • overridesmap
    • experimentsmap

      Runtime, per-visitor content experiments — one config-schema-free page branches on a cookie the vitopsAbTesting() middleware assigns. Distinct from abTesting, which merges a whole build/environment variant at resolve time; this instead lets one page (e.g. a real, nav-linked /contact) run a copy test without a second URL or a second deploy. Keyed by an open experiment name so more than one can run at once.

      • <name>object
        • enabledbooleanrequired
        • categoryanalytics | marketing

          Consent category this experiment's assignment cookie waits on (default analytics) — independent of site.tracking.category, so an experiment never piggybacks on ad-attribution consent.

        • cookieNamestring

          Default _ab_<experiment key>.

        • cookieMaxAgeinteger

          Seconds.

        • splitRationumber

          Fraction of new visitors auto-assigned to variants[1] (default 0.5). 0 means nobody is auto-assigned — a manually or query-param-set cookie still pins a visitor to variants[1], which is what makes 0 a real blue/green-preview mode rather than a no-op.

        • variantsarrayrequired

          Exactly two variant names, e.g. ["control", "new-form"]. variants[0] is the default a visitor with no assignment yet effectively sees.

    • fontsarray

      Font LOADING (a serialisable projection of the Astro Fonts API: provider, weights, subsets, preload). Font TOKENS live in designSystem.themes.<theme>.fonts and reference the same cssVariable.

      • [items]object
        • namestringrequired
        • providergoogle | fontsource | adobe | bunny | fontshare | googleicons | npm | localrequired
        • cssVariablestringrequired
        • weightsarray of number,string
        • stylesarray of normal | italic
        • subsetsarray of string
        • fallbacksarray of string
        • optimizedFallbacksboolean
        • displayauto | block | swap | fallback | optional
        • formatsarray of string
        • unicodeRangearray of string
        • variantsarray
          • [items]object
            • srcarray of stringrequired
            • weightnumberstring
            • stylenormal | italic
            • unicodeRangearray of string
            • displayauto | block | swap | fallback | optional
        • preloadone of

          Emit <Font preload /> for this family (true, or a list of weight/style faces).

          • one ofboolean
          • one ofarray
            • [items]object
              • weightnumberstringrequired
              • stylenormal | italic
    • tagsmap

      Free-form content-tag taxonomy (site-specific; not interpreted by the generator).

    • postTypesmap

      Free-form content-type definitions (site-specific; not interpreted by the generator).

    • galleriesmap

      Named image galleries (title, tags, images with localisable alt/caption).

      • <name>object
        • titleone of

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • tagsarray of string
        • imagesarrayrequired
          • [items]object
            • srcstringrequired
            • altone ofrequired

              A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

              • one ofstring
              • one ofmap
            • captionone of

              A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

              • one ofstring
              • one ofmap
    • testimonialsmap

      Named testimonial groups (quote, name, role, rating, date).

      • <name>object
        • titleone of

          A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

          • one ofstring
          • one ofmap
        • itemsarrayrequired
          • [items]object
            • quoteone ofrequired

              A string, or a per-locale map of strings ({ en: "…", fr: "…" }).

              • one ofstring
              • one ofmap
            • namestringrequired
            • rolestring
            • ratingnumber
            • datestring
    • templatesmap

      Named content templates rendered at SSR time: nav (menu trees), form (field lists + submit), or nodes (raw element trees).

    • navigationobject

      Site navigation settings (which nav template renders where).

      • activeTemplateobject

        Which nav template is active, optionally per breakpoint.

        • defaultstring

          A templates key.

        • breakpointsmap

          Breakpoint name → templates key overrides.

    • chromeobject

      Page furniture: the masthead (top bar — position, glass/transparent surface, inset/floating layout, shadow/border, and a partial look per scroll state) and how its navigation behaves at each width (compact drawer or dropdown, mega tier). Read by <Masthead /> and <SiteNav /> via resolveMasthead() / resolveNavOptions(); a prop overrides a field per layout.

      • mastheadobject

        The top bar: position, scroll behaviour, surface, layout, elevation.

        • positionstatic | sticky | fixed

          static scrolls away; sticky stays in flow and pins to the top; fixed is out of flow and overlays the first section (for a masthead over a hero). A masthead with states that change its size, layout or visibility is promoted to fixed, because on a sticky bar a size change would reflow the page at the threshold. Default static.

        • surfacesolid | glass | transparent

          solid, glass (blurred + tinted via --surface-glass) or transparent. Default solid. For a bar that is clear at the top and solid after, set states.atStart.surface: transparent.

        • tonestring

          A colors.roles key, optionally <role>:solid, applied as the masthead .tone so text contrast stays the generator's guarantee.

        • layoutfull | inset | floating

          full is flush to the viewport edges; inset leaves a gap to them; floating is inset with a panel radius. Default full.

        • widthfull | content

          content keeps the masthead row on the page's .centered track; full lets it span the masthead. Default content.

        • elevationobject

          Shadow and border.

          • shadowstring

            A designSystem.shadows key (e.g. sm). Omit for no shadow.

          • borderboolean

            A bottom border (a full outline when layout is not full).

        • statesobject

          How the masthead looks in each scroll state, as partial overrides of the settled look: atStart (page at the top), atEnd, scrollingToEnd (scrolling down), scrollingToStart (scrolling up); later states win. Animated. Uses scroll-state(); a browser without it (Firefox today) keeps the settled look. E.g. { "atStart": { "layout": "full", "height": "6rem", "surface": "transparent" }, "scrollingToEnd": { "hidden": true } } with a settled layout: inset.

          • atStartobject
            • layoutfull | inset | floating

              Layout in this state, e.g. full at the top and inset once scrolled (set the settled layout to inset). Animated.

            • heightstring

              Row height in this state. Same length grammar as the settled height. Animated.

            • insetstring

              Gap to the viewport edge in this state (only meaningful for an inset/floating layout). Animated.

            • surfacesolid | glass | transparent

              Surface in this state, e.g. transparent over a hero.

            • elevationone of

              false removes the shadow and border; { shadow } swaps the shadow.

              • one ofboolean
              • one ofobject
                • shadowstring

                  A designSystem.shadows key (e.g. sm). Omit for no shadow.

                • borderboolean

                  A bottom border (a full outline when layout is not full).

            • hiddenboolean

              Slide the bar off-screen. Never while it has focus or a menu inside it is open. atStart: { hidden: true } also needs a page that can scroll, so a short page keeps the bar.

          • atEndobject
            • layoutfull | inset | floating

              Layout in this state, e.g. full at the top and inset once scrolled (set the settled layout to inset). Animated.

            • heightstring

              Row height in this state. Same length grammar as the settled height. Animated.

            • insetstring

              Gap to the viewport edge in this state (only meaningful for an inset/floating layout). Animated.

            • surfacesolid | glass | transparent

              Surface in this state, e.g. transparent over a hero.

            • elevationone of

              false removes the shadow and border; { shadow } swaps the shadow.

              • one ofboolean
              • one ofobject
                • shadowstring

                  A designSystem.shadows key (e.g. sm). Omit for no shadow.

                • borderboolean

                  A bottom border (a full outline when layout is not full).

            • hiddenboolean

              Slide the bar off-screen. Never while it has focus or a menu inside it is open. atStart: { hidden: true } also needs a page that can scroll, so a short page keeps the bar.

          • scrollingToEndobject
            • layoutfull | inset | floating

              Layout in this state, e.g. full at the top and inset once scrolled (set the settled layout to inset). Animated.

            • heightstring

              Row height in this state. Same length grammar as the settled height. Animated.

            • insetstring

              Gap to the viewport edge in this state (only meaningful for an inset/floating layout). Animated.

            • surfacesolid | glass | transparent

              Surface in this state, e.g. transparent over a hero.

            • elevationone of

              false removes the shadow and border; { shadow } swaps the shadow.

              • one ofboolean
              • one ofobject
                • shadowstring

                  A designSystem.shadows key (e.g. sm). Omit for no shadow.

                • borderboolean

                  A bottom border (a full outline when layout is not full).

            • hiddenboolean

              Slide the bar off-screen. Never while it has focus or a menu inside it is open. atStart: { hidden: true } also needs a page that can scroll, so a short page keeps the bar.

          • scrollingToStartobject
            • layoutfull | inset | floating

              Layout in this state, e.g. full at the top and inset once scrolled (set the settled layout to inset). Animated.

            • heightstring

              Row height in this state. Same length grammar as the settled height. Animated.

            • insetstring

              Gap to the viewport edge in this state (only meaningful for an inset/floating layout). Animated.

            • surfacesolid | glass | transparent

              Surface in this state, e.g. transparent over a hero.

            • elevationone of

              false removes the shadow and border; { shadow } swaps the shadow.

              • one ofboolean
              • one ofobject
                • shadowstring

                  A designSystem.shadows key (e.g. sm). Omit for no shadow.

                • borderboolean

                  A bottom border (a full outline when layout is not full).

            • hiddenboolean

              Slide the bar off-screen. Never while it has focus or a menu inside it is open. atStart: { hidden: true } also needs a page that can scroll, so a short page keeps the bar.

        • heightstring

          CSS length for the masthead row (default 4rem). calc(), clamp(), min() and max() are accepted, so it can be fluid: clamp(3.5rem, 8cqi, 4.5rem). cqi resolves against the nearest size container (body, the same one the nav breakpoints use), vw against the viewport. Becomes --masthead-height and, when the masthead is sticky or fixed, --header-offset so in-page anchors land below it.

        • insetstring

          Gap between a layout: inset or floating masthead and the viewport edge (default 0.75rem). Same length grammar as height, e.g. clamp(0.5rem, 2cqi, 1.5rem). Ignored when layout is full. Becomes --masthead-inset and is counted in --header-offset.

      • navobject

        How the masthead navigation behaves at each width.

        • breakpointsm | md | lg | xl

          Container width where the default primary menu promotes from the compact control to a navbar. Default md.

        • mobileBreakpointsm | md | lg | xl

          Where a primary-mobile menu hands over to primary. Default = breakpoint.

        • megaBreakpointsm | md | lg | xl

          Where a primary-mega menu takes over. Default xl.

        • depthinteger

          Levels in the default nav (1–3). Default 3.

        • megaDepthinteger

          Levels in the mega panel (1–3). Default 3.

        • compactdrawer | dropdown

          What the toggle opens below its breakpoint: an edge drawer, or a columnar dropdown panel anchored under the toggle. Default drawer.

        • drawerSidestart | end

          Edge the drawer slides from when compact is drawer. Default end.

      • backToTopone of

        A floating back-to-top link, rendered by <SiteFooter>, visible once the page has scrolled. true for defaults. A browser without scroll-state() (Firefox today) shows it always.

        • one ofboolean
        • one ofobject
          • labelstring

            Accessible name and text. Default Back to top.

          • targetstring

            In-page anchor to scroll to, e.g. #top (default) or #main.

    • accessibilityobject

      The accessibility target this site is held to: a WCAG standard and minimum level (none/A/AA/AAA), plus a recorded acceptedRisk. Sets whether a WCAG 2 contrast-ratio miss fails the build and whether vitops audit can fail. A target, not a claim of conformance.

      • standardwcag20 | wcag21 | wcag22

        The WCAG version the target is measured against: wcag20, wcag21 or wcag22. Default wcag21. Pick the version a statute or contract names (Ontario AODA names 2.0); a later version is a superset, so a higher choice is stricter, not different.

      • levelnone | A | AA | AAA

        The minimum conformance level the site is held to: none, A, AA or AAA. Unset, AA and AAA make a WCAG 2 contrast-ratio miss fail the build; A and none only warn (contrast is an AA criterion). vitops audit runs the axe tags for the chosen standard and level and fails on violations, except at none, where they are reported and never fail the run. This records a target, not a claim of conformance.

      • contrastToggleboolean

        Set true when the site ships the high-contrast toggle (<ContrastToggle /> / .contrast-toggle), WCAG technique G174: a visible control that switches to a conforming version. A baseline WCAG 2 contrast miss then only warns, provided the generated high-contrast layer (prefers-contrast: more / data-contrast="more") itself reaches 4.5:1 text and 3:1 non-text. vitops audit checks the toggle is actually present. Default false: a miss fails the build at AA.

      • acceptedRiskstring

        Free text recording who accepted a target below what applies to this site, when, and why (e.g. "Client accepted below AA until rebrand, per J. Smith, 2026-11-11"). Printed in the audit report header. Never read for logic.

    • seoobject

      SEO defaults: site name, title/description defaults, robots policy, verification tokens, Open Graph + Twitter cards, and post-deploy indexing notification. Read by <Seo />, vitops robots and vitops search notify.

      • siteNameone of

        og:site_name, and the <title> when a page passes none. Defaults to organization.name, so most sites never state it.

        • one ofstring
        • one ofmap
      • titleTemplateone of

        Page-title pattern; %s is the page title (e.g. "%s · Acme"). Applies to <title> only, never to og:title, and is skipped when the page title already equals the site name.

        • one ofstring
        • one ofmap
      • defaultTitleone of

        <title> for pages that pass none. Used verbatim — the template is not applied. Defaults to the site name.

        • one ofstring
        • one ofmap
      • defaultDescriptionone of

        <meta name="description"> for pages that pass none.

        • one ofstring
        • one ofmap
      • robotsstring

        Site-wide robots directive (e.g. "index,follow" / "noindex,nofollow"). site.environments.<env>.robots wins over it.

      • googleSiteVerificationstring

        Google Search Console verification token (<meta name="google-site-verification">).

      • bingSiteVerificationstring

        Bing Webmaster Tools verification token (<meta name="msvalidate.01">).

      • openGraphobject

        Open Graph defaults. Per-page <Seo /> props override them.

        • typewebsite | article | profile

          Default og:type. Default website.

        • localestring

          og:locale. en-CA and en_CA both emit en_CA.

        • localeAlternatesarray of string

          Other locales the same content exists in → og:locale:alternate.

        • imageone of

          Fallback share image for pages that bring none.

          • one ofstring
          • one ofobject
            • srcstringrequired

              Absolute, or relative to site (resolved at render time).

            • altstring
            • widthnumber
            • heightnumber
            • typestring

              MIME type, e.g. image/png.

      • twitterobject

        Twitter/X card defaults.

        • cardsummary | summary_large_image | app | player

          Card type when no image resolves (default summary).

        • sitestring

          The site's own handle, e.g. "@acme".

        • creatorstring

          Default author handle, e.g. "@ada".

      • indexingobject

        How vitops search notify tells search engines about a deploy: which sitemap, IndexNow key, Search Console property, and which pages to verify afterwards.

        • sitemapUrlone of

          The sitemap(s) to submit and to diff for changed URLs — one URL, or a list when a site serves more than one (an EmDash site's /sitemap.xml plus the pages-sitemap.xml vitops() writes for src/pages routes). Unset, search notify looks for <canonical>/sitemap-index.xml (Astro), <canonical>/sitemap.xml (EmDash) and <canonical>/pages-sitemap.xml and uses whichever exist; listing URLs here turns that discovery off.

          • one ofstring
          • one ofarray of string
        • indexNowobject

          IndexNow submission (Bing, Yandex, Naver, Seznam, Yep — not Google). Omit to skip the channel.

          • keystringrequired

            IndexNow key (8–128 chars, hex is conventional). NOT a secret — it is served publicly at keyLocation so the engine can verify you own the host. Generate one with vitops search notify --new-key.

          • keyLocationstring

            Absolute URL of the key file. Defaults to <canonical>/<key>.txt; set it only when the file lives elsewhere.

          • endpointstring

            IndexNow endpoint (default https://api.indexnow.org/indexnow). Any participating engine shares submissions with the rest, so one is normally enough.

        • searchConsoleobject

          Google Search Console property. Needs a credential at run time — either a service account in VITOPS_GSC_SERVICE_ACCOUNT / GOOGLE_APPLICATION_CREDENTIALS, or the user OAuth credential vitops search setup uses (VITOPS_GOOGLE_CLIENT_ID / _CLIENT_SECRET / _REFRESH_TOKEN). The service account wins when both are set. Never put a key in this file.

          • siteUrlstringrequired

            The property exactly as Search Console identifies it — sc-domain:acme.ca for a domain property, or the URL-prefix form https://acme.ca/. A mismatch here is a 403, not a "not found".

          • resubmitSitemapboolean

            Re-submit the sitemap through the Search Console API on each notify (default true when searchConsole is set). This is the automated equivalent of the manual resubmit in the UI.

        • priorityUrlsarray of string

          The pages whose indexing actually matters. vitops search notify --check inspects these and exits non-zero if Google has not indexed one. Kept explicit because URL Inspection is quota-bound (2000/day), so checking every page is neither affordable nor informative.

    • analyticsobject

      Analytics provider IDs (gated per environment via environments.<env>.analytics). Which provider is set is also what the generated privacy policy and cookie notice disclose — see legal.

      • googleAnalyticsIdstring
      • plausibleDomainstring
      • googleTagManagerIdstring
      • clarityIdstring

        Microsoft Clarity project ID.

      • matomoobject

        Matomo instance.

        • urlstringrequired

          Instance base URL (self-hosted, or *.matomo.cloud).

        • siteIdstringrequired

          Site ID within that instance.

        • cookiesboolean

          Default false — Matomo runs cookieless (disableCookies), which is what lets the cookie notice state positively that it sets none.

        • abVariantDimensionsmap

          Pre-created Matomo custom-dimension index per site.experiments key — Matomo requires the dimension to exist in the instance before a value can be pushed for it.

    • notificationsobject

      Where site notifications (form submissions, tracked calls) are sent. TODO: sms and persist channels — only email is implemented.

      • emailone of

        Where conversion notifications are e-mailed. A bare address is shorthand for { provider: "cloudflare", to }.

        • one ofstring
        • one ofobject
          • providerstringrequired

            Delivery provider. Only Cloudflare Email Sending is implemented; the field is stated so adding another is additive.

          • tostring

            Recipient. Defaults to the primary location’s email, then the first location that has one.

          • fromstring

            Sender. Defaults to noreply@<domains.canonical>. Its domain must be onboarded (wrangler email sending enable <domain>) or every send fails.

          • fromNamestring

            Display name on the From header. Defaults to organization.name.

          • replyTostring

            Reply-To header.

          • bindingstring

            Workers send_email binding name (default EMAIL). Set it when using a restricted binding.

          • verifySenderboolean

            Set false to skip vitops email check's deploy-time onboarding warning for this site — for a from domain the scan cannot see is correct (e.g. built dynamically), which would otherwise be a false positive.

      • actionUrlstring

        Optional action-link template added to the conversion email (e.g. a link into your ad platform or your own CRM/portal). {clickId} is replaced with the ad click ID captured on _ac (gclid, fbclid, …). Omitted from the email when the event carries no click ID to interpolate, rather than rendering a broken link.

    • trackingobject

      Ad-click attribution for conversion tracking.

      • enabledboolean

        Capture ad click IDs and UTMs from the landing URL into the _ac cookie, for attributing conversions.

      • categorymarketing | analytics

        Consent category the _ac cookie waits on (default marketing). It is a 90-day identifier tying a visitor to the ad that brought them, so it is only written once this category is granted — and asking for it is what raises the banner.

      • platformsarray of string

        Informational list of ad platforms in use. Capture recognises every known click-ID parameter regardless.

      • phoneNumbersobject

        Show a visitor from an ad the tracking number for that platform instead of the real one. Swapped in by the capture script from the landing URL (immediately) or the _ac cookie (later pages, once marketing is granted); the matching tel: links are rewritten too. An organic visitor is never swapped. Needs enabled: true.

        • numberstringrequired

          The real phone number exactly as the site displays it. Server-rendered HTML always carries this one, so crawlers, structured data and visitors without JavaScript see it.

        • sourcesmaprequired

          Tracking numbers keyed by ad platform (the site.ads provider names), each provisioned with a call-tracking provider and forwarding to number. default-paid is the fallback for a paid visit from a platform with no number of its own. Google needs no entry when site.ads.google.callTracking is set — Google supplies its own.

        • providerstring

          The call-tracking provider (e.g. twilio, callrail). Informational, but it records callers’ numbers, so it must be named in the privacy policy — declare it in site.legal.privacyPolicy.processors unless it is a known one.

    • adsmap

      Ad properties this site is linked to, keyed by platform. Read by vitops ads setup (ensure the DNS verification record), vitops ads tags (emit the consent-gated pixel), and the generated cookie notice (disclose what each pixel stores). Credentials never live here — the DNS write uses CLOUDFLARE_API_TOKEN from the environment.

      • <name>object
        • accountIdstring

          The advertising account as the platform shows it — Google Ads customer ID, Meta ad account, LinkedIn partner ID, Reddit advertiser ID. For LinkedIn this is also the Insight Tag id; everywhere else the tag id is pixelId.

        • pixelIdstring

          The tag/pixel ID the browser snippet initialises — Meta pixel, TikTok pixel, Reddit pixel, Microsoft UET tag ID, Pinterest tag ID, Snap pixel, or the Google Ads conversion ID (AW-…, which is NOT the customer ID).

        • conversionLabelone of

          Google Ads only: the conversion action label(s) paired with the AW-… conversion ID — the category (Phone call lead, Contact, …) is a property of the action in Google Ads, not of the tag call, so a wrong category can't be fixed from code; either one bare label (back-compat, treated as the call action) or a map of action → label, so a call, an email click and a form submission each fire their own Google Ads conversion action instead of all three reporting as the same one.

          • one ofstring
          • one ofobject
            • callstring

              Fired on a tel: link click. Create the action in Google Ads with category "Phone call lead".

            • emailstring

              Fired on a mailto: link click. Create the action in Google Ads with category "Contact".

            • formstring

              Fired client-side by vitopsFormConversion() — the consumer's own submit handler calls it once a form POST succeeds. Create the action in Google Ads with category "Submit lead form". Don't fire it from a success-page query parameter: that replays on refresh and the honeypot returns the same success page.

        • conversionActionIdone of

          Google Ads only: the conversion action resource id(s) (a numeric id, or a full customers/…/conversionActions/… resource name) used for server-side offline conversion upload — NOT the same value as conversionLabel, which is the opaque label the web tag uses and which the Ads API's upload endpoint does not accept. Only meaningful when reporting: "server".

          • one ofstring
          • one ofobject
            • callstring

              Fired on a tel: link click.

            • emailstring

              Fired on a mailto: link click.

            • formstring

              Fired on a form submission.

        • callTrackingobject

          Google Ads only: website call conversions. The Google tag fetches a Google forwarding number for visitors who arrived from a Google ad and swaps it in for number, so a phone call (not just a tel: tap) is attributed to the click. Google decides who sees it; this toolchain also rewrites the matching tel: links, which Google does not. Counts the same call as conversionLabel.call if both are primary — make one secondary in Google Ads. Any other platform has no equivalent: see site.tracking.phoneNumbers.

          • labelstringrequired

            The conversion action label of a separate Google Ads action of type "Calls from a phone number on your website" (not the conversionLabel.call action, which counts tel: taps). Paired with pixelId as AW-…/<label>.

          • numberstringrequired

            The phone number exactly as the site displays it, e.g. 613-555-0100. Google swaps its forwarding number in only where the page text matches these digits, so a differently formatted number on the page is silently never replaced.

          • cacheboolean

            Set false to stop Google caching the fetched forwarding number in a cookie (phone_conversion_options.cache). Default true, so the number follows the visitor across pages.

        • reportingclient | server

          Google Ads only: "client" (default) fires the conversion via gtag.js in the browser at click/submit time; "server" uploads it via the Ads API from the conversion endpoint instead (see conversionActionId). An action with no matching conversionActionId keeps firing client-side regardless of this setting, so setting it before conversionActionId is filled in never silently drops a conversion.

        • domainstring

          Bare hostname to verify with this platform. Defaults to the host of domains.canonical — set it only when the ad account is verified against a different domain.

        • domainVerificationstring

          The verification token from the platform UI, for the platforms that verify by DNS TXT (Meta, TikTok, Pinterest, Snapchat). vitops ads setup prompts for it and writes it here on first run. NOT a secret — it is published in DNS, and the platform fetching it back is the ownership proof, exactly like the IndexNow key. A value containing = is used as the whole record, which is the escape hatch if a platform changes its prefix.

        • categorymarketing | analytics

          Consent category the tag waits on (default marketing). An ad pixel is advertising by default; analytics is for a site using one purely for its own measurement.

        • enabledboolean

          Set false to keep the property on record without emitting its tag.

    • reviewsobject

      Google Business Profile reviews to cache and display, keyed by organization.locations. Read by vitops reviews. Credentials never live here — a Google OAuth credential comes from the environment, same as site.searchConsole.

      • accountIdstring

        Default GBP account resource id (accounts/…) for locations that do not override it.

      • locationsmaprequired

        Which organization.locations to fetch Google reviews for, and how each one’s reviews are filtered/ordered. vitops reviews writes the result to .vitops/reviews.json.

        • <name>object
          • accountIdstring

            GBP account resource id (accounts/…), overriding site.reviews.accountId for this location.

          • locationIdstringrequired

            GBP location resource id (locations/…) to fetch reviews for.

          • featuredarray of string

            Review ids to always include, in this order, ahead of everything else automatically selected.

          • minRatingnumber

            Drop reviews below this star rating (default 4) from the automatic (non-featured) selection.

          • limitnumber

            Keep at most this many reviews after filtering.

          • sortrecent | rating

            Ordering for the non-featured remainder (default recent).

      • schemaboolean

        Emit Review JSON-LD for these reviews (default false). Off by default: Google’s structured-data policy treats a business marking up reviews of itself as ineligible for review rich results, and risks a manual action.

      • avatarsboolean

        Render the reviewer’s Google-hosted avatar photo (default false). Off by default: every visitor would otherwise issue a third-party request to googleusercontent.com, and the URLs are not guaranteed to stay live.

    • crmobject

      Push form submissions into a client CRM (HubSpot, Zoho Bigin, or Jobber) alongside the notification email. Read by createConversionRoute()'s crm option and vitops crm check/vitops crm setup. Credentials never live here.

      • providerhubspot | bigin | jobberrequired

        Which CRM this site pushes form submissions into.

      • enabledboolean

        Set false to keep the block on record without writing to the CRM.

      • hubspotobject

        Required when provider is hubspot.

        • portalIdstringrequired

          The HubSpot portal (hub) ID the form belongs to.

        • formGuidstringrequired

          The HubSpot form GUID to submit against.

        • dataCenterna | eu

          Which regional submissions API to post to (default na).

      • biginobject

        Required when provider is bigin.

        • dataCentercom | ca | eu | in | com.au | jprequired

          The self-client's data centre — determines both the OAuth accounts host and the API host (www.zohoapis.<dc>).

        • duplicateCheckFieldstring

          Bigin field the upsert dedupes on (default Email, Bigin's own unique field).

        • pipelineobject

          Also open a Pipelines record alongside the Contact.

          • enabledbooleanrequired

            Also open a Pipelines record for the new/updated contact.

          • subPipelinestring

            Sub-pipeline to file the record under.

          • stagestring

            Starting stage for the pipeline record.

      • jobberobject

        Required when provider is jobber.

        • apiVersionstring

          Override the pinned X-JOBBER-GRAPHQL-VERSION date this integration is tested against. An escape hatch for an app pinned to a different version — Jobber's schema can change field names between versions.

        • dedupeboolean

          Look up an existing client by email before creating one (default false pending verification of Jobber's search API against a live schema — see AGENTS.md). Jobber's clientCreate has no upsert, so without this a resubmitting visitor creates a second client.

        • noteobject

          Attach a best-effort note carrying the submitted message and any attribution/extra fields with no dedicated Jobber field.

          • enabledboolean

            Attach a best-effort note carrying the message and unmapped attribution (default true). A failure here never loses the client record itself.

      • fieldMapmap

        Submitted form field name → CRM property name. A field with no entry here is dropped, not guessed — an unmapped field never reaches the CRM.

      • trackingFieldsmap

        _ac attribution key (a click-ID param, a UTM param, landingPage, referrer, or ab_variant) → CRM property name. Same drop-if-unmapped rule as fieldMap; a visitor with no _ac cookie maps to no attribution fields at all, never an error.

    • securityobject

      Security integrations (bot protection).

      • turnstileobject
        • siteKeystring

          Cloudflare Turnstile site key (public).

    • legalobject

      Legal pages: which documents exist, where they live, and the facts the generated prose asserts.

      • jurisdictionca | qc

        Which legal template set the generated documents use. Default ca.

      • privacyPolicyobject
        • enabledbooleanrequired
        • urlstring
        • lastUpdatedstring
        • privacyOfficerone of

          Who privacy requests go to. Falls back to contact, then primaryLocation.

          • one ofstring
          • one ofobject
            • namestring
            • emailstring
            • phonestring
            • addressobject

              schema.org PostalAddress field names, so JSON-LD generation is lossless.

              • streetAddressstring

                Street line. Optional: a business with no public street address (home-based, service-area) omits it, and the generated legal documents and JSON-LD simply leave the line out.

              • addressLocalitystringrequired

                City.

              • addressRegionstring

                State / province.

              • postalCodestring
              • addressCountrystringrequired

                Country (ISO 3166-1 alpha-2 preferred).

        • privacyOfficerTitlestring

          Title of the person in charge of the protection of personal information (e.g. "President"). Quebec Law 25 requires the title and contact details to be published; the qc templates print it beside the privacyOfficer contact. Not asserted when absent.

        • impactAssessmentsboolean

          Attests that a privacy impact assessment is carried out before personal information is communicated outside Quebec (Law 25, s. 17). The qc privacy policy states that assurance only when this is true — a fact the config cannot otherwise know, so it is never assumed.

        • retentionstring

          How long personal information is kept, in prose (e.g. "24 months after last contact").

        • processorsarray

          Third parties that receive personal information and cannot be inferred from the rest of the config (payment processors, CRMs, mail senders). Known providers implied by analytics, security and deployment are added automatically — list only the rest.

          • [items]object
            • namestringrequired

              The provider, as a reader would recognise it (e.g. "Stripe").

            • purposestringrequired

              Why they receive it, as a noun phrase that reads after "for" (e.g. "payment processing").

            • countrystring

              Shorthand for the common case where one country is both where they store it and whose laws reach it: asserts BOTH storage: [{ country }] AND operatorCountry. Reads inside a sentence (e.g. "the United States"). When the two differ — a Canadian region operated by a US company — state storage and operatorCountry instead; setting this alongside either is rejected.

            • storagearray

              Where the information actually rests. Feeds the "stored or processed outside of <jurisdiction>" disclosure and nothing else. Several entries are allowed, each optionally scoped to a category of information — which is what makes a Canadian-region tenant holding identity data in the US expressible.

              • [items]object
                • countrystringrequired

                  A country or bloc where this provider stores or processes the information, as it should read in a sentence (e.g. "Canada", "the United States", "the European Union"). Naming the jurisdiction the policy is written for is meaningful: it says this information does not leave it.

                • scopestring

                  Which information is held there, as a noun phrase that reads after "in the case of" (e.g. "account and sign-in information", "mailbox contents"). Omit when this location holds everything the provider receives — a scoped entry claims LESS than an unscoped one, so omitting it is the safe default.

            • operatorCountrystring

              The jurisdiction that can compel this provider to hand the information over — where it is established, or from which it is controlled. Reads after "the laws of" (e.g. "the United States"); a bloc is acceptable. A SEPARATE fact from storage, because privacy law cares about foreign access, not only foreign storage: a Canadian-region service run by a US company is storage: [{ country: "Canada" }] with operatorCountry: "the United States".

            • privacyUrlstring
      • termsOfServiceobject
        • enabledbooleanrequired
        • urlstring
        • lastUpdatedstring | null
        • governingLawstring

          Governing-law clause, in prose (e.g. "the Province of Ontario"). Defaults from the contact address.

      • accessibilityStatementobject

        An accessibility statement generated from this block and site.accessibility (standard, level, high-contrast toggle). It asserts only what is declared: no conformance claim without conformance and testedOn, and acceptedRisk is never printed. Rendered by vitops legal --doc accessibility.

        • enabledbooleanrequired
        • urlstring
        • lastUpdatedstring
        • lawaoda

          The accessibility statute the statement cites. aoda (Accessibility for Ontarians with Disabilities Act) is the only member today. AODA wording is printed only when this is set, so a client outside Ontario never gets a statutory claim that is not theirs.

        • mandatoryboolean

          The organization is legally required to conform (for AODA: 50 or more Ontario employees, or a public sector organization). The statement then says conformance is required rather than a goal. Not inferred from headcount: statute thresholds are not encoded here (see the vitops-accessibility skill for the tiers).

        • conformancefull | partial

          The site is fully or partially conformant with the target in site.accessibility. When unset the statement makes no conformance claim, only a goal. A claim needs testedOn, and full cannot be combined with limitations.

        • testedOnstring

          When the site was last tested. Required for any conformance claim.

        • testingarray of automated | keyboard | screen-reader | external-audit

          How it was tested: automated, keyboard, screen-reader, external-audit.

        • auditorstring

          Who ran an external audit, when testing includes external-audit.

        • limitationsarray

          Real, current accessibility problems. Only list what is true today. An empty or absent list prints "we are not aware of any current issues".

          • [items]object
            • contentstringrequired

              What is affected, in plain words.

            • issuestringrequired

              What goes wrong, in plain words.

            • alternativestring

              How a person gets the same thing another way.

            • plannedFixstring

              When or whether it will be fixed.

        • testedWithobject

          Overrides the browsers and assistive technology the statement lists as tested. The template has defaults; state only what was actually tested.

          • browsersarray of string
          • assistiveTecharray of string
        • formatsarray of string

          Accessible formats offered on request, as plain nouns (large print, accessible PDF, plain text).

        • supportsarray of string

          Communication supports offered (captioning, sign language interpretation).

        • inPersonstring

          Where and when a person can ask in person.

        • responseDaysinteger

          Business days within which a request or piece of feedback is answered. Used for both.

        • contactone of

          Who accessibility requests and feedback go to: an organization.locations key, or an inline contact. Falls back to organization.contact, then the primary location, then the organization email and address. Offer more than an email address.

          • one ofstring
          • one ofobject
            • namestring
            • emailstring
            • phonestring
            • addressobject

              schema.org PostalAddress field names, so JSON-LD generation is lossless.

              • streetAddressstring

                Street line. Optional: a business with no public street address (home-based, service-area) omits it, and the generated legal documents and JSON-LD simply leave the line out.

              • addressLocalitystringrequired

                City.

              • addressRegionstring

                State / province.

              • postalCodestring
              • addressCountrystringrequired

                Country (ISO 3166-1 alpha-2 preferred).

        • feedbackUrlstring

          An accessibility feedback form. Must itself be accessible and never the only route.

        • feedbackOwnerstring

          The role or team that reads feedback (our web manager).

        • policiesarray

          Accessibility policies and plans published on the site. Without a url the title is listed as available on request.

          • [items]object
            • titlestringrequired

              The document name, which becomes the link text and so must make sense on its own (no "click here").

            • urlstring
        • policiesOnRequestboolean

          Policies are available on request but not posted. Ignored when policies is set.

        • reviewCadenceannually | semi-annually | quarterly

          How often the statement is reviewed.

      • cookieConsentobject
        • enabledbooleanrequired
        • typeopt-in | opt-out

          Consent model.

        • positiontop | bottom | center
        • categoriesarray of string
    • iconsmap

      Icon sets and the specific icons to bundle from each (keys are iconify collection names).

      • uistring

        Icon set used for UI chrome (e.g. "lucide", "ph").

      • brandstring

        Icon set used for brand marks.

      • weightstring

        Weight for suffix-weighted sets like Phosphor ("regular" | "bold" | "duotone" | "fill" | "light" | "thin"). Ignored by sets that split weights across collections, e.g. Font Awesome.

      • spriteboolean

        Emit an SVG sprite (icons.svg) alongside the stylesheet, for consumers that cannot run an icon integration (Bricks/WordPress, EmDash renderers).

      • semanticarray of string

        Named semantic icons to include.

      • fa7-solidarray of string
      • fa7-regulararray of string
      • fa7-lightarray of string
      • fa7-thinarray of string
      • fa7-brandsarray of string
      • simple-iconsarray of string
      • material-symbolsarray of string
      • lucidearray of string
      • pharray of string
    • faviconobject

      Favicon/PWA asset generation (consumed by @getvitops/utils favicon tooling).

      • sourcestringrequired

        Source image (SVG/PNG) the favicon set is generated from.

      • lowResSourcestring

        Alternate source for small raster sizes (16/32px) when the main source scales down poorly.

      • namestring

        App name for the generated web manifest. Setting this AND themeColor is what makes the site installable: together they emit site.webmanifest (with display: "standalone") and link it. Neither alone does anything. A marketing site that does not want a browser offering to install it should leave one of them unset.

      • themeColorstring

        Browser UI colour, emitted as <meta name="theme-color"> on every page — so it applies with or without a manifest. Note it is also half the manifest switch: see name.

      • backgroundColorstring

        Background composited under the OPAQUE generated icons — apple-touch-icon.png and the maskable icon-mask.png — which are produced whether or not there is a manifest. Defaults to white, so a dark logo on a transparent source needs this set. It is also the manifest background_color when one is emitted, but it is not manifest-only.

    • deploymentobject

      How the site is built and deployed (platform, commands, output directory) — informational for tooling.

      • platformstring
      • buildCommandstring
      • deployCommandstring
      • outputDirectorystring
      • typestring
      • repostring

        owner/name of this site's GitHub repository. Read by the EmDash design-system-editor plugin route to auto-commit a client's admin edit back to branch — see AGENTS.md's "EmDash plugin as the design-system editing surface" section. Absent means that sync is skipped (the live override still applies); nothing else in this toolchain reads it today.

      • branchstring

        Branch the design-system-editor sync commits to. Default "dev" — never main/production directly; a commit here still needs this repo's own promote PR + admin approval to reach production, the same gate every other change goes through.

Design tokens

Every field of a design system — what designSystem.themes.<name> holds, and what a standalone design-system.json contains on its own.

  • metaobject

    Brand identity for agent-facing output. Consumed only by the design format (DESIGN.md); it emits no CSS and no tokens.

    • namestring

      Brand/system name. Used as the name field and <h1> of the design format's DESIGN.md. Defaults to "Design System".

    • descriptionstring

      One or two sentences on the brand personality and the feeling the UI should evoke — what an agent needs when no token answers the question. Becomes the DESIGN.md description field and opens its Overview section; if omitted, a generic description of the system's mechanics is used instead.

  • colorsobjectrequired

    The colour system (the only required section): palette hues become generated OKLCH scales; roles map semantic roles onto those hues, from which all role tokens and dark mode derive.

    • palettemaprequired

      Palette hues by name. Each becomes an 11-step numeric OKLCH scale (--color-<hue>-50…950). Every ramp shares one fixed lightness ladder, so a step means the same lightness in every hue; only chroma and hue vary. Beyond the outermost authored colour the chroma decays towards a small endpoint value (0.008 light / 0.015 dark) so the near-white and near-black ends keep a whisper of the hue — but that is a ceiling, not a target, so a low-chroma seed stays low and a chroma-0 seed gives a true neutral rather than a tinted one. The ladder is also enforced: if pinned colours leave a ramp non-monotonic (some step darker than the one below it), the build fails rather than shipping a scale whose hover states run backwards.

      • <name>one of

        A palette hue, authored one of two ways: { seed, anchors? } generates an 11-step numeric OKLCH scale (50…950) from the seed, or { tones } supplies a fixed brand kit used verbatim.

        • one ofobject

          Seeded hue: the 11-step scale is GENERATED in OKLCH from seed (anchors pin specific steps).

          • seedstringrequired

            Seed colour (hex or oklch()). An 11-step numeric scale (50…950, tinted near-white → tinted near-black) is generated in OKLCH from it; the seed is preserved at its natural step.

          • anchorsmap

            Step → colour overrides (hex or oklch()) pinned VERBATIM at those steps. Every other step takes its lightness from the shared ladder, with chroma and hue interpolated between the anchors — so an anchor is reproduced exactly and is the only step allowed off the ladder. An explicit anchor overrides the seed at that step; two anchors that resolve to the same step are an error.

          • acknowledgeOffLadderboolean

            Acknowledge that this hue deliberately pins colours off the shared lightness ladder (typically to match an existing brand palette exactly). Silences the per-step "off the ladder" build warnings for THIS hue only; the monotonicity and contrast checks still run.

        • one ofobject

          Fixed hue: authored brand tones used verbatim; no generation.

          • tonesone ofrequired

            Fixed brand kit: authored tones placed verbatim at their nearest steps plus tinted off-white/off-black endpoints; no interpolation. Either an ordered light → dark array or a step → colour map.

            • one ofarray of string
            • one ofmap
          • acknowledgeOffLadderboolean

            Acknowledge that this hue deliberately pins colours off the shared lightness ladder (typically to match an existing brand palette exactly). Silences the per-step "off the ladder" build warnings for THIS hue only; the monotonicity and contrast checks still run.

    • rolesmaprequired

      Maps semantic role names onto palette hues. Role names are ARBITRARY — add a key and the generator emits that role's token set (--color-<target>-<role>[-<variant>] for target bg/text/icon/border), its dark-mode flip and its utility classes. A value is either a hue name ("danger": "rust") or { "hue": …, "kind": "surface" | "chromatic" }. The kind decides the shape of the token set. chromatic (the default, and what the bare-string form means) is a signal colour: its backgrounds split into tints (bg-<role>-x-muted/-muted) and solids (bg-<role>-solid[-bold|-x-bold]), with deliberately no bare bg-<role> — "how loud?" is a question the author answers. surface is a page/panel colour: it has a bare bg-<role> plus the full emphasis range and text scale. Dark mode flips automatically; there is no per-appearance scheme grammar. The solid family and its computed text-on-<role> foreground stay mode-stable so a filled button keeps its identity. Contrast is enforced at build time, in both appearances (WCAG 2 contrast ratio): text, including muted text (text-muted), ≥ 4.5:1 against the plane it sits on, icons and guaranteed boundaries ≥ 3:1, and text-on-<role> ≥ 4.5:1 on the role's solid. So a mockup's muted grey that lands near 4.2:1 fails the build — lighten the anchor on a dark page (or darken it on a light one) until it clears 4.5. site.accessibility.level A or none downgrades a miss to a warning. text-x-muted/text-xx-muted are exempt (placeholders, disabled). A role can move its fill off the default step 600 with solid, and pin the polarity of its on-colour with foreground; a dark-only site (defaultColorScheme: "dark") is only checked in dark. Six roles are a required core, because the shipped framework CSS references them with no fallback: brand-primary, danger, neutral, surface, ui-primary, warning. Conventional additions are ui-secondary/accent, brand-secondary, info and success.

      • <name>one of
        • one ofstring

          A palette hue name. Shorthand for { hue, kind: "chromatic" }.

        • one ofobject
          • huestringrequired

            The palette hue this role resolves to.

          • kindsurface | chromatic

            surface — a page/panel colour: gets a bare bg-<role> plus the full emphasis range and text scale. chromatic (default) — a signal colour: tints and solids only, no bare bg-<role>.

          • solidnumberstring

            Ramp step (100…900) the role's solid family starts from; default 600. bg-<role>-solid is this step and -solid-bold / -solid-x-bold walk one and two rungs DARKER, so solid: 400 gives 400 → 500 → 600. Use it when the brand colour is bright and lives lower on the ramp (a yellow at 400) instead of reaching for raw bg-<hue>-<step> classes. Like the default family it is the same in light and dark. The contrast check still runs on the pair this produces.

          • foregroundlight | dark

            Polarity of text-on-<role>, the foreground for a filled surface. Default is whichever of near-white / near-black has more contrast on the solid. Set "dark" so a bright fill carries dark text (or "light" for the reverse). The build still fails if the forced pair is below WCAG 2 4.5:1.

          • acknowledgeContrastnumber

            Acknowledge a near miss on this role: a pairing that falls short of its WCAG 2 ratio bar by no more than this many ratio points is reported as a build warning instead of failing the build (e.g. 0.1 for a brand colour that lands at 4.4:1 against 4.5:1). A larger shortfall still fails. Applies to this role only.

    • tintobject

      Derive the surface tint of a toned block (callout, card panel, band) from the role's solid instead of its muted step. Off by default. The generator's contrast contract does not cover it: a translucent mix over an arbitrary page is not a pairing it can check, so keep the share low.

      • mixstringrequired

        Share of the role solid in the tint, e.g. "8%". Emits .tone { --tone-tint: color-mix(in oklab, <solid> <mix>, transparent) }.

    • utilitiesarray of bg | text | icon | border | outline | fill | stroke

      Which colour utility-class families to emit (bg-*, text-*, icon-*, border-*, outline-*, fill-*, stroke-*). Defaults to bg, text, icon, border. icon is a separate non-text tier (a glyph may run more vivid than text); outline/fill/stroke have no tokens of their own and alias the border and icon tiers.

  • shadowsmap

    Named shadows → --shadow-<name> tokens and .drop-shadow-<name> utilities. A value is either a string (below) or { "box"?: string, "drop"?: string } for a shadow that needs the two grammars to differ: box is what --shadow-<name> holds and what box-shadow consumers (pattern geometry, --ds-*) read, so it MAY use spread, inset and several layers; drop is emitted as --shadow-<name>-drop and is what .drop-shadow-<name> and the shadow: state shortcut read, so it must obey the drop-shadow() limits. Omit drop and no drop-shadow utility is emitted for that name; omit box and --shadow-<name> takes the drop value. The plain string form keeps working and feeds both consumers from one value. For that string form: each token feeds two consumers with different grammars — box-shadow (pattern geometry, via the --ds-* group aliases) and filter: drop-shadow(…) (the utilities and the shadow: state shortcut) — so values must stay in the intersection: one layer, no spread radius, no inset. drop-shadow() rejects all three, and rejecting them invalidates the whole filter, so the shadow vanishes rather than degrading.

    • <name>one of
      • one ofstring
      • one ofobject
        • boxstring

          box-shadow value: spread, inset and multiple layers allowed.

        • dropstring

          drop-shadow() value: one layer, at most three lengths, no inset.

  • fontsmap

    Raw font stacks by name, emitted as --font-<name> tokens (referenced by typography.families). Stacks only — vitops does not load webfonts. A value here is a font-family list and nothing more: it emits no @font-face, no preload, and no metrics-matched fallback. If a family needs loading, declare it in Astro's fonts: config (astro.config, or the site config's fonts array) and point the token at the family's cssVariable — "display": "var(--font-league-spartan), sans-serif". Installing a @fontsource* package and importing its CSS also works but gives up subsetting, preload and size-adjust/ascent-override fallbacks, so it regresses CLS.

  • typeScaleobject

    Fluid modular TYPE scale → --text-<name> tokens, consumed by typography roles and text-size utilities. Recipe for marketing headings: one ratio cannot serve both a ~16px body and a ~76px hero — a ratio big enough for the hero collapses the small end to unreadable. Extend names upward instead of raising the ratio: keep base ≈ "1rem" at the body step, ratio ≈ 1.2 at maxVw (≈ 1.125–1.15 minRatio at minVw so headings tame on phones), and add names (4xl, 5xl) for the display sizes — the steps above baseStep are what headings read, the steps below it only need xs/sm. Aim the largest named step at your hero (≈ 4.5–5rem at maxVw), then point the display/title roles at those steps rather than hand-writing clamp() in a role. If a step still needs its own value, set that role's size literally — roles may bypass the scale.

    • basestringrequired

      Anchor size (a CSS length, e.g. "1rem") — the value at baseStep.

    • rationumberrequired

      Modular ratio between adjacent steps at large viewports.

    • stepsnumber

      Token count when names is absent (steps are then named 1..steps).

    • namesarray of string

      Step names, smallest → largest (e.g. ["xs","sm","md",…]); each becomes a token suffix.

    • baseStepnumber

      1-based index of the step whose value is base.

    • baselinestring

      Named step used as the fluid pivot / GUI scale centre (defaults to baseStep).

    • fluidobject

      Makes the scale fluid: each step compiles to a clamp() that interpolates from minRatio at minVw to ratio at maxVw.

      • minVwstringrequired

        Viewport width (CSS length) where fluid scaling bottoms out.

      • maxVwstringrequired

        Viewport width (CSS length) where fluid scaling tops out.

      • minRationumberrequired

        Modular ratio at/below minVw (usually < ratio).

  • layoutobject

    Optional layout tokens. Each key you set is emitted as a :root custom property (css, bricks and tailwind formats); each you omit keeps the framework default. Lets the live editor tune widths and region spacing instead of a hand-written override stylesheet.

    • widthsobject

      Content track widths for .centered. In ch so the reading measure stays character-based; keep measure ≤ breakout ≤ spotlight.

      • measurestring

        Reading column → --width-measure (framework default 65ch).

      • breakoutstring

        .breakout track → --width-breakout (default 90ch).

      • spotlightstring

        .spotlight track → --width-spotlight (default 120ch).

      • navstring

        Navigation column beside content → --width-nav (default 16rem).

    • regionSpaceobject

      Vertical padding of .region: padding-block: clamp(min, preferred, max).

      • minstring

        Floor → --region-space-min (default 3rem).

      • preferredstring

        Preferred value → --region-space (default 8vh).

      • maxstring

        Ceiling → --region-space-max (default 8rem).

  • spaceScaleobject

    Fluid modular SPACE scale → --space-<name> tokens, consumed by spacing/gap utilities and vertical rhythm.

    • basestringrequired

      Anchor size (a CSS length, e.g. "1rem") — the value at baseStep.

    • rationumberrequired

      Modular ratio between adjacent steps at large viewports.

    • stepsnumber

      Token count when names is absent (steps are then named 1..steps).

    • namesarray of string

      Step names, smallest → largest (e.g. ["xs","sm","md",…]); each becomes a token suffix.

    • baseStepnumber

      1-based index of the step whose value is base.

    • baselinestring

      Named step used as the fluid pivot / GUI scale centre (defaults to baseStep).

    • fluidobject

      Makes the scale fluid: each step compiles to a clamp() that interpolates from minRatio at minVw to ratio at maxVw.

      • minVwstringrequired

        Viewport width (CSS length) where fluid scaling bottoms out.

      • maxVwstringrequired

        Viewport width (CSS length) where fluid scaling tops out.

      • minRationumberrequired

        Modular ratio at/below minVw (usually < ratio).

  • patternsobject

    Component patterns and their token cascade: defaults → groups → per-pattern overrides, plus shape (radii) and z-index primitives.

    • defaultsmap

      Cascade-wide fallback tokens, emitted as --<prop>-default.

    • radiimap

      Shape primitives, emitted as --br-<name> (referenced by pattern bases).

    • groupsmap

      Group-level tokens, emitted as --<prop>-<group>; patterns opt in via their group key.

      • <name>map

        A CSS declaration block: property → value. Values stay strings (they can be hex, var(), clamp(), keywords, …); the generator, not the schema, interprets them.

    • zmap

      Z-index tiers → --z-tier-<name>.

    • itemsmap

      The component patterns to emit, keyed by name.

      • <name>object

        One component pattern (button, link, badge, card, …): base declarations + interaction states + semantic role variants, resolved through the pattern token cascade.

        • groupstring

          Token-cascade group this pattern belongs to (e.g. tag / control / panel); base declarations resolve through --<prop>-<group> before --<prop>-default.

        • overridesmap

          Per-pattern token overrides, emitted as --<prop>-<name>-group values.

        • elementstring

          Style at element level via zero-specificity :where(<element>) (instead of, or alongside, a class).

        • classstring

          Class name to emit (defaults to the pattern's key when no element is set). Combined with element, the pattern emits one zero-specificity :where(<element>, .<class>) rule so the class works on any tag and any explicit class overrides it.

        • fillboolean

          Whether this pattern is colour-filled (states/roles drive background-color + on-solid text) or text-coloured (they drive color). Defaults to true when base declares a background.

        • default_rolestring

          Semantic colour role applied to the bare/default variant.

        • basemap

          Base CSS declarations. Geometry properties (padding, border-radius, border, box-shadow, font-size) are wrapped in per-pattern override hooks (--p-<name>, --br-<name>, --b-<name>, --ds-<name>, --fs-<name>) so consumers can restyle one pattern by setting one variable.

        • statesmap

          Interaction states (hover / active / focus-visible), each a map of shortcuts: step (intensify the fill or text by n rungs — bg-<role>-solid → -solid-bold, text-<role> → -bold), scale (transform scale), lift (translateY + shadow), shadow (a shadow name → drop-shadow(var(--shadow-<name>)), or true → lift shadow), ring (focus ring), or raw css declarations. Hover rules are wrapped in @media (hover: hover).

        • rolesarray of string

          Semantic colour role variants to emit as <pattern>-<role> classes (fills use the role solid / on-solid tokens).

  • typographyobject

    Typography: family aliases, semantic type roles (→ font-<role> classes), and the bare-element → role mapping.

    • familiesmap

      Role-facing family aliases → CSS font values, usually referencing the top-level fonts tokens (e.g. "var(--font-display)").

    • rolesmap

      Semantic type roles (display, title, heading, body, quote, caption, eyebrow, code, lead, footnote, tag, …), each emitted as a font-<role> class.

      • <name>map

        A bag of CSS-ish keys, each mapped to a declaration plus a --<role>-<sfx> override hook. The recognised set is closed: family, size, weight, style, line-height, tracking (→ letter-spacing), text-transform, text-decoration, text-wrap, color. The canonical spellings of the last four are their full CSS property names (text-transform, text-decoration, …); transform and decoration are accepted as aliases of the first two and normalised to them. Anything unrecognised is ignored, not passed through, so the generator warns rather than emitting it: a silently-dropped key (a typo for text-transform, say) is how title-case navigation reaches production. Note also that style, text-transform, text-decoration and text-wrap are emitted on every role at their identity value (normal/none/none/wrap) whether declared or not, so applying one role class over another fully resets it — which means omitting text-wrap is not "inherit": it emits text-wrap: wrap and cancels the pretty the role would otherwise inherit from a pretty ancestor such as a body-mapped role. Declare it on every role — balance for heading-like roles, pretty for copy, wrap for short single-line labels.

    • headingsmap

      Maps bare elements to type roles so unclassed markup picks up role styling — { "h1": "display", "h2": "heading" }. The key is used verbatim as a selector, so it is not limited to h1…h6: map "body" to your prose role to bind base page typography to the role rather than hand-writing it. That binding is what makes the role editable — a stylesheet that re-states font-family/line-height as literals on body shadows --<role>-ff/--<role>-lh, and the live theme editor then appears to do nothing.

  • animationsobject

    Animation effect + journey classes (pure value layers). The animation engine itself — keyframes, drivers, floats, utilities — is static framework CSS, not configured here.

    • effectsmap

      Effect classes to emit (.fade-in, .reveal-left, …), keyed by class name.

      • <name>object

        A named animation effect class — a pure value layer (--_anim + --<prop>-from/-to) over the static keyframe engine.

        • kfstringrequired

          Keyframe family driving the effect: composite (transform/opacity), paint, or layout.

        • cssmap

          Extra literal declarations merged into the effect class as-is.

        • varsmap

          Effect endpoint variables (--<key>: <value>, e.g. opacity-from, translate-y-to) that override the keyframe defaults.

    • journeysobject

      Multi-part journey classes composed from base building blocks.

      • basemap

        Named journey building blocks: part name → var map.

      • composearray of array

        Combinations of base parts, each emitted as a .<parts>-journey class.

Built with the design system it documents.

@getvitops on npm