Introduction
Learn how Elyri is organised into sections and packages, and the two ways to use it.
#What is Elyri
Elyri is a collection of React components: motion effects, UI primitives and page blocks. Import any component straight from npm, or copy its source into your project with the CLI and edit it like your own code.
#Sections and packages
The site is organised into sections, each published as its own npm package. Install only what you use.
#Two ways to use it
| Mode | Best for | Upgrades |
|---|---|---|
| Import from the package | Using components as-is | Bump the package version |
| Copy source with the CLI | Deep customisation and full ownership | Re-run add --overwrite (replaces local edits) |
You can mix both: import most components and copy out only the ones you want to reshape.
#Principles
- Zero runtime dependencies: only
reactandreact-dom(18 or 19) as peer dependencies. - CSS variable theming: every customisable value is an
--elyri-*variable you can override globally or inside any container. - Performance first: WebGL backgrounds pause offscreen and in background tabs, and render at no more than 2× device pixel ratio by default.
- Reduced motion aware: follows the system preference, and any subtree can be forced to play or stay still.