Skip to content
Okaapiأوكابي
Framework for the code
Theme
Okaapi on GitHub

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.

The AI guide files
FileUse 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.
Address of the full guide
https://okaapi.dev/llms-full.txt

Use it in four steps

  1. Copy the address above, or download llms-full.txt into your project.
  2. 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.
  3. 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.
  4. Ask for the UI you want and name the framework. Then run the checks in Getting started.
Line for your rules file
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.

A form
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 existing code
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
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 set lang and dir.
  • 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.