Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agent/skills/basalt-html/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Standalone HTML that looks and behaves like Basalt: one file, no network, dark a
3. Run `node .agent/skills/basalt-html/compose.mjs report.body.html` (writes `report.html`; `--out <page.html>` names it). It wraps the body in the doctype, meta and theme bootstrap, inlines Geist, and adds the core CSS and script plus only the modules your classes, attributes and tags use, and the icons you name in quotes. It prints what it added, and one warning line for each module added. `--no-fonts` skips Geist (only for a file a tool reads, never a file a person opens), `--lang fr` sets the language, `--all` adds every module.
4. Open the page in both themes at 1440 and 390 wide before you hand it over. It follows the system theme; the toggle or `Basalt.toggleTheme()` switches it.

`examples/static.body.html` (a report) and `examples/interactive.body.html` (inputs, tabs, a palette) are bodies to copy from. Never open or paste `parts/`: it is minified output.
`examples/static.body.html`, `sales.body.html` (reports) and `interactive.body.html` (inputs, tabs, a palette) are bodies to copy. Never open or paste `parts/`: it is minified output.

## Modules

Expand Down
76 changes: 76 additions & 0 deletions .agent/skills/basalt-html/examples/sales.body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<title>Shop report, October 2026</title>

<a class="skip-link" href="#main">Skip to content</a>

<header class="topbar">
<div class="topbar-inner">
<a class="brand" href="#top">Larch and Loom</a>
<span class="spacer"></span>
<button class="btn" data-variant="ghost" data-icon-only data-theme-toggle></button>
</div>
</header>

<main id="main" class="page">
<div class="stack" style="--gap: var(--basalt-space-3)" id="top">
<p class="eyebrow">October 2026 · Online shop</p>
<h1>Monthly shop report</h1>
<p class="lead">Orders rose for the third month running, led by the autumn textiles. Returns stayed under target, and every order left the workshop within two working days.</p>
</div>

<section class="section" id="summary" aria-labelledby="summary-h">
<div class="section-head"><h2 id="summary-h">Summary</h2><p class="muted small" style="margin-top: var(--basalt-space-1)"><strong>Scope.</strong> Online orders only. Market stalls and wholesale are reported separately.</p></div>
<div class="stats">
<div class="stat">
<span class="stat-label">Orders</span>
<span class="stat-value">1,284</span>
<span class="stat-note">Up 9% from September</span>
</div>
<div class="stat">
<span class="stat-label">Average order</span>
<span class="stat-value">$46.20</span>
<span class="stat-note">Up $2.10</span>
</div>
<div class="stat">
<span class="stat-label">Shipped on time</span>
<span class="stat-value">100%</span>
<div class="progress" role="progressbar" aria-label="Shipped on time" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100" style="--value: 100%"><span></span></div>
</div>
</div>
</section>

<section class="section" id="products" aria-labelledby="products-h">
<div class="section-head"><h2 id="products-h">Best sellers</h2><p class="muted small" style="margin-top: var(--basalt-space-1)">By units sold in the month.</p></div>
<div class="panel table-wrap" role="region" aria-label="Best sellers table" tabindex="0">
<table>
<thead>
<tr><th scope="col">Product</th><th scope="col">Stock</th><th scope="col" data-numeric>Units</th><th scope="col" data-numeric>Revenue</th><th scope="col" data-numeric>Returns</th></tr>
</thead>
<tbody>
<tr><td>Wool throw</td><td><span class="status" data-status="success">In stock</span></td><td data-numeric>212</td><td data-numeric>$18,020</td><td data-numeric>3</td></tr>
<tr><td>Linen tea towel</td><td><span class="status" data-status="success">In stock</span></td><td data-numeric>390</td><td data-numeric>$5,850</td><td data-numeric>1</td></tr>
<tr><td>Stoneware mug</td><td><span class="status" data-status="warning">Running low</span></td><td data-numeric>264</td><td data-numeric>$6,336</td><td data-numeric>6</td></tr>
<tr><td>Cedar planter</td><td><span class="status" data-status="danger">Sold out</span></td><td data-numeric>88</td><td data-numeric>$4,840</td><td data-numeric>0</td></tr>
</tbody>
</table>
</div>
</section>

<section class="section" id="notes" aria-labelledby="notes-h">
<div class="section-head"><h2 id="notes-h">Notes</h2></div>
<div class="prose">
<p>The cedar planter sold out on October 24; the next batch is due mid-November. Mugs are being restocked from the kiln this week.</p>
<ul>
<li>Free returns on textiles stay through December</li>
<li>Gift wrap is now offered at checkout</li>
</ul>
</div>
<div style="margin-top: var(--basalt-space-6)">
<button class="disclosure" data-disclosure aria-expanded="false" aria-controls="method">Method</button>
<div id="method" class="prose small muted" hidden>
<p>An order counts in the month it was paid. Revenue is before shipping and tax. A return counts in the month it arrived back.</p>
</div>
</div>
</section>

<footer class="footer">Larch and Loom · October 2026 · Generated with the Basalt HTML skill</footer>
</main>
8 changes: 4 additions & 4 deletions .agent/skills/basalt-html/parts/usage/dialog-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ A form or task in the center (React's `DialogContent form`): a dialog with the s

```html
<dialog class="panel float modal dialog" data-form id="d">
<header class="sheet-head"><div class="sheet-head-text"><h2 class="dialog-title" tabindex="-1">Declare an incident</h2></div>
<header class="sheet-head"><div class="sheet-head-text"><h2 class="dialog-title" tabindex="-1">Invite a teammate</h2></div>
<button class="btn sheet-close" data-variant="ghost" data-dialog-close aria-label="Close"><span data-glyph="close"></span></button></header>
<div class="sheet-body"><p class="dialog-description">Say what is happening.</p>…fields…</div>
<footer class="sheet-foot"><div class="dialog-actions"><button class="btn" data-dialog-close>Cancel</button><button class="btn" data-variant="primary">Declare</button></div></footer>
<div class="sheet-body"><p class="dialog-description">They get a link to join.</p>…fields…</div>
<footer class="sheet-foot"><div class="dialog-actions"><button class="btn" data-dialog-close>Cancel</button><button class="btn" data-variant="primary">Send invite</button></div></footer>
</dialog>
```

- 480 wide, head and foot held, the body scrolls and opens with the description. At most the window less 16px above and below; its top is held where it opened.
- Any task: an invite, a booking. 480 wide, head and foot held, the body scrolls and opens with the description. At most the window less 16px above and below; its top is held where it opened.
- First focus: the first field for a key or a mouse, the title for a touch. Under 720 it is a full-screen modal, the foot's two actions equal 44px buttons.
- React's alone: the top re-measured on a resize, and a scrim press that closes only while nothing is entered. Here the scrim closes it.
Loading
Loading