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

EmDash blocks

Tier 3 on EmDash — the Portable Text blocks an editor or agent can insert, and which framework pattern each one renders.

Tier 3 on EmDash ships the patterns as blocks in the editor's insert menu, so a non-technical author builds a page from the design system without touching markup. Each block is a thin adapter over the matchingAstro component, so the HTML and the no-JS fallback are written once.

Siblings of the Bricks elementsand the Astro components — chosen by platform, never ranked against each other.

vitops_badges

Pattern
badge
Renders
tier-1 markup
Recommended call
.badge — a STATIC label. Use tag if it is dismissable or editable.
Also in
CSS

vitops_banner

Pattern
banner
Renders
tier-1 markup
Recommended call
.banner; wrap in <wc-dismissable> for a close button that works.
Also in
CSS

vitops_actionLink

Pattern
btn
Renders
tier-1 markup
Recommended call
<button> gets it with no class; .btn carries it to other tags. fill: false, so states drive color.
Also in
CSS

vitops_callout

Pattern
callout
Renders
tier-1 markup
Recommended call
.callout.tone with a .callout__body and .callout__actions. A call-to-action band that stays on the page — NOT banner, which is a dismissible announcement.
Also in
CSS

vitops_cards

Pattern
card
Renders
<Cards />
Recommended call
<Cards> — it emits <wc-cards> itself, so do NOT add your own wrapper. <Subgrid> is the same grid without the click enhancement.
Also in
CSS, Web component, Astro

vitops_carousel

Pattern
carousel
Renders
<Carousel />
Recommended call
<Carousel slides={…} label="…" /> — it emits <wc-carousel> itself, so do NOT add your own wrapper. .carousel is the shell and .carousel__track the scroller; add loop for the cloned infinite strip (autoplay implies it).
Also in
CSS, Web component, Astro, Bricks

vitops_copyButton

Pattern
copy
Renders
tier-1 markup
Recommended call
<wc-copy value="…"> around the text to copy; the element renders its own button and announces "Copied" or "Copy failed" (copied-label / failed-label set the words).
Also in
CSS, Web component, Bricks

vitops_stats

Pattern
counter
Renders
<Counter />
Recommended call
<Counter value="94%" /> — it emits <wc-counter> itself, so do NOT add your own wrapper. The final value is parsed from the fallback text, never passed separately.
Also in
CSS, Web component, Astro

vitops_actionLink

Pattern
cta
Renders
tier-1 markup
Recommended call
.cta on any element — usually <a>, since a CTA navigates. Filled, with role variants.
Also in
CSS

vitops_details

Pattern
details
Renders
<Details />
Recommended call
<Details> — or hand-write <details>. No JS at either tier; ::details-content animates in CSS.
Also in
CSS, Astro

vitops_accordion

Pattern
details
Renders
<Details />
Recommended call
<Details> — or hand-write <details>. No JS at either tier; ::details-content animates in CSS.
Also in
CSS, Astro

vitops_banner

Pattern
dismissable
Renders
tier-1 markup
Recommended call
<wc-dismissable> around any banner/notification containing a [data-dismiss] control.
Also in
CSS, Web component, Bricks

vitops_embed

Pattern
embed
Renders
tier-1 markup
Recommended call
.embed around an <iframe class="embed__frame" data-consent="marketing" data-consent-src="…"> with NO src, and a .embed__placeholder. The consent runtime assigns the address after the grant; the placeholder holds a real link. Never give the iframe a live src.
Also in
CSS

vitops_entries

Pattern
entries
Renders
<Entries />
Recommended call
<Entries entries={[{ heading, pairs: [{ term, value }] }]} /> — it emits <wc-entries> itself, so do NOT add your own wrapper. By hand: <wc-entries> around <h3> + <dl> pairs. The tier-2 exemplar: semantic pairs with no JS, a table with it.
Also in
CSS, Web component, Astro, Bricks

vitops_form

