AI tools
Pixels works with Claude Code, Cursor, Copilot, v0 and Lovable: an MCP server, a shadcn registry, rules files and every page as Markdown.
Open with AI
Set up your project in one step
Run this in your app. It adds the Pixels rules for AI coding tools and connects the Pixels MCP server, without overwriting your files.
npx -y @pixelsds/mcp initAGENTS.md,CLAUDE.md,.cursor/rules/pixels.mdc,.github/copilot-instructions.md,.windsurfrules: use Pixels components and tokens, no hex colours, React Aria props, logical spacing for RTL..mcp.json(Claude Code),.cursor/mcp.json(Cursor),.vscode/mcp.json(VS Code): thepixelsMCP server.
The npm packages carry the same rules: node_modules/@pixelsds/react/AGENTS.md, plus pixels.manifest.json with every component's props and examples.
MCP server
Add it by hand if you prefer:
{ "mcpServers": { "pixels": { "command": "npx", "args": ["-y", "@pixelsds/mcp"] } } }Claude Code: claude mcp add pixels -- npx -y @pixelsds/mcp
| Tool | What it does |
|---|---|
search_components | Find components, blocks, patterns and templates for a need |
get_component | Props with types, allowed values and defaults, import line, Figma component, example code |
get_tokens | Tokens with light and dark values and the Tailwind class |
get_setup | Install, CSS import, dark mode, RTL, density, the Pro .npmrc |
check_code | Checks code against the Pixels rules: hex colours, palette classes, left/right spacing, onClick on Button, raw HTML controls, unknown props |
add_component | Writes a component's example files into your app and gives the install command |
Pro components: set PIXELS_LICENSE_KEY in the server's env. Search and docs work without a key.
shadcn registry
Free items need no setup:
npx shadcn@latest add https://pixelsds.com/r/date-picker.jsonFor short names and Pro items, add the Pixels registries to components.json:
"registries": {
"@pixels": "https://pixelsds.com/r/{name}.json",
"@pixels-pro": {
"url": "https://pixelsds.com/api/r/{name}.json",
"headers": { "Authorization": "Bearer ${PIXELS_LICENSE_KEY}" }
}
}npx shadcn@latest add @pixels/button @pixels-pro/finance-appEach item adds its example files under components/pixels/ and installs @pixelsds/react (and @pixelsds-pro/react for Pro, which needs the .npmrc). The components themselves stay in the npm package, so you keep getting fixes. The full list: registry.json.
Figma Code Connect
Pixels Pro includes Code Connect templates for 36 components (Button, Input, Select, Tabs, Alert …) in @pixelsds-pro/react/code-connect. Publish them to your copy of the Pixels Figma library and Dev Mode shows real @pixelsds/react code with the right variant, size, label and state. Figma's MCP server then hands the same code to your AI tool.
- Import the Pro .fig and publish it as a library.
- Set your file's URL in
code-connect/figma.config.json(documentUrlSubstitutions). npx figma connect publish --token <FIGMA_ACCESS_TOKEN>(a Figma plan with Dev Mode and Code Connect).
Pixels Figma plugin
Three tools that run inside Figma, with no network or account:
- Make RTL: Arabic Locale mode,
Direction = RTLon Pixels components, right-aligned text and Arabic copy from the Pixels dictionary. - Lint: finds hard-coded colours, unstyled text and detached components, and binds colours to the matching Pixels variable in one click.
- Brand theme: type a brand colour, get the 25–900 scale with an AA check, added as a mode of the Brand collection.
Copy for AI, v0 and Lovable
Every docs page and every Storybook page has an AI menu: copy the page as Markdown, view it as Markdown, or open it in ChatGPT, Claude, v0 (free items) or Lovable with a prompt that points at the right docs.
Machine-readable files
- /ai/rules.md: the rules for AI coding tools.
- /ai/manifest.json: every component with props, allowed values, defaults, tokens, Figma node and example code.
- /ai/index.json: a short list for search.
- /ai/tokens.json: every token with light, dark and mono values.
- /ai/components/: one Markdown file per React component;
/ai/docs/…has every docs page as Markdown. - /llms.txt and /llms-full.txt.
All of them are built from the component source and the Figma tokens on every release, so they never drift from the code.