Skip to content
ui8kit

Templates / Pricing pages

Pricing pages: Usage

6 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 usage-calculator credit-packs pricing-tiers cta-band sitemap-footer

Blocks: nav-bar, page-intro, usage-calculator, credit-packs, pricing-tiers, cta-band, sitemap-footer

Preview

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

Pay for what you use

Slide to your volume or buy a pack of credits.

Estimate your bill

Move the slider to the number of requests you expect each month.

requests

Requests per month

requests

requests

Estimated monthly price

$50

Start for free

Buy credits

100 credits

$9

Popular

500 credits

$39

Best value

2,000 credits

$129

10,000 credits

$549

Buy credits

100 credits

$9

Popular

500 credits

$39

Best value

2,000 credits

$129

10,000 credits

$549

Plans

Save 2 months

Solo

One person, one site

Free

1 seats

2 GB storage

  • 1 site
  • Community support
  • Basic analytics
Popular

Team

For a small team

$290

/ year

10 seats

50 GB storage

  • 10 sites
  • Priority support
  • Advanced analytics
  • Custom domains

Scale

For many sites and editors

$990

/ year

50 seats

500 GB storage

  • Unlimited sites
  • Dedicated support
  • Audit log
  • Single sign-on

AI-powered website builder with ready-to-use templates

Generate complete HTML, CSS, and JavaScript projects in minutes — just pick a template and share your idea.

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 usage-calculator credit-packs pricing-tiers cta-band sitemap-footer
UsagePage.svelte
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-pricing.json -->
<!-- The usage page of ThemeMarketingPricingScreen. -->
<script lang="ts">
  import {
    CreditPacks,
    CtaBand,
    PageIntro,
    PricingTiers,
    UsageCalculator,
    tpl,
    uniqLabel,
    type Pack,
    type Plan,
  } from "@ui8kit/svelte-ui";
  import { fromCodex } from "@ui8kit/app-shared/runtime/core";
  import { ui } from "@ui8kit/app-shared/content";
  import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
  import { credits as creditsEntries } from "@ui8kit/app-shared/data/credits";

  const TIERS_FIELDS = {
    "id": "id",
    "name": "title.en",
    "tagline": "metadata.tagline.value",
    "price": "metadata.price.value",
    "currency": "metadata.currency.value",
    "seats": "metadata.seats.value",
    "storage": "metadata.storage.value",
    "highlighted": "metadata.highlighted.value",
    "status": "metadata.status.value",
    "features": "metadata.features.value",
    "yearly": "metadata.yearly.value",
  } as const;
  const CREDITS_FIELDS = {
    "id": "id",
    "name": "title.en",
    "credits": "metadata.credits.value",
    "price": "metadata.price.value",
    "currency": "metadata.currency.value",
    "badge": "metadata.badge.value",
  } as const;

  const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
  const credits = fromCodex<Pack>(creditsEntries, CREDITS_FIELDS);
</script>

<PageIntro
  id="usage-pagehead"
  title={ui.pages.marketingPricing.usage.title}
  text={ui.pages.marketingPricing.usage.text}
  cta={ui.pages.marketingPricing.usage.cta}
  href="#/compare"
  align="start"
  tone="muted"
  density="compact"
/>
<UsageCalculator
  id="usage-usage"
  title={ui.vibe.usage.title}
  text={ui.vibe.usage.text}
  usage={5000}
  slider={{ min: 100, max: 10000, label: ui.vibe.usage.slider, unit: ui.vibe.usage.unit }}
  price={{ rate: 0.01, currency: ui.vibe.usage.currency, label: ui.vibe.usage.estimate }}
  cta={ui.vibe.usage.cta}
  href="#/"
  layout="card"
  ends="show"
  tone="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.usage, ui.blocks.variants.usage.card))}
/>
<CreditPacks
  id="usage-credits-2"
  title={ui.vibe.credits.title}
  packs={credits}
  badges={ui.vibe.credits.badges}
  buy={ui.vibe.credits.buy}
  cols="4"
  item="tile"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.tiles4))}
/>
<CreditPacks
  id="usage-credits-3"
  title={ui.vibe.credits.title}
  packs={credits}
  badges={ui.vibe.credits.badges}
  buy={ui.vibe.credits.buy}
  cols="4"
  item="row"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.rows))}
/>
<PricingTiers
  id="usage-pricing"
  title={ui.site.pricing.tiersTitle}
  plans={tiers}
  labels={ui.pricing}
  billingLabels={ui.vibe.billing}
  layout="grid"
  cols="1-3"
  emphasis="auto"
  billing="annual"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.pricing, ui.blocks.variants.pricing.annual))}
/>
<CtaBand
  id="usage-cta"
  title={ui.site.home.ctaTitle}
  text={ui.site.home.ctaText}
  actions={{
    cta: ui.site.home.ctaButton,
    href: "#/pricing",
    secondary: ui.site.home.ctaSecondary,
    secondaryHref: "#/",
    emailLabel: ui.promo.newsletter.label,
    mode: "one",
  }}
  quote={{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }}
  layout="row"
  tone="muted"
  proof="none"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.row))}
/>

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 usage-calculator credit-packs pricing-tiers cta-band sitemap-footer
UsagePage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-pricing.json
// The usage page of ThemeMarketingPricingScreen.

import {
  CreditPacks,
  CtaBand,
  PageIntro,
  PricingTiers,
  UsageCalculator,
  tpl,
  uniqLabel,
  type Pack,
  type Plan,
} from "@ui8kit/react-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { credits as creditsEntries } from "@ui8kit/app-shared/data/credits";

const TIERS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "tagline": "metadata.tagline.value",
  "price": "metadata.price.value",
  "currency": "metadata.currency.value",
  "seats": "metadata.seats.value",
  "storage": "metadata.storage.value",
  "highlighted": "metadata.highlighted.value",
  "status": "metadata.status.value",
  "features": "metadata.features.value",
  "yearly": "metadata.yearly.value",
} as const;
const CREDITS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "credits": "metadata.credits.value",
  "price": "metadata.price.value",
  "currency": "metadata.currency.value",
  "badge": "metadata.badge.value",
} as const;

const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const credits = fromCodex<Pack>(creditsEntries, CREDITS_FIELDS);

export function UsagePage() {
  return (
    <>
      <PageIntro
        id="usage-pagehead"
        title={ui.pages.marketingPricing.usage.title}
        text={ui.pages.marketingPricing.usage.text}
        cta={ui.pages.marketingPricing.usage.cta}
        href="#/compare"
        align="start"
        tone="muted"
        density="compact"
      />
      <UsageCalculator
        id="usage-usage"
        title={ui.vibe.usage.title}
        text={ui.vibe.usage.text}
        usage={5000}
        slider={{ min: 100, max: 10000, label: ui.vibe.usage.slider, unit: ui.vibe.usage.unit }}
        price={{ rate: 0.01, currency: ui.vibe.usage.currency, label: ui.vibe.usage.estimate }}
        cta={ui.vibe.usage.cta}
        href="#/"
        layout="card"
        ends="show"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.usage, ui.blocks.variants.usage.card))}
      />
      <CreditPacks
        id="usage-credits-2"
        title={ui.vibe.credits.title}
        packs={credits}
        badges={ui.vibe.credits.badges}
        buy={ui.vibe.credits.buy}
        cols="4"
        item="tile"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.tiles4))}
      />
      <CreditPacks
        id="usage-credits-3"
        title={ui.vibe.credits.title}
        packs={credits}
        badges={ui.vibe.credits.badges}
        buy={ui.vibe.credits.buy}
        cols="4"
        item="row"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.rows))}
      />
      <PricingTiers
        id="usage-pricing"
        title={ui.site.pricing.tiersTitle}
        plans={tiers}
        labels={ui.pricing}
        billingLabels={ui.vibe.billing}
        layout="grid"
        cols="1-3"
        emphasis="auto"
        billing="annual"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.pricing, ui.blocks.variants.pricing.annual))}
      />
      <CtaBand
        id="usage-cta"
        title={ui.site.home.ctaTitle}
        text={ui.site.home.ctaText}
        actions={{
          cta: ui.site.home.ctaButton,
          href: "#/pricing",
          secondary: ui.site.home.ctaSecondary,
          secondaryHref: "#/",
          emailLabel: ui.promo.newsletter.label,
          mode: "one",
        }}
        quote={{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }}
        layout="row"
        tone="muted"
        proof="none"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.row))}
      />
    </>
  );
}

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 usage-calculator credit-packs pricing-tiers cta-band sitemap-footer
UsagePage.vue
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-pricing.json -->
<!-- The usage page of ThemeMarketingPricingScreen. -->
<script setup lang="ts">
import {
  CreditPacks,
  CtaBand,
  PageIntro,
  PricingTiers,
  UsageCalculator,
  tpl,
  uniqLabel,
  type Pack,
  type Plan,
} from "@ui8kit/vue-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { credits as creditsEntries } from "@ui8kit/app-shared/data/credits";