Pattern
forms
Renders
<ContactForm />
Recommended call
Wrap text controls in .form-group or .input-group — a bare <input> gets browser defaults. For a contact or enquiry form use <ContactForm /> (name, email, phone, message, or fields={[{ label, type, required }]}): a real <form method="post"> to createConversionRoute() with the honeypot and, when site.security.turnstile.siteKey is set, Turnstile. Do not hand-write that form: the route drops a field named phone (it is the tel-click payload) and treats website/honeypot as bot traps, and <ContactForm> submits a phone as tel. In EmDash, vitops_form is the same form with editor-defined fields.
Also in
CSS, Astro

vitops_gallery

Pattern
gallery
Renders
<Gallery />
Recommended call
<Gallery images={…} label="…" /> — it emits <wc-gallery> wrapping a <Carousel /> (which emits its own <wc-carousel>) itself, so do NOT add your own wrapper around either. Each thumbnail is a plain <a href="#slide-id"> into the carousel's own <li id="slide-id"> inside a single <dialog class="lightbox-dialog"> (see lightbox), so it is a working modal lightbox — WITH prev/next — before any script runs. Stepping between images is the carousel's job, not the gallery's.
Also in
CSS, Web component, Astro

vitops_imageCompare

Pattern
image-compare
Renders
tier-1 markup
Recommended call
<wc-image-compare> with two images. Both are visible without JS.
Also in
CSS, Web component, Bricks

vitops_actionLink

Pattern
link
Renders
tier-1 markup
Recommended call
<a> gets it at zero specificity; .link for other tags. .stretched-link makes one link cover its positioned ancestor (whole-card click, no JS — but the card text stops being selectable); .raised lifts content back above that overlay.
Also in
CSS

vitops_location

