Skip to content
ui8kit

Templates / Support

Support: Home

5 sections between the top bar and the footer of the template.

Install

The blocks of this page, top bar and footer included:

npx ui8kit add nav-bar page-intro support-channels media-list faq-list contact-form sitemap-footer

Blocks: nav-bar, page-intro, support-channels, media-list, faq-list, contact-form, sitemap-footer

Preview

The sections of the page; the top bar and the footer have their own block pages.

How can we help?

Pick a channel, read the answers or write to us.

Other ways to reach us

Email us

Answers within one working day.

Open

Live chat

Talk to a person, weekdays 9 to 18.

Open

Read the docs

Guides and examples for every block.

Open
Categories

Browse by category

Every category with its count, so you know where to look.

Browse by category

Questions

Is there a free plan?

Yes. Solo is free and has no time limit.

How fast is support?

Team answers within one working day, Scale within four hours.

Contact us

Tell us what you need and a person will answer within one working day.

Email us

Answers within one working day.

Live chat

Talk to a person, weekdays 9 to 18.

Read the docs

Guides and examples for every block.

Code

The page as generated in the source monorepo (commit 6c20aba1e4be). It imports the blocks from the UI package and its texts and sample data from the app package; after installing the blocks, replace those imports with your own content.

Point the CLI at this runtime once, then add the blocks:

npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdn
npx ui8kit add nav-bar page-intro support-channels media-list faq-list contact-form sitemap-footer
HomePage.svelte
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-support-center.json -->
<!-- The home page of ThemeSupportCenterScreen. -->
<script lang="ts">
  import {
    ContactForm,
    FaqList,
    MediaList,
    PageIntro,
    SupportChannels,
    tpl,
    uniqLabel,
    type Category,
    type Faq,
    type FaqTab,
    type Feature,
    type Post,
    type Review,
    type Stat,
    type Step,
  } from "@ui8kit/svelte-ui";
  import { fromCodex } from "@ui8kit/app-shared/runtime/core";
  import { ui } from "@ui8kit/app-shared/content";
  import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
  import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
  import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
  import { posts as postsEntries } from "@ui8kit/app-shared/data/posts";
  import { categories as categoriesEntries } from "@ui8kit/app-shared/data/categories";
  import { reviews as reviewsEntries } from "@ui8kit/app-shared/data/reviews";
  import { faq as faqEntries } from "@ui8kit/app-shared/data/faq";
  import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";

  const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
  const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
  const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
  const POSTS_FIELDS = {
    "id": "id",
    "title": "title.en",
    "excerpt": "metadata.excerpt.value",
    "category": "metadata.category.value",
    "author": "metadata.author.value",
    "date": "metadata.date.value",
    "minutes": "metadata.minutes.value",
    "icon": "metadata.icon.value",
  } as const;
  const CATEGORIES_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value","count":"metadata.count.value"} as const;
  const REVIEWS_FIELDS = {
    "id": "id",
    "title": "title.en",
    "author": "metadata.author.value",
    "rating": "metadata.rating.value",
    "text": "metadata.text.value",
    "date": "metadata.date.value",
  } as const;
  const FAQ_FIELDS = {"id":"id","question":"title.en","answer":"metadata.answer.value","category":"metadata.category.value"} as const;
  const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;

  const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
  const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
  const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
  const posts = fromCodex<Post>(postsEntries, POSTS_FIELDS);
  const categories = fromCodex<Category>(categoriesEntries, CATEGORIES_FIELDS);
  const reviews = fromCodex<Review>(reviewsEntries, REVIEWS_FIELDS);
  const faq = fromCodex<Faq>(faqEntries, FAQ_FIELDS);
  const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);
</script>

<PageIntro
  id="home-pagehead"
  title={ui.pages.supportCenter.home.title}
  text={ui.pages.supportCenter.home.text}
  cta={ui.pages.supportCenter.home.cta}
  href="#/faq"
  align="center"
  tone="default"
  density="default"
/>
<SupportChannels
  id="home-channels"
  title={ui.support.channels.title}
  channels={channels}
  open={ui.support.channels.open}
  layout="grid"
  cols="1-3"
  action="link"
  tone="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.channels, ui.blocks.variants.channels.grid))}
/>
<MediaList
  id="home-medialist"
  title={ui.marketing.mediaList.topics.title}
  lead={ui.marketing.mediaList.topics.lead}
  badge={ui.marketing.mediaList.topics.badge}
  labels={{
    list: ui.marketing.mediaList.topics.list,
    count: ui.marketing.mediaList.count,
    minutes: ui.content.labels.minutes,
    featured: ui.marketing.mediaList.featured,
    rating: ui.testimonials.rating,
    figures: ui.marketing.mediaList.supportFigures,
  }}
  actions={{ mode: "one", cta: ui.marketing.mediaList.topics.cta, href: "#/start" }}
  extras={{ stats, steps, posts, topics: categories, channels, reviews }}
  layout="topics"
  mediaSide="end"
  tone="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.medialist, ui.blocks.variants.medialist.topicRows))}
/>
<FaqList
  id="home-faq"
  title={ui.site.pricing.faqTitle}
  items={faq}
  search={{ label: ui.vibe.faq.search, query: "", mode: "none" }}
  filter={{ tabs: faqtabs, label: ui.vibe.faq.tabs, category: "billing", mode: "categories" }}
  layout="accordion"
  cols="1"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faq, ui.blocks.variants.faq.tabs))}
/>
<ContactForm
  id="home-contact"
  title={ui.support.contact.title}
  text={ui.support.contact.text}
  labels={ui.support.contact.labels}
  details={channels}
  layout="split"
  fields="full"
  terms="hide"
  page="section"
  tone="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.contact, ui.blocks.variants.contact.split))}
/>

Point the CLI at this runtime once, then add the blocks:

npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdn
npx ui8kit add nav-bar page-intro support-channels media-list faq-list contact-form sitemap-footer
HomePage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-support-center.json
// The home page of ThemeSupportCenterScreen.

import {
  ContactForm,
  FaqList,
  MediaList,
  PageIntro,
  SupportChannels,
  tpl,
  uniqLabel,
  type Category,
  type Faq,
  type FaqTab,
  type Feature,
  type Post,
  type Review,
  type Stat,
  type Step,
} from "@ui8kit/react-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
import { posts as postsEntries } from "@ui8kit/app-shared/data/posts";
import { categories as categoriesEntries } from "@ui8kit/app-shared/data/categories";
import { reviews as reviewsEntries } from "@ui8kit/app-shared/data/reviews";
import { faq as faqEntries } from "@ui8kit/app-shared/data/faq";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";

const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const POSTS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "excerpt": "metadata.excerpt.value",
  "category": "metadata.category.value",
  "author": "metadata.author.value",
  "date": "metadata.date.value",
  "minutes": "metadata.minutes.value",
  "icon": "metadata.icon.value",
} as const;
const CATEGORIES_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value","count":"metadata.count.value"} as const;
const REVIEWS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "author": "metadata.author.value",
  "rating": "metadata.rating.value",
  "text": "metadata.text.value",
  "date": "metadata.date.value",
} as const;
const FAQ_FIELDS = {"id":"id","question":"title.en","answer":"metadata.answer.value","category":"metadata.category.value"} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;

const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
const posts = fromCodex<Post>(postsEntries, POSTS_FIELDS);
const categories = fromCodex<Category>(categoriesEntries, CATEGORIES_FIELDS);
const reviews = fromCodex<Review>(reviewsEntries, REVIEWS_FIELDS);
const faq = fromCodex<Faq>(faqEntries, FAQ_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);

export function HomePage() {
  return (
    <>
      <PageIntro
        id="home-pagehead"
        title={ui.pages.supportCenter.home.title}
        text={ui.pages.supportCenter.home.text}
        cta={ui.pages.supportCenter.home.cta}
        href="#/faq"
        align="center"
        tone="default"
        density="default"
      />
      <SupportChannels
        id="home-channels"
        title={ui.support.channels.title}
        channels={channels}
        open={ui.support.channels.open}
        layout="grid"
        cols="1-3"
        action="link"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.channels, ui.blocks.variants.channels.grid))}
      />
      <MediaList
        id="home-medialist"
        title={ui.marketing.mediaList.topics.title}
        lead={ui.marketing.mediaList.topics.lead}
        badge={ui.marketing.mediaList.topics.badge}
        labels={{
          list: ui.marketing.mediaList.topics.list,
          count: ui.marketing.mediaList.count,
          minutes: ui.content.labels.minutes,
          featured: ui.marketing.mediaList.featured,
          rating: ui.testimonials.rating,
          figures: ui.marketing.mediaList.supportFigures,
        }}
        actions={{ mode: "one", cta: ui.marketing.mediaList.topics.cta, href: "#/start" }}
        extras={{ stats, steps, posts, topics: categories, channels, reviews }}
        layout="topics"
        mediaSide="end"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.medialist, ui.blocks.variants.medialist.topicRows))}
      />
      <FaqList
        id="home-faq"
        title={ui.site.pricing.faqTitle}
        items={faq}
        search={{ label: ui.vibe.faq.search, query: "", mode: "none" }}
        filter={{ tabs: faqtabs, label: ui.vibe.faq.tabs, category: "billing", mode: "categories" }}
        layout="accordion"
        cols="1"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faq, ui.blocks.variants.faq.tabs))}
      />
      <ContactForm
        id="home-contact"
        title={ui.support.contact.title}
        text={ui.support.contact.text}
        labels={ui.support.contact.labels}
        details={channels}
        layout="split"
        fields="full"
        terms="hide"
        page="section"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.contact, ui.blocks.variants.contact.split))}
      />
    </>
  );
}

Point the CLI at this runtime once, then add the blocks:

npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdn
npx ui8kit add nav-bar page-intro support-channels media-list faq-list contact-form sitemap-footer
HomePage.vue
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-support-center.json -->
<!-- The home page of ThemeSupportCenterScreen. -->
<script setup lang="ts">
import {
  ContactForm,
  FaqList,
  MediaList,
  PageIntro,
  SupportChannels,
  tpl,
  uniqLabel,
  type Category,
  type Faq,
  type FaqTab,
  type Feature,
  type Post,
  type Review,
  type Stat,
  type Step,
} from "@ui8kit/vue-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
import { posts as postsEntries } from "@ui8kit/app-shared/data/posts";
import { categories as categoriesEntries } from "@ui8kit/app-shared/data/categories";
import { reviews as reviewsEntries } from "@ui8kit/app-shared/data/reviews";
import { faq as faqEntries } from "@ui8kit/app-shared/data/faq";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";

const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const POSTS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "excerpt": "metadata.excerpt.value",
  "category": "metadata.category.value",
  "author": "metadata.author.value",
  "date": "metadata.date.value",
  "minutes": "metadata.minutes.value",
  "icon": "metadata.icon.value",
} as const;
const CATEGORIES_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value","count":"metadata.count.value"} as const;
const REVIEWS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "author": "metadata.author.value",
  "rating": "metadata.rating.value",
  "text": "metadata.text.value",
  "date": "metadata.date.value",
} as const;
const FAQ_FIELDS = {"id":"id","question":"title.en","answer":"metadata.answer.value","category":"metadata.category.value"} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;

const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
const posts = fromCodex<Post>(postsEntries, POSTS_FIELDS);
const categories = fromCodex<Category>(categoriesEntries, CATEGORIES_FIELDS);
const reviews = fromCodex<Review>(reviewsEntries, REVIEWS_FIELDS);
const faq = fromCodex<Faq>(faqEntries, FAQ_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);
</script>

<template>
  <PageIntro
    id="home-pagehead"
    :title="ui.pages.supportCenter.home.title"
    :text="ui.pages.supportCenter.home.text"
    :cta="ui.pages.supportCenter.home.cta"
    href="#/faq"
    align="center"
    tone="default"
    density="default"
  />
  <SupportChannels
    id="home-channels"
    :title="ui.support.channels.title"
    :channels="channels"
    :open="ui.support.channels.open"
    layout="grid"
    cols="1-3"
    action="link"
    tone="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.channels, ui.blocks.variants.channels.grid))"
  />
  <MediaList
    id="home-medialist"
    :title="ui.marketing.mediaList.topics.title"
    :lead="ui.marketing.mediaList.topics.lead"
    :badge="ui.marketing.mediaList.topics.badge"
    :labels="{
      list: ui.marketing.mediaList.topics.list,
      count: ui.marketing.mediaList.count,
      minutes: ui.content.labels.minutes,
      featured: ui.marketing.mediaList.featured,
      rating: ui.testimonials.rating,
      figures: ui.marketing.mediaList.supportFigures,
    }"
    :actions="{ mode: 'one', cta: ui.marketing.mediaList.topics.cta, href: '#/start' }"
    :extras="{ stats, steps, posts, topics: categories, channels, reviews }"
    layout="topics"
    mediaSide="end"
    tone="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.medialist, ui.blocks.variants.medialist.topicRows))"
  />
  <FaqList
    id="home-faq"
    :title="ui.site.pricing.faqTitle"
    :items="faq"
    :search="{ label: ui.vibe.faq.search, query: '', mode: 'none' }"
    :filter="{ tabs: faqtabs, label: ui.vibe.faq.tabs, category: 'billing', mode: 'categories' }"
    layout="accordion"
    cols="1"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faq, ui.blocks.variants.faq.tabs))"
  />
  <ContactForm
    id="home-contact"
    :title="ui.support.contact.title"
    :text="ui.support.contact.text"
    :labels="ui.support.contact.labels"
    :details="channels"
    layout="split"
    fields="full"
    terms="hide"
    page="section"
    tone="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.contact, ui.blocks.variants.contact.split))"
  />
