# <styles>

Declares named style aliases: each attribute becomes a style token that expands to its value.

Category: Metadata.

```ham
<column style="w-full gap-12">
    <styles card="w-full p-16 rounded-xl border border-gray-300 dark:border-gray-700 gap-4"
            price="font-xl font-bold text-teal-600"/>
    <column style="card">
        <text style="font-semibold">Espresso beans, 1 kg</text>
        <text style="price">$24.00</text>
    </column>
    <column style="card">
        <text style="font-semibold">Pour-over kettle</text>
        <text style="price">$59.00</text>
    </column>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `reset` | true clears every style alias declared so far (built-ins stay) before this tag adds its own. |  |

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.

## Related tags

- [`<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.
- [`<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.
- [`<globals>`](https://hypeapps.dev/docs/reference/globals.md): Declares app-wide variables, kept across pages and optionally saved on the device.
- [`<notification>`](https://hypeapps.dev/docs/reference/notification.md): Wires local and push notifications into the page: schedule one, and act when one is tapped.
- [`<shake>`](https://hypeapps.dev/docs/reference/shake.md): An invisible motion sensor that publishes live acceleration readings as $id variables.
- [`<state>`](https://hypeapps.dev/docs/reference/state.md): Declares a draw tool's own variables and starting values, read and written as $tool.* by its handlers.

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