What problem does it solve?
Upgrading an application from Spectrum 1 web components (@spectrum-web-components/, sp- elements) to Spectrum 2 (@adobe/spectrum-wc, swc-* elements) involves package changes, theme bridging, font loading, tag renames, attribute renames, and CSS custom property remapping. This Skill guides that migration step by step while allowing both generations to coexist during the transition.
Core Features & Use Cases
- Incremental coexistence migration: Gen 1 and Gen 2 components run side by side, so you can migrate one component or screen at a time instead of rewriting everything at once.
- Per-component migration guides: Reference docs in references/components/ list renamed attributes, removed features, and --mod-* to --swc-* CSS custom property mappings for each component.
- Theme and font bridging: Instructions cover switching sp-theme to the spectrum-two system, adding swc-theme classes, and loading the Adobe Clean Spectrum VF font.
- Use Case: A team with an app built on @spectrum-web-components/badge and other sp-* elements wants to adopt Spectrum 2. The Skill walks them through installing @adobe/spectrum-wc, replacing tags and attributes component by component, validating with type checks and tests, and finally decommissioning Gen 1 packages.
Quick Start
Ask the assistant to migrate your project from Spectrum 1 sp-* components to Spectrum 2 swc-* components using this migration skill.