</template>

Point the CLI at this runtime once, then add the blocks:

npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdn
npx ui8kit add nav-bar page-intro support-channels media-list faq-list contact-form sitemap-footer
HomePage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-support-center.json
// The home page of ThemeSupportCenterScreen.

import {
  ContactForm,
  FaqList,
  MediaList,
  PageIntro,
  SupportChannels,
  tpl,
  uniqLabel,
  type Category,
  type Faq,
  type FaqTab,
  type Feature,
  type Post,
  type Review,
  type Stat,
  type Step,
} from "@ui8kit/solid-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
import { posts as postsEntries } from "@ui8kit/app-shared/data/posts";
import { categories as categoriesEntries } from "@ui8kit/app-shared/data/categories";
import { reviews as reviewsEntries } from "@ui8kit/app-shared/data/reviews";
import { faq as faqEntries } from "@ui8kit/app-shared/data/faq";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";

const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const POSTS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "excerpt": "metadata.excerpt.value",
  "category": "metadata.category.value",
  "author": "metadata.author.value",
  "date": "metadata.date.value",
  "minutes": "metadata.minutes.value",
  "icon": "metadata.icon.value",
} as const;
const CATEGORIES_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value","count":"metadata.count.value"} as const;
const REVIEWS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "author": "metadata.author.value",
  "rating": "metadata.rating.value",
  "text": "metadata.text.value",
  "date": "metadata.date.value",
} as const;
const FAQ_FIELDS = {"id":"id","question":"title.en","answer":"metadata.answer.value","category":"metadata.category.value"} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;

const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
const posts = fromCodex<Post>(postsEntries, POSTS_FIELDS);
const categories = fromCodex<Category>(categoriesEntries, CATEGORIES_FIELDS);
const reviews = fromCodex<Review>(reviewsEntries, REVIEWS_FIELDS);
const faq = fromCodex<Faq>(faqEntries, FAQ_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);

export function HomePage() {
  return (
    <>
      <PageIntro
        id="home-pagehead"
        title={ui.pages.supportCenter.home.title}
        text={ui.pages.supportCenter.home.text}
        cta={ui.pages.supportCenter.home.cta}
        href="#/faq"
        align="center"
        tone="default"
        density="default"
      />
      <SupportChannels
        id="home-channels"
        title={ui.support.channels.title}
        channels={channels}
        open={ui.support.channels.open}
        layout="grid"
        cols="1-3"
        action="link"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.channels, ui.blocks.variants.channels.grid))}
      />
      <MediaList
        id="home-medialist"
        title={ui.marketing.mediaList.topics.title}
        lead={ui.marketing.mediaList.topics.lead}
        badge={ui.marketing.mediaList.topics.badge}
        labels={{
          list: ui.marketing.mediaList.topics.list,
          count: ui.marketing.mediaList.count,
          minutes: ui.content.labels.minutes,
          featured: ui.marketing.mediaList.featured,
          rating: ui.testimonials.rating,
          figures: ui.marketing.mediaList.supportFigures,
        }}
        actions={{ mode: "one", cta: ui.marketing.mediaList.topics.cta, href: "#/start" }}
        extras={{ stats, steps, posts, topics: categories, channels, reviews }}
        layout="topics"
        mediaSide="end"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.medialist, ui.blocks.variants.medialist.topicRows))}
      />
      <FaqList
        id="home-faq"
        title={ui.site.pricing.faqTitle}
        items={faq}
        search={{ label: ui.vibe.faq.search, query: "", mode: "none" }}
        filter={{ tabs: faqtabs, label: ui.vibe.faq.tabs, category: "billing", mode: "categories" }}
        layout="accordion"
        cols="1"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faq, ui.blocks.variants.faq.tabs))}
      />
      <ContactForm
        id="home-contact"
        title={ui.support.contact.title}
        text={ui.support.contact.text}
        labels={ui.support.contact.labels}
        details={channels}
        layout="split"
        fields="full"
        terms="hide"
        page="section"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.contact, ui.blocks.variants.contact.split))}
      />
    </>
  );
}

Go templ is not installed by the CLI. Copy the files below into your Go module, together with these helper files from packages/templ/ui of the source (package utils):

  • utils/cn_merge.go
  • utils/dyn.go
  • utils/expr.go
  • utils/heading.go
  • utils/tags.go
  • utils/utils.go
  • utils/variants_json.go
blocks/nav-bar.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/nav-bar.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
	linkplain "github.com/codegen-x/ui8kit/packages/templ/ui/ui/link-plain"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// NavBarProps are the props of NavBar; the values are the JSON shapes of the TypeScript props.
type NavBarProps struct {
	Label any `json:"label"`
	Brand any `json:"brand"`
	Links any `json:"links"`
	Current any `json:"current"`
	Actions any `json:"actions"`
	Search any `json:"search"`
	Tone any `json:"tone"`
	Layout any `json:"layout"`
	Over any `json:"over"`
	Skip any `json:"skip"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
templ NavBar(p NavBarProps) {
	{{ vLabel := p.Label }}
	{{ vBrand := p.Brand }}
	{{ vLinks := p.Links }}
	{{ vCurrent := uiutils.Def(p.Current, "") }}
	{{ vActions := p.Actions }}
	{{ vSearch := p.Search }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLayout := uiutils.Def(p.Layout, "inline") }}
	{{ vOver := uiutils.Def(p.Over, "none") }}
	{{ vSkip := p.Skip }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@block.Block(block.BlockProps{Tag: "header", Class: uiutils.S(uiutils.Cnv("relative", uiutils.Cond(uiutils.T(uiutils.Eq(vTone, "inverse")), "border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background", "border-b border-border bg-background"), uiutils.Cond(uiutils.T(uiutils.Eq(vOver, "media")), "isolate overflow-hidden border-0 bg-transparent", ""))), Attrs: uiutils.Attrs("data-testid", "nav-bar", "data-layout", vLayout, "data-tone", vTone, "aria-label", vLandmarkLabel)}) {
		@OverMedia(OverMediaProps{On: uiutils.Eq(vOver, "media"), Alt: vBrand})
		if uiutils.T(vSkip) {
			@linkplain.LinkPlain(linkplain.LinkPlainProps{Href: "#main-content", Class: "sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border", Attrs: uiutils.Attrs("data-testid", "skip-link")}) {
				{ uiutils.Text(vSkip) }
			}
		}
		@container.Container(container.ContainerProps{Class: "mx-auto w-full max-w-6xl px-4", Attrs: uiutils.Attrs("data-slot", "container")}) {
			@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-wrap items-center justify-between gap-4", "py-4"))}) {
				if uiutils.Eq(vLayout, "split") {
					@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel), Class: uiutils.Cnv("w-full"), Testid: "site-nav"}) {
						@grid.Grid(grid.GridProps{Cols: "1-3", Class: "w-full items-center gap-4"}) {
							@box.Box(box.BoxProps{Class: "md:justify-self-start"}) {
								@NavLinks(NavLinksProps{Links: vLinks, Current: vCurrent, Side: "left"})
							}
							@box.Box(box.BoxProps{Class: "text-center"}) {
								@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-lg font-medium", Attrs: uiutils.Attrs("data-testid", "brand")}) {
									{ uiutils.Text(vBrand) }
								}
							}
							@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "end", Class: "flex-wrap md:justify-self-end"}) {
								@box.Box(box.BoxProps{}) {
									@NavLinks(NavLinksProps{Links: vLinks, Current: vCurrent, Side: "right"})
								}
								@NavActions(NavActionsProps{Login: uiutils.Get(vActions, "login"), LoginHref: uiutils.Get(vActions, "loginHref"), Cta: uiutils.Get(vActions, "cta"), CtaHref: uiutils.Get(vActions, "href"), Actions: uiutils.Get(vActions, "mode"), Tone: vTone, ThemeLabel: uiutils.Get(vActions, "themeLabel")})
							}
						}
					}
				} else {
					@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-lg font-medium", Attrs: uiutils.Attrs("data-testid", "brand")}) {
						{ uiutils.Text(vBrand) }
					}
					if uiutils.Eq(vLayout, "search") {
						@SearchPalette(SearchPaletteProps{Label: uiutils.Get(vSearch, "label"), Shortcut: uiutils.Get(vSearch, "shortcut")})
					}
					@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel), Class: uiutils.Cnv("order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0"), Testid: "site-nav"}) {
						@NavLinks(NavLinksProps{Links: vLinks, Current: vCurrent})
					}
					@NavActions(NavActionsProps{Login: uiutils.Get(vActions, "login"), LoginHref: uiutils.Get(vActions, "loginHref"), Cta: uiutils.Get(vActions, "cta"), CtaHref: uiutils.Get(vActions, "href"), Actions: uiutils.Get(vActions, "mode"), Tone: vTone, ThemeLabel: uiutils.Get(vActions, "themeLabel")})
				}
			}
		}
	}
}
blocks/page-intro.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/page-intro.json

package blocks

import (
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// PageIntroProps are the props of PageIntro; the values are the JSON shapes of the TypeScript props.
type PageIntroProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Text any `json:"text"`
	Cta any `json:"cta"`
	Href any `json:"href"`
	Level any `json:"level"`
	Align any `json:"align"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
templ PageIntro(p PageIntroProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vText := p.Text }}
	{{ vCta := p.Cta }}
	{{ vHref := p.Href }}
	{{ vLevel := uiutils.Def(p.Level, float64(1)) }}
	{{ vAlign := uiutils.Def(p.Align, "start") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Heading: map[string]any{"level": vLevel}, Align: vAlign, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {
		if uiutils.T(vCta) {
			@ActionGroup(ActionGroupProps{Primary: vCta, PrimaryHref: vHref, Align: vAlign})
		}
	}
}
blocks/support-channels.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/support-channels.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/card"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
	lucideicon "github.com/codegen-x/ui8kit/packages/templ/ui/ui/lucide-icon"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// SupportChannelsProps are the props of SupportChannels; the values are the JSON shapes of the TypeScript props.
type SupportChannelsProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Channels any `json:"channels"`
	Open any `json:"open"`
	Layout any `json:"layout"`
	Cols any `json:"cols"`
	Action any `json:"action"`
	Tone any `json:"tone"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout (grid, list), columns, action (link, none), tone (default, muted).
templ SupportChannels(p SupportChannelsProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vChannels := p.Channels }}
	{{ vOpen := p.Open }}
	{{ vLayout := uiutils.Def(p.Layout, "grid") }}
	{{ vCols := uiutils.Def(p.Cols, "1-3") }}
	{{ vAction := uiutils.Def(p.Action, "link") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {
		@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "list")), "1", vCols)), Class: "gap-4", Attrs: uiutils.Attrs("data-testid", "items")}) {
			for _, vC := range uiutils.L(vChannels) {
				@card.Card(card.CardProps{Variant: "default", Class: uiutils.S(uiutils.Cnv("h-full", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "list")), "flex-row items-center", ""))), Attrs: uiutils.Attrs("data-testid", "item")}) {
					@card.CardContent(card.CardContentProps{Class: uiutils.S(uiutils.Cnv("flex flex-1 gap-4", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "list")), "items-center", "flex-col")))}) {
						@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vC, "icon")), Size: 24})
						@stack.Stack(stack.StackProps{Gap: "2", Class: "flex-1"}) {
							@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "base", Weight: "bold"}) {
								{ uiutils.Text(uiutils.Get(vC, "title")) }
							}
							@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
								{ uiutils.Text(uiutils.Get(vC, "text")) }
							}
						}
						if uiutils.Eq(vAction, "link") {
							@link.Link(link.LinkProps{Href: "#/", Variant: "default", Attrs: uiutils.Attrs("data-testid", "open")}) {
								{ uiutils.Text(vOpen) }
							}
						}
					}
				}
			}
		}
	}
}
blocks/media-list.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/media-list.json

package blocks

import (
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// MediaListProps are the props of MediaList; the values are the JSON shapes of the TypeScript props.
type MediaListProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Badge any `json:"badge"`
	Extras any `json:"extras"`
	Labels any `json:"labels"`
	Actions any `json:"actions"`
	Layout any `json:"layout"`
	MediaSide any `json:"mediaSide"`
	Tone any `json:"tone"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A list or figures beside a picture. Axes: layout (figures: four figures in two columns, proof: three figures and a featured review, steps: numbered steps, posts: the latest posts, topics: topic rows with counts, contact: contact buttons and support figures), mediaSide, tone. The actions follow every layout but contact.
templ MediaList(p MediaListProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vBadge := uiutils.Def(p.Badge, "") }}
	{{ vExtras := p.Extras }}
	{{ vLabels := p.Labels }}
	{{ vActions := p.Actions }}
	{{ vLayout := uiutils.Def(p.Layout, "figures") }}
	{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: mediaListFill1(p, vTitle, vLayout)}) {
		if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "figures"), uiutils.Eq(vLayout, "proof"))) {
			@MediaFigures(MediaFiguresProps{Extras: vExtras, Mode: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "proof")), "row", "grid")})
		}
		if uiutils.Eq(vLayout, "proof") {
			@MediaReview(MediaReviewProps{Extras: vExtras, Labels: vLabels})
		}
		if uiutils.Eq(vLayout, "steps") {
			@MediaSteps(MediaStepsProps{Extras: vExtras, Labels: vLabels})
		}
		if uiutils.Eq(vLayout, "posts") {
			@MediaPosts(MediaPostsProps{Extras: vExtras, Labels: vLabels})
		}
		if uiutils.Eq(vLayout, "topics") {
			@MediaTopics(MediaTopicsProps{Extras: vExtras, Labels: vLabels})
		}
		if uiutils.Eq(vLayout, "contact") {
			@MediaContacts(MediaContactsProps{Extras: vExtras, Labels: vLabels})
		}
		if !uiutils.Eq(vLayout, "contact") {
			@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, "cta"), PrimaryHref: uiutils.Get(vActions, "href"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, "mode"), "two")), uiutils.Get(vActions, "secondary"), nil), SecondaryHref: uiutils.Get(vActions, "secondaryHref")})
		}
	}
}

