# Step

> One step of a Stepper: a 24px marker and its name. A green tick when done, a green ring when current, grey when it is still to come.

| | |
|---|---|
| Kind | component |
| Contract | `review` · [step.contract.yaml](https://github.com/Runceanu/rost/blob/master/contracts/step.contract.yaml) |
| Guidance | `proposed` |
| Source | [Figma 744:30](https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=744-30) · read 2026-11-16 · frozen 2026-11-16 |
| Implemented in | nowhere yet |

## Install

It lands in `src/rost/step/`, with what it needs and its contract:

```sh
npx github:Runceanu/rost add step
```

Then import `src/rost/fonts.css` and `src/rost/tokens.css` once, at the root of the app. More on this in [Install](https://rost.build/docs/install.md).

## Props

| Prop | Type | Values | Default |
|---|---|---|---|
| `status` | enum | `done` `current` `upcoming` | `upcoming` |
| `number` | number |  |  |
| `children` | slot |  |  |

## Anatomy

- `root`: An `<li>`: the marker and the name, 8px apart.
- `marker`: The 24px circle with the number, or a tick when done.
- `check` (optional): Checkbox's tick, 16px, as a mask in the colour of a primary button's label.
- `label`: The step's name in paragraph type.

## When to use

- **Done, here, to come.** Each step says which it is: a tick for done, a green ring for where you are, grey for what's left.

## When not to use

- **Steps you can press.** A Step isn't a button. If going back is allowed, put a Back button in the form.

## Behaviour

Done shows a dark tick on green, current a green ring and number, upcoming a grey ring and number. The words say the same as the colours.

## Accessibility

- **Element**: `<li>`; the current one has `aria-current="step"`. A done Step says Done in hidden text, since the tick replaces its number.
- **Colour**: The upcoming ring is 4.3:1 on the dark page, the numbers and names 7:1 or more.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `font-family/base` | `'General Sans Variable'` |
| `spacing/gap/small` | `8px` |
| `spacing/outline/medium` | `2px` |
| `spacing/outline/small` | `1px` |
| `spacing/radius/full` | `10000px` |
| `spacing/size/2xsmall` | `16px` |
| `spacing/size/small` | `24px` |
| `step/current/edge` | `#00d669` |
| `step/current/label` | `#ededed` |
| `step/current/number` | `#00d669` |
| `step/done/check` | `#060805` |
| `step/done/label` | `#d3d9d5` |
| `step/done/marker` | `#00d669` |
| `step/upcoming/edge` | `#747573` |
| `step/upcoming/label` | `#999999` |
| `step/upcoming/number` | `#999999` |
| `typography/label/font-size` | `12px` |
| `typography/label/font-weight/medium` | `500` |
| `typography/label/letter-spacing` | `0px` |
| `typography/label/line-height` | `14px` |
| `typography/paragraph/font-size` | `14px` |
| `typography/paragraph/font-weight/regular` | `400` |
| `typography/paragraph/letter-spacing` | `0px` |
| `typography/paragraph/line-height` | `20px` |

## No token, on purpose

| Part | Property | Value | Why |
|---|---|---|---|
| `marker` | `outline-offset` | `calc(-1 * var(--spacing-outline-medium))` | Composed from a token: the edge sits inside the marker. |
| `check` | `mask` | `url(./icon-check.svg) center / contain no-repeat` | The icon file itself. |

See it live, with every value of every variant: [rost.build/components/stepper/#step](https://rost.build/components/stepper/#step)
