Skip to content

LLMs

css-variants provides machine-readable documentation files following the llms.txt standard, making it easy for AI assistants and LLMs to understand and help you use the library.

A concise index of all documentation pages with links.

URL: /llms.txt

Use this file when you want to give an AI assistant a quick overview of what documentation is available.

Complete documentation in a single file, including:

  • Full API reference for all functions (cv, scv, sv, ssv, cx)
  • Core concepts with code examples
  • Tailwind CSS integration guide
  • TypeScript usage patterns
  • Migration guide from CVA
  • Performance tips

URL: /llms-full.txt

Use this file when you want to give an AI assistant comprehensive knowledge about css-variants.

You can reference these files directly in your prompts:

Please read https://css-variants.vercel.app/llms-full.txt and help me
create a button component with color and size variants.

Add the llms-full.txt content to your project’s context or reference it in your prompts for better code suggestions.

The llms.txt standard provides a simple way to make documentation accessible to AI systems. Benefits include:

  • Better AI assistance - AI tools can provide more accurate help when they understand the library
  • Reduced hallucinations - Concrete documentation reduces made-up API suggestions
  • Up-to-date information - AI assistants can fetch the latest docs instead of relying on training data