const TIERS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "tagline": "metadata.tagline.value",
  "price": "metadata.price.value",
  "currency": "metadata.currency.value",
  "seats": "metadata.seats.value",
  "storage": "metadata.storage.value",
  "highlighted": "metadata.highlighted.value",
  "status": "metadata.status.value",
  "features": "metadata.features.value",
  "yearly": "metadata.yearly.value",
} as const;
const CREDITS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "credits": "metadata.credits.value",
  "price": "metadata.price.value",
  "currency": "metadata.currency.value",
  "badge": "metadata.badge.value",
} as const;

const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const credits = fromCodex<Pack>(creditsEntries, CREDITS_FIELDS);
</script>

<template>
  <PageIntro
    id="usage-pagehead"
    :title="ui.pages.marketingPricing.usage.title"
    :text="ui.pages.marketingPricing.usage.text"
    :cta="ui.pages.marketingPricing.usage.cta"
    href="#/compare"
    align="start"
    tone="muted"
    density="compact"
  />
  <UsageCalculator
    id="usage-usage"
    :title="ui.vibe.usage.title"
    :text="ui.vibe.usage.text"
    :usage="5000"
    :slider="{ min: 100, max: 10000, label: ui.vibe.usage.slider, unit: ui.vibe.usage.unit }"
    :price="{ rate: 0.01, currency: ui.vibe.usage.currency, label: ui.vibe.usage.estimate }"
    :cta="ui.vibe.usage.cta"
    href="#/"
    layout="card"
    ends="show"
    tone="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.usage, ui.blocks.variants.usage.card))"
  />
  <CreditPacks
    id="usage-credits-2"
    :title="ui.vibe.credits.title"
    :packs="credits"
    :badges="ui.vibe.credits.badges"
    :buy="ui.vibe.credits.buy"
    cols="4"
    item="tile"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.tiles4))"
  />
  <CreditPacks
    id="usage-credits-3"
    :title="ui.vibe.credits.title"
    :packs="credits"
    :badges="ui.vibe.credits.badges"
    :buy="ui.vibe.credits.buy"
    cols="4"
    item="row"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.rows))"
  />
  <PricingTiers
    id="usage-pricing"
    :title="ui.site.pricing.tiersTitle"
    :plans="tiers"
    :labels="ui.pricing"
    :billingLabels="ui.vibe.billing"
    layout="grid"
    cols="1-3"
    emphasis="auto"
    billing="annual"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.pricing, ui.blocks.variants.pricing.annual))"
  />
  <CtaBand
    id="usage-cta"
    :title="ui.site.home.ctaTitle"
    :text="ui.site.home.ctaText"
    :actions="{
      cta: ui.site.home.ctaButton,
      href: '#/pricing',
      secondary: ui.site.home.ctaSecondary,
      secondaryHref: '#/',
      emailLabel: ui.promo.newsletter.label,
      mode: 'one',
    }"
    :quote="{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }"
    layout="row"
    tone="muted"
    proof="none"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.row))"
  />
</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 usage-calculator credit-packs pricing-tiers cta-band sitemap-footer
UsagePage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-pricing.json
// The usage page of ThemeMarketingPricingScreen.

import {
  CreditPacks,
  CtaBand,
  PageIntro,
  PricingTiers,
  UsageCalculator,
  tpl,
  uniqLabel,
  type Pack,
  type Plan,
} from "@ui8kit/solid-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { credits as creditsEntries } from "@ui8kit/app-shared/data/credits";

const TIERS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "tagline": "metadata.tagline.value",
  "price": "metadata.price.value",
  "currency": "metadata.currency.value",
  "seats": "metadata.seats.value",
  "storage": "metadata.storage.value",
  "highlighted": "metadata.highlighted.value",
  "status": "metadata.status.value",
  "features": "metadata.features.value",
  "yearly": "metadata.yearly.value",
} as const;
const CREDITS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "credits": "metadata.credits.value",
  "price": "metadata.price.value",
  "currency": "metadata.currency.value",
  "badge": "metadata.badge.value",
} as const;

const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const credits = fromCodex<Pack>(creditsEntries, CREDITS_FIELDS);

export function UsagePage() {
  return (
    <>
      <PageIntro
        id="usage-pagehead"
        title={ui.pages.marketingPricing.usage.title}
        text={ui.pages.marketingPricing.usage.text}
        cta={ui.pages.marketingPricing.usage.cta}
        href="#/compare"
        align="start"
        tone="muted"
        density="compact"
      />
      <UsageCalculator
        id="usage-usage"
        title={ui.vibe.usage.title}
        text={ui.vibe.usage.text}
        usage={5000}
        slider={{ min: 100, max: 10000, label: ui.vibe.usage.slider, unit: ui.vibe.usage.unit }}
        price={{ rate: 0.01, currency: ui.vibe.usage.currency, label: ui.vibe.usage.estimate }}
        cta={ui.vibe.usage.cta}
        href="#/"
        layout="card"
        ends="show"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.usage, ui.blocks.variants.usage.card))}
      />
      <CreditPacks
        id="usage-credits-2"
        title={ui.vibe.credits.title}
        packs={credits}
        badges={ui.vibe.credits.badges}
        buy={ui.vibe.credits.buy}
        cols="4"
        item="tile"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.tiles4))}
      />
      <CreditPacks
        id="usage-credits-3"
        title={ui.vibe.credits.title}
        packs={credits}
        badges={ui.vibe.credits.badges}
        buy={ui.vibe.credits.buy}
        cols="4"
        item="row"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.credits, ui.blocks.variants.credits.rows))}
      />
      <PricingTiers
        id="usage-pricing"
        title={ui.site.pricing.tiersTitle}
        plans={tiers}
        labels={ui.pricing}
        billingLabels={ui.vibe.billing}
        layout="grid"
        cols="1-3"
        emphasis="auto"
        billing="annual"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.pricing, ui.blocks.variants.pricing.annual))}
      />
      <CtaBand
        id="usage-cta"
        title={ui.site.home.ctaTitle}
        text={ui.site.home.ctaText}
        actions={{
          cta: ui.site.home.ctaButton,
          href: "#/pricing",
          secondary: ui.site.home.ctaSecondary,
          secondaryHref: "#/",
          emailLabel: ui.promo.newsletter.label,
          mode: "one",
        }}
        quote={{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }}
        layout="row"
        tone="muted"
        proof="none"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.row))}
      />
    </>
  );
}

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/usage-calculator.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/usage-calculator.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
	rangefield "github.com/codegen-x/ui8kit/packages/templ/ui/ui/range"
	"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"
)