templ mediaListFill1(p MediaListProps, vTitle any, vLayout any) {
	@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: uiutils.Cond(uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "steps"), uiutils.Eq(vLayout, "topics"))), "1/1", "4/3")})
}
blocks/faq-list.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/faq-list.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/disclosure"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// FaqListProps are the props of FaqList; the values are the JSON shapes of the TypeScript props.
type FaqListProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Items any `json:"items"`
	Search any `json:"search"`
	Filter any `json:"filter"`
	Layout any `json:"layout"`
	Cols any `json:"cols"`
	Multiple any `json:"multiple"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A section with a heading and the questions. Axes: layout (accordion: native disclosures that open without script; chat: question and answer as alternating bubbles), columns (1, 2), search mode (none, field: a search field above; the page filters by `search.query`), filter mode (none, categories: tabs above; the page filters by `filter.category`), density, tone.
templ FaqList(p FaqListProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vItems := p.Items }}
	{{ vSearch := p.Search }}
	{{ vFilter := p.Filter }}
	{{ vLayout := uiutils.Def(p.Layout, "accordion") }}
	{{ vCols := uiutils.Def(p.Cols, "1") }}
	{{ vMultiple := uiutils.Def(p.Multiple, false) }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	{{ vInCategory := any(uiutils.Where(vItems, "category", uiutils.Get(vFilter, "category"))) }}
	{{ vShown := any(uiutils.Match(vInCategory, "question", uiutils.Get(vSearch, "query"))) }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "chat")), "2xl", "default"), LandmarkLabel: vLandmarkLabel}) {
		if uiutils.Eq(uiutils.Get(vSearch, "mode"), "field") {
			@SearchField(SearchFieldProps{Label: uiutils.Coalesce(uiutils.Get(vSearch, "label"), ""), Placeholder: uiutils.Get(vSearch, "label"), Value: uiutils.Coalesce(uiutils.Get(vSearch, "query"), "")})
		}
		if uiutils.Eq(uiutils.Get(vFilter, "mode"), "categories") {
			@Switcher(SwitcherProps{Label: uiutils.Get(vFilter, "label")}) {
				for _, vTab := range uiutils.L(uiutils.Get(vFilter, "tabs")) {
					@SwitcherItem(SwitcherItemProps{Active: uiutils.Eq(uiutils.Get(vTab, "value"), uiutils.Get(vFilter, "category"))}) {
						{ uiutils.Text(uiutils.Get(vTab, "title")) }
					}
				}
			}
		}
		if uiutils.Eq(vLayout, "chat") {
			@stack.Stack(stack.StackProps{Gap: "4", Align: "stretch", Attrs: uiutils.Attrs("data-testid", "faq")}) {
				for _, vItem := range uiutils.L(vShown) {
					@stack.Stack(stack.StackProps{Gap: "2", Align: "stretch", Attrs: uiutils.Attrs("data-testid", "faq-item")}) {
						@box.Box(box.BoxProps{Class: "ml-auto max-w-xs sm:max-w-md rounded bg-primary px-4 py-4 text-primary-foreground"}) {
							@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
								{ uiutils.Text(uiutils.Get(vItem, "question")) }
							}
						}
						@box.Box(box.BoxProps{Class: "mr-auto max-w-xs sm:max-w-md rounded bg-muted px-4 py-4"}) {
							@text.Text(text.TextProps{Size: "sm"}) {
								{ uiutils.Text(uiutils.Get(vItem, "answer")) }
							}
						}
					}
				}
			}
		} else {
			@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "2")), "1-2", "1")), Class: "items-start gap-x-8", Attrs: uiutils.Attrs("data-testid", "faq")}) {
				for _, vItem := range uiutils.L(vShown) {
					@disclosure.Disclosure(disclosure.DisclosureProps{Variant: "item", Name: uiutils.S(uiutils.Cond(uiutils.T(vMultiple), nil, uiutils.Tpl("{0}-faq", uiutils.Coalesce(vId, "faq")))), Attrs: uiutils.Attrs("data-testid", "faq-item")}) {
						@disclosure.Summary(disclosure.SummaryProps{Variant: "item"}) {
							{ uiutils.Text(uiutils.Get(vItem, "question")) }
						}
						@text.Text(text.TextProps{Size: "sm", Class: "pb-4 text-muted-foreground"}) {
							{ uiutils.Text(uiutils.Get(vItem, "answer")) }
						}
					}
				}
			}
		}
	}
}
blocks/contact-form.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/contact-form.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/checkbox"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/form"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/input"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/label"
	lucideicon "github.com/codegen-x/ui8kit/packages/templ/ui/ui/lucide-icon"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/textarea"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// ContactFormProps are the props of ContactForm; the values are the JSON shapes of the TypeScript props.
type ContactFormProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Text any `json:"text"`
	Labels any `json:"labels"`
	Details any `json:"details"`
	Layout any `json:"layout"`
	Fields any `json:"fields"`
	Terms any `json:"terms"`
	Level any `json:"level"`
	Page any `json:"page"`
	Tone any `json:"tone"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A contact section: a form (name, email, subject, message, consent) and, in the split layout, the ways to reach us beside it. Axes: layout (single, split), fields (short: email and message, full), terms (show, hide), tone (default, muted).
