AI & Editor Setup
Make your AI assistant and code editor generate accurate TailUI code by feeding them the llms.txt context file — a compact, structured reference of every TailUI component, class name, and usage rule.
What is llms.txt?
A single text file containing every TailUI component, its class names, HTML syntax, and usage rules — optimized for LLMs and code editors.
https://tailuicss.com/llms.txt
Claude (Anthropic)
In Claude's chat, enable the Search feature, then paste the URL before your prompt:
https://tailuicss.com/llms.txt build me a pricing page with 3 cardsClaude will fetch the file and use TailUI classes correctly in its response.
ChatGPT (OpenAI)
Enable Search in ChatGPT, then include the URL in your prompt:
https://tailuicss.com/llms.txt create a dashboard layout with sidebar, cards, and a modal
Cursor
Add the file as a project rule so Cursor always knows about TailUI:
# Create the rules directorymkdir -p .cursor/rules# Download the llms.txt filecurl -o .cursor/rules/tailui.mdc https://tailuicss.com/llms.txtNow every time you use Cursor's AI features (Cmd+K, Chat, etc.), it will automatically use TailUI classes.
Windsurf
Add TailUI as a global rule in Windsurf:
# Create the rules directorymkdir -p .windsurf/rules# Download the llms.txt filecurl -o .windsurf/rules/tailui.md https://tailuicss.com/llms.txt
GitHub Copilot (VS Code)
Add TailUI context as a Copilot instruction file:
# Create the instructions directorymkdir -p .github# Download the llms.txt filecurl -o .github/copilot-instructions.md https://tailuicss.com/llms.txtCopilot will use this file as context for all suggestions in your project.
Any other LLM or tool
Simply paste the URL or the file content as context in your prompt. The file is designed to be compact and structured for any AI model:
# Download locallycurl -o tailui-context.txt https://tailuicss.com/llms.txt# Or just reference it in your system prompt:# "Use TailUI classes as documented in https://tailuicss.com/llms.txt"What's inside llms.txt?
- - All 20 components with their class names, variants, sizes, and states
- - HTML syntax examples for every component
- - Usage rules and constraints
- - Install and configuration instructions
- - CLI commands reference
- - Dark mode and CSS variables documentation