// UsageCalculatorProps are the props of UsageCalculator; the values are the JSON shapes of the TypeScript props.
type UsageCalculatorProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Text any `json:"text"`
	Usage any `json:"usage"`
	Slider any `json:"slider"`
	Price any `json:"price"`
	Cta any `json:"cta"`
	Href any `json:"href"`
	Layout any `json:"layout"`
	Ends any `json:"ends"`
	Tone any `json:"tone"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A price that follows a slider: the chosen amount of use, the price per unit and the estimate. The page keeps the amount and updates it on the `usage` event. Axes: layout (card, plain), ends (show: the smallest and the largest amount under the slider, hide), tone.
templ UsageCalculator(p UsageCalculatorProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vText := p.Text }}
	{{ vUsage := p.Usage }}
	{{ vSlider := p.Slider }}
	{{ vPrice := p.Price }}
	{{ vCta := p.Cta }}
	{{ vHref := p.Href }}
	{{ vLayout := uiutils.Def(p.Layout, "card") }}
	{{ vEnds := uiutils.Def(p.Ends, "show") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Tone: vTone, Align: "center", LandmarkLabel: vLandmarkLabel}) {
		@stack.Stack(stack.StackProps{Gap: "4", Align: "stretch", Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-xl", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "card")), "rounded bg-card p-6 inset-ring inset-ring-border", ""))), Attrs: uiutils.Attrs("data-testid", "usage")}) {
			@group.Group(group.GroupProps{Justify: "between", Align: "baseline"}) {
				@text.Text(text.TextProps{Size: "xl", Weight: "bold"}) {
					{ uiutils.Text(uiutils.Tpl(uiutils.Get(vSlider, "unit"), vUsage)) }
				}
				@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
					{ uiutils.Text(uiutils.Get(vSlider, "label")) }
				}
			}
			@rangefield.Range(rangefield.RangeProps{Min: uiutils.I(uiutils.Get(vSlider, "min")), Max: uiutils.I(uiutils.Get(vSlider, "max")), Value: uiutils.S(vUsage), AriaLabel: uiutils.S(uiutils.Get(vSlider, "label")), Attrs: uiutils.Attrs("data-testid", "slider")})
			if uiutils.Eq(vEnds, "show") {
				@group.Group(group.GroupProps{Justify: "between", Attrs: uiutils.Attrs("data-testid", "ends")}) {
					@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
						{ uiutils.Text(uiutils.Tpl(uiutils.Get(vSlider, "unit"), uiutils.Get(vSlider, "min"))) }
					}
					@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
						{ uiutils.Text(uiutils.Tpl(uiutils.Get(vSlider, "unit"), uiutils.Get(vSlider, "max"))) }
					}
				}
			}
			@group.Group(group.GroupProps{Justify: "between", Align: "center", Class: "flex-wrap"}) {
				@stack.Stack(stack.StackProps{Gap: "0"}) {
					@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
						{ uiutils.Text(uiutils.Get(vPrice, "label")) }
					}
					@text.Text(text.TextProps{Size: "4xl", Weight: "bold", Attrs: uiutils.Attrs("data-testid", "estimate")}) {
						{ uiutils.Text(uiutils.Money(uiutils.Mul(vUsage, uiutils.Get(vPrice, "rate")), uiutils.Get(vPrice, "currency"))) }
					}
				}
				@button.Button(button.ButtonProps{Variant: "default", Size: "default", Href: uiutils.S(vHref), Attrs: uiutils.Attrs("data-testid", "submit")}) {
					{ uiutils.Text(vCta) }
				}
			}
		}
	}
}
blocks/credit-packs.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/credit-packs.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/badge"
	"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/card"
	"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"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// CreditPacksProps are the props of CreditPacks; the values are the JSON shapes of the TypeScript props.
type CreditPacksProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Packs any `json:"packs"`
	Badges any `json:"badges"`
	Buy any `json:"buy"`
	Cols any `json:"cols"`
	Item any `json:"item"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// Packs of credits as tiles: the amount, a badge, the price and a buy button. Axes: columns (2, 4), item (tile, row), tone, density.
templ CreditPacks(p CreditPacksProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vPacks := p.Packs }}
	{{ vBadges := p.Badges }}
	{{ vBuy := p.Buy }}
	{{ vCols := uiutils.Def(p.Cols, "4") }}
	{{ vItem := uiutils.Def(p.Item, "tile") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "row")), "2xl", "default"), LandmarkLabel: vLandmarkLabel}) {
		@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "row")), "1", uiutils.FitCols(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "2")), "1-2", "1-4"), uiutils.Len(vPacks)))), Class: "gap-4", Attrs: uiutils.Attrs("data-testid", "items")}) {
			for _, vPack := range uiutils.L(vPacks) {
				@card.Card(card.CardProps{Variant: "default", Class: uiutils.S(uiutils.Cnv("h-full", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "row")), "gap-4 p-4", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "gap-4 p-4", "")))), Attrs: uiutils.Attrs("data-testid", "item", "data-badge", uiutils.Get(vPack, "badge"))}) {
					@card.CardContent(card.CardContentProps{Class: uiutils.S(uiutils.Cnv("flex h-full gap-4", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "row")), "flex-row flex-wrap items-center justify-between", "flex-col")))}) {
						@stack.Stack(stack.StackProps{Gap: "2", Align: "start", Class: uiutils.S(uiutils.Cnv("min-w-0", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "row")), "flex-1", "")))}) {
							if uiutils.T(uiutils.Or(uiutils.Get(vPack, "badge"), uiutils.And(!uiutils.Eq(vItem, "row"), uiutils.Gt(uiutils.Count(vPacks, "badge"), float64(0))))) {
								@box.Box(box.BoxProps{Class: "flex min-h-6 items-center", Attrs: uiutils.Attrs("data-slot", "badge-slot")}) {
									if uiutils.T(uiutils.Get(vPack, "badge")) {
										@badge.Badge(badge.BadgeProps{Variant: "default", Size: "default", Class: "w-fit shrink-0", Attrs: uiutils.Attrs("data-testid", "badge")}) {
											{ uiutils.Text(uiutils.At(vBadges, uiutils.Get(vPack, "badge"))) }
										}
									}
								}
							}
							@stack.Stack(stack.StackProps{Gap: "0", Class: "min-w-0"}) {
								@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
									{ uiutils.Text(uiutils.Get(vPack, "name")) }
								}
								@text.Text(text.TextProps{Size: "2xl", Weight: "bold"}) {
									{ uiutils.Text(uiutils.Money(uiutils.Get(vPack, "price"), uiutils.Get(vPack, "currency"))) }
								}
							}
						}
						@button.Button(button.ButtonProps{Variant: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vPack, "badge"), "popular")), "default", "outline")), Size: "sm", Type: "button", Class: uiutils.S(uiutils.Cnv("w-fit shrink-0", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "row")), "", "mt-auto"))), Attrs: uiutils.Attrs("data-testid", "buy")}) {
							{ uiutils.Text(vBuy) }
						}
					}
				}
			}
		}
	}
}
blocks/pricing-tiers.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/pricing-tiers.json

package blocks

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

// PricingTiersProps are the props of PricingTiers; the values are the JSON shapes of the TypeScript props.
type PricingTiersProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Plans any `json:"plans"`
	Labels any `json:"labels"`
	BillingLabels any `json:"billingLabels"`
	Layout any `json:"layout"`
	Cols any `json:"cols"`
	Emphasis any `json:"emphasis"`
	Billing any `json:"billing"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A section with a heading and one PricingCard per plan. Axes: layout (grid, stack), columns, emphasis, billing (off: no toggle; monthly or annual: a toggle with that choice selected, and the prices of that period), density, tone.
templ PricingTiers(p PricingTiersProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vPlans := p.Plans }}
	{{ vLabels := p.Labels }}
	{{ vBillingLabels := p.BillingLabels }}
	{{ vLayout := uiutils.Def(p.Layout, "grid") }}
	{{ vCols := uiutils.Def(p.Cols, "1-3") }}
	{{ vEmphasis := uiutils.Def(p.Emphasis, "auto") }}
	{{ vBilling := uiutils.Def(p.Billing, "off") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "stack")), "md", "default"), LandmarkLabel: vLandmarkLabel}) {
		if !uiutils.Eq(vBilling, "off") {
			@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "center", Class: "flex-wrap", Attrs: uiutils.Attrs("data-testid", "billing")}) {
				@Switcher(SwitcherProps{Label: uiutils.Get(vBillingLabels, "label")}) {
					@SwitcherItem(SwitcherItemProps{Active: uiutils.Eq(vBilling, "monthly")}) {
						{ uiutils.Text(uiutils.Get(vBillingLabels, "monthly")) }
					}
					@SwitcherItem(SwitcherItemProps{Active: uiutils.Eq(vBilling, "annual")}) {
						{ uiutils.Text(uiutils.Get(vBillingLabels, "annual")) }
					}
				}
				@badge.Badge(badge.BadgeProps{Variant: "default", Size: "default"}) {
					{ uiutils.Text(uiutils.Get(vBillingLabels, "save")) }
				}
			}
		}
		@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "stack")), "1", uiutils.FitCols(vCols, uiutils.Len(vPlans)))), Class: "gap-4", Attrs: uiutils.Attrs("data-testid", "tiers")}) {
			for _, vPlan := range uiutils.L(vPlans) {
				@PricingCard(PricingCardProps{Plan: vPlan, Labels: vLabels, Emphasis: vEmphasis, Billing: uiutils.Cond(uiutils.T(uiutils.Eq(vBilling, "annual")), "annual", "monthly"), Density: uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "compact", "default")})
			}
		}
	}
}
blocks/cta-band.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/cta-band.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/card"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
	"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"
)

// CtaBandProps are the props of CtaBand; the values are the JSON shapes of the TypeScript props.
type CtaBandProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Text any `json:"text"`
	Actions any `json:"actions"`
	Quote any `json:"quote"`
	Layout any `json:"layout"`
	Tone any `json:"tone"`
	Proof any `json:"proof"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
