adobe/spectrum-web-components/spectrum-wc-skill

Claude Code and agent skill by adobe/spectrum-web-components

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Build UIs with Spectrum 2 Web Components (swc-* elements, @adobe/spectrum-wc). Use when developers are working with the @adobe/spectrum-wc package or swc-* custom elements. Includes component and pattern API references (properties, slots, events, CSS custom properties, CSS parts) plus usage guidance.

Install

npx vskill@latest install adobe/spectrum-web-components/spectrum-wc-skill

SKILL.md

The same SKILL.md was published earlier as adobe/spectrum-web-components/spectrum-wc-skill.

Spectrum Web Components (Spectrum 2)

Spectrum 2 Web Components (swc-*) is Adobe's Spectrum 2 design system implemented as framework-agnostic web components. All components ship from a single package, @adobe/spectrum-wc.

Migrating from Spectrum 1? Use the migrate-swc-gen1-to-gen2 skill instead,
which includes per-component migration guides and a full coexistence walkthrough.

Quick start

bash
yarn add @adobe/spectrum-wc
ts
// App entry (once): global styles and design tokens
import '@adobe/spectrum-wc/swc.css';
ts
// Where a component is used: import its entry to register the custom element
import '@adobe/spectrum-wc/components/button/swc-button.js';
html
<html class="swc-theme swc-theme--light">
<body>
<swc-button variant="accent">Save</swc-button>
</body>
</html>
The swc-theme and swc-theme--light classes set the theme and scale for
their subtree; apply them once on an ancestor high in the tree (e.g. <html>
or your app root), not per component.

Key concepts

  • Single package, subpath imports: @adobe/spectrum-wc is a monolithic

package; import each component from its own subpath so bundlers only include what is used, e.g.: @adobe/spectrum-wc/components/badge/swc-badge.js.

  • Theme classes, not a theme element: unlike Spectrum 1's <sp-theme>

wrapper, Spectrum 2 applies theme and scale via CSS classes on an ancestor element: swc-theme--light, swc-theme--dark, swc-theme--adaptive.

  • Side-effectful import: importing a component's .js entry registers its

custom element (e.g. @adobe/spectrum-wc/components/button/swc-button.js). Prefer this registering import; import the class directly (e.g. @adobe/spectrum-wc/components/button/Button.js) only for extension or typing.

  • Accessibility: components handle their own roles, state, and keyboard

interaction, but some require attributes you must supply. Read the accessibility section of each component's reference before using it.

Documentation structure

The references/ directory contains one Markdown file per component and pattern. Each reference ends with an API section (properties, slots, events, CSS custom properties, CSS parts) generated from the component's source. Multi-element components (e.g. accordion, tabs) document each sibling custom element under its own subheading within that section.

Components

One file per component in references/components/ (e.g. references/components/badge.md).

Available components: {{GEN2_COMPONENT_NAMES}}.

{{GEN2_COMPONENT_LIST}}

Patterns

Higher-level compositions of multiple components, one file per pattern in references/patterns/.

Available patterns: {{GEN2_PATTERN_NAMES}}.

{{GEN2_PATTERN_LIST}}

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,541
Repository forks
264
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/adobe/spectrum-web-components/spectrum-wc-skill/badge)](https://verified-skill.com/skills/adobe/spectrum-web-components/spectrum-wc-skill)

Something wrong with this skill or its page? Tell us.