Chapter 01 Start
Build with AI
Give your AI assistant our guide before it writes UI. It then uses the real components, props and tokens instead of guessing, and follows the accessibility and right-to-left rules.
The two files
Both are plain text, generated from these docs, so they match the version you are reading.
| File | Use it when |
|---|---|
| llms.txt | The tool can follow links. A short index: the rules and a link to every component. |
| llms-full.txt | You want one file with everything: setup per framework, tokens, and every component's usage and options. Best for Cursor, Claude Code, Copilot and chat. |
https://okaapi.dev/llms-full.txtUse it in four steps
- Copy the address above, or download llms-full.txt into your project.
- Give it to your tool. Tools that read a URL (Claude Code, Cursor
@Docs, Copilot Chat#fetch) take the address. In others, attach the file or paste its text into the conversation. - Make it permanent: add one line to your project's rules file (
CLAUDE.md,AGENTS.md,.cursor/rules,.github/copilot-instructions.md) so every session starts with it. - Ask for the UI you want and name the framework. Then run the checks in Getting started.
This project uses Okaapi. Before writing any UI, read https://okaapi.dev/llms-full.txt and follow its rules.Prompts that work
Each one names the framework, the screen and the languages, which is what the assistant cannot guess.
Using Okaapi (Angular), build a "Book a site visit" form: full name, city (select), a switch for SMS updates and a primary submit button that shows a loading state. Support English and Arabic with correct RTL. Use only components and props from https://okaapi.dev/llms-full.txt.Review this file against https://okaapi.dev/llms-full.txt. List every hand-built control the kit already has, every raw colour or pixel value, every left/right instead of start/end, and every prop that does not exist. Then fix them.Re-brand this app to a deep green using only the --ui-* tokens, as described in https://okaapi.dev/llms-full.txt. Keep 7:1 contrast for text on the primary colour in light and dark, and show me the :root override.What the guide tells the assistant
- Use the kit's components. Never hand-build one it already has.
- Style only through
--ui-*tokens and Tailwind classes, never raw colours, pixel spacing or overrides of.ui-*classes. - Use logical properties (
ms-2,pe-4) so layouts flip in Arabic, and setlanganddir. - Never invent a prop or component: if it is not in the guide, it does not exist.
The index, live
This is the file as served, so you see what the assistant sees.
Loading the file…
Keep it current
Update the @okaapi-ui/* packages, then fetch the guide again: it describes the version this site shows. Maintainers regenerate it with pnpm llms after changing a component page; pnpm llms --check fails when it is stale.