Skip to content
FreePixels Figma UI kit · components, tokens and themes, ready to duplicateGet it free
Storybook

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.

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.

BASH
npx -y @pixelsds/mcp init
  • AGENTS.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): the pixels MCP 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:

JSON
{ "mcpServers": { "pixels": { "command": "npx", "args": ["-y", "@pixelsds/mcp"] } } }

Claude Code: claude mcp add pixels -- npx -y @pixelsds/mcp

ToolWhat it does
search_componentsFind components, blocks, patterns and templates for a need
get_componentProps with types, allowed values and defaults, import line, Figma component, example code
get_tokensTokens with light and dark values and the Tailwind class
get_setupInstall, CSS import, dark mode, RTL, density, the Pro .npmrc
check_codeChecks code against the Pixels rules: hex colours, palette classes, left/right spacing, onClick on Button, raw HTML controls, unknown props
add_componentWrites 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:

BASH
npx shadcn@latest add https://pixelsds.com/r/date-picker.json

For short names and Pro items, add the Pixels registries to components.json:

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}" }
  }
}
BASH
npx shadcn@latest add @pixels/button @pixels-pro/finance-app

Each 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.

  1. Import the Pro .fig and publish it as a library.
  2. Set your file's URL in code-connect/figma.config.json (documentUrlSubstitutions).
  3. 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 = RTL on 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

All of them are built from the component source and the Figma tokens on every release, so they never drift from the code.