App layout and authoring previews
App layout is authored independently of stored entity schemas. The engine owns typed actions, permissions, synchronization, durable records and server business rules. The presentation compiler gives authors flex/grid composition, typography, spacing, themes and responsive containers within that existing contract.
Author a page
Keep actions, entities, pipelines and capabilities in app.toml. A page declares
exactly one of the existing root tree, an embedded template, or a relative
ui file. Referenced files are embedded into the authored snapshot before
signing, so publication can reproduce the tree without the author's filesystem.
[app]
# Other identity/version fields remain required.
minimum_runtime_version = "1.2.0"
[[views]]
id = "main"
name = "Main"
initial_page = "home"
[views.theme]
accent = "#176b61"
background = "#f4f3ee"
surface = "#ffffff"
text = "#203633"
muted = "#667873"
border = "#dbe1da"
font = "Inter, system-ui, sans-serif"
[[views.pages]]
id = "home"
route = "/"
title = "Committees"
sites = ["web"]
ui = "ui/home.vue"
<template>
<section class="workspace">
<header><h1>Committee workspace</h1></header>
<form aria-label="Choose committee">
<select name="committee_id" label="Committee"
:options="$state.committees" :value="$state.selected_id"
option-value="id" option-label="name" @change="choose_committee" />
</form>
<section v-if="$state.has_proposals" class="proposals" aria-label="Proposals">
<article v-for="proposal in $state.proposals" :key="proposal.id" class="proposal">
<h2>{{ proposal.title }}</h2>
<p>{{ proposal.summary }}</p>
<footer>Due {{ proposal.deadline }} · <strong>{{ proposal.cost }}</strong></footer>
</article>
</section>
<p v-else class="empty">No proposals yet.</p>
</section>
</template>
<style scoped>
.workspace { display: grid; gap: var(--app-space-5); padding: var(--app-space-5); }
.proposals { display: grid; gap: var(--app-space-4); }
.proposal { padding: var(--app-space-5); border: 1px solid var(--app-border); border-radius: var(--app-radius-lg); }
.proposal p { color: var(--app-muted); }
.proposal footer strong { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
.workspace { grid-template-columns: 270px minmax(0, 1fr); }
}
</style>
choose_committee must be a declared action. A select stores the chosen scalar
identity in action_input.values.committee_id and carries the complete option
record in action_input.item. String and numeric identities retain their types.
Use entity hydration to populate options; people choose record names, not raw
foreign keys. A select belongs inside a form even when its change action is
independent of submission. Options are bounded to 500 unique identities.
Supported template subset
This is a declarative source format, not a Vue runtime. Quote attribute values
and close every element, including void controls (<input ... />). Bare boolean
attributes such as required, disabled and submit mean true. XML character
references such as & and numeric references are accepted.
| Source | Native behavior |
|---|---|
div, section, header, footer, aside, article, main, nav, ul, ol, figure | Semantic box containers |
h1–h4, p, span, strong, em, small, li, label, figcaption, blockquote | Text leaves; inline boxes when they hold elements or several interpolations |
img, textarea, a href="/page" | image, multiline input, navigation |
| Existing portable component names | Existing typed components |
:prop="$state.path" | Read binding to local state |
$item.path, $item, $index inside list templates | Read the current record/index |
{{ $state.path }} in text | Interpolation; any number per element, mixed with inline elements |
@click="action", @submit="action", @change="action" | Declared button/form/select actions |
v-if="$state.ready", v-show | Render only when the bound value is boolean true |
v-if="!$state.ready", v-else | Render unless the value is true; v-else negates the previous sibling's condition |
v-for="(row, i) in $state.rows" | A plain list whose rows join the parent's flex/grid; row.x reads $item.x |
aria-label="..." on containers | Accessible name for a landmark or region |
tab-label="Overview" | Label a direct child of tabs |
Rich text works as it does on a web page:
<p>Due {{ row.due }} · <strong>{{ row.budget }}</strong></p> compiles into
inline spans that keep the authored spacing. Labels of buttons, badges and links
take one interpolation without surrounding text. v-for renders up to 100 rows
per page in an interactive host and every row in static HTML. A loop's v-if
filters rows when it reads the loop alias. When it
reads other state, it guards the whole loop. A nested loop reads only its own
alias. :key is accepted and ignored.
No scripts, imports, arbitrary expressions, event handlers, transforms, DTDs or
processing instructions execute through this source. v-else-if, v-model,
v-html, :class and :style are rejected with a hint. Derive display state
in action flows and choose between variants with v-if/v-else. There is one
root and optionally one <style scoped> block. Sources are capped at 128 KiB;
trees retain the 256-node/12-depth limits. Compile errors name the page, line
and column.
The additional interactions are select, badge, details and dialog.
Badges require a label; disclosures require a label and wrap ordinary children.
Dialogs require title and trigger-label, wrap ordinary children, use the
browser's modal focus behavior, close with Escape and restore trigger focus.
Forms and action controls stay disabled while their own submission is pending.
The engine remains responsible for eligibility, validation and transaction
semantics; a disabled button or hidden node cannot enforce a business rule.
In a card deck with decision actions, a button with role="deck-up" or
role="deck-down" opts into the Up or Down arrow shortcut. Each button runs its
declared action and keeps its own selection group. After success the host marks
the title picked locally and advances, without issuing another action. A failed
action retains the current card. Shortcuts ignore typing, modified or repeated
keys, and open dialogs; lists and decks without these roles retain ordinary
Up/Down behavior.
Scoped presentation
CSS compiles to optional ComponentNode.presentation.rules, never a global
stylesheet. The template is static, so the compiler resolves selectors against
it at build time. Use element names, .class, #id, *, :root, compounds
such as h2.title or .card.featured, descendant selectors (.card h3) and
child selectors (.card > header). The compiler applies standard specificity
and source order, and inline style wins. A state pseudo-class applies to the
selected element: :hover, :focus-visible, :disabled, :focus-within,
:active, :first-child, :last-child and :nth-child(odd|even). Runtime
1.3.0 also accepts a final [aria-current="page"], which behaves like a state.
In both hosts a navigation link to the open page carries aria-current="page".
From runtime 1.4.0, a link to a section containing it (/blog on /blog/post;
/ only on the root page) also carries aria-current="true", so assistive
technology names only the exact page. The authored selector matches both, so
nav a[aria-current="page"] styles the current section of a page's own
navigation; apps declaring 1.3.0 mark the exact page only. Ancestor states such as
.card:hover .title, sibling combinators, other attribute selectors,
!important, @keyframes, @import and @font-face are rejected.
Width queries are measured against the app surface's available width, so they
work beside platform navigation or inside another host. @container and
@media are equivalent. Both accept (min-width: N), (max-width: N),
(width >= N)/(width <= N) and and combinations in px, rem or em, for
240–3200 pixels. Mobile-first and desktop-first CSS both work. Media features
other than width are rejected; the host already honors reduced motion. Choose
minmax(0, 1fr) for flexible tracks and check actual content overflow.
Shared controls expose stable ::part(control), label, panel, trigger,
body, title and item hooks where relevant. For example, style
.proposals::part(item) to change a list row wrapper. The property allowlist
covers flex, grid (including grid-template-areas/grid-area), place-*,
logical sizing and spacing, typography (text-wrap, font-variant-numeric,
line-clamp, quoted font names), colors (color-mix(), oklch()), borders,
shadows, filters, backdrop-filter, transforms and transitions. Authored
custom properties (--gap: 24px) inherit like ordinary CSS variables. The
animation property names host keyframes: app-fade-in, app-rise,
app-scale-in, app-slide-in, app-pulse, app-spin and app-shimmer.
Values reject URLs, executable functions, CSS escapes, fixed positioning and
unbounded stacking levels. Strings are limited to names, spaces and dots. Each
node has at most 32 rules, 48 declarations per rule and 16 KiB of declaration
text.
Theme tokens are accent, background, surface, text, muted, border,
danger, success, warning, font and radius. Runtime 1.2.0 adds
on_accent, accent_soft, heading_font, mono_font and shadow. They
become app-local --app-* variables (on_accent becomes --app-on-accent).
The host derives a shared scale from them. Use the scale instead of choosing a
new value on every page:
| Tokens | Values |
|---|---|
--app-space-1 … --app-space-8 | 4, 8, 12, 16, 24, 32, 48, 64 px |
--app-text-xs … --app-text-3xl | 0.75rem to a fluid 2.75rem heading size |
--app-radius-sm, --app-radius, --app-radius-lg, --app-radius-full | Derived from radius |
--app-shadow-sm, --app-shadow, --app-shadow-lg | Elevation |
--app-accent-soft, --app-accent-strong, --app-on-accent | Accent tints and text on accent |
--app-surface-sunken, --app-surface-raised, --app-border-strong | Surface and border variants |
--app-heading-font, --app-mono-font, --app-ease, --app-duration | Type families and motion |
Headings, paragraphs, buttons, inputs, badges, cards, list rows and empty states already use this scale, with hover, focus and pressed states. Use contrast appropriate for the chosen background.
The host serves three open-licensed (OFL) variable families from its own
origin: Fraunces (a display serif with an optical-size axis), Newsreader (a
reading serif) and Inter (an interface sans). Each has normal and italic
faces for weights 100–900. Name them in theme tokens or font-family with a
fallback, for example heading_font = "Fraunces, Georgia, serif". A face
downloads only when rendered text uses it. Themes grant no other font
downloads or asset/network permissions; any other family must already be
installed on the viewer's device.
TOML authoring automatically declares the presentation_v1 host feature.
Native manifest authors must declare it explicitly on the view. Both publication
and hosts reject unknown features. Presentation requires runtime 1.1.0 or
newer. Page-style authoring and the wider vocabulary require runtime 1.2.0.
That covers expanded properties, functions, strings, states and max-width
queries, plus inline text tags, plain lists, negated visibility, container
labels and the newer theme tokens. Styling [aria-current="page"] requires runtime
1.3.0. The document, vector, theme-picker and print/theme vocabulary below
requires runtime 1.4.0, as do page and view metadata and more than 32 pages
or navigation items per view. Validation names the exact runtime to
declare. Hosts apply 1.4.0 behavior only to apps that declare it: the runtime
projection adds the document_v1 host feature, which an app cannot declare
itself. With it the interactive host renders presentation navigation as links,
not buttons, and marks section links current. Old releases omit these optional fields and keep their serialization.
Selector features compile to the same per-element rules, so they also work at
runtime 1.1.0. Deploy compatible publication validation and host rendering
before upgrading an installed app to use a feature.
Reusable specifications and static HTML
The authoring compiler can expand reusable compositions before producing the
existing native ComponentNode tree. Define them under ui.components:
[ui]
styles = 'section { max-width: 48rem; margin-inline: auto; }'
[ui.components.shell]
template = '<section><h1>{{ $props.title }}</h1><slot /></section>'
defaults = { title = "Documentation" }
[ui.data]
topics = ["Portable specification", "Native and WASM output"]
[[views.pages]]
id = "home"
route = "/"
title = "Documentation"
sites = ["web"]
component = "shell"
props = { title = "Engine documentation" }
template = '<ul><li v-for="topic in $state.topics">{{ topic }}</li></ul>'
An ordinary template can also use
<use component="shell" title="Overview"><p>Content</p></use>. Parameters are
literal finite scalars, or paths such as :title="$props.title"; defaults
belong to the receiving component. Slots use the caller's lexical parameters.
Directives/events belong on ordinary template elements; a use accepts only
parameter attributes and rejects directives rather than dropping their behavior.
v-if="$props.href" (or !$props.href) is decided while composing: the element
is kept without the directive or removed, so a component can have optional parts
through defaults = { href = "" }. Strings, booleans and integers are false when
empty, false or 0; write the alternative as its own negated v-if rather
than v-else. Conditions on $state remain runtime bindings.
There are no JavaScript expressions, imports or recursive components. Literal
parameters cannot introduce interpolation tokens. Composition depth is at most
16 and expanded templates retain the existing 128 KiB/node/depth limits.
For prose, use page document = "content/guide.md", or inline markdown in
place of template/ui/root. Optional page stylesheet (or inline styles)
provides document-specific styling. Markdown headings, links, lists, tables and
code fences lower to ordinary native document nodes at authoring time. Raw
markup still passes the strict template compiler, so it cannot introduce
scripts, arbitrary attributes or unsafe links. Code spans and fences are literal:
they compile with v-pre, so {{ }} in a sample stays text, and a fence keeps
its exact whitespace without the trailing newline. v-pre works the same on any
template element. With a page component, the document fills its slot; a
standalone document gets a semantic article root. No Markdown parser ships to
the static page.
A view's [[views.collections]] turns a directory of Markdown documents into
pages and one ordered list, so each title, date and summary is written once:
[[views.collections]]
id = "posts" # pages posts-<slug>; list $state.posts
documents = "posts/*.md" # files directly inside posts/
route = "/blog/{slug}" # slug is the file name without .md
component = "article"
sites = ["web"]
first = { recent_posts = 5 } # optional $state.recent_posts: the first five
Each document starts with TOML front matter between +++ lines. title and a
calendar date = 2026-10-19 are required; other string, boolean and integer
fields are allowed. Every field becomes a page parameter ($props.summary) and
a list entry field, with derived slug and route. The list is newest first.
Collections are expanded with the other source references, before validation
and signing; the published manifest contains ordinary pages and ui.data.
Render a list with v-for, for example
<a :to="post.route">{{ post.title }}</a>, and a date with
<time format="date">{{ post.date }}</time> (Oct 19, 2026, identical in both
hosts and independent of time zone).
ui.stylesheet and ui.components.<name>.ui reference repository files, like
page ui references. The existing source loader embeds all of them before
signing. expandRuntimeAppSources(source, files) exposes that pure loader to
WASM hosts using an explicit path-to-text map; collections list the map's keys. Shared styles may have selectors
for other pages; unmatched page-local selectors remain errors. Component style
blocks are app-scoped, included once per used composition, then resolved with
shared styles and the page's own styles in the existing CSS cascade.
ui.data lowers into the existing initial-state configuration; it cannot be
combined with app.config.runtime_initial_state_json. No new persisted schema
or wire field is introduced by composition.
Native callers use app_runtime_core::static_html::render_static_app; Node and
browser authoring tools use renderStaticApp(source, options) after
initializeUiBindings(). Import these from
@redgold/app-runtime-wasm/authoring to load only the compiler bindings without
mobile lifecycle or durable-storage dependencies. Both execute the same Rust
compiler and backend.
Static output contains no manifest, so a site is not held to the interactive
runtime's counts. Expand its sources with expandStaticSiteSources(source, files) (natively expand_static_site_sources); renderStaticApp compiles with
the same bounds. A static site can have any number of pages, collection
documents, components and children per page, stylesheet rules, repeat rows and
initial-state values. Bytes stay bounded: 64 MiB for the authoring source and
for any one document, string or composed template in it, 256 MiB of rendered
HTML and CSS, and 65,536 published files totalling 512 MiB. Nesting depth and
per-element limits are unchanged. compileRuntimeAppSource,
expandRuntimeAppSources, publication and installed apps keep the limits
stated elsewhere on this page.
The existing compiler selects the application's default view. Static output
contains that view's complete HTML pages, destination filenames and content hashes,
plus deduplicated CSS assets. Hashes cover exact emitted bytes; hosts may use
them as cache keys after applying their own authorization and caching policy.
pathPrefix compiles links for a mount path without configuring any routes.
The static backend supports semantic boxes/text, stacks/grids, links, images, restricted SVG, badges, native disclosures, theme controls and plain repeats. It resolves initial state/item/index bindings with the shared Rust evaluator. Repeats emit native children without layout wrappers and reject truncation. Unsupported components, effects, action flows, page permissions, missing data and locale-sensitive text formats fail explicitly. Static output is not a substitute for installation authorization or a live data host. Elements carry only their semantic attributes, authored ids and short generated class names, assigned by frequency across the whole site; generated ids, host node markers and wrapper spans around plain text runs are omitted. The shared stylesheet keeps only host rules the pages can match, writes each rule shared between style cascades once, drops custom properties and keyframes that nothing reads, and is emitted without comments or formatting.
No script is emitted by default. Native selects and CSS :has() implement
theme selection, including OS-color rules, in current browsers. Optional
persistTheme: true emits a small shared preference script. It restores the
saved theme on every page, including pages without a picker, and saves a new
choice; reading the page and selecting themes still work with JavaScript
disabled. Both output hosts
share their design scale and document presentation CSS. Dynamic engine apps
continue using the interactive host for actions and durable state.
Whole-site output (runtime 1.4.0)
Content can live in TOML instead of markup. [ui] data_files = ["data/cv.toml"]
reads each TOML file at authoring time and adds its top-level keys to ui.data
(a key declared twice is an error). Text with format="markdown" renders one
paragraph of inline Markdown from data, such as
<li v-for="item in job.bullets" format="markdown">{{ item }}</li>: bold,
emphasis, code and links to safe targets. Block syntax and raw HTML fail.
The compiler treats the generated a, strong, em and code elements as
children of that text element, so ordinary rules such as a { color: … } or
.pubs strong style them. They compile to the text element's link,
strong, emphasis and code parts.
A fenced code block tagged sh, shell, bash, console, yaml or yml
is highlighted at authoring time. Tokens become <span class="tk-kw">
(keyword), tk-str, tk-num, tk-cmt, tk-fn (command) and tk-attr (flag
or key) children of the code element, so the app stylesheet colors them like
any other class. Other fences stay plain text.
Scoped CSS accepts ::before and ::after on the selected element, including
after a state (a:hover::after). content is allowed only there and is one
quoted literal of up to 16 characters, without backslashes; attr(),
counters and URLs are rejected.
<picture> with an optional <source type="image/webp" srcset="…"> and one
<img> lowers to a single image. Images accept srcset, sizes, width,
height and loading="eager" (lazy is the default). Sources are HTTPS URLs or
published files: absolute paths with an extension, such as
/assets/photo-320.jpg. <a href="/files/cv.pdf" download> is a file link.
Static export serves published files; the interactive host does not, so it
renders file links and file image sources inert. In the interactive host, an
inline Markdown link to an app path resolves to that page's host URL and
navigates within the app.
Page config holds head metadata: description, published and updated
(calendar dates; updated is the last substantive change), author, image,
image_alt and indexed = false. View config holds the site icon and a
default image. A personal site also names its person for structured data:
person, optionally person_page (the route of their profile page),
person_image, person_job_title, person_works_for and person_same_as
(up to eight HTTPS profile URLs separated by spaces). Collection pages get
description from the front matter description (or summary), published
from date and updated from updated, and a
collection's own config = { author = "…" } applies to each of its pages;
{slug} and {<field>} in its values become the document's slug and front
matter text, as in image = "/og/{slug}.png". The app name is the site
name: other page titles become Page · Site.
Pass the files to publish to the static backend, keyed by site path:
renderStaticApp(source, options, { "/assets/photo.jpg": bytes }) in Node or
render_static_site natively. Each referenced file is returned in files with
a fingerprinted output path (assets/photo.1a2b3c4d.jpg), and every
reference to it, in links, srcset, icons and social images, uses that path.
A reference to a file that is not supplied is an error. Links to pages use the
directory URL each page is served from (/blog/post/), and the generated
stylesheet and theme script are content-addressed files under assets/.
Markdown downloads (.md, served as text/markdown) follow the same supplied-file
and fingerprinting rules; generated page Markdown is returned separately in assets.
With origin: "https://example.com", pages also get a canonical URL, Open
Graph/Twitter metadata and schema.org JSON-LD (the site, its person, the page,
a BlogPosting for dated pages and a breadcrumb trail), and the output gains
sitemap.xml (indexed pages, with updated or else published as
lastmod) and robots.txt. Every indexed page also gets a Markdown version
beside its HTML (blog/post/index.md, front matter then the page's main
content with absolute links), linked from its head as text/markdown, and
the output gains llms.txt, an index of those versions, and llms-full.txt,
all of them in one file. externalPages adds hand-written pages served beside
the site ({ path, title, description, markdown, updated }) to the sitemap and
llms.txt. A published PNG social image also gets its pixel size from the
file. If any page has a published date, the output gains an Atom feed.xml
of those pages, newest first with their descriptions as summaries and their
article text as content, and every head links it; templates may link
/feed.xml.
Every page names the engine in a generator meta tag unless the options set
generator: false.
For a preview, set indexed: false in the render options. Every page gets
noindex, including pages whose metadata opts into indexing. When origin
is supplied, the sitemap is empty and robots.txt disallows crawling the
whole host. Use that crawler file only on a dedicated preview host, not as
the root crawler file of a host shared with a production site. Without an
origin, pages still get noindex, but crawler files are not emitted. This
does not provide authentication or make preview content private.
Review before publication
Open /apps/preview from Apps → Preview layouts. Governance, operations,
collection and studio examples show different workflows. The studio example is
written entirely in page-style markup and CSS. Edit embedded TOML, open the
compiled manifest JSON produced by rac app inspect --json, or open app-release.json from
rac app build. A source containing external ui references must first be
expanded by the CLI. Apply realistic fixture JSON and inspect populated, empty,
loading and error states at desktop and mobile sizes.
The preview uses the publication compiler and installed renderer, with only local-state/navigation action ports. It does not execute entity writes, capability requests or live data views. It cannot prove persistence, server-side voting rules, export behavior or release authenticity.
Start with a clear primary task and a recognizable visual hierarchy. Compose navigation, context and primary content intentionally. Choose names for entity relationships, put secondary forms in a dialog or disclosure, and provide useful state messages. Inspect screenshots yourself; structural validity does not assess visual quality. Exercise keyboard focus, dialog dismissal, labels, the primary action and long content, then verify persistence in the installed app through the ordinary release lifecycle.
The existing runtime-app.spec.ts browser gate renders all four examples on
desktop and mobile, retains state screenshots, checks responsive columns and
overflow, and exercises named selection and dialog focus. Its screenshots are
review artifacts rather than proof that every authored design looks good.
Documents, diagrams and local comparison (runtime 1.4.0)
Declare minimum_runtime_version = "1.4.0" for document extensions. They use
presentation_v1 and the same signed component tree; no app script executes.
Older source without these features continues to compile at its existing version.
A view can contain up to 64 pages (33–64 require 1.4.0), with the existing
256-node and 12-depth budgets per page. This accommodates articles and slide decks.
Static HTML has no page or node count; more than 32 pages still require 1.4.0.
- Inline anchors can contain ordinary text and inline elements. Internal
href="/page"links stay within declared app pages. External links accept HTTPS, simplemailto:addressand app-local#node-idfragments. Optionaltitle,target="_blank"and a boundeddownloadfilename are supported; new tabs usenoopener noreferrer. Executable and protocol-relative targets are rejected. Bound external targets are revalidated by the host. pre,code,kbd,samp,sub,sup,time,b,i,h5,h6,dl,dt,dd,brandhrretain their document semantics. Text beneathprepreserves newlines and indentation, including mixed highlighted spans. Escape XML characters in authored code, or bind a code string from state.table,caption,thead,tbody,tfoot,tr,thandtdcompile into semantic boxes. Cells acceptcolspan,rowspanandscope; they do not invoke data-view read ports. The portable<table view="..." />syntax continues to select the existing data-view component.- SVG accepts
svg,g,path,rect,circle,ellipse,line,polyline,polygon,text,titleanddesc. SupplyviewBoxand anaria-labelon the root. Shapes accept bounded numeric coordinates, paths, points, color tokens and transforms, with state/item bindings. Repeated shapes render directly in SVG; each diagram is limited to 4,096 rendered nodes. Scripts, external references, HTML, event attributes and SVG strings are outside this vocabulary. A shape with@click="declared_action"needs an accessible label and supports Enter/Space as well as pointer activation. - Numeric inputs add
step,type="range"and@change="declared_action". The form still supplies typedaction_input.valuesby field name.min,maxandstepmay be bound to state. Invalid controls do not invoke the change action. Computations and model-specific behavior belong in declared action flows and engine transforms.
Use @media print, @media screen and
@media (prefers-color-scheme: dark)/light for app-local media rules.
Width queries remain app-container queries. A rule may combine a width,
a media condition and an app theme through nesting, at most three levels.
break-before, break-after, break-inside and print-color-adjust cover
page breaks and print presentation. These rules never style the host document.
<theme-picker label="Theme">
<option value="paper" selected>Paper</option>
<option value="darcula">Darcula</option>
</theme-picker>
The compiler lowers the options to the picker's options/default properties;
the encoded options='[{"id":"paper","label":"Paper"}]' form remains valid.
The host remembers a picker selection in the installation's display scope.
@theme darcula { :root { --app-background: #2b2b2b; --app-text: #ecebe6; } }
applies only inside that app. @theme darcula, high-contrast { ... } applies
one block to each listed theme. A Paper theme can nest an OS color-scheme rule.
Theme options are static, unique, bounded data. They grant no additional effects.
Style the picker's label and select with ::part(label) and ::part(control).
Theme conditions preserve authored selector specificity and inline precedence.
For a standalone local comparison, run rac pnpm run build:layout-preview from
ui/app/main (use --fetch .ai/scratch/layout-preview to retrieve the remote
output). Serve that directory on 127.0.0.1 with a bounded local static
server and open layout-preview.html. The same preview supports authored TOML
or compiled JSON uploads, fixture states and local actions, without installing
an app, contacting its data pipelines, or changing DNS/domain routing. Expand
external ui references before opening TOML. The Article and diagrams example
exercises the 1.4.0 features. This preview is a development artifact: it does
not establish a deployed user's identity, server authorization, SEO or persistence.
For a repeatable comparison, copy an expanded TOML fixture into that output
directory and open layout-preview.html?fixture=example.toml&canvas=1.
The standalone entry accepts a local filename only; canvas=1 hides the editor
and page controls. Omit it to inspect fixture states and choose pages.