# Icon usage

How to size, colour and label an icon.

## Size

Pass `size` in pixels. Use 16 inside buttons, inputs and menu items, 20 in headers and toolbars, and 24 where the icon stands alone.

## Colour

An icon takes the colour of the text around it. Set it with a text utility, such as `text-neutral-secondary`, on the icon or on its parent.

## Meaning

An icon is hidden from screen readers by default, which is right when a label sits next to it. For an icon that carries meaning on its own, pass `ariaLabel` and `ariaHidden={false}`. An icon-only button takes its name from `aria-label` on the button.

```tsx
<Button size="icon" variant="outline" aria-label="Search tracks">
  <IconDeepSearch />
</Button>
```

## Right to left

Mirror a directional icon, such as a chevron or an arrow, with `className="rtl:rotate-180"`. Leave the others as they are.

## A missing icon

The package has only the glyphs ARK uses. A missing one is added to the package from Central Icons. Don't draw one by hand or import one from another set.
