Docs for LLMs
Coding assistants read these docs badly when they scrape HTML: the live examples are rendered custom elements, the source sits behind a “Show code” toggle, and the navigation chrome comes along for the ride.
So every page also exists as plain Markdown, generated from the same source the page itself renders. Examples become fenced code blocks; nothing else is lost.
One page
Section titled “One page”Append .md to any docs URL:
https://design.nanatec.co.ke/components/button.mdhttps://design.nanatec.co.ke/guides/theming.mdEvery page carries a Copy as Markdown button under its title, alongside View .md and Download — pick whichever fits how you work.
The whole library
Section titled “The whole library”| File | What it is | Use it when |
|---|---|---|
/llms.txt | An llmstxt.org index: the install snippet plus a titled, described link to every page’s Markdown. | The assistant can fetch URLs and should pull only the pages it needs. |
/llms-full.txt | Every page concatenated into one Markdown document. | You want the whole design system in context, or you’re seeding a retrieval index in a single request. |
Recipes
Section titled “Recipes”Point an assistant at one component
Read https://design.nanatec.co.ke/components/combobox.mdand build me a country picker with async filtering.Give a CLI agent the whole library
curl -sL https://design.nanatec.co.ke/llms-full.txt -o nana-ui.mdThen reference nana-ui.md in your prompt, or drop it where your agent picks up
project context.
Vendor only the components you use
for c in button input dialog table; do curl -sL "https://design.nanatec.co.ke/components/$c.md" -o "docs/nana-$c.md"doneDirectorydocs
- nana-button.md
- nana-input.md
- nana-dialog.md
- nana-table.md
Directorysrc/
- …
- package.json
Checking these into the repo keeps the guidance versioned alongside your code.
What the Markdown contains
Section titled “What the Markdown contains”For each page: the title, a source link, the description, and — where the
frontmatter declares them — lifecycle status and the version the component
landed in. Then the body, with every example inlined as an html code block, so
an assistant sees the exact markup the page demonstrates.
Finding things quickly
Section titled “Finding things quickly”The sidebar filter (press /) narrows the navigation as you type; matching a group name like “forms” reveals that whole section. For full-text search across page bodies, press Ctrl / ⌘ + K — and the filter’s empty state links straight to it.