# Style tokens

Every style token family, the named colors, and the conditions (dark:, press:, ios: …) that scope a token.

Generated from the engine's spec (HAM 1.7.0).

A style is a list of tokens, most a family and a value. Number families: `aspect-N`, `blur-N`, `bottom-N`, `brightness-N`, `clip-rounded-N`, `columns-N`, `contrast-N`, `dim-N`, `drop-cap-N`, `elevation-N`, `font-size-N`, `font-weight-N`, `gap-N`, `grayscale-N`, `h-N`, `hue-rotate-N`, `invert-N`, `left-N`, `letter-spacing-N`, `line-height-N`, `lines-N`, `m-N`, `max-h-N`, `max-w-N`, `mb-N`, `min-h-N`, `min-w-N`, `ml-N`, `monochrome-N`, `mr-N`, `mt-N`, `mx-N`, `my-N`, `offset-x-N`, `offset-y-N`, `opacity-N`, `p-N`, `pb-N`, `pl-N`, `pr-N`, `pt-N`, `px-N`, `py-N`, `right-N`, `rotate-N`, `saturate-N`, `scale-N`, `scroll-pb-N`, `scroll-pl-N`, `scroll-pr-N`, `scroll-pt-N`, `sepia-N`, `size-N`, `top-N`, `tracking-N`, `transition-N`, `w-N`, `word-spacing-N`. Color or name families: `animate-…`, `bg-…`, `border-…`, `font-…`, `glass-…`, `gradient-…`, `gradient-radial-…`, `inline-content-…`, `outline-…`, `rounded-…`, `shadow-…`, `text-…`. Conditions, written before a token: `active:` `android:` `apple:` `dark:` `desktop:` `first:` `focus:` `fuchsia:` `ios:` `ipad:` `iphone:` `last:` `lg:` `light:` `linux:` `mac:` `macos:` `md:` `mobile:` `phone:` `press:` `skip-first:` `skip-last:` `sm:` `tablet:` `tv:` `watch:` `wear:` `wearable:` `web:` `windows:`. Fonts: `font-…` takes any of 1,928 Google Fonts by name.

## Named colors

Each has shades from 50 to 950 (`teal-600`): aliceblue, amber, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, bluegrey, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkturquoise, darkviolet, deeporange, deeppink, deeppurple, deepskyblue, dimgray, dodgerblue, emerald, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, green, greenyellow, grey, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, rebeccapurple, red, rose, rosybrown, royalblue, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, snow, springgreen, steelblue, tan, teal, thistle, tomato, transparent, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen.

## Alignment

| Name | What it does |
|---|---|
| `center` | Center: text-center on text tags (<text>, <p>, <h1>…, <span>, <button>), align-center (center the children) on any other tag. |

## Border

| Name | What it does |
|---|---|
| `border-center` | Draw the border centered on the box edge, half inside, half outside. |
| `border-inside` | Draw the border inside the box (the default). |
| `border-outside` | Draw the border outside the box, as a ring around it (the box keeps its size). |
| `outline` | A 1px outline around the box, outside it, never changing its size (CSS outline). outline-N sets the width, outline-{colour} the color (else the border color, else black), outline-offset-N the gap from the box. |

## Button size

| Name | What it does |
|---|---|
| `lg` | Large button: 16px label, 48px tall. Same as size="lg". (On <button> only) |
| `md` | Medium button (the default): 14px label, 40px tall. (On <button> only) |
| `sm` | Small button: 13px label, 32px tall. Same as size="sm". (On <button> only) |
| `xl` | Extra-large button: 18px label, 56px tall. Same as size="xl". (On <button> only) |
| `xs` | Extra-small button: 12px label, 28px tall. Same as size="xs". (On <button> only) |

## Button variant

| Name | What it does |
|---|---|
| `elevated` | Raised button with a shadow (the default variant). Same as variant="elevated". (On <button> only) |
| `filled` | Solid filled button. Same as variant="filled". Chips take variant="filled", not the token. (On <button> only) |
| `outlined` | Outline only, no fill. Same as variant="outlined". (On <button> only) |
| `plain` | Text-only button, no fill or outline. Same as variant="plain" or variant="text". (On <button> only) |
| `text` | Does nothing as a style token. variant="text" on a <button> is the plain variant. (On nowhere as a token) |
| `tonal` | Filled with a soft tint of the color. Same as variant="tonal". (On <button> only) |

## Color filter

| Name | What it does |
|---|---|
| `grayscale` | Show the element in black and white (CSS filter: grayscale). grayscale-50 for half; monochrome is the same. Combine with brightness-N, contrast-N, saturate-N, hue-rotate-N, in the order written. |
| `invert` | Invert the colors (CSS filter: invert); invert-N for N %. |
| `monochrome` | The same as grayscale: black and white (monochrome-N for part of the way). |
| `sepia` | Old-photo brown tones (CSS filter: sepia); sepia-N for N %. |

## Display

