# <app>

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

Category: Structure.

```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>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/app-light.webp), [dark](https://hypeapps.dev/img/tags/app-dark.webp).

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

- [Your first screen](https://hypeapps.dev/docs/guides/first-screen.md)
- [Layout and styling](https://hypeapps.dev/docs/guides/layout.md)
- [Navigation](https://hypeapps.dev/docs/guides/navigation.md)
- [Forms and state](https://hypeapps.dev/docs/guides/forms.md)
- [Lists and loops](https://hypeapps.dev/docs/guides/lists.md)
- [Data and databases](https://hypeapps.dev/docs/guides/data.md)
- [A poll that syncs](https://hypeapps.dev/docs/guides/sync.md)
- [Who's using the app ($me)](https://hypeapps.dev/docs/guides/me.md)
- [Gestures](https://hypeapps.dev/docs/guides/gestures.md)
- [Animations and effects](https://hypeapps.dev/docs/guides/animations.md)
- [Drawing and media](https://hypeapps.dev/docs/guides/media.md)
- [Your own tags](https://hypeapps.dev/docs/guides/own-tags.md)
- [A seat picker](https://hypeapps.dev/docs/cookbook/seat-picker.md)
- [A cart with quantities](https://hypeapps.dev/docs/cookbook/cart.md)
- [A chat thread](https://hypeapps.dev/docs/cookbook/chat.md)
- [An hourly forecast](https://hypeapps.dev/docs/cookbook/forecast.md)
- [Rows the server updates (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-watchlist.md)
- [Pick the right match (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-match.md)
- [Search on the server (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-search.md)

## Related tags

- [`<config>`](https://hypeapps.dev/docs/reference/config.md): App settings, not drawn itself: theme color, fonts, dark mode and the default look of each tag.
- [`<app-bar>`](https://hypeapps.dev/docs/reference/app-bar.md): The bar at the top of a screen: a title, a leading menu icon, and action icons on the right.
- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<drawer-header>`](https://hypeapps.dev/docs/reference/drawer-header.md): The header at the top of a side drawer, such as the signed-in person's photo and name.
- [`<drawer-left>`](https://hypeapps.dev/docs/reference/drawer-left.md): A drawer that slides in from the left edge, opened by the menu icon or #id.open.
- [`<drawer-right>`](https://hypeapps.dev/docs/reference/drawer-right.md): A drawer that slides in from the right edge, for filters or details; open it with #id.open.
- [`<list-tile>`](https://hypeapps.dev/docs/reference/list-tile.md): A Material list row with an icon, a title, a subtitle and an optional switch, checkbox or radio.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
