1. Reference
  2. Metadata

<styles>

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

Metadata
styles.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>
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.

Attributes

NameWhat it doesDefault
reset true clears every style alias declared so far (built-ins stay) before this tag adds its own.
boolean

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.

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