Pattern
location-pages
Renders
<LocationPage />, <ServicePage />
Recommended call
<LocationPage location={…} defaultLocale> and <ServicePage service={…} defaultLocale providerName>: one organization.locations / organization.services entry as a page (name, address, hours table, photos, offers) plus its LocalBusiness / Service JSON-LD, with a slot for your own copy. In EmDash, vitops_location places one location in content (a build-time import of organization.locations, virtual:getvitops/organization, served by vitops()). Nothing scaffolds the route: write src/pages/locations/[slug].astro with getStaticPaths() over the record and resolveSlug() from @getvitops/astro/schemas/graph-adapters.ts (the idiom is in LocationPage's docblock). The key of the record, not the slug, is the entry's identity.
Also in
Astro

vitops_logos

Pattern
logos
Renders
tier-1 markup
Recommended call
<ul class="logos"> of .logos__item images (alt text = the name), or .logos__name text when there is no image. A still grid; marquee is the scrolling version.
Also in
CSS

vitops_marquee

Pattern
marquee
Renders
<Marquee />
Recommended call
<Marquee> around one .marquee__content, or <wc-marquee> by hand. Scrolls via CSS alone; JS only removes the seam.
Also in
CSS, Web component, Astro

vitops_testimonial

Pattern
pull-quote
Renders
tier-1 markup
Recommended call
.pull-quote. Note the type role quote is separate. In EmDash, vitops_testimonial is a quote with attribution and optional stars; its Review JSON-LD is opt-in, because Google ignores reviews a business writes about itself.
Also in
CSS

vitops_reviews

Pattern
review
Renders
<ReviewCard />
Recommended call
<ReviewCard review={…} /> — one card, from vitops reviews' .vitops/reviews.json cache. Put several inside <Carousel> slides or <Marquee> items; there is no group component and no wc-review. In EmDash, vitops_reviews is that whole row: it reads the cache as a build-time import (virtual:getvitops/reviews, served by vitops(); empty when the file is absent), picks reviews with selectReviews(), and lays them out as a grid, carousel or marquee. A new review appears after vitops reviews is re-run, committed and the site rebuilt.
Also in
CSS, Astro

vitops_section

Pattern
section
Renders
tier-1 markup
Recommended call
.section.region > .centered > .section__inner holding .section__head (kicker, heading, sub) and .section__body. .section--split puts the head beside the body when wide. .section--backdrop with a .section__backdrop image puts a decorative photo behind the band, darkened by the tone solid. In EmDash it is a block TYPE (vitops_section) with a Portable Text body that accepts any other block — see vitopsBlockTypes(). In a Portable Text field, where a block cannot hold blocks, vitops_band is a marker that opens a section around the blocks after it; render the field with <VitopsContent> (@getvitops/emdash/astro).
Also in
CSS

vitops_band

Pattern
section
Renders
tier-1 markup
Recommended call
.section.region > .centered > .section__inner holding .section__head (kicker, heading, sub) and .section__body. .section--split puts the head beside the body when wide. .section--backdrop with a .section__backdrop image puts a decorative photo behind the band, darkened by the tone solid. In EmDash it is a block TYPE (vitops_section) with a Portable Text body that accepts any other block — see vitopsBlockTypes(). In a Portable Text field, where a block cannot hold blocks, vitops_band is a marker that opens a section around the blocks after it; render the field with <VitopsContent> (@getvitops/emdash/astro).
Also in
CSS

vitops_nav

Pattern
sitenav
Renders
<SiteNav />, <SiteFooter />
Recommended call
.sitenav with --bp-* and a drawer direction. <details> + Invoker Commands, no JS. In Astro: <SiteNav {...await loadNavMenus(getMenu)} /> renders EmDash menu primary (the default: dropdowns from md, drawer below) and, if they exist, primary-mobile (depth-1 nav below md) and primary-mega (mega panels from xl) — adding the menu in the admin is the whole change. An item's titleAttr is its description. Per-site behaviour lives in site.chrome.nav — <SiteNav {...nav} {...resolveNavOptions(site)} /> sets compact (drawer | dropdown: an anchored, columnar panel under the toggle), drawerSide, the breakpoints and depths. For a mega panel's featured column pass megaPanel={VitopsMegaPanel} (@getvitops/emdash/astro): it renders the widget area mega-<item slug> (or the item's mega-area:<name> class) and nothing when there is none. <SiteFooter sitemap legal name config={site}> renders footer-sitemap + footer-legal + the copyright line, plus organization.logo and a contact column (address, tel:/mailto: links, one location's hours, profile links) from the same config: nothing to hand-write, contact={false} / logo={false} to omit, a brand slot to replace the logo, location to pick whose hours. For a menu inside page content (a site map, a section's links, footer-style columns) use .navlist — plain nested lists, --inline / --columns — or, in EmDash, the vitops_nav block (menu, layout list|inline|columns|sitenav, depth 1–3, heading, tone). Name each <nav> uniquely: the header is Primary and the footer Site map / Legal, and the block never reuses those.
Also in
CSS, Astro, Bricks

vitops_hero

Pattern
split
Renders
tier-1 markup
Recommended call
.split plus a ratio class. Pure CSS; md-split-1-2 for the responsive form.
Also in
CSS, Bricks

vitops_stats

Pattern
stats
Renders
tier-1 markup
Recommended call
<ul class="stats"> of .stats__item, each figure a <Counter>. .stats--tiles adds .stats__group and .stats__delta; data-state="up|down" colours the delta through the success/danger roles.
Also in
CSS

vitops_steps

Pattern
steps
Renders
tier-1 markup
Recommended call
<ol class="steps tone"> of <li class="steps__item"> each holding a .steps__body with a real heading. The number is a CSS counter and the connector line a pseudo-element; .steps--row runs it sideways when wide; .steps--cards puts each step in a card and .steps--animated draws the connector on scroll. The marker size and card geometry are the steps entry of patterns.items (--steps-marker-size, the content group tokens).
Also in
CSS

vitops_pricing

Pattern
subgrid
Renders
<Subgrid />
Recommended call
<Subgrid> — emits <ul class="subgrid" role="list">; author <li class="card subgrid-card"> items yourself, so tranches align across the set.
Also in
CSS, Astro

vitops_tabs

Pattern
tabs
Renders
<Tabs />
Recommended call
<Tabs items={[{ label, body }]} />, or <Tabs> around your own <section><h3>…</h3>…</section> panels. With no JS every panel is readable under its heading. orientation="vertical" runs the list down the side; hash writes the selected panel into the URL; selected sets the first tab. Do NOT wrap it in <wc-tabs>: it emits its own. By hand: <wc-tabs class="tabs"> around <section>s that each open with a heading.
Also in
CSS, Web component, Astro

vitops_tree

Pattern
tree
Renders
<Tree />
Recommended call
<Tree items={…} /> — it emits <wc-tree> itself, so do NOT add your own wrapper. In EmDash, vitops_tree takes an indented outline (one node per line, indent to nest, | badge for a chip) and builds the tree from it; it never sets descriptionHtml.
Also in
CSS, Web component, Astro

vitops_form

Pattern
turnstile
Renders
tier-1 markup
Recommended call
<wc-turnstile sitekey="…"> inside a <form>, around a paragraph saying the spam check needs JavaScript. Pair it with createConversionRoute({ turnstile }); the vitops_form block does both.
Also in
CSS, Web component

vitops_widgetArea

Pattern
widget-area
Renders
tier-1 markup
Recommended call
Editor-managed regions: <VitopsWidgetArea name="footer-columns" /> (@getvitops/emdash/astro) renders an area from Widgets in the admin — titled groups, a menu as a labelled <nav>, content as Portable Text. In a page, the vitops_widgetArea block places one. An area holding a core:* component widget falls back to EmDash's own renderer, and an area cannot hold another. Prerendered pages show an edit after the next deploy.
Also in
CSS

Web components with no block, on purpose

Every shipped wc-* element has a block above or a stated reason below; the manifest's emdashExempt field is the source and a test fails if one is silent.

  • wc-color-field — configuration tooling for a site owner, emitted by `renderProjectionHtml` rather than placed by an editor
  • wc-color-scheme-toggle — site chrome (header/footer), not page content; belongs in the nav/layout
  • wc-combobox — a form control, composed inside a form (vitops_form) rather than placed as page content
  • wc-config-form — configuration tooling for a site owner, not page content a visitor reads or an editor places
  • wc-config-preview — configuration tooling for a site owner, not page content a visitor reads or an editor places
  • wc-consent — site chrome: the layout renders `<CookieConsent />` once; an editor-placed copy would duplicate the gate
  • wc-contrast-toggle — site chrome (masthead/footer), not page content: it must be on every page to count as a WCAG G174 alternative, which a per-page editor block cannot guarantee
  • wc-field — a form control wrapper, composed inside a form (vitops_form) rather than placed as page content
  • wc-format — inline text formatting, used inside other content rather than placed as a block of its own
  • wc-multifield — repeats rows a visitor adds at submit time (several phone numbers, guests); `vitops_form` has a fixed, editor-defined field list and no such field type
  • wc-notifications — site chrome: the layout renders one `<Notifications />` in the same place on every page, like `<CookieConsent />`; an editor-placed copy would duplicate the region
  • wc-range — a form control, composed inside a form (vitops_form) rather than placed as page content
  • wc-split-panel — app UI (resizable panes), not editorial content; an editor does not drag-resize a published page
  • wc-stepper — onboarding and configuration flow for a site owner, not page content an editor places
  • wc-theme-editor — tooling, not content; it is mounted in the EmDash admin by `designSystemEditor`, never in a page
  • tooltip — an affordance on a control, not content an editor places: a block would need the control it explains

Repeating patterns (cards, gallery, accordion, marquee, carousel slides) are repeater fields. A pattern that must contain other blocks cannot be a Portable Text block: vitops_sectionis a block type with a Portable Text body instead — see@getvitops/emdash.

Built with the design system it documents.

@getvitops on npm