- containers: section, card, stack, row, grid, split, form, carousel
- text: heading, paragraph, text, code, badge, avatar, icon, image, rating, stat, progress, skeleton, divider, spacer, empty_state
- controls: button, toolbar, segmented, input, textarea, select, checkbox, radio, toggle, choice_group, tags_input, upload, picker, editor
- navigation: tab_bar, bottom_tab_bar, breadcrumb, pagination, stepper, nav, menu, menubar, command, app_bar, action_sheet, page_header
- data: table, list, chart, calendar, kanban, tree, accordion
- feedback: alert
Pick the element that is the thing. Do not build a card out of a section and a
border; use card. Do not build a nav out of buttons; use nav.
Three or more similar siblings: write one repeat: { cell, items } on a stack, row,
grid or card. cell is an element or a component; each item is its props plus an id
and renders as <host>__<id>: repeat: { cell: stat, items: [{ id: mrr, label: MRR }] }.
Whole screens ship built in. Use one before building it by hand: use: std.login.
std.data_page, std.hero, std.login, std.not_found, std.settings_page, std.signup, std.site_footer, std.site_header.
wf component show std.<name> lists its props and slots; wf component copy std.<name> makes an editable copy in components.yaml.
Only some elements draw a visible box. The engine decides, in this order:
surface: true/surface: falseon the node wins over everything.- A border in
wireframeStylemeans you want a box. - The element type decides:
card,alert,code,upload,editor,calendar,pickeralways box;row,stack,grid,split,formnever do;tab_bar,app_bar,dividerdraw one edge. - Overlay chrome owns the frame, so overlay content never double-boxes.
- Template regions box unless they are a slot or
role: main. - A pane is a panel, so it boxes.
- If the parent separates its children, the parent draws the strokes.
- Grid children are tiles, so they box.
- Inside a box, nothing boxes itself again — use
cardif you want one. - At the top of a page a
sectionboxes, unless it is an untitled row (that reads as a toolbar).
section means "engine, you decide". card, row, stack and grid are
explicit — prefer them when you know what you want.
Run wf why <nodeId> --page <pageId> to see the rule that fired and the one
edit that flips it.
The wireframe is greyscale. Four hues exist, and they answer one question — how bad is this:
| Where | How to ask for it |
|---|---|
alert |
variant: info | success | warning | error tints the left stripe |
badge |
tone: info | success | warning | danger makes it a status pill |
button |
variant: danger for an action that destroys something |
input and friends |
error: <message> turns the field and its message red |
menu / action_sheet rows |
danger: true |
Nothing else takes a hue. Charts, stat trends, headings, primary buttons and
every fill stay grey on purpose: a wireframe that colours by brand or by
category stops reading as a wireframe. badge.variant is the shape
(neutral, outline, dot, pill); badge.tone is the status.
Give a region a role and it gets the right size automatically:
header, app_bar, sidebar, nav, main, aside, footer, toolbar, tabbar, form, dialog, sheet, drawer, content.
A role: sidebar region is 256px on web, 220 on tablet; a header is 56 tall.
Override one value project-wide in manifest.sizing, or locally with size
on the node. Available tokens: sidebar.width, sidebar.collapsedWidth, sidebar.minWidth, aside.width, header.height, tabbar.height, footer.minHeight, page.gutter, content.narrowWidth, card.padding, card.gap, grid.gap, grid.minItemWidth, control.height, control.minWidth, row.height, modal.width, drawer.width, sheet.maxHeight, chart.height, stat.minHeight, statusbar.height, homeindicator.height.
Never hand-size a sidebar, header, footer, tab bar or control unless the design actually differs from the default.
Set viewport.platform to ios or android (it defaults to ios for
device: mobile). The elements are the same; only chrome changes — control
heights, corner radii, title alignment, status bar, home indicator. Native-only
elements: app_bar, bottom_tab_bar, action_sheet, picker,
list with kind: settings, input with inputType: stepper, and
button with fab: true.
Overlays live in page.overlays (or template.overlays) and open from an
interaction:
- id: open_menu
component: button
props: { label: Actions }
interaction:
- type: open_overlay
targetOverlay: actions_menu
overlays:
- id: actions_menu
type: menu # modal alert dropdown popover menu drawer_left
# drawer_right bottom_sheet toast tooltip
trigger: open_menu # anchors the popup to that node
placement: bottom # top bottom left right center
dismissOn: [outside, escape]
props:
title: Actions
actions: [{ label: Cancel }, { label: Save, variant: primary }]
content:
- id: actions_list
component: menu
props:
items: [Rename, Duplicate, { label: Delete, danger: true }]Anchored types (dropdown, popover, menu, tooltip) position themselves
against their trigger at runtime, flip when they would overflow, and match the
trigger's width. dismissOn accepts backdrop, outside, escape, timeout.
Leave text out and the element renders a skeleton bar rather than a gap, which
is what a wireframe should show. paragraph: { lines: 3 }, skeleton,
table: { state: loading } and image with no src all do this.
| Command | What it answers |
|---|---|
wf llm --short |
this page, generated from the code |
wf llm --element <name> |
one element's props, with an example |
wf llm --family <name> |
every element in a family |
wf catalogue |
every element rendered, as a page you can open |
wf why <nodeId> --page <pageId> |
why that node did or did not get a box, and how to change it |
wf validate |
schema and semantic errors, with the address of each |
wf lint |
the mistakes an agent actually makes, each with a suggestion |
wf inspect <address> |
the resolved node at an address |
wf tree <page> |
the resolved page tree |
wf routes |
every route id, path, page and template |
wf build |
static HTML you can open |
wf pack / wf unpack |
one .wf file in, a project folder out |
wf screenshots |
rendered PNGs, to check your own work |
Build the project and read the markup: every node carries data-wf-frame, so
you can see what the engine decided without guessing. Turn on
rendering.explain: true on a page and each node also carries
data-wf-why="<rule>:<reason>".
| Code | Meaning |
|---|---|
SECTION_INTENT |
a section that would read better as row, stack or card |
REDUNDANT_SURFACE |
a surface: that matches what the rules already decide |
UNKNOWN_PROP / UNKNOWN_PROP_VALUE |
with the nearest valid name |
UNKNOWN_ROLE |
a role that drives no proportions |
MISSING_TEXT |
an element rendering a skeleton you may not have intended |
UNLABELED_FIELD |
a field with no label |
AMBIGUOUS_VALUE |
a single-choice value that matches several items, so only the first is selected |
ORPHAN_LAYOUT, EMPTY_CONTAINER, DEEP_NESTING |
structure that will not render as intended |