For AI agents: the documentation index is at /llms.txt, and any docs page is available as Markdown by appending .md to its URL.
Set up Shelf in a Vite and React project.
Create a project
Skip this if you already have a Vite and React project.
Set up StyleX
Add the plugin to vite.config.ts, before the React plugin.
Install the CLI
The package is @shelfui/cli and its command is shelf.
Initialize Shelf
Writes shelf.config.json and .shelf/lock.json, copies the path aliases from your tsconfig.json, and adds a short agent block to AGENTS.md and a Shelf skill to .agents/skills/shelf/. It warns about anything missing from the StyleX setup above.
Add components
Copies Button, the foundations it uses, and the packages it needs into your project, then records what it installed. The files are yours to edit. See ownership and provenance.
Check the result
Verifies config, provenance, and imports. Your own build still covers the rest. See validation.
Use a component
Importing ./styles/shelf/fonts.css once in your entry file loads Geist. To use your own fonts, see installation.