Icons your AI assistant can find
Prefer one line? The free Icon Picker plugin searches and inserts icons for your assistant.
Ask for “a cart button” or “a stop button for the agent” and get the right LINE & STONE component — not an SVG your assistant made up. This guide takes about five minutes and uses the files in your Team / Dev download.
What you need
- The Team / Dev download (it includes the React and Vue packages,
metadata.jsonand the AI rule fileai/AGENTS.md). - A React or Vue project.
1. Install the package
From your project folder, install the package file that came with your download:
npm install ./lineandstone-icons-react-1.1.0.tgz
Using Vue? Install lineandstone-icons-vue-1.1.0.tgz instead. The packages are not on the public npm registry — they install from the file you downloaded.
Every icon is one component with the prefix Ls:
import { LsCart } from '@lineandstone/icons-react'
<LsCart size={20} strokeWidth="auto" />
strokeWidth takes 1, 1.25, 1.5 or "auto" (1 px on sharp screens, 1.25 px elsewhere).
2. Give your assistant the rules
ai/AGENTS.md tells your assistant three things: use Ls components from the installed package, look icons up by meaning in metadata.json, and never draw its own SVG.
Copy ai/AGENTS.md and metadata.json into your project, then point your assistant at the rules:
- Cursor — put
AGENTS.mdin the project root, or paste its contents into a project rule. - Claude Code — add the contents to your project’s
CLAUDE.md, or reference the file from it. - GitHub Copilot — paste the contents into
.github/copilot-instructions.md. - Any other assistant — paste the contents into its project or custom instructions.
3. Ask by meaning
You don’t need to know icon names. Describe what the icon is for:
Add a cart button to the header.
import { LsCart } from '@lineandstone/icons-react'
<button aria-label="Cart">
<LsCart size={20} />
</button>
More prompts that work well:
- “Use the stop icon on the agent’s running state.”
- “Add icons to the settings list: account, notifications, privacy.”
- “Swap the emoji in this empty state for a LINE & STONE icon.”
Every icon has a name, a category and keywords in metadata.json, so the assistant can match “checkout basket” to cart or “launch to production” to deploy.
Tips
- Keep
metadata.jsonnext to the rules file; the assistant needs both. - For buttons with only an icon, ask for an
aria-label— the rule file asks for it too. - When we release new icons, download the new version from /updates/ with your license key and replace the package and
metadata.json.
FAQ
Do I need the Team / Dev tier?
Yes for this workflow — the React and Vue packages, metadata.json and the AI rule file are in Team / Dev. Basic and Pro include SVG, PNG and the Figma / Sketch libraries.
Can my assistant use the icons in an open-source project?
Yes, for the icons your app actually uses, inside its source code. You may not publish the full set, the packages or the source folders. See the license.
Does the assistant send my icons anywhere?
No. Everything is local files in your project; the rules only tell the assistant which components to use.