# Pieces and gallery

> The accessible base underneath, your own styled pieces on top, and the gallery that says what each one is for.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://design.docs.sypnia.com/components/

For agents: Section index, three layers: (1) @sypnia/base — unstyled accessible React behaviour shared by every customer (focus, keyboard, screen readers, layers, dialogs, menus, phone behaviour), built on React Aria; (2) your components — styled with the project's tokens, generated into src/design/ of the customer's repository, owned by the customer; (3) the gallery — design/gallery.yaml + a private page: pieces, when to use and not, combinations, screen patterns per kind of use case. Customer apps never start from @sypnia/ui.

Every screen in your app is built from **pieces**. Each piece has two layers: a shared base that makes it work for everyone, and your look on top. The gallery ties them together.

**Figure**: Three layers: the shared accessible base, your own styled pieces, and your gallery.

1. `@sypnia/base` gives every piece its behaviour: keyboard, focus, screen readers, layers and phone behaviour. It has no look.
2. Your components, in `src/design/` of your repository, give every piece your look, from your tokens. They are yours.
3. Your gallery says which piece is for what, how they combine, and which screen pattern fits each kind of case.

- [The accessible base](/components/the-base/): @sypnia/base: the behaviour every piece needs, with no look of its own.
- [Your components](/components/your-components/): Pieces with your look, generated into your repository, and yours to keep and change.
- [Your gallery](/components/the-gallery/): Which piece to use for what, how to combine them, and every piece shown live.
- [Screen patterns](/components/patterns/): Which screen shape fits each kind of use case, and the states every pattern must design.
- [Design and @sypnia/ui](/components/design-and-sypnia-ui/): Why your app does not start from Sypnia's own component library, and when you might choose it anyway.