templ ContactForm(p ContactFormProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vText := p.Text }}
	{{ vLabels := p.Labels }}
	{{ vDetails := p.Details }}
	{{ vLayout := uiutils.Def(p.Layout, "single") }}
	{{ vFields := uiutils.Def(p.Fields, "full") }}
	{{ vTerms := uiutils.Def(p.Terms, "hide") }}
	{{ vLevel := uiutils.Def(p.Level, float64(2)) }}
	{{ vPage := uiutils.Def(p.Page, "section") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Heading: map[string]any{"level": vLevel}, Tone: vTone, Density: uiutils.Cond(uiutils.T(uiutils.Eq(vPage, "full")), "roomy", "default"), Align: uiutils.Cond(uiutils.T(uiutils.Eq(vPage, "full")), "center", "start"), Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "single")), "xl", "default"), LandmarkLabel: vLandmarkLabel}) {
		@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "1-2", "1")), Class: "items-start gap-8"}) {
			@form.Form(form.FormProps{Method: "dialog", Class: "w-full gap-4", Attrs: uiutils.Attrs("data-testid", "contact-form")}) {
				if uiutils.Eq(vFields, "full") {
					@Field(FieldProps{Label: uiutils.Get(vLabels, "name"), HtmlFor: uiutils.Tpl("{0}-name", vId)}) {
						@input.Input(input.InputProps{Type: "text", Name: "name", Autocomplete: "name", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-name", vId), "data-testid", "field")})
					}
				}
				@Field(FieldProps{Label: uiutils.Get(vLabels, "email"), HtmlFor: uiutils.Tpl("{0}-email", vId)}) {
					@input.Input(input.InputProps{Type: "email", Name: "email", Autocomplete: "email", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-email", vId), "data-testid", "field")})
				}
				if uiutils.Eq(vFields, "full") {
					@Field(FieldProps{Label: uiutils.Get(vLabels, "subject"), HtmlFor: uiutils.Tpl("{0}-subject", vId)}) {
						@input.Input(input.InputProps{Type: "text", Name: "subject", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-subject", vId), "data-testid", "field")})
					}
				}
				@Field(FieldProps{Label: uiutils.Get(vLabels, "message"), HtmlFor: uiutils.Tpl("{0}-message", vId)}) {
					@textarea.Textarea(textarea.TextareaProps{Rows: 4, Name: "message", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-message", vId), "data-testid", "field")})
				}
				if uiutils.Eq(vTerms, "show") {
					@group.Group(group.GroupProps{Gap: "2", Align: "center", Class: uiutils.S(uiutils.Cnv("w-fit", ""))}) {
						@checkbox.Checkbox(checkbox.CheckboxProps{Name: "consent", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-consent", vId))})
						@label.Label(label.LabelProps{HTMLFor: uiutils.S(uiutils.Tpl("{0}-consent", vId)), Class: "text-sm"}) {
							{ uiutils.Text(uiutils.Get(vLabels, "consent")) }
						}
					}
				}
				@button.Button(button.ButtonProps{Variant: "default", Size: "default", Type: "submit", Class: "w-fit", Attrs: uiutils.Attrs("data-testid", "submit")}) {
					{ uiutils.Text(uiutils.Get(vLabels, "submit")) }
				}
			}
			if uiutils.Eq(vLayout, "split") {
				@stack.Stack(stack.StackProps{Gap: "4", Attrs: uiutils.Attrs("data-testid", "details")}) {
					for _, vD := range uiutils.L(vDetails) {
						@group.Group(group.GroupProps{Gap: "4", Align: "start", Attrs: uiutils.Attrs("data-testid", "detail")}) {
							@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vD, "icon")), Size: 20})
							@stack.Stack(stack.StackProps{Gap: "0"}) {
								@text.Text(text.TextProps{Size: "base", Weight: "semibold"}) {
									{ uiutils.Text(uiutils.Get(vD, "title")) }
								}
								@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
									{ uiutils.Text(uiutils.Get(vD, "text")) }
								}
							}
						}
					}
				}
			}
		}
	}
}
blocks/sitemap-footer.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/sitemap-footer.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/form"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/input"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/label"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// SitemapFooterProps are the props of SitemapFooter; the values are the JSON shapes of the TypeScript props.
type SitemapFooterProps struct {
	Label any `json:"label"`
	Brand any `json:"brand"`
	Tagline any `json:"tagline"`
	Copyright any `json:"copyright"`
	Groups any `json:"groups"`
	Signup any `json:"signup"`
	Status any `json:"status"`
	Id any `json:"id"`
	Layout any `json:"layout"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
templ SitemapFooter(p SitemapFooterProps) {
	{{ vLabel := p.Label }}
	{{ vBrand := p.Brand }}
	{{ vTagline := p.Tagline }}
	{{ vCopyright := p.Copyright }}
	{{ vGroups := p.Groups }}
	{{ vSignup := p.Signup }}
	{{ vStatus := p.Status }}
	{{ vId := uiutils.Def(p.Id, "footer") }}
	{{ vLayout := uiutils.Def(p.Layout, "columns") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	if uiutils.Eq(vLayout, "card") {
		@FooterCard(FooterCardProps{Label: vLabel, Brand: vBrand, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
	} else {
		@block.Block(block.BlockProps{Tag: "footer", Class: "mt-12 border-t border-border", Attrs: uiutils.Attrs("data-testid", "site-footer", "data-layout", vLayout, "aria-label", vLandmarkLabel)}) {
			@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "flex flex-col gap-8", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "py-6", "py-12"))), Attrs: uiutils.Attrs("data-slot", "container")}) {
				if uiutils.Eq(uiutils.Get(vSignup, "mode"), "first") {
					@stack.Stack(stack.StackProps{Gap: "4", Class: "max-w-md", Attrs: uiutils.Attrs("data-testid", "signup")}) {
						@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
							{ uiutils.Text(uiutils.Get(vSignup, "title")) }
						}
						@form.Form(form.FormProps{Method: "dialog", Class: uiutils.S(uiutils.Cnv("w-full max-w-md", uiutils.Cond(uiutils.T(false), "mx-auto", ""))), Attrs: uiutils.Attrs("data-testid", "email-form")}) {
							@label.Label(label.LabelProps{HTMLFor: uiutils.S(uiutils.Tpl("{0}-email", vId)), Class: "sr-only"}) {
								{ uiutils.Text(uiutils.Get(vSignup, "label")) }
							}
							@group.Group(group.GroupProps{Gap: "2", Align: "start", Class: "w-full flex-wrap"}) {
								@input.Input(input.InputProps{Type: "email", Name: "email", Class: "min-w-0 flex-1", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-email", vId), "data-testid", "field")})
								@button.Button(button.ButtonProps{Variant: "default", Size: "default", Type: "submit", Attrs: uiutils.Attrs("data-testid", "submit")}) {
									{ uiutils.Text(uiutils.Get(vSignup, "submit")) }
								}
							}
						}
					}
				}
				if uiutils.Eq(vLayout, "columns") {
					@box.Box(box.BoxProps{Class: "flex flex-col gap-8 md:flex-row md:items-start md:gap-12", Attrs: uiutils.Attrs("data-slot", "footer-top")}) {
						@stack.Stack(stack.StackProps{Gap: "2", Class: "md:w-64 md:shrink-0"}) {
							@text.Text(text.TextProps{Size: "xl", Weight: "bold"}) {
								{ uiutils.Text(vBrand) }
							}
							@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
								{ uiutils.Text(vTagline) }
							}
						}
						@box.Box(box.BoxProps{Class: "min-w-0 flex-1"}) {
							@FooterColumns(FooterColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
						}
					}
				} else {
					@group.Group(group.GroupProps{Gap: "6", Align: "center", Justify: "between", Class: "flex-wrap"}) {
						@text.Text(text.TextProps{Size: "base", Weight: "bold"}) {
							{ uiutils.Text(vBrand) }
						}
						@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel)}) {
							@group.Group(group.GroupProps{Gap: "4", Class: "flex-wrap"}) {
								for _, vG := range uiutils.L(vGroups) {
									@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-sm", Attrs: uiutils.Attrs("data-testid", "group")}) {
										{ uiutils.Text(uiutils.Get(vG, "title")) }
									}
								}
							}
						}
					}
				}
				@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "between", Class: "flex-wrap border-t border-border pt-6"}) {
					@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
						{ uiutils.Text(vCopyright) }
					}
					if uiutils.Eq(uiutils.Get(vStatus, "mode"), "show") {
						@Pill(PillProps{Tone: "green", Icon: "circle-check"}) {
							{ uiutils.Text(uiutils.Get(vStatus, "label")) }
						}
					}
				}
			}
		}
	}
}

Twig is not installed by the CLI. Copy the template files below into your Twig templates, together with these helper files from packages/twig/ui of the source (the Runtime, CnMerge and the Twig extension):

  • php/CnMerge.php
  • php/Extension.php
  • php/Runtime.php
blocks/nav-bar.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/nav-bar.json
    A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
    Props (p): label, brand, links, current, actions, search, tone, layout, over, skip, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_links = (p.links ?? null) -%}
{%- set v_current = (p.current ?? '') -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_search = (p.search ?? null) -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_layout = (p.layout ?? 'inline') -%}
{%- set v_over = (p.over ?? 'none') -%}
{%- set v_skip = (p.skip ?? null) -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_13 -%}
  {{ include('blocks/over-media.html.twig', {'p': {'on': ui_eq(v_over, 'media'), 'alt': v_brand}}, with_context = false) }}
  {%- if ui_t(v_skip) %}
    {%- set c_1 -%}
      {{ ui_text(v_skip) }}
    {%- endset -%}
    {{ include('ui/link-plain/link-plain.html.twig', {'p': {'Href': '#main-content', 'Class': 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'Attrs': ui_attrs(['data-testid', 'skip-link'])}, 'children': c_1}, with_context = false) }}
  {%- endif %}
  {%- set c_12 -%}
    {%- set c_11 -%}
      {%- if ui_t(ui_eq(v_layout, 'split')) %}
        {%- set c_8 -%}
          {%- set c_7 -%}
            {%- set c_2 -%}
              {{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current, 'side': 'left'}}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/box/box.html.twig', {'p': {'Class': 'md:justify-self-start'}, 'children': c_2}, with_context = false) }}
            {%- set c_4 -%}
              {%- set c_3 -%}
                {{ ui_text(v_brand) }}
              {%- endset -%}
              {{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_3}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/box/box.html.twig', {'p': {'Class': 'text-center'}, 'children': c_4}, with_context = false) }}
            {%- set c_6 -%}
              {%- set c_5 -%}
                {{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current, 'side': 'right'}}, with_context = false) }}
              {%- endset -%}
              {{ include('ui/box/box.html.twig', {'p': {}, 'children': c_5}, with_context = false) }}
              {{ include('blocks/nav-actions.html.twig', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'end', 'Class': 'flex-wrap md:justify-self-end'}, 'children': c_6}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/grid/grid.html.twig', {'p': {'Cols': '1-3', 'Class': 'w-full items-center gap-4'}, 'children': c_7}, with_context = false) }}
        {%- endset -%}
        {{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label), 'className': ui_cnv(['w-full']), 'testid': 'site-nav'}, 'children': c_8}, with_context = false) }}
      {%- else %}
        {%- set c_9 -%}
          {{ ui_text(v_brand) }}
        {%- endset -%}
        {{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_9}, with_context = false) }}
        {%- if ui_t(ui_eq(v_layout, 'search')) %}
          {{ include('blocks/search-palette.html.twig', {'p': {'label': ui_get(v_search, ['label']), 'shortcut': ui_get(v_search, ['shortcut'])}}, with_context = false) }}
        {%- endif %}
        {%- set c_10 -%}
          {{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current}}, with_context = false) }}
        {%- endset -%}
        {{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label), 'className': ui_cnv(['order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0']), 'testid': 'site-nav'}, 'children': c_10}, with_context = false) }}
        {{ include('blocks/nav-actions.html.twig', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}, with_context = false) }}
      {%- endif %}
    {%- endset -%}
    {{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))}, 'children': c_11}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/container/container.html.twig', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4', 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_12}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'header', 'Class': ui_s(ui_cnv(['relative', (ui_t(ui_eq(v_tone, 'inverse')) ? 'border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' : 'border-b border-border bg-background'), (ui_t(ui_eq(v_over, 'media')) ? 'isolate overflow-hidden border-0 bg-transparent' : '')])), 'Attrs': ui_attrs(['data-testid', 'nav-bar', 'data-layout', v_layout, 'data-tone', v_tone, 'aria-label', v_landmarkLabel])}, 'children': c_13}, with_context = false) }}
blocks/page-intro.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/page-intro.json
    The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
    Props (p): id, title, text, cta, href, level, align, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_cta = (p.cta ?? null) -%}
{%- set v_href = (p.href ?? null) -%}
{%- set v_level = (p.level ?? 1) -%}
{%- set v_align = (p.align ?? 'start') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_1 -%}
  {%- if ui_t(v_cta) %}
    {{ include('blocks/action-group.html.twig', {'p': {'primary': v_cta, 'primaryHref': v_href, 'align': v_align}}, with_context = false) }}
  {%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level}, 'align': v_align, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_1}, with_context = false) }}
blocks/support-channels.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/support-channels.json
    Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout (grid, list), columns, action (link, none), tone (default, muted).
    Props (p): id, title, channels, open, layout, cols, action, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_channels = (p.channels ?? null) -%}
{%- set v_open = (p.open ?? null) -%}
{%- set v_layout = (p.layout ?? 'grid') -%}
{%- set v_cols = (p.cols ?? '1-3') -%}
{%- set v_action = (p.action ?? 'link') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_8 -%}
  {%- set c_7 -%}
    {%- for v_c in ui_l(v_channels) %}
      {%- set c_6 -%}
        {%- set c_5 -%}
          {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_c, ['icon'])), 'Size': 24}}, with_context = false) }}
          {%- set c_3 -%}
            {%- set c_1 -%}
              {{ ui_text(ui_get(v_c, ['title'])) }}
            {%- endset -%}
            {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'base', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
            {%- set c_2 -%}
              {{ ui_text(ui_get(v_c, ['text'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'flex-1'}, 'children': c_3}, with_context = false) }}
          {%- if ui_t(ui_eq(v_action, 'link')) %}
            {%- set c_4 -%}
              {{ ui_text(v_open) }}
            {%- endset -%}
            {{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Attrs': ui_attrs(['data-testid', 'open'])}, 'children': c_4}, with_context = false) }}
          {%- endif %}
        {%- endset -%}
        {{ include('ui/card/card-content.html.twig', {'p': {'Class': ui_s(ui_cnv(['flex flex-1 gap-4', (ui_t(ui_eq(v_layout, 'list')) ? 'items-center' : 'flex-col')]))}, 'children': c_5}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/card/card.html.twig', {'p': {'Variant': 'default', 'Class': ui_s(ui_cnv(['h-full', (ui_t(ui_eq(v_layout, 'list')) ? 'flex-row items-center' : '')])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_6}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_layout, 'list')) ? '1' : v_cols)), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_7}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_8}, with_context = false) }}
blocks/media-list.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/media-list.json
    A list or figures beside a picture. Axes: layout (figures: four figures in two columns, proof: three figures and a featured review, steps: numbered steps, posts: the latest posts, topics: topic rows with counts, contact: contact buttons and support figures), mediaSide, tone. The actions follow every layout but contact.
    Props (p): id, title, lead, badge, extras, labels, actions, layout, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_extras = (p.extras ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_layout = (p.layout ?? 'figures') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_1 -%}
  {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': (ui_t(ui_or([ui_eq(v_layout, 'steps'), ui_eq(v_layout, 'topics')])) ? '1/1' : '4/3')}}, with_context = false) }}
{%- endset -%}
{%- set c_2 -%}
  {%- if ui_t(ui_or([ui_eq(v_layout, 'figures'), ui_eq(v_layout, 'proof')])) %}
    {{ include('blocks/media-figures.html.twig', {'p': {'extras': v_extras, 'mode': (ui_t(ui_eq(v_layout, 'proof')) ? 'row' : 'grid')}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'proof')) %}
    {{ include('blocks/media-review.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'steps')) %}
    {{ include('blocks/media-steps.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'posts')) %}
    {{ include('blocks/media-posts.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'topics')) %}
    {{ include('blocks/media-topics.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'contact')) %}
    {{ include('blocks/media-contacts.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(not (ui_eq(v_layout, 'contact'))) %}
    {{ include('blocks/action-group.html.twig', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) ? ui_get(v_actions, ['secondary']) : null), 'secondaryHref': ui_get(v_actions, ['secondaryHref'])}}, with_context = false) }}
  {%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_1}, 'children': c_2}, with_context = false) }}
blocks/faq-list.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/faq-list.json
    A section with a heading and the questions. Axes: layout (accordion: native disclosures that open without script; chat: question and answer as alternating bubbles), columns (1, 2), search mode (none, field: a search field above; the page filters by `search.query`), filter mode (none, categories: tabs above; the page filters by `filter.category`), density, tone.
    Props (p): id, title, items, search, filter, layout, cols, multiple, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_items = (p.items ?? null) -%}
{%- set v_search = (p.search ?? null) -%}
{%- set v_filter = (p.filter ?? null) -%}
{%- set v_layout = (p.layout ?? 'accordion') -%}
{%- set v_cols = (p.cols ?? '1') -%}
{%- set v_multiple = (p.multiple ?? false) -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set v_inCategory = ui_where(v_items, 'category', ui_get(v_filter, ['category'])) -%}
{%- set v_shown = ui_match(v_inCategory, 'question', ui_get(v_search, ['query'])) -%}
{%- set c_13 -%}
  {%- if ui_t(ui_eq(ui_get(v_search, ['mode']), 'field')) %}
    {{ include('blocks/search-field.html.twig', {'p': {'label': ui_coalesce([ui_get(v_search, ['label']), '']), 'placeholder': ui_get(v_search, ['label']), 'value': ui_coalesce([ui_get(v_search, ['query']), ''])}}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(ui_get(v_filter, ['mode']), 'categories')) %}
    {%- set c_2 -%}
      {%- for v_tab in ui_l(ui_get(v_filter, ['tabs'])) %}
        {%- set c_1 -%}
          {{ ui_text(ui_get(v_tab, ['title'])) }}
        {%- endset -%}
        {{ include('blocks/switcher-item.html.twig', {'p': {'active': ui_eq(ui_get(v_tab, ['value']), ui_get(v_filter, ['category']))}, 'children': c_1}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('blocks/switcher.html.twig', {'p': {'label': ui_get(v_filter, ['label'])}, 'children': c_2}, with_context = false) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'chat')) %}
    {%- set c_8 -%}
      {%- for v_item in ui_l(v_shown) %}
        {%- set c_7 -%}
          {%- set c_4 -%}
            {%- set c_3 -%}
              {{ ui_text(ui_get(v_item, ['question'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_3}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/box/box.html.twig', {'p': {'Class': 'ml-auto max-w-xs sm:max-w-md rounded bg-primary px-4 py-4 text-primary-foreground'}, 'children': c_4}, with_context = false) }}
          {%- set c_6 -%}
            {%- set c_5 -%}
              {{ ui_text(ui_get(v_item, ['answer'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm'}, 'children': c_5}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/box/box.html.twig', {'p': {'Class': 'mr-auto max-w-xs sm:max-w-md rounded bg-muted px-4 py-4'}, 'children': c_6}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'faq-item'])}, 'children': c_7}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'faq'])}, 'children': c_8}, with_context = false) }}
  {%- else %}
    {%- set c_12 -%}
      {%- for v_item in ui_l(v_shown) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {{ ui_text(ui_get(v_item, ['question'])) }}
          {%- endset -%}
          {{ include('ui/disclosure/summary.html.twig', {'p': {'Variant': 'item'}, 'children': c_9}, with_context = false) }}
          {%- set c_10 -%}
            {{ ui_text(ui_get(v_item, ['answer'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'pb-4 text-muted-foreground'}, 'children': c_10}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/disclosure/disclosure.html.twig', {'p': {'Variant': 'item', 'Name': ui_s((ui_t(v_multiple) ? null : ui_tpl('{0}-faq', [ui_coalesce([v_id, 'faq'])]))), 'Attrs': ui_attrs(['data-testid', 'faq-item'])}, 'children': c_11}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_cols, '2')) ? '1-2' : '1')), 'Class': 'items-start gap-x-8', 'Attrs': ui_attrs(['data-testid', 'faq'])}, 'children': c_12}, with_context = false) }}
  {%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': (ui_t(ui_eq(v_layout, 'chat')) ? '2xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_13}, with_context = false) }}
blocks/contact-form.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/contact-form.json
    A contact section: a form (name, email, subject, message, consent) and, in the split layout, the ways to reach us beside it. Axes: layout (single, split), fields (short: email and message, full), terms (show, hide), tone (default, muted).
    Props (p): id, title, text, labels, details, layout, fields, terms, level, page, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_details = (p.details ?? null) -%}
{%- set v_layout = (p.layout ?? 'single') -%}
{%- set v_fields = (p.fields ?? 'full') -%}
{%- set v_terms = (p.terms ?? 'hide') -%}
{%- set v_level = (p.level ?? 2) -%}
{%- set v_page = (p.page ?? 'section') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_15 -%}
  {%- set c_14 -%}
    {%- set c_8 -%}
      {%- if ui_t(ui_eq(v_fields, 'full')) %}
        {%- set c_1 -%}
          {{ include('ui/input/input.html.twig', {'p': {'Type': 'text', 'Name': 'name', 'Autocomplete': 'name', 'Attrs': ui_attrs(['id', ui_tpl('{0}-name', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
        {%- endset -%}
        {{ include('blocks/field.html.twig', {'p': {'label': ui_get(v_labels, ['name']), 'htmlFor': ui_tpl('{0}-name', [v_id])}, 'children': c_1}, with_context = false) }}
      {%- endif %}
      {%- set c_2 -%}
        {{ include('ui/input/input.html.twig', {'p': {'Type': 'email', 'Name': 'email', 'Autocomplete': 'email', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
      {%- endset -%}
      {{ include('blocks/field.html.twig', {'p': {'label': ui_get(v_labels, ['email']), 'htmlFor': ui_tpl('{0}-email', [v_id])}, 'children': c_2}, with_context = false) }}
      {%- if ui_t(ui_eq(v_fields, 'full')) %}
        {%- set c_3 -%}
          {{ include('ui/input/input.html.twig', {'p': {'Type': 'text', 'Name': 'subject', 'Attrs': ui_attrs(['id', ui_tpl('{0}-subject', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
        {%- endset -%}
        {{ include('blocks/field.html.twig', {'p': {'label': ui_get(v_labels, ['subject']), 'htmlFor': ui_tpl('{0}-subject', [v_id])}, 'children': c_3}, with_context = false) }}
      {%- endif %}
      {%- set c_4 -%}
        {{ include('ui/textarea/textarea.html.twig', {'p': {'Rows': 4, 'Name': 'message', 'Attrs': ui_attrs(['id', ui_tpl('{0}-message', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
      {%- endset -%}
      {{ include('blocks/field.html.twig', {'p': {'label': ui_get(v_labels, ['message']), 'htmlFor': ui_tpl('{0}-message', [v_id])}, 'children': c_4}, with_context = false) }}
      {%- if ui_t(ui_eq(v_terms, 'show')) %}
        {%- set c_6 -%}
          {{ include('ui/checkbox/checkbox.html.twig', {'p': {'Name': 'consent', 'Attrs': ui_attrs(['id', ui_tpl('{0}-consent', [v_id])])}}, with_context = false) }}
          {%- set c_5 -%}
            {{ ui_text(ui_get(v_labels, ['consent'])) }}
          {%- endset -%}
          {{ include('ui/label/label.html.twig', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-consent', [v_id])), 'Class': 'text-sm'}, 'children': c_5}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'center', 'Class': ui_s(ui_cnv(['w-fit', '']))}, 'children': c_6}, with_context = false) }}
      {%- endif %}
      {%- set c_7 -%}
        {{ ui_text(ui_get(v_labels, ['submit'])) }}
      {%- endset -%}
      {{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Class': 'w-fit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_7}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/form/form.html.twig', {'p': {'Method': 'dialog', 'Class': 'w-full gap-4', 'Attrs': ui_attrs(['data-testid', 'contact-form'])}, 'children': c_8}, with_context = false) }}
    {%- if ui_t(ui_eq(v_layout, 'split')) %}
      {%- set c_13 -%}
        {%- for v_d in ui_l(v_details) %}
          {%- set c_12 -%}
            {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_d, ['icon'])), 'Size': 20}}, with_context = false) }}
            {%- set c_11 -%}
              {%- set c_9 -%}
                {{ ui_text(ui_get(v_d, ['title'])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_9}, with_context = false) }}
              {%- set c_10 -%}
                {{ ui_text(ui_get(v_d, ['text'])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_10}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '0'}, 'children': c_11}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'start', 'Attrs': ui_attrs(['data-testid', 'detail'])}, 'children': c_12}, with_context = false) }}
        {%- endfor %}
      {%- endset -%}
      {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Attrs': ui_attrs(['data-testid', 'details'])}, 'children': c_13}, with_context = false) }}
    {%- endif %}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_layout, 'split')) ? '1-2' : '1')), 'Class': 'items-start gap-8'}, 'children': c_14}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level}, 'tone': v_tone, 'density': (ui_t(ui_eq(v_page, 'full')) ? 'roomy' : 'default'), 'align': (ui_t(ui_eq(v_page, 'full')) ? 'center' : 'start'), 'measure': (ui_t(ui_eq(v_layout, 'single')) ? 'xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_15}, with_context = false) }}
blocks/sitemap-footer.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_tagline = (p.tagline ?? null) -%}
{%- set v_copyright = (p.copyright ?? null) -%}
{%- set v_groups = (p.groups ?? null) -%}
{%- set v_signup = (p.signup ?? null) -%}
{%- set v_status = (p.status ?? null) -%}
{%- set v_id = (p.id ?? 'footer') -%}
{%- set v_layout = (p.layout ?? 'columns') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_eq(v_layout, 'card')) %}
  {{ include('blocks/footer-card.html.twig', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- else %}
  {%- set c_21 -%}
    {%- set c_20 -%}
      {%- if ui_t(ui_eq(ui_get(v_signup, ['mode']), 'first')) %}
        {%- set c_6 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_signup, ['title'])) }}
          {%- endset -%}
          {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
          {%- set c_5 -%}
            {%- set c_2 -%}
              {{ ui_text(ui_get(v_signup, ['label'])) }}
            {%- endset -%}
            {{ include('ui/label/label.html.twig', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}, with_context = false) }}
            {%- set c_4 -%}
              {{ include('ui/input/input.html.twig', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
              {%- set c_3 -%}
                {{ ui_text(ui_get(v_signup, ['submit'])) }}
              {%- endset -%}
              {{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_3}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/form/form.html.twig', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', (ui_t(false) ? 'mx-auto' : '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_5}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': ui_attrs(['data-testid', 'signup'])}, 'children': c_6}, with_context = false) }}
      {%- endif %}
      {%- if ui_t(ui_eq(v_layout, 'columns')) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {%- set c_7 -%}
              {{ ui_text(v_brand) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}, with_context = false) }}
            {%- set c_8 -%}
              {{ ui_text(v_tagline) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}, with_context = false) }}
          {%- set c_10 -%}
            {{ include('blocks/footer-columns.html.twig', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/box/box.html.twig', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/box/box.html.twig', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': ui_attrs(['data-slot', 'footer-top'])}, 'children': c_11}, with_context = false) }}
      {%- else %}
        {%- set c_16 -%}
          {%- set c_12 -%}
            {{ ui_text(v_brand) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}, with_context = false) }}
          {%- set c_15 -%}
            {%- set c_14 -%}
              {%- for v_g in ui_l(v_groups) %}
                {%- set c_13 -%}
                  {{ ui_text(ui_get(v_g, ['title'])) }}
                {%- endset -%}
                {{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_13}, with_context = false) }}
              {%- endfor %}
            {%- endset -%}
            {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}, with_context = false) }}
          {%- endset -%}
          {{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label)}, 'children': c_15}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/group/group.html.twig', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}, with_context = false) }}
      {%- endif %}
      {%- set c_19 -%}
        {%- set c_17 -%}
          {{ ui_text(v_copyright) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}, with_context = false) }}
        {%- if ui_t(ui_eq(ui_get(v_status, ['mode']), 'show')) %}
          {%- set c_18 -%}
            {{ ui_text(ui_get(v_status, ['label'])) }}
          {%- endset -%}
          {{ include('blocks/pill.html.twig', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': c_18}, with_context = false) }}
        {%- endif %}
      {%- endset -%}
      {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/container/container.html.twig', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (ui_t(ui_eq(v_density, 'compact')) ? 'py-6' : 'py-12')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_20}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/block/block.html.twig', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': ui_attrs(['data-testid', 'site-footer', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_21}, with_context = false) }}
{%- endif %}

Jinja2 is not installed by the CLI. Copy the template files below into your Jinja2 templates, together with the ui8kit_jinja Python package from packages/jinja2/ui of the source:

  • py/ui8kit_jinja/__init__.py
  • py/ui8kit_jinja/cn_merge.py
  • py/ui8kit_jinja/runtime.py
blocks/nav-bar.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/nav-bar.json
    A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
    Props (p): label, brand, links, current, actions, search, tone, layout, over, skip, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_brand = ui_def(p['brand'], none) -%}
{%- set v_links = ui_def(p['links'], none) -%}
{%- set v_current = ui_def(p['current'], '') -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_search = ui_def(p['search'], none) -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_layout = ui_def(p['layout'], 'inline') -%}
{%- set v_over = ui_def(p['over'], 'none') -%}
{%- set v_skip = ui_def(p['skip'], none) -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_13 -%}
  {{ ui_include('blocks/over-media.html.j2', {'p': {'on': ui_eq(v_over, 'media'), 'alt': v_brand}}) }}
  {%- if ui_t(v_skip) %}
    {%- set c_1 -%}
      {{ ui_text(v_skip) }}
    {%- endset -%}
    {{ ui_include('ui/link-plain/link-plain.html.j2', {'p': {'Href': '#main-content', 'Class': 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'Attrs': ui_attrs(['data-testid', 'skip-link'])}, 'children': c_1}) }}
  {%- endif %}
  {%- set c_12 -%}
    {%- set c_11 -%}
      {%- if ui_t(ui_eq(v_layout, 'split')) %}
        {%- set c_8 -%}
          {%- set c_7 -%}
            {%- set c_2 -%}
              {{ ui_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current, 'side': 'left'}}) }}
            {%- endset -%}
            {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'md:justify-self-start'}, 'children': c_2}) }}
            {%- set c_4 -%}
              {%- set c_3 -%}
                {{ ui_text(v_brand) }}
              {%- endset -%}
              {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_3}) }}
            {%- endset -%}
            {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'text-center'}, 'children': c_4}) }}
            {%- set c_6 -%}
              {%- set c_5 -%}
                {{ ui_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current, 'side': 'right'}}) }}
              {%- endset -%}
              {{ ui_include('ui/box/box.html.j2', {'p': {}, 'children': c_5}) }}
              {{ ui_include('blocks/nav-actions.html.j2', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}) }}
            {%- endset -%}
            {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'end', 'Class': 'flex-wrap md:justify-self-end'}, 'children': c_6}) }}
          {%- endset -%}
          {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '1-3', 'Class': 'w-full items-center gap-4'}, 'children': c_7}) }}
        {%- endset -%}
        {{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label), 'className': ui_cnv(['w-full']), 'testid': 'site-nav'}, 'children': c_8}) }}
      {%- else %}
        {%- set c_9 -%}
          {{ ui_text(v_brand) }}
        {%- endset -%}
        {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_9}) }}
        {%- if ui_t(ui_eq(v_layout, 'search')) %}
          {{ ui_include('blocks/search-palette.html.j2', {'p': {'label': ui_get(v_search, ['label']), 'shortcut': ui_get(v_search, ['shortcut'])}}) }}
        {%- endif %}
        {%- set c_10 -%}
          {{ ui_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current}}) }}
        {%- endset -%}
        {{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label), 'className': ui_cnv(['order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0']), 'testid': 'site-nav'}, 'children': c_10}) }}
        {{ ui_include('blocks/nav-actions.html.j2', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}) }}
      {%- endif %}
    {%- endset -%}
    {{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))}, 'children': c_11}) }}
  {%- endset -%}
  {{ ui_include('ui/container/container.html.j2', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4', 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_12}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'header', 'Class': ui_s(ui_cnv(['relative', ('border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' if ui_t(ui_eq(v_tone, 'inverse')) else 'border-b border-border bg-background'), ('isolate overflow-hidden border-0 bg-transparent' if ui_t(ui_eq(v_over, 'media')) else '')])), 'Attrs': ui_attrs(['data-testid', 'nav-bar', 'data-layout', v_layout, 'data-tone', v_tone, 'aria-label', v_landmarkLabel])}, 'children': c_13}) }}
blocks/page-intro.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/page-intro.json
    The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
    Props (p): id, title, text, cta, href, level, align, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_text = ui_def(p['text'], none) -%}
{%- set v_cta = ui_def(p['cta'], none) -%}
{%- set v_href = ui_def(p['href'], none) -%}
{%- set v_level = ui_def(p['level'], 1) -%}
{%- set v_align = ui_def(p['align'], 'start') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_1 -%}
  {%- if ui_t(v_cta) %}
    {{ ui_include('blocks/action-group.html.j2', {'p': {'primary': v_cta, 'primaryHref': v_href, 'align': v_align}}) }}
  {%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level}, 'align': v_align, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_1}) }}
blocks/support-channels.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/support-channels.json
    Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout (grid, list), columns, action (link, none), tone (default, muted).
    Props (p): id, title, channels, open, layout, cols, action, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_channels = ui_def(p['channels'], none) -%}
{%- set v_open = ui_def(p['open'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'grid') -%}
{%- set v_cols = ui_def(p['cols'], '1-3') -%}
{%- set v_action = ui_def(p['action'], 'link') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_8 -%}
  {%- set c_7 -%}
    {%- for v_c in ui_l(v_channels) %}
      {%- set c_6 -%}
        {%- set c_5 -%}
          {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_c, ['icon'])), 'Size': 24}}) }}
          {%- set c_3 -%}
            {%- set c_1 -%}
              {{ ui_text(ui_get(v_c, ['title'])) }}
            {%- endset -%}
            {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'base', 'Weight': 'bold'}, 'children': c_1}) }}
            {%- set c_2 -%}
              {{ ui_text(ui_get(v_c, ['text'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'flex-1'}, 'children': c_3}) }}
          {%- if ui_t(ui_eq(v_action, 'link')) %}
            {%- set c_4 -%}
              {{ ui_text(v_open) }}
            {%- endset -%}
            {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Attrs': ui_attrs(['data-testid', 'open'])}, 'children': c_4}) }}
          {%- endif %}
        {%- endset -%}
        {{ ui_include('ui/card/card-content.html.j2', {'p': {'Class': ui_s(ui_cnv(['flex flex-1 gap-4', ('items-center' if ui_t(ui_eq(v_layout, 'list')) else 'flex-col')]))}, 'children': c_5}) }}
      {%- endset -%}
      {{ ui_include('ui/card/card.html.j2', {'p': {'Variant': 'default', 'Class': ui_s(ui_cnv(['h-full', ('flex-row items-center' if ui_t(ui_eq(v_layout, 'list')) else '')])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_6}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('1' if ui_t(ui_eq(v_layout, 'list')) else v_cols)), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_7}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_8}) }}
blocks/media-list.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/media-list.json
    A list or figures beside a picture. Axes: layout (figures: four figures in two columns, proof: three figures and a featured review, steps: numbered steps, posts: the latest posts, topics: topic rows with counts, contact: contact buttons and support figures), mediaSide, tone. The actions follow every layout but contact.
    Props (p): id, title, lead, badge, extras, labels, actions, layout, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_badge = ui_def(p['badge'], '') -%}
{%- set v_extras = ui_def(p['extras'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'figures') -%}
{%- set v_mediaSide = ui_def(p['mediaSide'], 'end') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set f_1 -%}
  {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': ('1/1' if ui_t(ui_or([ui_eq(v_layout, 'steps'), ui_eq(v_layout, 'topics')])) else '4/3')}}) }}
{%- endset -%}
{%- set c_2 -%}
  {%- if ui_t(ui_or([ui_eq(v_layout, 'figures'), ui_eq(v_layout, 'proof')])) %}
    {{ ui_include('blocks/media-figures.html.j2', {'p': {'extras': v_extras, 'mode': ('row' if ui_t(ui_eq(v_layout, 'proof')) else 'grid')}}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'proof')) %}
    {{ ui_include('blocks/media-review.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'steps')) %}
    {{ ui_include('blocks/media-steps.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'posts')) %}
    {{ ui_include('blocks/media-posts.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'topics')) %}
    {{ ui_include('blocks/media-topics.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'contact')) %}
    {{ ui_include('blocks/media-contacts.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
  {%- endif %}
  {%- if ui_t(not (ui_eq(v_layout, 'contact'))) %}
    {{ ui_include('blocks/action-group.html.j2', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_get(v_actions, ['secondary']) if ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': ui_get(v_actions, ['secondaryHref'])}}) }}
  {%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_1}, 'children': c_2}) }}
blocks/faq-list.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/faq-list.json
    A section with a heading and the questions. Axes: layout (accordion: native disclosures that open without script; chat: question and answer as alternating bubbles), columns (1, 2), search mode (none, field: a search field above; the page filters by `search.query`), filter mode (none, categories: tabs above; the page filters by `filter.category`), density, tone.
    Props (p): id, title, items, search, filter, layout, cols, multiple, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_items = ui_def(p['items'], none) -%}
{%- set v_search = ui_def(p['search'], none) -%}
{%- set v_filter = ui_def(p['filter'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'accordion') -%}
{%- set v_cols = ui_def(p['cols'], '1') -%}
{%- set v_multiple = ui_def(p['multiple'], false) -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set v_inCategory = ui_where(v_items, 'category', ui_get(v_filter, ['category'])) -%}
{%- set v_shown = ui_match(v_inCategory, 'question', ui_get(v_search, ['query'])) -%}
{%- set c_13 -%}
  {%- if ui_t(ui_eq(ui_get(v_search, ['mode']), 'field')) %}
    {{ ui_include('blocks/search-field.html.j2', {'p': {'label': ui_coalesce([ui_get(v_search, ['label']), '']), 'placeholder': ui_get(v_search, ['label']), 'value': ui_coalesce([ui_get(v_search, ['query']), ''])}}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(ui_get(v_filter, ['mode']), 'categories')) %}
    {%- set c_2 -%}
      {%- for v_tab in ui_l(ui_get(v_filter, ['tabs'])) %}
        {%- set c_1 -%}
          {{ ui_text(ui_get(v_tab, ['title'])) }}
        {%- endset -%}
        {{ ui_include('blocks/switcher-item.html.j2', {'p': {'active': ui_eq(ui_get(v_tab, ['value']), ui_get(v_filter, ['category']))}, 'children': c_1}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('blocks/switcher.html.j2', {'p': {'label': ui_get(v_filter, ['label'])}, 'children': c_2}) }}
  {%- endif %}
  {%- if ui_t(ui_eq(v_layout, 'chat')) %}
    {%- set c_8 -%}
      {%- for v_item in ui_l(v_shown) %}
        {%- set c_7 -%}
          {%- set c_4 -%}
            {%- set c_3 -%}
              {{ ui_text(ui_get(v_item, ['question'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_3}) }}
          {%- endset -%}
          {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'ml-auto max-w-xs sm:max-w-md rounded bg-primary px-4 py-4 text-primary-foreground'}, 'children': c_4}) }}
          {%- set c_6 -%}
            {%- set c_5 -%}
              {{ ui_text(ui_get(v_item, ['answer'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_5}) }}
          {%- endset -%}
          {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'mr-auto max-w-xs sm:max-w-md rounded bg-muted px-4 py-4'}, 'children': c_6}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'faq-item'])}, 'children': c_7}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'faq'])}, 'children': c_8}) }}
  {%- else %}
    {%- set c_12 -%}
      {%- for v_item in ui_l(v_shown) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {{ ui_text(ui_get(v_item, ['question'])) }}
          {%- endset -%}
          {{ ui_include('ui/disclosure/summary.html.j2', {'p': {'Variant': 'item'}, 'children': c_9}) }}
          {%- set c_10 -%}
            {{ ui_text(ui_get(v_item, ['answer'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'pb-4 text-muted-foreground'}, 'children': c_10}) }}
        {%- endset -%}
        {{ ui_include('ui/disclosure/disclosure.html.j2', {'p': {'Variant': 'item', 'Name': ui_s((none if ui_t(v_multiple) else ui_tpl('{0}-faq', [ui_coalesce([v_id, 'faq'])]))), 'Attrs': ui_attrs(['data-testid', 'faq-item'])}, 'children': c_11}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('1-2' if ui_t(ui_eq(v_cols, '2')) else '1')), 'Class': 'items-start gap-x-8', 'Attrs': ui_attrs(['data-testid', 'faq'])}, 'children': c_12}) }}
  {%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': ('2xl' if ui_t(ui_eq(v_layout, 'chat')) else 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_13}) }}
blocks/contact-form.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/contact-form.json
    A contact section: a form (name, email, subject, message, consent) and, in the split layout, the ways to reach us beside it. Axes: layout (single, split), fields (short: email and message, full), terms (show, hide), tone (default, muted).
    Props (p): id, title, text, labels, details, layout, fields, terms, level, page, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_text = ui_def(p['text'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_details = ui_def(p['details'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'single') -%}
{%- set v_fields = ui_def(p['fields'], 'full') -%}
{%- set v_terms = ui_def(p['terms'], 'hide') -%}
{%- set v_level = ui_def(p['level'], 2) -%}
{%- set v_page = ui_def(p['page'], 'section') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_15 -%}
  {%- set c_14 -%}
    {%- set c_8 -%}
      {%- if ui_t(ui_eq(v_fields, 'full')) %}
        {%- set c_1 -%}
          {{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'text', 'Name': 'name', 'Autocomplete': 'name', 'Attrs': ui_attrs(['id', ui_tpl('{0}-name', [v_id]), 'data-testid', 'field'])}}) }}
        {%- endset -%}
        {{ ui_include('blocks/field.html.j2', {'p': {'label': ui_get(v_labels, ['name']), 'htmlFor': ui_tpl('{0}-name', [v_id])}, 'children': c_1}) }}
      {%- endif %}
      {%- set c_2 -%}
        {{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'email', 'Name': 'email', 'Autocomplete': 'email', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}) }}
      {%- endset -%}
      {{ ui_include('blocks/field.html.j2', {'p': {'label': ui_get(v_labels, ['email']), 'htmlFor': ui_tpl('{0}-email', [v_id])}, 'children': c_2}) }}
      {%- if ui_t(ui_eq(v_fields, 'full')) %}
        {%- set c_3 -%}
          {{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'text', 'Name': 'subject', 'Attrs': ui_attrs(['id', ui_tpl('{0}-subject', [v_id]), 'data-testid', 'field'])}}) }}
        {%- endset -%}
        {{ ui_include('blocks/field.html.j2', {'p': {'label': ui_get(v_labels, ['subject']), 'htmlFor': ui_tpl('{0}-subject', [v_id])}, 'children': c_3}) }}
      {%- endif %}
      {%- set c_4 -%}
        {{ ui_include('ui/textarea/textarea.html.j2', {'p': {'Rows': 4, 'Name': 'message', 'Attrs': ui_attrs(['id', ui_tpl('{0}-message', [v_id]), 'data-testid', 'field'])}}) }}
      {%- endset -%}
      {{ ui_include('blocks/field.html.j2', {'p': {'label': ui_get(v_labels, ['message']), 'htmlFor': ui_tpl('{0}-message', [v_id])}, 'children': c_4}) }}
      {%- if ui_t(ui_eq(v_terms, 'show')) %}
        {%- set c_6 -%}
          {{ ui_include('ui/checkbox/checkbox.html.j2', {'p': {'Name': 'consent', 'Attrs': ui_attrs(['id', ui_tpl('{0}-consent', [v_id])])}}) }}
          {%- set c_5 -%}
            {{ ui_text(ui_get(v_labels, ['consent'])) }}
          {%- endset -%}
          {{ ui_include('ui/label/label.html.j2', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-consent', [v_id])), 'Class': 'text-sm'}, 'children': c_5}) }}
        {%- endset -%}
        {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Class': ui_s(ui_cnv(['w-fit', '']))}, 'children': c_6}) }}
      {%- endif %}
      {%- set c_7 -%}
        {{ ui_text(ui_get(v_labels, ['submit'])) }}
      {%- endset -%}
      {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Class': 'w-fit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_7}) }}
    {%- endset -%}
    {{ ui_include('ui/form/form.html.j2', {'p': {'Method': 'dialog', 'Class': 'w-full gap-4', 'Attrs': ui_attrs(['data-testid', 'contact-form'])}, 'children': c_8}) }}
    {%- if ui_t(ui_eq(v_layout, 'split')) %}
      {%- set c_13 -%}
        {%- for v_d in ui_l(v_details) %}
          {%- set c_12 -%}
            {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_d, ['icon'])), 'Size': 20}}) }}
            {%- set c_11 -%}
              {%- set c_9 -%}
                {{ ui_text(ui_get(v_d, ['title'])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_9}) }}
              {%- set c_10 -%}
                {{ ui_text(ui_get(v_d, ['text'])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_10}) }}
            {%- endset -%}
            {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_11}) }}
          {%- endset -%}
          {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'start', 'Attrs': ui_attrs(['data-testid', 'detail'])}, 'children': c_12}) }}
        {%- endfor %}
      {%- endset -%}
      {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Attrs': ui_attrs(['data-testid', 'details'])}, 'children': c_13}) }}
    {%- endif %}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('1-2' if ui_t(ui_eq(v_layout, 'split')) else '1')), 'Class': 'items-start gap-8'}, 'children': c_14}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level}, 'tone': v_tone, 'density': ('roomy' if ui_t(ui_eq(v_page, 'full')) else 'default'), 'align': ('center' if ui_t(ui_eq(v_page, 'full')) else 'start'), 'measure': ('xl' if ui_t(ui_eq(v_layout, 'single')) else 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_15}) }}
blocks/sitemap-footer.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_brand = ui_def(p['brand'], none) -%}
{%- set v_tagline = ui_def(p['tagline'], none) -%}
{%- set v_copyright = ui_def(p['copyright'], none) -%}
{%- set v_groups = ui_def(p['groups'], none) -%}
{%- set v_signup = ui_def(p['signup'], none) -%}
{%- set v_status = ui_def(p['status'], none) -%}
{%- set v_id = ui_def(p['id'], 'footer') -%}
{%- set v_layout = ui_def(p['layout'], 'columns') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_eq(v_layout, 'card')) %}
  {{ ui_include('blocks/footer-card.html.j2', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- else %}
  {%- set c_21 -%}
    {%- set c_20 -%}
      {%- if ui_t(ui_eq(ui_get(v_signup, ['mode']), 'first')) %}
        {%- set c_6 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_signup, ['title'])) }}
          {%- endset -%}
          {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}
          {%- set c_5 -%}
            {%- set c_2 -%}
              {{ ui_text(ui_get(v_signup, ['label'])) }}
            {%- endset -%}
            {{ ui_include('ui/label/label.html.j2', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}) }}
            {%- set c_4 -%}
              {{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}) }}
              {%- set c_3 -%}
                {{ ui_text(ui_get(v_signup, ['submit'])) }}
              {%- endset -%}
              {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_3}) }}
            {%- endset -%}
            {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}) }}
          {%- endset -%}
          {{ ui_include('ui/form/form.html.j2', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', ('mx-auto' if ui_t(false) else '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_5}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': ui_attrs(['data-testid', 'signup'])}, 'children': c_6}) }}
      {%- endif %}
      {%- if ui_t(ui_eq(v_layout, 'columns')) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {%- set c_7 -%}
              {{ ui_text(v_brand) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}
            {%- set c_8 -%}
              {{ ui_text(v_tagline) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}) }}
          {%- set c_10 -%}
            {{ ui_include('blocks/footer-columns.html.j2', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
          {%- endset -%}
          {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}) }}
        {%- endset -%}
        {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': ui_attrs(['data-slot', 'footer-top'])}, 'children': c_11}) }}
      {%- else %}
        {%- set c_16 -%}
          {%- set c_12 -%}
            {{ ui_text(v_brand) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}) }}
          {%- set c_15 -%}
            {%- set c_14 -%}
              {%- for v_g in ui_l(v_groups) %}
                {%- set c_13 -%}
                  {{ ui_text(ui_get(v_g, ['title'])) }}
                {%- endset -%}
                {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_13}) }}
              {%- endfor %}
            {%- endset -%}
            {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}) }}
          {%- endset -%}
          {{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label)}, 'children': c_15}) }}
        {%- endset -%}
        {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}) }}
      {%- endif %}
      {%- set c_19 -%}
        {%- set c_17 -%}
          {{ ui_text(v_copyright) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}) }}
        {%- if ui_t(ui_eq(ui_get(v_status, ['mode']), 'show')) %}
          {%- set c_18 -%}
            {{ ui_text(ui_get(v_status, ['label'])) }}
          {%- endset -%}
          {{ ui_include('blocks/pill.html.j2', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': c_18}) }}
        {%- endif %}
      {%- endset -%}
      {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}) }}
    {%- endset -%}
    {{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', ('py-6' if ui_t(ui_eq(v_density, 'compact')) else 'py-12')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_20}) }}
  {%- endset -%}
  {{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': ui_attrs(['data-testid', 'site-footer', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_21}) }}
{%- endif %}

Latte is not installed by the CLI. Copy the template files below into your Latte templates, together with these helper files from packages/latte/ui of the source (the Runtime, CnMerge and the Latte extension):

  • php/CnMerge.php
  • php/Extension.php
  • php/Runtime.php
blocks/nav-bar.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/nav-bar.json
    A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
    Props (p): label, brand, links, current, actions, search, tone, layout, over, skip, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_links = ($p['links'] ?? null)}
{var $v_current = ($p['current'] ?? '')}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_search = ($p['search'] ?? null)}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_layout = ($p['layout'] ?? 'inline')}
{var $v_over = ($p['over'] ?? 'none')}
{var $v_skip = ($p['skip'] ?? null)}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_13}
  {=ui_include('blocks/over-media.latte', ['p' => ['on' => ui_eq($v_over, 'media'), 'alt' => $v_brand]])|noescape}
  {if ui_t($v_skip)}
    {capture $c_1}
      {=ui_text($v_skip)}
    {/capture}
    {=ui_include('ui/link-plain/link-plain.latte', ['p' => ['Href' => '#main-content', 'Class' => 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'Attrs' => ui_attrs(['data-testid', 'skip-link'])], 'children' => $c_1])|noescape}
  {/if}
  {capture $c_12}
    {capture $c_11}
      {if ui_t(ui_eq($v_layout, 'split'))}
        {capture $c_8}
          {capture $c_7}
            {capture $c_2}
              {=ui_include('blocks/nav-links.latte', ['p' => ['links' => $v_links, 'current' => $v_current, 'side' => 'left']])|noescape}
            {/capture}
            {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'md:justify-self-start'], 'children' => $c_2])|noescape}
            {capture $c_4}
              {capture $c_3}
                {=ui_text($v_brand)}
              {/capture}
              {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-lg font-medium', 'Attrs' => ui_attrs(['data-testid', 'brand'])], 'children' => $c_3])|noescape}
            {/capture}
            {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'text-center'], 'children' => $c_4])|noescape}
            {capture $c_6}
              {capture $c_5}
                {=ui_include('blocks/nav-links.latte', ['p' => ['links' => $v_links, 'current' => $v_current, 'side' => 'right']])|noescape}
              {/capture}
              {=ui_include('ui/box/box.latte', ['p' => [], 'children' => $c_5])|noescape}
              {=ui_include('blocks/nav-actions.latte', ['p' => ['login' => ui_get($v_actions, ['login']), 'loginHref' => ui_get($v_actions, ['loginHref']), 'cta' => ui_get($v_actions, ['cta']), 'ctaHref' => ui_get($v_actions, ['href']), 'actions' => ui_get($v_actions, ['mode']), 'tone' => $v_tone, 'themeLabel' => ui_get($v_actions, ['themeLabel'])]])|noescape}
            {/capture}
            {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'end', 'Class' => 'flex-wrap md:justify-self-end'], 'children' => $c_6])|noescape}
          {/capture}
          {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '1-3', 'Class' => 'w-full items-center gap-4'], 'children' => $c_7])|noescape}
        {/capture}
        {=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label), 'className' => ui_cnv(['w-full']), 'testid' => 'site-nav'], 'children' => $c_8])|noescape}
      {else}
        {capture $c_9}
          {=ui_text($v_brand)}
        {/capture}
        {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-lg font-medium', 'Attrs' => ui_attrs(['data-testid', 'brand'])], 'children' => $c_9])|noescape}
        {if ui_t(ui_eq($v_layout, 'search'))}
          {=ui_include('blocks/search-palette.latte', ['p' => ['label' => ui_get($v_search, ['label']), 'shortcut' => ui_get($v_search, ['shortcut'])]])|noescape}
        {/if}
        {capture $c_10}
          {=ui_include('blocks/nav-links.latte', ['p' => ['links' => $v_links, 'current' => $v_current]])|noescape}
        {/capture}
        {=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label), 'className' => ui_cnv(['order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0']), 'testid' => 'site-nav'], 'children' => $c_10])|noescape}
        {=ui_include('blocks/nav-actions.latte', ['p' => ['login' => ui_get($v_actions, ['login']), 'loginHref' => ui_get($v_actions, ['loginHref']), 'cta' => ui_get($v_actions, ['cta']), 'ctaHref' => ui_get($v_actions, ['href']), 'actions' => ui_get($v_actions, ['mode']), 'tone' => $v_tone, 'themeLabel' => ui_get($v_actions, ['themeLabel'])]])|noescape}
      {/if}
    {/capture}
    {=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))], 'children' => $c_11])|noescape}
  {/capture}
  {=ui_include('ui/container/container.latte', ['p' => ['Class' => 'mx-auto w-full max-w-6xl px-4', 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_12])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'header', 'Class' => ui_s(ui_cnv(['relative', (ui_t(ui_eq($v_tone, 'inverse')) ? 'border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' : 'border-b border-border bg-background'), (ui_t(ui_eq($v_over, 'media')) ? 'isolate overflow-hidden border-0 bg-transparent' : '')])), 'Attrs' => ui_attrs(['data-testid', 'nav-bar', 'data-layout', $v_layout, 'data-tone', $v_tone, 'aria-label', $v_landmarkLabel])], 'children' => $c_13])|noescape}
blocks/page-intro.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/page-intro.json
    The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
    Props (p): id, title, text, cta, href, level, align, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_cta = ($p['cta'] ?? null)}
{var $v_href = ($p['href'] ?? null)}
{var $v_level = ($p['level'] ?? 1)}
{var $v_align = ($p['align'] ?? 'start')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_1}
  {if ui_t($v_cta)}
    {=ui_include('blocks/action-group.latte', ['p' => ['primary' => $v_cta, 'primaryHref' => $v_href, 'align' => $v_align]])|noescape}
  {/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'heading' => ['level' => $v_level], 'align' => $v_align, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_1])|noescape}
blocks/support-channels.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/support-channels.json
    Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout (grid, list), columns, action (link, none), tone (default, muted).
    Props (p): id, title, channels, open, layout, cols, action, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_channels = ($p['channels'] ?? null)}
{var $v_open = ($p['open'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'grid')}
{var $v_cols = ($p['cols'] ?? '1-3')}
{var $v_action = ($p['action'] ?? 'link')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_8}
  {capture $c_7}
    {foreach ui_l($v_channels) as $v_c}
      {capture $c_6}
        {capture $c_5}
          {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_c, ['icon'])), 'Size' => 24]])|noescape}
          {capture $c_3}
            {capture $c_1}
              {=ui_text(ui_get($v_c, ['title']))}
            {/capture}
            {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'base', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
            {capture $c_2}
              {=ui_text(ui_get($v_c, ['text']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'flex-1'], 'children' => $c_3])|noescape}
          {if ui_t(ui_eq($v_action, 'link'))}
            {capture $c_4}
              {=ui_text($v_open)}
            {/capture}
            {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Attrs' => ui_attrs(['data-testid', 'open'])], 'children' => $c_4])|noescape}
          {/if}
        {/capture}
        {=ui_include('ui/card/card-content.latte', ['p' => ['Class' => ui_s(ui_cnv(['flex flex-1 gap-4', (ui_t(ui_eq($v_layout, 'list')) ? 'items-center' : 'flex-col')]))], 'children' => $c_5])|noescape}
      {/capture}
      {=ui_include('ui/card/card.latte', ['p' => ['Variant' => 'default', 'Class' => ui_s(ui_cnv(['h-full', (ui_t(ui_eq($v_layout, 'list')) ? 'flex-row items-center' : '')])), 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_6])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_layout, 'list')) ? '1' : $v_cols)), 'Class' => 'gap-4', 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_7])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_8])|noescape}
blocks/media-list.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/media-list.json
    A list or figures beside a picture. Axes: layout (figures: four figures in two columns, proof: three figures and a featured review, steps: numbered steps, posts: the latest posts, topics: topic rows with counts, contact: contact buttons and support figures), mediaSide, tone. The actions follow every layout but contact.
    Props (p): id, title, lead, badge, extras, labels, actions, layout, mediaSide, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_extras = ($p['extras'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'figures')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_1}
  {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => (ui_t(ui_or([ui_eq($v_layout, 'steps'), ui_eq($v_layout, 'topics')])) ? '1/1' : '4/3')]])|noescape}
{/capture}
{capture $c_2}
  {if ui_t(ui_or([ui_eq($v_layout, 'figures'), ui_eq($v_layout, 'proof')]))}
    {=ui_include('blocks/media-figures.latte', ['p' => ['extras' => $v_extras, 'mode' => (ui_t(ui_eq($v_layout, 'proof')) ? 'row' : 'grid')]])|noescape}
  {/if}
  {if ui_t(ui_eq($v_layout, 'proof'))}
    {=ui_include('blocks/media-review.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
  {/if}
  {if ui_t(ui_eq($v_layout, 'steps'))}
    {=ui_include('blocks/media-steps.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
  {/if}
  {if ui_t(ui_eq($v_layout, 'posts'))}
    {=ui_include('blocks/media-posts.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
  {/if}
  {if ui_t(ui_eq($v_layout, 'topics'))}
    {=ui_include('blocks/media-topics.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
  {/if}
  {if ui_t(ui_eq($v_layout, 'contact'))}
    {=ui_include('blocks/media-contacts.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
  {/if}
  {if ui_t(!(ui_eq($v_layout, 'contact')))}
    {=ui_include('blocks/action-group.latte', ['p' => ['primary' => ui_get($v_actions, ['cta']), 'primaryHref' => ui_get($v_actions, ['href']), 'secondary' => (ui_t(ui_eq(ui_get($v_actions, ['mode']), 'two')) ? ui_get($v_actions, ['secondary']) : null), 'secondaryHref' => ui_get($v_actions, ['secondaryHref'])]])|noescape}
  {/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true, 'side' => $v_mediaSide], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_1], 'children' => $c_2])|noescape}
blocks/faq-list.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/faq-list.json
    A section with a heading and the questions. Axes: layout (accordion: native disclosures that open without script; chat: question and answer as alternating bubbles), columns (1, 2), search mode (none, field: a search field above; the page filters by `search.query`), filter mode (none, categories: tabs above; the page filters by `filter.category`), density, tone.
    Props (p): id, title, items, search, filter, layout, cols, multiple, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_items = ($p['items'] ?? null)}
{var $v_search = ($p['search'] ?? null)}
{var $v_filter = ($p['filter'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'accordion')}
{var $v_cols = ($p['cols'] ?? '1')}
{var $v_multiple = ($p['multiple'] ?? false)}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{var $v_inCategory = ui_where($v_items, 'category', ui_get($v_filter, ['category']))}
{var $v_shown = ui_match($v_inCategory, 'question', ui_get($v_search, ['query']))}
{capture $c_13}
  {if ui_t(ui_eq(ui_get($v_search, ['mode']), 'field'))}
    {=ui_include('blocks/search-field.latte', ['p' => ['label' => ui_coalesce([ui_get($v_search, ['label']), '']), 'placeholder' => ui_get($v_search, ['label']), 'value' => ui_coalesce([ui_get($v_search, ['query']), ''])]])|noescape}
  {/if}
  {if ui_t(ui_eq(ui_get($v_filter, ['mode']), 'categories'))}
    {capture $c_2}
      {foreach ui_l(ui_get($v_filter, ['tabs'])) as $v_tab}
        {capture $c_1}
          {=ui_text(ui_get($v_tab, ['title']))}
        {/capture}
        {=ui_include('blocks/switcher-item.latte', ['p' => ['active' => ui_eq(ui_get($v_tab, ['value']), ui_get($v_filter, ['category']))], 'children' => $c_1])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('blocks/switcher.latte', ['p' => ['label' => ui_get($v_filter, ['label'])], 'children' => $c_2])|noescape}
  {/if}
  {if ui_t(ui_eq($v_layout, 'chat'))}
    {capture $c_8}
      {foreach ui_l($v_shown) as $v_item}
        {capture $c_7}
          {capture $c_4}
            {capture $c_3}
              {=ui_text(ui_get($v_item, ['question']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_3])|noescape}
          {/capture}
          {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'ml-auto max-w-xs sm:max-w-md rounded bg-primary px-4 py-4 text-primary-foreground'], 'children' => $c_4])|noescape}
          {capture $c_6}
            {capture $c_5}
              {=ui_text(ui_get($v_item, ['answer']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm'], 'children' => $c_5])|noescape}
          {/capture}
          {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'mr-auto max-w-xs sm:max-w-md rounded bg-muted px-4 py-4'], 'children' => $c_6])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Align' => 'stretch', 'Attrs' => ui_attrs(['data-testid', 'faq-item'])], 'children' => $c_7])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Align' => 'stretch', 'Attrs' => ui_attrs(['data-testid', 'faq'])], 'children' => $c_8])|noescape}
  {else}
    {capture $c_12}
      {foreach ui_l($v_shown) as $v_item}
        {capture $c_11}
          {capture $c_9}
            {=ui_text(ui_get($v_item, ['question']))}
          {/capture}
          {=ui_include('ui/disclosure/summary.latte', ['p' => ['Variant' => 'item'], 'children' => $c_9])|noescape}
          {capture $c_10}
            {=ui_text(ui_get($v_item, ['answer']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'pb-4 text-muted-foreground'], 'children' => $c_10])|noescape}
        {/capture}
        {=ui_include('ui/disclosure/disclosure.latte', ['p' => ['Variant' => 'item', 'Name' => ui_s((ui_t($v_multiple) ? null : ui_tpl('{0}-faq', [ui_coalesce([$v_id, 'faq'])]))), 'Attrs' => ui_attrs(['data-testid', 'faq-item'])], 'children' => $c_11])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_cols, '2')) ? '1-2' : '1')), 'Class' => 'items-start gap-x-8', 'Attrs' => ui_attrs(['data-testid', 'faq'])], 'children' => $c_12])|noescape}
  {/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'measure' => (ui_t(ui_eq($v_layout, 'chat')) ? '2xl' : 'default'), 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_13])|noescape}
blocks/contact-form.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/contact-form.json
    A contact section: a form (name, email, subject, message, consent) and, in the split layout, the ways to reach us beside it. Axes: layout (single, split), fields (short: email and message, full), terms (show, hide), tone (default, muted).
    Props (p): id, title, text, labels, details, layout, fields, terms, level, page, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_details = ($p['details'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'single')}
{var $v_fields = ($p['fields'] ?? 'full')}
{var $v_terms = ($p['terms'] ?? 'hide')}
{var $v_level = ($p['level'] ?? 2)}
{var $v_page = ($p['page'] ?? 'section')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_15}
  {capture $c_14}
    {capture $c_8}
      {if ui_t(ui_eq($v_fields, 'full'))}
        {capture $c_1}
          {=ui_include('ui/input/input.latte', ['p' => ['Type' => 'text', 'Name' => 'name', 'Autocomplete' => 'name', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-name', [$v_id]), 'data-testid', 'field'])]])|noescape}
        {/capture}
        {=ui_include('blocks/field.latte', ['p' => ['label' => ui_get($v_labels, ['name']), 'htmlFor' => ui_tpl('{0}-name', [$v_id])], 'children' => $c_1])|noescape}
      {/if}
      {capture $c_2}
        {=ui_include('ui/input/input.latte', ['p' => ['Type' => 'email', 'Name' => 'email', 'Autocomplete' => 'email', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-email', [$v_id]), 'data-testid', 'field'])]])|noescape}
      {/capture}
      {=ui_include('blocks/field.latte', ['p' => ['label' => ui_get($v_labels, ['email']), 'htmlFor' => ui_tpl('{0}-email', [$v_id])], 'children' => $c_2])|noescape}
      {if ui_t(ui_eq($v_fields, 'full'))}
        {capture $c_3}
          {=ui_include('ui/input/input.latte', ['p' => ['Type' => 'text', 'Name' => 'subject', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-subject', [$v_id]), 'data-testid', 'field'])]])|noescape}
        {/capture}
        {=ui_include('blocks/field.latte', ['p' => ['label' => ui_get($v_labels, ['subject']), 'htmlFor' => ui_tpl('{0}-subject', [$v_id])], 'children' => $c_3])|noescape}
      {/if}
      {capture $c_4}
        {=ui_include('ui/textarea/textarea.latte', ['p' => ['Rows' => 4, 'Name' => 'message', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-message', [$v_id]), 'data-testid', 'field'])]])|noescape}
      {/capture}
      {=ui_include('blocks/field.latte', ['p' => ['label' => ui_get($v_labels, ['message']), 'htmlFor' => ui_tpl('{0}-message', [$v_id])], 'children' => $c_4])|noescape}
      {if ui_t(ui_eq($v_terms, 'show'))}
        {capture $c_6}
          {=ui_include('ui/checkbox/checkbox.latte', ['p' => ['Name' => 'consent', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-consent', [$v_id])])]])|noescape}
          {capture $c_5}
            {=ui_text(ui_get($v_labels, ['consent']))}
          {/capture}
          {=ui_include('ui/label/label.latte', ['p' => ['HTMLFor' => ui_s(ui_tpl('{0}-consent', [$v_id])), 'Class' => 'text-sm'], 'children' => $c_5])|noescape}
        {/capture}
        {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'center', 'Class' => ui_s(ui_cnv(['w-fit', '']))], 'children' => $c_6])|noescape}
      {/if}
      {capture $c_7}
        {=ui_text(ui_get($v_labels, ['submit']))}
      {/capture}
      {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Type' => 'submit', 'Class' => 'w-fit', 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_7])|noescape}
    {/capture}
    {=ui_include('ui/form/form.latte', ['p' => ['Method' => 'dialog', 'Class' => 'w-full gap-4', 'Attrs' => ui_attrs(['data-testid', 'contact-form'])], 'children' => $c_8])|noescape}
    {if ui_t(ui_eq($v_layout, 'split'))}
      {capture $c_13}
        {foreach ui_l($v_details) as $v_d}
          {capture $c_12}
            {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_d, ['icon'])), 'Size' => 20]])|noescape}
            {capture $c_11}
              {capture $c_9}
                {=ui_text(ui_get($v_d, ['title']))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'semibold'], 'children' => $c_9])|noescape}
              {capture $c_10}
                {=ui_text(ui_get($v_d, ['text']))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_10])|noescape}
            {/capture}
            {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '0'], 'children' => $c_11])|noescape}
          {/capture}
          {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'start', 'Attrs' => ui_attrs(['data-testid', 'detail'])], 'children' => $c_12])|noescape}
        {/foreach}
      {/capture}
      {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Attrs' => ui_attrs(['data-testid', 'details'])], 'children' => $c_13])|noescape}
    {/if}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_layout, 'split')) ? '1-2' : '1')), 'Class' => 'items-start gap-8'], 'children' => $c_14])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'heading' => ['level' => $v_level], 'tone' => $v_tone, 'density' => (ui_t(ui_eq($v_page, 'full')) ? 'roomy' : 'default'), 'align' => (ui_t(ui_eq($v_page, 'full')) ? 'center' : 'start'), 'measure' => (ui_t(ui_eq($v_layout, 'single')) ? 'xl' : 'default'), 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_15])|noescape}
blocks/sitemap-footer.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_tagline = ($p['tagline'] ?? null)}
{var $v_copyright = ($p['copyright'] ?? null)}
{var $v_groups = ($p['groups'] ?? null)}
{var $v_signup = ($p['signup'] ?? null)}
{var $v_status = ($p['status'] ?? null)}
{var $v_id = ($p['id'] ?? 'footer')}
{var $v_layout = ($p['layout'] ?? 'columns')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_eq($v_layout, 'card'))}
  {=ui_include('blocks/footer-card.latte', ['p' => ['label' => $v_label, 'brand' => $v_brand, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{else}
  {capture $c_21}
    {capture $c_20}
      {if ui_t(ui_eq(ui_get($v_signup, ['mode']), 'first'))}
        {capture $c_6}
          {capture $c_1}
            {=ui_text(ui_get($v_signup, ['title']))}
          {/capture}
          {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
          {capture $c_5}
            {capture $c_2}
              {=ui_text(ui_get($v_signup, ['label']))}
            {/capture}
            {=ui_include('ui/label/label.latte', ['p' => ['HTMLFor' => ui_s(ui_tpl('{0}-email', [$v_id])), 'Class' => 'sr-only'], 'children' => $c_2])|noescape}
            {capture $c_4}
              {=ui_include('ui/input/input.latte', ['p' => ['Type' => 'email', 'Name' => 'email', 'Class' => 'min-w-0 flex-1', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-email', [$v_id]), 'data-testid', 'field'])]])|noescape}
              {capture $c_3}
                {=ui_text(ui_get($v_signup, ['submit']))}
              {/capture}
              {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Type' => 'submit', 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_3])|noescape}
            {/capture}
            {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start', 'Class' => 'w-full flex-wrap'], 'children' => $c_4])|noescape}
          {/capture}
          {=ui_include('ui/form/form.latte', ['p' => ['Method' => 'dialog', 'Class' => ui_s(ui_cnv(['w-full max-w-md', (ui_t(false) ? 'mx-auto' : '')])), 'Attrs' => ui_attrs(['data-testid', 'email-form'])], 'children' => $c_5])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Class' => 'max-w-md', 'Attrs' => ui_attrs(['data-testid', 'signup'])], 'children' => $c_6])|noescape}
      {/if}
      {if ui_t(ui_eq($v_layout, 'columns'))}
        {capture $c_11}
          {capture $c_9}
            {capture $c_7}
              {=ui_text($v_brand)}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_7])|noescape}
            {capture $c_8}
              {=ui_text($v_tagline)}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_8])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'md:w-64 md:shrink-0'], 'children' => $c_9])|noescape}
          {capture $c_10}
            {=ui_include('blocks/footer-columns.latte', ['p' => ['label' => $v_label, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
          {/capture}
          {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'min-w-0 flex-1'], 'children' => $c_10])|noescape}
        {/capture}
        {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs' => ui_attrs(['data-slot', 'footer-top'])], 'children' => $c_11])|noescape}
      {else}
        {capture $c_16}
          {capture $c_12}
            {=ui_text($v_brand)}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'bold'], 'children' => $c_12])|noescape}
          {capture $c_15}
            {capture $c_14}
              {foreach ui_l($v_groups) as $v_g}
                {capture $c_13}
                  {=ui_text(ui_get($v_g, ['title']))}
                {/capture}
                {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-sm', 'Attrs' => ui_attrs(['data-testid', 'group'])], 'children' => $c_13])|noescape}
              {/foreach}
            {/capture}
            {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Class' => 'flex-wrap'], 'children' => $c_14])|noescape}
          {/capture}
          {=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label)], 'children' => $c_15])|noescape}
        {/capture}
        {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '6', 'Align' => 'center', 'Justify' => 'between', 'Class' => 'flex-wrap'], 'children' => $c_16])|noescape}
      {/if}
      {capture $c_19}
        {capture $c_17}
          {=ui_text($v_copyright)}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_17])|noescape}
        {if ui_t(ui_eq(ui_get($v_status, ['mode']), 'show'))}
          {capture $c_18}
            {=ui_text(ui_get($v_status, ['label']))}
          {/capture}
          {=ui_include('blocks/pill.latte', ['p' => ['tone' => 'green', 'icon' => 'circle-check'], 'children' => $c_18])|noescape}
        {/if}
      {/capture}
      {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'between', 'Class' => 'flex-wrap border-t border-border pt-6'], 'children' => $c_19])|noescape}
    {/capture}
    {=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (ui_t(ui_eq($v_density, 'compact')) ? 'py-6' : 'py-12')])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_20])|noescape}
  {/capture}
  {=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'footer', 'Class' => 'mt-12 border-t border-border', 'Attrs' => ui_attrs(['data-testid', 'site-footer', 'data-layout', $v_layout, 'aria-label', $v_landmarkLabel])], 'children' => $c_21])|noescape}
{/if}