Using AI
Spectrum Design Data puts the official Spectrum dataset (design tokens, component schemas, and Spectrum documentation and usage guidelines) directly in your AI assistant, so it answers from real data instead of guessing. It ships as an Agent Skill and an MCP server, both zero-config: they carry an embedded snapshot of Spectrum, docs included, so there's no dataset to point at and nothing to run yourself.
It's for anyone building with Spectrum: engineers, designers, PMs prototyping a screen, reviewing a PR, or wiring up a component who want to know "which token is this" or "what does this component support" without leaving the conversation.
What you can do with it
Ask in plain language. The assistant answers from the embedded Spectrum dataset instead of guessing.
Look things up
- Find a token: "what's the token for the default row background?"
- Suggest a token from a description: "I need a background for a selected, hovered row." It ranks existing tokens by confidence and surfaces real ones first, so you reuse before you invent.
- Inspect a component's options: "what sizes and variants does Button support?" You get the actual schema: variants, sizes, states, and boolean props.
- Resolve a value in context: "what's this token's hex in dark mode at high contrast?"
- Read a guideline: "pull up the Colors guideline" or "what does the background layers guidance say?"
- Get oriented: a primer with token counts, the mode-sets (color scheme, scale, and contrast), the component list, the registry vocabulary, and where the data came from.
Use the shared vocabulary (the registry)
The primer also exposes Spectrum's controlled vocabulary: variants (accent, quiet, negative, and so on), t-shirt sizes (xs through xxl, with medium as the default), interaction states (default, hover, focus, disabled), and component anatomy terms. Use it to name things the Spectrum way and to confirm which size, state, or variant names are real before you rely on them.
Prototype and build custom components
Working on something that isn't in Spectrum Web Components or React Spectrum yet? The dataset won't write the component for you, but it keeps a hand-built one on Spectrum foundations:
- Pick real Spectrum tokens for color, spacing, and radius with suggest and query instead of hard-coding values.
- Borrow the registry vocabulary for prop names (size, variant, state) so your component matches Spectrum conventions.
- Use an existing component's schema as a model for how Spectrum organizes variants, sizes, and states.
- Check the relevant guideline before you commit to a pattern.
It answers from the data. It does not generate component code or plug into Spectrum Web Components or React Spectrum.
Skill vs. MCP server
Same data, same tools, two ways to load them:
| Agent Skill | MCP Server | |
|---|---|---|
| Context cost | Description only, until invoked | All tools loaded every session |
| Best for | Prototyping, on-demand lookups | Always-available access, agent pipelines |
| Setup | Install once per tool below | Add to your MCP config, restart |
Both can run together, though most people only need one.
Install the MCP server
The MCP server (@adobe/design-data-mcp) uses the same config shape in every MCP-capable
tool: just npx, no environment variables.
{
"mcpServers": {
"design-data": {
"command": "npx",
"args": ["-y", "@adobe/design-data-mcp@latest"]
}
}
}
(@latest avoids npx reusing a cached, older build.) Where that block goes:
| Tool | Config location |
|---|---|
| Claude Code | .mcp.json |
| GitHub Copilot CLI | ~/.copilot/mcp-config.json (add "type": "local"), or run copilot mcp add design-data -- npx -y @adobe/design-data-mcp@latest |
| GitHub Copilot app (desktop) | Customize → MCP → add custom server. MCP servers configured in a repo or in Copilot CLI sync in automatically. |
| VS Code | .vscode/mcp.json (note the root key is servers, not mcpServers) |
| Cursor | .cursor/mcp.json |
Restart the tool after changing its MCP config.
Install the skill
The skill is lighter-weight than the MCP server: it loads only when relevant.
Claude Code:
/plugin marketplace add adobe/spectrum-design-data
/plugin install design-data@spectrum-design-data
GitHub Copilot (CLI and desktop app): Copilot CLI reads the same marketplace.json
Claude Code plugins use (it checks .claude-plugin/ alongside its own .github/plugin/),
so this repo is already a Copilot plugin marketplace. No separate Copilot config is needed:
copilot plugin marketplace add adobe/spectrum-design-data
copilot plugin install design-data@spectrum-design-data
Installing the plugin adds its skill. Skills configured for a repo or via Copilot CLI are
automatically available in the GitHub Copilot app; manage them there under Customize →
Skills. (Plugin installs themselves are tracked per client, so if you also want it listed
under Customize → Plugins in the desktop app, install it there too. You can also skip the
marketplace and copy tools/design-data-skill/skills/design-data/ directly into
~/.copilot/skills/ or a repo's .github/skills/. Copilot also reads .claude/skills/.)
Cursor: Settings → Rules → Add Rule → Remote Rule (GitHub):
https://github.com/adobe/spectrum-design-data/tree/main/tools/design-data-skill/skills/design-data
Other AI resources
- llms.txt, at the repo root: llms.txt describes the project layout, design tokens, component schemas, and common tasks for LLMs.
- Generated markdown: the docs/markdown/ directory holds auto-generated markdown for tokens, component schemas, and the design-system registry, used for docs site chatbot indexing. Regenerate with
moon run markdown-generator:generate.
See also: React Spectrum: Using AI for React Spectrum's own AI integration (S2 component implementation docs, icons, illustrations).