Use it with AI coding tools
Claude, Cursor, Copilot and other AI tools write better code with these components when they can read the docs and the design rules. Give them three things: the docs index, the design file, and a short set of rules in your project.
Give it the docs
The site publishes its pages in the llms.txt format, built from the same source as these pages (Installation and API sections included):
| File | What's in it |
|---|---|
| llms.txt | Every page, one line each, with a link to its Markdown |
| llms-full.txt | All the pages in one file (large: give it to tools that index docs) |
en/<page>.md, e.g. en/select.md |
One page as Markdown, for a single component |
Add llms.txt (or llms-full.txt) as documentation in your tool, or paste the link of the page you're working on into the chat.
Give it the design
DESIGN.md holds the design in the DESIGN.md format: the colors of all four themes, type, spacing, corners, motion, the main button, field and tile values, and the do's and don'ts. It is generated from tokens.css, so the values are the package's.
The package ships it too, so your tool can read the copy that matches your installed version:
Add the rules to your project
Put a few lines in the file your tool reads for project instructions (AGENTS.md, CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md …):
Keep it short: the tool reads the details from the docs and DESIGN.md when it needs them.
Autocomplete in the editor
custom-elements.json in the package lists every element with its attributes, events, slots and parts. Editors that read the Custom Elements Manifest give autocomplete and hover docs in HTML and templates. React gets the same from the wrappers' TypeScript types.
Check what it wrote
AI tools still guess. Before you keep the code, check the usual slips:
- A plain
<button>,<input>or<select>where a component exists. - A hex color or a pixel value where a token exists.
- A field on a tile without a layer around the tile.
- Rounded corners or a box shadow on a surface.
- A React prop spelled like the HTML attribute (
helper-textinstead ofhelperText).