templ CtaBand(p CtaBandProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vText := p.Text }}
	{{ vActions := p.Actions }}
	{{ vQuote := p.Quote }}
	{{ vLayout := uiutils.Def(p.Layout, "card") }}
	{{ vTone := uiutils.Def(p.Tone, "muted") }}
	{{ vProof := uiutils.Def(p.Proof, "none") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	{{ vCenter := any(uiutils.Or(uiutils.Eq(vLayout, "band"), uiutils.Eq(vLayout, "banner"))) }}
	if uiutils.Eq(vLayout, "banner") {
		@CtaBanner(CtaBannerProps{Id: vId, Title: vTitle, Text: vText, Cta: uiutils.Get(vActions, "cta"), Href: uiutils.Get(vActions, "href"), Tone: vTone, LandmarkLabel: vLandmarkLabel})
	} else if uiutils.Eq(vLayout, "row") {
		@block.Block(block.BlockProps{Tag: "section", Class: "py-8", Attrs: uiutils.Attrs("aria-labelledby", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, uiutils.Tpl("{0}-title", vId)), "data-testid", "section", "data-tone", vTone, "data-density", vDensity, "aria-label", vLandmarkLabel)}) {
			@container.Container(container.ContainerProps{Class: "mx-auto w-full max-w-6xl px-4", Attrs: uiutils.Attrs("data-slot", "container")}) {
				@card.Card(card.CardProps{Variant: "muted"}) {
					@card.CardContent(card.CardContentProps{Class: "flex flex-col gap-4 md:flex-row md:items-center md:justify-between"}) {
						@stack.Stack(stack.StackProps{Gap: "2", Class: "min-w-0"}) {
							@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(2))), Size: "2xl", Weight: "bold", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-title", vId))}) {
								{ uiutils.Text(vTitle) }
							}
							@text.Text(text.TextProps{Size: "base", Class: "text-muted-foreground"}) {
								{ uiutils.Text(vText) }
							}
						}
						if uiutils.Eq(vProof, "quote") {
							@QuoteProof(QuoteProofProps{Quote: uiutils.Get(vQuote, "text"), QuoteBy: uiutils.Get(vQuote, "by"), Center: vCenter})
						}
						@CtaActions(CtaActionsProps{Id: vId, Actions: vActions, Center: vCenter})
					}
				}
			}
		}
	} else {
		@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "split", "stack"), Align: uiutils.Cond(uiutils.T(vCenter), "center", "start"), Boxed: uiutils.Eq(vLayout, "card"), Media: map[string]any{"show": uiutils.Eq(vLayout, "split")}, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel, Aside: ctaBandFill1(p, vTitle)}) {
			if uiutils.Eq(vProof, "quote") {
				@QuoteProof(QuoteProofProps{Quote: uiutils.Get(vQuote, "text"), QuoteBy: uiutils.Get(vQuote, "by"), Center: vCenter})
			}
			@CtaActions(CtaActionsProps{Id: vId, Actions: vActions, Center: vCenter})
		}
	}
}

