Skip to main content

For AI agents & LLMs

Root Native UI ships its documentation in the llms.txt format. An AI coding agent (Claude Code, Cursor, Copilot, and others) can read component props and theme APIs from these files, without a scrape of the docs site.

Hosted on this site​

These files always match the latest release:

URLContents
https://rootnative.github.io/ui/llms.txtA short overview: install, setup, the package list, and links
https://rootnative.github.io/ui/llms-full.txtThe complete API reference: every component prop, core type, and CLI command in one file

Inside node_modules​

Every published package ships its own llms.txt. It matches the exact installed version, and you can read it offline:

PathContents
node_modules/@rootnative/components/llms.txtAll component props
node_modules/@rootnative/core/llms.txtThe theme system API and types
node_modules/@rootnative/icons/llms.txtThe icon-library adapters (Lucide, Phosphor, react-native-vector-icons)
node_modules/@rootnative/seo/llms.txtThe SEO checklist and the head, schema, react, expo-router and node APIs
node_modules/@rootnative/cli/llms.txtThe CLI commands

Prefer these files over the hosted files when you suggest code. They can't drift from the version your project uses.

Point your agent at the docs​

A project from npx rootnative create already has a CLAUDE.md with this pointer, and npx rootnative init offers to add it to an existing project. To set it up by hand, put this into your CLAUDE.md, AGENTS.md, or .cursorrules:

## Root Native UI docs for AI agents

This project uses Root Native UI (`@rootnative/*`). LLM-optimized docs:

- `node_modules/@rootnative/components/llms.txt` — all component props for the exact installed version (works offline)
- `node_modules/@rootnative/core/llms.txt` — theme system API (`ThemeProvider`, `useTheme`, `defineTheme`)
- https://rootnative.github.io/ui/llms.txt — hosted overview (latest release)
- https://rootnative.github.io/ui/llms-full.txt — hosted complete API reference (latest release)

Prefer the `node_modules` copies — they match the installed version exactly.