1. Reference
  2. Structure

<app>

The root of an app document: its config (theme color, fonts) and its first screen.

Structure
app.ham
<app>
    <config primary_color="teal"/>
    <screen>
        <app-bar title="Plant Care"/>
        <main>
            <column style="w-full p-16 gap-8">
                <text style="font-bold">Water the fern today</text>
                <text style="muted">Last watered 4 days ago.</text>
            </column>
        </main>
    </screen>
</app>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

Guides and recipes that use it

This page is also Markdown, and all of HAM is in llms.txt.