# Illustration

> One of Rost's 24 small drawings, 72px, in two greys and a green that follow the theme.

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

## Install

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

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

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 |
|---|---|---|---|
| `name` | enum | `activation-and-conversion` `alignment` `art` `audit-and-strategy` `best-idea` `bridging-the-gaps` `design-partner` `design-system` `design-system-leadership` `efficiency` `goal-focused` `implementing` `interactive-showcase` `long-term-projects` `mentoring` `part-of-the-team` `product-design` `retention` `scale-team` `ship-best` `simplicity-v-complexity` `structured-system` `timezones` `ui` | `alignment` |
| `label` | slot |  |  |

## Anatomy

- `root`: A `<span>` holding the drawing, inline. Unlike an Icon it doesn't take the text colour: its three colours are its own tokens.
- `drawing`: The SVG itself, from `assets/illustrations/`, made inline by `bin/build-illustrations.mjs` so its colours can follow the theme.
- `shade`: The darkest shapes, a step off the page. Every drawing is made of these three colours and nothing else.
- `form`: The mid grey, the main shapes.
- `accent`: The one green. A step deeper in light, where the bright green reads as a sticker.

## When to use

- **A face for a card.** Giving a card or a section a face, like the service cards on the portfolio site.

## When not to use

- **Standing in for an icon.** Standing in for an icon next to a label. That's **Icon**, which is smaller and takes the text colour.
- **Stretched bigger.** Stretching it. It's drawn for 72px; bigger and the lines get heavy.

## Behaviour

A fixed 72px square. Every drawing uses the same three colours: `illustration/shade`, the darkest, a step off the page; `illustration/form`, the mid grey; and `illustration/accent`, the green. In dark they're Figma's own. In light I picked the step that sits as far from the white page as the dark one sits from the black: shade and form are light greys, and the green goes one step deeper.

## Accessibility

- **Hidden**: Most of the time it's decoration beside a heading that says the same, so it's `aria-hidden="true"`. That's the default.
- **Labelled**: When it carries meaning on its own, pass `label`. It becomes `role="img"` with that `aria-label`.

## Content

None. A label, when there is one, says what it stands for.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `illustration/accent` | `#37d273` |
| `illustration/form` | `#454545` |
| `illustration/shade` | `#232423` |
| `spacing/size/2xlarge` | `72px` |

## No token, on purpose

| Part | Property | Value | Why |
|---|---|---|---|
| `drawing` | `width` | `100%` | The drawing fills the 72px box. |
| `drawing` | `height` | `100%` | The drawing fills the 72px box. |

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