templ ctaBandFill1(p CtaBandProps, vTitle any) {
	@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
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/usage-calculator.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/usage-calculator.json
    A price that follows a slider: the chosen amount of use, the price per unit and the estimate. The page keeps the amount and updates it on the `usage` event. Axes: layout (card, plain), ends (show: the smallest and the largest amount under the slider, hide), tone.
    Props (p): id, title, text, usage, slider, price, cta, href, layout, ends, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_usage = (p.usage ?? null) -%}
{%- set v_slider = (p.slider ?? null) -%}
{%- set v_price = (p.price ?? null) -%}
{%- set v_cta = (p.cta ?? null) -%}
{%- set v_href = (p.href ?? null) -%}
{%- set v_layout = (p.layout ?? 'card') -%}
{%- set v_ends = (p.ends ?? 'show') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_13 -%}
  {%- set c_12 -%}
    {%- set c_3 -%}
      {%- set c_1 -%}
        {{ ui_text(ui_tpl(ui_get(v_slider, ['unit']), [v_usage])) }}
      {%- endset -%}
      {{ include('ui/text/text.html.twig', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
      {%- set c_2 -%}
        {{ ui_text(ui_get(v_slider, ['label'])) }}
      {%- endset -%}
      {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/group/group.html.twig', {'p': {'Justify': 'between', 'Align': 'baseline'}, 'children': c_3}, with_context = false) }}
    {{ include('ui/range/range.html.twig', {'p': {'Min': ui_i(ui_get(v_slider, ['min'])), 'Max': ui_i(ui_get(v_slider, ['max'])), 'Value': ui_s(v_usage), 'AriaLabel': ui_s(ui_get(v_slider, ['label'])), 'Attrs': ui_attrs(['data-testid', 'slider'])}}, with_context = false) }}
    {%- if ui_t(ui_eq(v_ends, 'show')) %}
      {%- set c_6 -%}
        {%- set c_4 -%}
          {{ ui_text(ui_tpl(ui_get(v_slider, ['unit']), [ui_get(v_slider, ['min'])])) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_4}, with_context = false) }}
        {%- set c_5 -%}
          {{ ui_text(ui_tpl(ui_get(v_slider, ['unit']), [ui_get(v_slider, ['max'])])) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_5}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/group/group.html.twig', {'p': {'Justify': 'between', 'Attrs': ui_attrs(['data-testid', 'ends'])}, 'children': c_6}, with_context = false) }}
    {%- endif %}
    {%- set c_11 -%}
      {%- set c_9 -%}
        {%- set c_7 -%}
          {{ ui_text(ui_get(v_price, ['label'])) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_7}, with_context = false) }}
        {%- set c_8 -%}
          {{ ui_text(ui_money(ui_mul(v_usage, ui_get(v_price, ['rate'])), ui_get(v_price, ['currency']))) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': '4xl', 'Weight': 'bold', 'Attrs': ui_attrs(['data-testid', 'estimate'])}, 'children': c_8}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '0'}, 'children': c_9}, with_context = false) }}
      {%- set c_10 -%}
        {{ ui_text(v_cta) }}
      {%- endset -%}
      {{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Href': ui_s(v_href), 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_10}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/group/group.html.twig', {'p': {'Justify': 'between', 'Align': 'center', 'Class': 'flex-wrap'}, 'children': c_11}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': ui_s(ui_cnv(['mx-auto w-full max-w-xl', (ui_t(ui_eq(v_layout, 'card')) ? 'rounded bg-card p-6 inset-ring inset-ring-border' : '')])), 'Attrs': ui_attrs(['data-testid', 'usage'])}, 'children': c_12}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'tone': v_tone, 'align': 'center', 'landmarkLabel': v_landmarkLabel}, 'children': c_13}, with_context = false) }}
blocks/credit-packs.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/credit-packs.json
    Packs of credits as tiles: the amount, a badge, the price and a buy button. Axes: columns (2, 4), item (tile, row), tone, density.
    Props (p): id, title, packs, badges, buy, cols, item, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_packs = (p.packs ?? null) -%}
{%- set v_badges = (p.badges ?? null) -%}
{%- set v_buy = (p.buy ?? null) -%}
{%- set v_cols = (p.cols ?? '4') -%}
{%- set v_item = (p.item ?? 'tile') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_11 -%}
  {%- set c_10 -%}
    {%- for v_pack in ui_l(v_packs) %}
      {%- set c_9 -%}
        {%- set c_8 -%}
          {%- set c_6 -%}
            {%- if ui_t(ui_or([ui_get(v_pack, ['badge']), ui_and([not (ui_eq(v_item, 'row')), ui_gt(ui_count(v_packs, 'badge'), 0)])])) %}
              {%- set c_2 -%}
                {%- if ui_t(ui_get(v_pack, ['badge'])) %}
                  {%- set c_1 -%}
                    {{ ui_text(ui_at(v_badges, ui_get(v_pack, ['badge']))) }}
                  {%- endset -%}
                  {{ include('ui/badge/badge.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Class': 'w-fit shrink-0', 'Attrs': ui_attrs(['data-testid', 'badge'])}, 'children': c_1}, with_context = false) }}
                {%- endif %}
              {%- endset -%}
              {{ include('ui/box/box.html.twig', {'p': {'Class': 'flex min-h-6 items-center', 'Attrs': ui_attrs(['data-slot', 'badge-slot'])}, 'children': c_2}, with_context = false) }}
            {%- endif %}
            {%- set c_5 -%}
              {%- set c_3 -%}
                {{ ui_text(ui_get(v_pack, ['name'])) }}
              {%- endset -%}
              {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_3}, with_context = false) }}
              {%- set c_4 -%}
                {{ ui_text(ui_money(ui_get(v_pack, ['price']), ui_get(v_pack, ['currency']))) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': '2xl', 'Weight': 'bold'}, 'children': c_4}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '0', 'Class': 'min-w-0'}, 'children': c_5}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Align': 'start', 'Class': ui_s(ui_cnv(['min-w-0', (ui_t(ui_eq(v_item, 'row')) ? 'flex-1' : '')]))}, 'children': c_6}, with_context = false) }}
          {%- set c_7 -%}
            {{ ui_text(v_buy) }}
          {%- endset -%}
          {{ include('ui/button/button.html.twig', {'p': {'Variant': ui_s((ui_t(ui_eq(ui_get(v_pack, ['badge']), 'popular')) ? 'default' : 'outline')), 'Size': 'sm', 'Type': 'button', 'Class': ui_s(ui_cnv(['w-fit shrink-0', (ui_t(ui_eq(v_item, 'row')) ? '' : 'mt-auto')])), 'Attrs': ui_attrs(['data-testid', 'buy'])}, 'children': c_7}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/card/card-content.html.twig', {'p': {'Class': ui_s(ui_cnv(['flex h-full gap-4', (ui_t(ui_eq(v_item, 'row')) ? 'flex-row flex-wrap items-center justify-between' : 'flex-col')]))}, 'children': c_8}, 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_item, 'row')) ? 'gap-4 p-4' : (ui_t(ui_eq(v_density, 'compact')) ? 'gap-4 p-4' : ''))])), 'Attrs': ui_attrs(['data-testid', 'item', 'data-badge', ui_get(v_pack, ['badge'])])}, 'children': c_9}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_item, 'row')) ? '1' : ui_fit_cols((ui_t(ui_eq(v_cols, '2')) ? '1-2' : '1-4'), ui_len(v_packs)))), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_10}, with_context = false) }}
{%- 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_item, 'row')) ? '2xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_11}, with_context = false) }}
blocks/pricing-tiers.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/pricing-tiers.json
    A section with a heading and one PricingCard per plan. Axes: layout (grid, stack), columns, emphasis, billing (off: no toggle; monthly or annual: a toggle with that choice selected, and the prices of that period), density, tone.
    Props (p): id, title, plans, labels, billingLabels, layout, cols, emphasis, billing, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_plans = (p.plans ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_billingLabels = (p.billingLabels ?? null) -%}
{%- set v_layout = (p.layout ?? 'grid') -%}
{%- set v_cols = (p.cols ?? '1-3') -%}
{%- set v_emphasis = (p.emphasis ?? 'auto') -%}
{%- set v_billing = (p.billing ?? 'off') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_7 -%}
  {%- if ui_t(not (ui_eq(v_billing, 'off'))) %}
    {%- set c_5 -%}
      {%- set c_3 -%}
        {%- set c_1 -%}
          {{ ui_text(ui_get(v_billingLabels, ['monthly'])) }}
        {%- endset -%}
        {{ include('blocks/switcher-item.html.twig', {'p': {'active': ui_eq(v_billing, 'monthly')}, 'children': c_1}, with_context = false) }}
        {%- set c_2 -%}
          {{ ui_text(ui_get(v_billingLabels, ['annual'])) }}
        {%- endset -%}
        {{ include('blocks/switcher-item.html.twig', {'p': {'active': ui_eq(v_billing, 'annual')}, 'children': c_2}, with_context = false) }}
      {%- endset -%}
      {{ include('blocks/switcher.html.twig', {'p': {'label': ui_get(v_billingLabels, ['label'])}, 'children': c_3}, with_context = false) }}
      {%- set c_4 -%}
        {{ ui_text(ui_get(v_billingLabels, ['save'])) }}
      {%- endset -%}
      {{ include('ui/badge/badge.html.twig', {'p': {'Variant': 'default', 'Size': 'default'}, 'children': c_4}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'center', 'Class': 'flex-wrap', 'Attrs': ui_attrs(['data-testid', 'billing'])}, 'children': c_5}, with_context = false) }}
  {%- endif %}
  {%- set c_6 -%}
    {%- for v_plan in ui_l(v_plans) %}
      {{ include('blocks/pricing-card.html.twig', {'p': {'plan': v_plan, 'labels': v_labels, 'emphasis': v_emphasis, 'billing': (ui_t(ui_eq(v_billing, 'annual')) ? 'annual' : 'monthly'), 'density': (ui_t(ui_eq(v_density, 'compact')) ? 'compact' : 'default')}}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_layout, 'stack')) ? '1' : ui_fit_cols(v_cols, ui_len(v_plans)))), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'tiers'])}, 'children': c_6}, with_context = false) }}
{%- 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, 'stack')) ? 'md' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_7}, with_context = false) }}
blocks/cta-band.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/cta-band.json
    A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
    Props (p): id, title, text, actions, quote, layout, tone, proof, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_quote = (p.quote ?? null) -%}
{%- set v_layout = (p.layout ?? 'card') -%}
{%- set v_tone = (p.tone ?? 'muted') -%}
{%- set v_proof = (p.proof ?? 'none') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set v_center = ui_or([ui_eq(v_layout, 'band'), ui_eq(v_layout, 'banner')]) -%}
{%- if ui_t(ui_eq(v_layout, 'banner')) %}
  {{ include('blocks/cta-banner.html.twig', {'p': {'id': v_id, 'title': v_title, 'text': v_text, 'cta': ui_get(v_actions, ['cta']), 'href': ui_get(v_actions, ['href']), 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- elseif ui_t(ui_eq(v_layout, 'row')) %}
  {%- set c_7 -%}
    {%- set c_6 -%}
      {%- set c_5 -%}
        {%- set c_4 -%}
          {%- set c_3 -%}
            {%- set c_1 -%}
              {{ ui_text(v_title) }}
            {%- endset -%}
            {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(2), 'Size': '2xl', 'Weight': 'bold', 'Attrs': ui_attrs(['id', ui_tpl('{0}-title', [v_id])])}, 'children': c_1}, with_context = false) }}
            {%- set c_2 -%}
              {{ ui_text(v_text) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'min-w-0'}, 'children': c_3}, with_context = false) }}
          {%- if ui_t(ui_eq(v_proof, 'quote')) %}
            {{ include('blocks/quote-proof.html.twig', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}, with_context = false) }}
          {%- endif %}
          {{ include('blocks/cta-actions.html.twig', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/card/card-content.html.twig', {'p': {'Class': 'flex flex-col gap-4 md:flex-row md:items-center md:justify-between'}, 'children': c_4}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/card/card.html.twig', {'p': {'Variant': 'muted'}, 'children': c_5}, 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_6}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/block/block.html.twig', {'p': {'Tag': 'section', 'Class': 'py-8', 'Attrs': ui_attrs(['aria-labelledby', (ui_t(v_landmarkLabel) ? null : ui_tpl('{0}-title', [v_id])), 'data-testid', 'section', 'data-tone', v_tone, 'data-density', v_density, 'aria-label', v_landmarkLabel])}, 'children': c_7}, with_context = false) }}
{%- else %}
  {%- set f_8 -%}
    {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
  {%- endset -%}
  {%- set c_9 -%}
    {%- if ui_t(ui_eq(v_proof, 'quote')) %}
      {{ include('blocks/quote-proof.html.twig', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}, with_context = false) }}
    {%- endif %}
    {{ include('blocks/cta-actions.html.twig', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}, with_context = false) }}
  {%- endset -%}
  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'layout': (ui_t(ui_eq(v_layout, 'split')) ? 'split' : 'stack'), 'align': (ui_t(v_center) ? 'center' : 'start'), 'boxed': ui_eq(v_layout, 'card'), 'media': {'show': ui_eq(v_layout, 'split')}, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel, 'aside': f_8}, 'children': c_9}, with_context = false) }}
{%- endif %}
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/usage-calculator.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/usage-calculator.json
    A price that follows a slider: the chosen amount of use, the price per unit and the estimate. The page keeps the amount and updates it on the `usage` event. Axes: layout (card, plain), ends (show: the smallest and the largest amount under the slider, hide), tone.
    Props (p): id, title, text, usage, slider, price, cta, href, layout, ends, 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_usage = ui_def(p['usage'], none) -%}
{%- set v_slider = ui_def(p['slider'], none) -%}
{%- set v_price = ui_def(p['price'], none) -%}
{%- set v_cta = ui_def(p['cta'], none) -%}
{%- set v_href = ui_def(p['href'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'card') -%}
{%- set v_ends = ui_def(p['ends'], 'show') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_13 -%}
  {%- set c_12 -%}
    {%- set c_3 -%}
      {%- set c_1 -%}
        {{ ui_text(ui_tpl(ui_get(v_slider, ['unit']), [v_usage])) }}
      {%- endset -%}
      {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}
      {%- set c_2 -%}
        {{ ui_text(ui_get(v_slider, ['label'])) }}
      {%- endset -%}
      {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
    {%- endset -%}
    {{ ui_include('ui/group/group.html.j2', {'p': {'Justify': 'between', 'Align': 'baseline'}, 'children': c_3}) }}
    {{ ui_include('ui/range/range.html.j2', {'p': {'Min': ui_i(ui_get(v_slider, ['min'])), 'Max': ui_i(ui_get(v_slider, ['max'])), 'Value': ui_s(v_usage), 'AriaLabel': ui_s(ui_get(v_slider, ['label'])), 'Attrs': ui_attrs(['data-testid', 'slider'])}}) }}
    {%- if ui_t(ui_eq(v_ends, 'show')) %}
      {%- set c_6 -%}
        {%- set c_4 -%}
          {{ ui_text(ui_tpl(ui_get(v_slider, ['unit']), [ui_get(v_slider, ['min'])])) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_4}) }}
        {%- set c_5 -%}
          {{ ui_text(ui_tpl(ui_get(v_slider, ['unit']), [ui_get(v_slider, ['max'])])) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}
      {%- endset -%}
      {{ ui_include('ui/group/group.html.j2', {'p': {'Justify': 'between', 'Attrs': ui_attrs(['data-testid', 'ends'])}, 'children': c_6}) }}
    {%- endif %}
    {%- set c_11 -%}
      {%- set c_9 -%}
        {%- set c_7 -%}
          {{ ui_text(ui_get(v_price, ['label'])) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_7}) }}
        {%- set c_8 -%}
          {{ ui_text(ui_money(ui_mul(v_usage, ui_get(v_price, ['rate'])), ui_get(v_price, ['currency']))) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': '4xl', 'Weight': 'bold', 'Attrs': ui_attrs(['data-testid', 'estimate'])}, 'children': c_8}) }}
      {%- endset -%}
      {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_9}) }}
      {%- set c_10 -%}
        {{ ui_text(v_cta) }}
      {%- endset -%}
      {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Href': ui_s(v_href), 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_10}) }}
    {%- endset -%}
    {{ ui_include('ui/group/group.html.j2', {'p': {'Justify': 'between', 'Align': 'center', 'Class': 'flex-wrap'}, 'children': c_11}) }}
  {%- endset -%}
  {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': ui_s(ui_cnv(['mx-auto w-full max-w-xl', ('rounded bg-card p-6 inset-ring inset-ring-border' if ui_t(ui_eq(v_layout, 'card')) else '')])), 'Attrs': ui_attrs(['data-testid', 'usage'])}, 'children': c_12}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'tone': v_tone, 'align': 'center', 'landmarkLabel': v_landmarkLabel}, 'children': c_13}) }}
blocks/credit-packs.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/credit-packs.json
    Packs of credits as tiles: the amount, a badge, the price and a buy button. Axes: columns (2, 4), item (tile, row), tone, density.
    Props (p): id, title, packs, badges, buy, cols, item, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_packs = ui_def(p['packs'], none) -%}
{%- set v_badges = ui_def(p['badges'], none) -%}
{%- set v_buy = ui_def(p['buy'], none) -%}
{%- set v_cols = ui_def(p['cols'], '4') -%}
{%- set v_item = ui_def(p['item'], 'tile') -%}
{%- 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_11 -%}
  {%- set c_10 -%}
    {%- for v_pack in ui_l(v_packs) %}
      {%- set c_9 -%}
        {%- set c_8 -%}
          {%- set c_6 -%}
            {%- if ui_t(ui_or([ui_get(v_pack, ['badge']), ui_and([not (ui_eq(v_item, 'row')), ui_gt(ui_count(v_packs, 'badge'), 0)])])) %}
              {%- set c_2 -%}
                {%- if ui_t(ui_get(v_pack, ['badge'])) %}
                  {%- set c_1 -%}
                    {{ ui_text(ui_at(v_badges, ui_get(v_pack, ['badge']))) }}
                  {%- endset -%}
                  {{ ui_include('ui/badge/badge.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Class': 'w-fit shrink-0', 'Attrs': ui_attrs(['data-testid', 'badge'])}, 'children': c_1}) }}
                {%- endif %}
              {%- endset -%}
              {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'flex min-h-6 items-center', 'Attrs': ui_attrs(['data-slot', 'badge-slot'])}, 'children': c_2}) }}
            {%- endif %}
            {%- set c_5 -%}
              {%- set c_3 -%}
                {{ ui_text(ui_get(v_pack, ['name'])) }}
              {%- endset -%}
              {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_3}) }}
              {%- set c_4 -%}
                {{ ui_text(ui_money(ui_get(v_pack, ['price']), ui_get(v_pack, ['currency']))) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': '2xl', 'Weight': 'bold'}, 'children': c_4}) }}
            {%- endset -%}
            {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '0', 'Class': 'min-w-0'}, 'children': c_5}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': ui_s(ui_cnv(['min-w-0', ('flex-1' if ui_t(ui_eq(v_item, 'row')) else '')]))}, 'children': c_6}) }}
          {%- set c_7 -%}
            {{ ui_text(v_buy) }}
          {%- endset -%}
          {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': ui_s(('default' if ui_t(ui_eq(ui_get(v_pack, ['badge']), 'popular')) else 'outline')), 'Size': 'sm', 'Type': 'button', 'Class': ui_s(ui_cnv(['w-fit shrink-0', ('' if ui_t(ui_eq(v_item, 'row')) else 'mt-auto')])), 'Attrs': ui_attrs(['data-testid', 'buy'])}, 'children': c_7}) }}
        {%- endset -%}
        {{ ui_include('ui/card/card-content.html.j2', {'p': {'Class': ui_s(ui_cnv(['flex h-full gap-4', ('flex-row flex-wrap items-center justify-between' if ui_t(ui_eq(v_item, 'row')) else 'flex-col')]))}, 'children': c_8}) }}
      {%- endset -%}
      {{ ui_include('ui/card/card.html.j2', {'p': {'Variant': 'default', 'Class': ui_s(ui_cnv(['h-full', ('gap-4 p-4' if ui_t(ui_eq(v_item, 'row')) else ('gap-4 p-4' if ui_t(ui_eq(v_density, 'compact')) else ''))])), 'Attrs': ui_attrs(['data-testid', 'item', 'data-badge', ui_get(v_pack, ['badge'])])}, 'children': c_9}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('1' if ui_t(ui_eq(v_item, 'row')) else ui_fit_cols(('1-2' if ui_t(ui_eq(v_cols, '2')) else '1-4'), ui_len(v_packs)))), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_10}) }}
{%- 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_item, 'row')) else 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_11}) }}
blocks/pricing-tiers.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/pricing-tiers.json
    A section with a heading and one PricingCard per plan. Axes: layout (grid, stack), columns, emphasis, billing (off: no toggle; monthly or annual: a toggle with that choice selected, and the prices of that period), density, tone.
    Props (p): id, title, plans, labels, billingLabels, layout, cols, emphasis, billing, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_plans = ui_def(p['plans'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_billingLabels = ui_def(p['billingLabels'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'grid') -%}
{%- set v_cols = ui_def(p['cols'], '1-3') -%}
{%- set v_emphasis = ui_def(p['emphasis'], 'auto') -%}
{%- set v_billing = ui_def(p['billing'], 'off') -%}
{%- 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_7 -%}
  {%- if ui_t(not (ui_eq(v_billing, 'off'))) %}
    {%- set c_5 -%}
      {%- set c_3 -%}
        {%- set c_1 -%}
          {{ ui_text(ui_get(v_billingLabels, ['monthly'])) }}
        {%- endset -%}
        {{ ui_include('blocks/switcher-item.html.j2', {'p': {'active': ui_eq(v_billing, 'monthly')}, 'children': c_1}) }}
        {%- set c_2 -%}
          {{ ui_text(ui_get(v_billingLabels, ['annual'])) }}
        {%- endset -%}
        {{ ui_include('blocks/switcher-item.html.j2', {'p': {'active': ui_eq(v_billing, 'annual')}, 'children': c_2}) }}
      {%- endset -%}
      {{ ui_include('blocks/switcher.html.j2', {'p': {'label': ui_get(v_billingLabels, ['label'])}, 'children': c_3}) }}
      {%- set c_4 -%}
        {{ ui_text(ui_get(v_billingLabels, ['save'])) }}
      {%- endset -%}
      {{ ui_include('ui/badge/badge.html.j2', {'p': {'Variant': 'default', 'Size': 'default'}, 'children': c_4}) }}
    {%- endset -%}
    {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'center', 'Class': 'flex-wrap', 'Attrs': ui_attrs(['data-testid', 'billing'])}, 'children': c_5}) }}
  {%- endif %}
  {%- set c_6 -%}
    {%- for v_plan in ui_l(v_plans) %}
      {{ ui_include('blocks/pricing-card.html.j2', {'p': {'plan': v_plan, 'labels': v_labels, 'emphasis': v_emphasis, 'billing': ('annual' if ui_t(ui_eq(v_billing, 'annual')) else 'monthly'), 'density': ('compact' if ui_t(ui_eq(v_density, 'compact')) else 'default')}}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('1' if ui_t(ui_eq(v_layout, 'stack')) else ui_fit_cols(v_cols, ui_len(v_plans)))), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'tiers'])}, 'children': c_6}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': ('md' if ui_t(ui_eq(v_layout, 'stack')) else 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_7}) }}
