Skip to content

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 EngineCloud
View as Markdown

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

    @sypnia/base: the behaviour every piece needs, with no look of its own.

  • Your components

    Pieces with your look, generated into your repository, and yours to keep and change.

  • Your gallery

    Which piece to use for what, how to combine them, and every piece shown live.

  • Screen patterns

    Which screen shape fits each kind of use case, and the states every pattern must design.

  • Design and @sypnia/ui

    Why your app does not start from Sypnia's own component library, and when you might choose it anyway.

    Search pages, sections and terms