| Name | What it does |
|---|---|
| `block` | CSS display: block. Its own line, as wide as its parent (unless it has a w-*). <block>, <section>, <header>, <p>, <ul>, <li>… are block by default. |
| `contents` | CSS display: contents. The element draws nothing; its children are its parent's children (its own style, actions and id go with it). Written on the element itself: not through a named style or a prefix (dark:contents is ignored). |
| `flex` | CSS display: flex. A row of its children (flex-col for a column), with gap-*, justify-* and items-*; the element itself is block. (A child that should grow uses flex-1 or grow.) |
| `flow` | Lay the block's children out inline, wrapping to the next line (same as inline on a block). (On <block>) |
| `grid` | CSS display: grid with grid-cols-N equal columns (1 without it) and gap-N px between cells; the element itself is block. Cells keep their own height (not stretched to the row). |
| `inline` | CSS display: inline. Sits in the line with its siblings. On a <block>, also lays its children out inline, wrapping like text (the older use, kept). (On any element; <block> children) |
| `inline-block` | CSS display: inline-block. As wide as its content, sitting in the line with its siblings and wrapping like text; its own children still stack. |
| `inline-flex` | CSS display: inline-flex. A flex row that is as wide as its content and sits in the line. |
| `inline-grid` | CSS display: inline-grid: a grid sitting in the line. Its columns share the line's width, as a grid's do (it can't size columns to their content). |
| `stretch` | Stretch the block's children to its full width. (On <block>) |

## Flex

| Name | What it does |
|---|---|
| `grow` | Grow into the row's leftover width (flex-grow: 1, same as flex-1). (On a child of a flex row) |

## Input border

| Name | What it does |
|---|---|
| `borderless` | No border at all. (On <input>, <textarea>, <select>) |
| `underlined` | An underline instead of the outlined box. (On <input>, <textarea>, <select>) |

## Layout

| Name | What it does |
|---|---|
| `overflow-hidden` | An exact box: a row's children keep their widths instead of shrinking to fit, and the excess is clipped; a box with a fixed h- keeps that height instead of growing to its content. (On <row>, a box with a fixed height) |
| `overflow-x-auto` | The row scrolls sideways, as wide as its children (same as scroll="x"). overflow-x-scroll is the same. (On <row>) |
| `overflow-x-scroll` | The same as overflow-x-auto: the row scrolls sideways. (On <row>) |

## Position

| Name | What it does |
|---|---|
| `fixed` | Pin the element to the screen (CSS position: fixed); place it with top-/bottom-/left-/right-. |

## Scroll snap

| Name | What it does |
|---|---|
| `snap-center` | A snap position: the element centered in the scroller. (On a child of a snap-x / snap-y scroller) |
| `snap-end` | A snap position: the element's end edge at the scroller's end, inside scroll-pr-N / scroll-pb-N. (On a child of a snap-x / snap-y scroller) |
| `snap-mandatory` | Always come to rest on a snap position (the default). (On a snap-x / snap-y scroller) |
| `snap-proximity` | Snap only when the scroll ends near a snap position (within a quarter of the scroller); otherwise rest where it stops. (On a snap-x / snap-y scroller) |
| `snap-start` | A snap position: the element's start edge at the scroller's start, inside scroll-pl-N / scroll-pt-N. (On a child of a snap-x / snap-y scroller) |
| `snap-x` | CSS scroll snap: the row (scroll="x" / overflow-x-auto) comes to rest with a snap-start / snap-center / snap-end child at its snap position, and a child focused by the remote or keyboard scrolls there. (On a sideways-scrolling <row>) |
| `snap-y` | CSS scroll snap for the page: its scroll comes to rest with a snap-start / snap-center / snap-end element at its snap position; focus follows. (On <main>, <screen>) |

## Shape

| Name | What it does |
|---|---|
| `border` | A 1px border on all sides. |
| `rounded` | Rounded corners, radius 15. |
| `shadow` | A medium box shadow (not a text shadow). |

## Surface

| Name | What it does |
|---|---|
| `glass` | Frosted-glass backdrop blur (glass-N sets the strength). |

## Text

| Name | What it does |
|---|---|
| `drop-cap` | The first letter enlarged to span 3 lines, the text wrapping beside it; drop-cap-N for N lines (2–6). (On <text>, <p> (plain text)) |

## Text case

| Name | What it does |
|---|---|
| `capitalize` | Capitalise the first letter of every word (CSS text-transform); inherits like uppercase. |
| `lowercase` | Show the text in small letters (CSS text-transform); inherits like uppercase. |
| `normal-case` | Show the text as written: stops an inherited uppercase / lowercase / capitalize. |
| `uppercase` | Show the text in capitals (CSS text-transform). Inherits: on a block it applies to the text inside, down to an element that names its own case. Works on live text (@text, @{…}) too. |

## Text decoration

| Name | What it does |
|---|---|
| `line-through` | Strike the text through (CSS text-decoration: line-through). |
| `no-underline` | No decoration: clears an inherited underline or strike, a link's included. |
| `underline` | Underline the text (CSS text-decoration); inherits like a color. On an <a>, it keeps the link underline when a surface token would drop it. |

## Text wrapping

| Name | What it does |
|---|---|
| `break-all` | Break between any two characters (CSS word-break: break-all), for codes and long ids. (On <text>, <p>, headings) |
| `break-words` | Let a word longer than its line break mid-word (CSS overflow-wrap: break-word). By default lines break between words only, and a longer word overflows the box. (On <text>, <p>, headings) |

## Typography

| Name | What it does |
|---|---|
| `bold` | Bold text, the same as font-bold (on a <button>, a bold label). |
| `italic` | Italic text (same as font-italic). (On text) |
| `text-shadow` | A soft shadow behind the letters (text-shadow-sm / -md / -lg, text-shadow-{colour}, text-shadow-none). shadow-* is the box shadow. (On text) |

## Visibility

| Name | What it does |
|---|---|
| `hidden` | Hide the element (it takes no space). Combine with a prefix: ios:hidden, dark:hidden. |
| `show` | Show the element; undoes hidden, e.g. hidden md:show. |

All of HAM in one file: https://hypeapps.dev/llms.txt