blocks/cta-band.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/cta-band.json
    A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
    Props (p): id, title, text, actions, quote, layout, tone, proof, 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_actions = ui_def(p['actions'], none) -%}
{%- set v_quote = ui_def(p['quote'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'card') -%}
{%- set v_tone = ui_def(p['tone'], 'muted') -%}
{%- set v_proof = ui_def(p['proof'], 'none') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set v_center = ui_or([ui_eq(v_layout, 'band'), ui_eq(v_layout, 'banner')]) -%}
{%- if ui_t(ui_eq(v_layout, 'banner')) %}
  {{ ui_include('blocks/cta-banner.html.j2', {'p': {'id': v_id, 'title': v_title, 'text': v_text, 'cta': ui_get(v_actions, ['cta']), 'href': ui_get(v_actions, ['href']), 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}}) }}
{%- elif ui_t(ui_eq(v_layout, 'row')) %}
  {%- set c_7 -%}
    {%- set c_6 -%}
      {%- set c_5 -%}
        {%- set c_4 -%}
          {%- set c_3 -%}
            {%- set c_1 -%}
              {{ ui_text(v_title) }}
            {%- endset -%}
            {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(2), 'Size': '2xl', 'Weight': 'bold', 'Attrs': ui_attrs(['id', ui_tpl('{0}-title', [v_id])])}, 'children': c_1}) }}
            {%- set c_2 -%}
              {{ ui_text(v_text) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'min-w-0'}, 'children': c_3}) }}
          {%- if ui_t(ui_eq(v_proof, 'quote')) %}
            {{ ui_include('blocks/quote-proof.html.j2', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}) }}
          {%- endif %}
          {{ ui_include('blocks/cta-actions.html.j2', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}) }}
        {%- endset -%}
        {{ ui_include('ui/card/card-content.html.j2', {'p': {'Class': 'flex flex-col gap-4 md:flex-row md:items-center md:justify-between'}, 'children': c_4}) }}
      {%- endset -%}
      {{ ui_include('ui/card/card.html.j2', {'p': {'Variant': 'muted'}, 'children': c_5}) }}
    {%- 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_6}) }}
  {%- endset -%}
  {{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'section', 'Class': 'py-8', 'Attrs': ui_attrs(['aria-labelledby', (none if ui_t(v_landmarkLabel) else ui_tpl('{0}-title', [v_id])), 'data-testid', 'section', 'data-tone', v_tone, 'data-density', v_density, 'aria-label', v_landmarkLabel])}, 'children': c_7}) }}
{%- else %}
  {%- set f_8 -%}
    {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
  {%- endset -%}
  {%- set c_9 -%}
    {%- if ui_t(ui_eq(v_proof, 'quote')) %}
      {{ ui_include('blocks/quote-proof.html.j2', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}) }}
    {%- endif %}
    {{ ui_include('blocks/cta-actions.html.j2', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}) }}
  {%- endset -%}
  {{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'layout': ('split' if ui_t(ui_eq(v_layout, 'split')) else 'stack'), 'align': ('center' if ui_t(v_center) else 'start'), 'boxed': ui_eq(v_layout, 'card'), 'media': {'show': ui_eq(v_layout, 'split')}, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel, 'aside': f_8}, 'children': c_9}) }}
{%- endif %}
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/usage-calculator.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/usage-calculator.json
    A price that follows a slider: the chosen amount of use, the price per unit and the estimate. The page keeps the amount and updates it on the `usage` event. Axes: layout (card, plain), ends (show: the smallest and the largest amount under the slider, hide), tone.
    Props (p): id, title, text, usage, slider, price, cta, href, layout, ends, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_usage = ($p['usage'] ?? null)}
{var $v_slider = ($p['slider'] ?? null)}
{var $v_price = ($p['price'] ?? null)}
{var $v_cta = ($p['cta'] ?? null)}
{var $v_href = ($p['href'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'card')}
{var $v_ends = ($p['ends'] ?? 'show')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_13}
  {capture $c_12}
    {capture $c_3}
      {capture $c_1}
        {=ui_text(ui_tpl(ui_get($v_slider, ['unit']), [$v_usage]))}
      {/capture}
      {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
      {capture $c_2}
        {=ui_text(ui_get($v_slider, ['label']))}
      {/capture}
      {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
    {/capture}
    {=ui_include('ui/group/group.latte', ['p' => ['Justify' => 'between', 'Align' => 'baseline'], 'children' => $c_3])|noescape}
    {=ui_include('ui/range/range.latte', ['p' => ['Min' => ui_i(ui_get($v_slider, ['min'])), 'Max' => ui_i(ui_get($v_slider, ['max'])), 'Value' => ui_s($v_usage), 'AriaLabel' => ui_s(ui_get($v_slider, ['label'])), 'Attrs' => ui_attrs(['data-testid', 'slider'])]])|noescape}
    {if ui_t(ui_eq($v_ends, 'show'))}
      {capture $c_6}
        {capture $c_4}
          {=ui_text(ui_tpl(ui_get($v_slider, ['unit']), [ui_get($v_slider, ['min'])]))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_4])|noescape}
        {capture $c_5}
          {=ui_text(ui_tpl(ui_get($v_slider, ['unit']), [ui_get($v_slider, ['max'])]))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_5])|noescape}
      {/capture}
      {=ui_include('ui/group/group.latte', ['p' => ['Justify' => 'between', 'Attrs' => ui_attrs(['data-testid', 'ends'])], 'children' => $c_6])|noescape}
    {/if}
    {capture $c_11}
      {capture $c_9}
        {capture $c_7}
          {=ui_text(ui_get($v_price, ['label']))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_7])|noescape}
        {capture $c_8}
          {=ui_text(ui_money(ui_mul($v_usage, ui_get($v_price, ['rate'])), ui_get($v_price, ['currency'])))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => '4xl', 'Weight' => 'bold', 'Attrs' => ui_attrs(['data-testid', 'estimate'])], 'children' => $c_8])|noescape}
      {/capture}
      {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '0'], 'children' => $c_9])|noescape}
      {capture $c_10}
        {=ui_text($v_cta)}
      {/capture}
      {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Href' => ui_s($v_href), 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_10])|noescape}
    {/capture}
    {=ui_include('ui/group/group.latte', ['p' => ['Justify' => 'between', 'Align' => 'center', 'Class' => 'flex-wrap'], 'children' => $c_11])|noescape}
  {/capture}
  {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Align' => 'stretch', 'Class' => ui_s(ui_cnv(['mx-auto w-full max-w-xl', (ui_t(ui_eq($v_layout, 'card')) ? 'rounded bg-card p-6 inset-ring inset-ring-border' : '')])), 'Attrs' => ui_attrs(['data-testid', 'usage'])], 'children' => $c_12])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'tone' => $v_tone, 'align' => 'center', 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_13])|noescape}
blocks/credit-packs.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/credit-packs.json
    Packs of credits as tiles: the amount, a badge, the price and a buy button. Axes: columns (2, 4), item (tile, row), tone, density.
    Props (p): id, title, packs, badges, buy, cols, item, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_packs = ($p['packs'] ?? null)}
{var $v_badges = ($p['badges'] ?? null)}
{var $v_buy = ($p['buy'] ?? null)}
{var $v_cols = ($p['cols'] ?? '4')}
{var $v_item = ($p['item'] ?? 'tile')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_11}
  {capture $c_10}
    {foreach ui_l($v_packs) as $v_pack}
      {capture $c_9}
        {capture $c_8}
          {capture $c_6}
            {if ui_t(ui_or([ui_get($v_pack, ['badge']), ui_and([!(ui_eq($v_item, 'row')), ui_gt(ui_count($v_packs, 'badge'), 0)])]))}
              {capture $c_2}
                {if ui_t(ui_get($v_pack, ['badge']))}
                  {capture $c_1}
                    {=ui_text(ui_at($v_badges, ui_get($v_pack, ['badge'])))}
                  {/capture}
                  {=ui_include('ui/badge/badge.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Class' => 'w-fit shrink-0', 'Attrs' => ui_attrs(['data-testid', 'badge'])], 'children' => $c_1])|noescape}
                {/if}
              {/capture}
              {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'flex min-h-6 items-center', 'Attrs' => ui_attrs(['data-slot', 'badge-slot'])], 'children' => $c_2])|noescape}
            {/if}
            {capture $c_5}
              {capture $c_3}
                {=ui_text(ui_get($v_pack, ['name']))}
              {/capture}
              {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_3])|noescape}
              {capture $c_4}
                {=ui_text(ui_money(ui_get($v_pack, ['price']), ui_get($v_pack, ['currency'])))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => '2xl', 'Weight' => 'bold'], 'children' => $c_4])|noescape}
            {/capture}
            {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '0', 'Class' => 'min-w-0'], 'children' => $c_5])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Align' => 'start', 'Class' => ui_s(ui_cnv(['min-w-0', (ui_t(ui_eq($v_item, 'row')) ? 'flex-1' : '')]))], 'children' => $c_6])|noescape}
          {capture $c_7}
            {=ui_text($v_buy)}
          {/capture}
          {=ui_include('ui/button/button.latte', ['p' => ['Variant' => ui_s((ui_t(ui_eq(ui_get($v_pack, ['badge']), 'popular')) ? 'default' : 'outline')), 'Size' => 'sm', 'Type' => 'button', 'Class' => ui_s(ui_cnv(['w-fit shrink-0', (ui_t(ui_eq($v_item, 'row')) ? '' : 'mt-auto')])), 'Attrs' => ui_attrs(['data-testid', 'buy'])], 'children' => $c_7])|noescape}
        {/capture}
        {=ui_include('ui/card/card-content.latte', ['p' => ['Class' => ui_s(ui_cnv(['flex h-full gap-4', (ui_t(ui_eq($v_item, 'row')) ? 'flex-row flex-wrap items-center justify-between' : 'flex-col')]))], 'children' => $c_8])|noescape}
      {/capture}
      {=ui_include('ui/card/card.latte', ['p' => ['Variant' => 'default', 'Class' => ui_s(ui_cnv(['h-full', (ui_t(ui_eq($v_item, 'row')) ? 'gap-4 p-4' : (ui_t(ui_eq($v_density, 'compact')) ? 'gap-4 p-4' : ''))])), 'Attrs' => ui_attrs(['data-testid', 'item', 'data-badge', ui_get($v_pack, ['badge'])])], 'children' => $c_9])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_item, 'row')) ? '1' : ui_fit_cols((ui_t(ui_eq($v_cols, '2')) ? '1-2' : '1-4'), ui_len($v_packs)))), 'Class' => 'gap-4', 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_10])|noescape}
{/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_item, 'row')) ? '2xl' : 'default'), 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_11])|noescape}
blocks/pricing-tiers.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/pricing-tiers.json
    A section with a heading and one PricingCard per plan. Axes: layout (grid, stack), columns, emphasis, billing (off: no toggle; monthly or annual: a toggle with that choice selected, and the prices of that period), density, tone.
    Props (p): id, title, plans, labels, billingLabels, layout, cols, emphasis, billing, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_plans = ($p['plans'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_billingLabels = ($p['billingLabels'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'grid')}
{var $v_cols = ($p['cols'] ?? '1-3')}
{var $v_emphasis = ($p['emphasis'] ?? 'auto')}
{var $v_billing = ($p['billing'] ?? 'off')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_7}
  {if ui_t(!(ui_eq($v_billing, 'off')))}
    {capture $c_5}
      {capture $c_3}
        {capture $c_1}
          {=ui_text(ui_get($v_billingLabels, ['monthly']))}
        {/capture}
        {=ui_include('blocks/switcher-item.latte', ['p' => ['active' => ui_eq($v_billing, 'monthly')], 'children' => $c_1])|noescape}
        {capture $c_2}
          {=ui_text(ui_get($v_billingLabels, ['annual']))}
        {/capture}
        {=ui_include('blocks/switcher-item.latte', ['p' => ['active' => ui_eq($v_billing, 'annual')], 'children' => $c_2])|noescape}
      {/capture}
      {=ui_include('blocks/switcher.latte', ['p' => ['label' => ui_get($v_billingLabels, ['label'])], 'children' => $c_3])|noescape}
      {capture $c_4}
        {=ui_text(ui_get($v_billingLabels, ['save']))}
      {/capture}
      {=ui_include('ui/badge/badge.latte', ['p' => ['Variant' => 'default', 'Size' => 'default'], 'children' => $c_4])|noescape}
    {/capture}
    {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'center', 'Class' => 'flex-wrap', 'Attrs' => ui_attrs(['data-testid', 'billing'])], 'children' => $c_5])|noescape}
  {/if}
  {capture $c_6}
    {foreach ui_l($v_plans) as $v_plan}
      {=ui_include('blocks/pricing-card.latte', ['p' => ['plan' => $v_plan, 'labels' => $v_labels, 'emphasis' => $v_emphasis, 'billing' => (ui_t(ui_eq($v_billing, 'annual')) ? 'annual' : 'monthly'), 'density' => (ui_t(ui_eq($v_density, 'compact')) ? 'compact' : 'default')]])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_layout, 'stack')) ? '1' : ui_fit_cols($v_cols, ui_len($v_plans)))), 'Class' => 'gap-4', 'Attrs' => ui_attrs(['data-testid', 'tiers'])], 'children' => $c_6])|noescape}
{/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, 'stack')) ? 'md' : 'default'), 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_7])|noescape}
blocks/cta-band.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/cta-band.json
    A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
    Props (p): id, title, text, actions, quote, layout, tone, proof, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_quote = ($p['quote'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'card')}
{var $v_tone = ($p['tone'] ?? 'muted')}
{var $v_proof = ($p['proof'] ?? 'none')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{var $v_center = ui_or([ui_eq($v_layout, 'band'), ui_eq($v_layout, 'banner')])}
{if ui_t(ui_eq($v_layout, 'banner'))}
  {=ui_include('blocks/cta-banner.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'text' => $v_text, 'cta' => ui_get($v_actions, ['cta']), 'href' => ui_get($v_actions, ['href']), 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{elseif ui_t(ui_eq($v_layout, 'row'))}
  {capture $c_7}
    {capture $c_6}
      {capture $c_5}
        {capture $c_4}
          {capture $c_3}
            {capture $c_1}
              {=ui_text($v_title)}
            {/capture}
            {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(2), 'Size' => '2xl', 'Weight' => 'bold', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-title', [$v_id])])], 'children' => $c_1])|noescape}
            {capture $c_2}
              {=ui_text($v_text)}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'min-w-0'], 'children' => $c_3])|noescape}
          {if ui_t(ui_eq($v_proof, 'quote'))}
            {=ui_include('blocks/quote-proof.latte', ['p' => ['quote' => ui_get($v_quote, ['text']), 'quoteBy' => ui_get($v_quote, ['by']), 'center' => $v_center]])|noescape}
          {/if}
          {=ui_include('blocks/cta-actions.latte', ['p' => ['id' => $v_id, 'actions' => $v_actions, 'center' => $v_center]])|noescape}
        {/capture}
        {=ui_include('ui/card/card-content.latte', ['p' => ['Class' => 'flex flex-col gap-4 md:flex-row md:items-center md:justify-between'], 'children' => $c_4])|noescape}
      {/capture}
      {=ui_include('ui/card/card.latte', ['p' => ['Variant' => 'muted'], 'children' => $c_5])|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_6])|noescape}
  {/capture}
  {=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'section', 'Class' => 'py-8', 'Attrs' => ui_attrs(['aria-labelledby', (ui_t($v_landmarkLabel) ? null : ui_tpl('{0}-title', [$v_id])), 'data-testid', 'section', 'data-tone', $v_tone, 'data-density', $v_density, 'aria-label', $v_landmarkLabel])], 'children' => $c_7])|noescape}
{else}
  {capture $f_8}
    {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
  {/capture}
  {capture $c_9}
    {if ui_t(ui_eq($v_proof, 'quote'))}
      {=ui_include('blocks/quote-proof.latte', ['p' => ['quote' => ui_get($v_quote, ['text']), 'quoteBy' => ui_get($v_quote, ['by']), 'center' => $v_center]])|noescape}
    {/if}
    {=ui_include('blocks/cta-actions.latte', ['p' => ['id' => $v_id, 'actions' => $v_actions, 'center' => $v_center]])|noescape}
  {/capture}
  {=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'layout' => (ui_t(ui_eq($v_layout, 'split')) ? 'split' : 'stack'), 'align' => (ui_t($v_center) ? 'center' : 'start'), 'boxed' => ui_eq($v_layout, 'card'), 'media' => ['show' => ui_eq($v_layout, 'split')], 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_8], 'children' => $c_9])|noescape}
{/if}
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}