# @reuters-graphics/graphics-components

A Svelte 5 component library built by the Graphics team at Reuters for producing data journalism and interactive graphics. Components cover page layout, text elements, multimedia, maps, data visualisation, and site infrastructure — all designed to match the visual and structural conventions of enterprise stories published on reuters.com.

The library ships with a full SCSS design system: spacing tokens, typography utilities, a colour palette, and CSS custom properties for theming via the `Theme` component.

**Install:** `pnpm add @reuters-graphics/graphics-components`

**Import components:**

```svelte
<script>
  import {
    BodyText,
    Legend,
    ShareBar,
  } from '@reuters-graphics/graphics-components';
</script>
```

**Import SCSS:**

```scss
@use '@reuters-graphics/graphics-components/scss/main';
```

---

## This reference

- **[Components](./components/index.md)** — Per-component docs with props tables, TypeScript type definitions, and usage examples extracted from Storybook stories.
- **[Guides](./guides/index.md)** — Integration guides, design system reference, theming, SCSS tokens, and colour palettes.

To find a specific component, start with `./components/index.md` for the full list, then open the individual component file. To understand the design system (spacing, colours, typography), start with `./guides/index.md`.

These docs are automatically generated from components' code structure, SCSS files and also from human-friendly documentation written using Storybook's MDX and Component Story Format syntax.
