
design-systems-slds2-migrate
Migrate Lightning Web Components from SLDS 1 to SLDS 2
by forcedotcomFree
Description
design-systems-slds2-migrate is an agent skill for moving Lightning Web Components from SLDS 1 to SLDS 2. It runs the SLDS linter on the code and then fixes the violations it reports, guided by the SLDS 2 styling hook categories. Those categories are color, spacing, sizing, typography, border and radius, and shadow. Each one replaces a family of hardcoded values, or older --lwc-color tokens, with a matching --slds-g hook. Non-color hooks are mostly numbered scales with straightforward mappings. Color hooks need more judgment, because the right hook depends on context, so the skill asks the agent to choose them with care. The goal is a systematic pass that brings a component set onto the SLDS 2 styling system, not a series of one-off edits. The skill is for Salesforce front-end developers who maintain Lightning Web Components and need to update their styling.…
Highlights
- Runs the SLDS linter and fixes what it reports
- Maps hardcoded colors, spacing and sizing to SLDS 2 hooks
- Covers typography, borders, radius and shadows
- Careful with color hooks that depend on context
Ratings & Reviews
No ratings yet
Be the first to rate design-systems-slds2-migrate.
People also visit

design-systems-slds-validate
Audit Lightning Web Components for SLDS design-system compliance

design-systems-slds-apply
Apply SLDS-compliant UI using the correct blueprints, styling hooks

experience-lwc-generate
Lightning Web Components with PICKLES methodology and 165-point scoring

generating-lwc-components
Lightning Web Components with PICKLES methodology and 165-point scoring

experience-lwc-design-generate
Create a brand new Lightning Web Component from a Figma design
design-systems-slds2-migrate FAQ
What does the migration change?
Hardcoded colors, spacing, sizing, typography, border and radius values, and shadows in Lightning Web Components, moved to matching SLDS 2 styling hooks.
Why are color hooks harder?
The right color hook depends on context, while most non-color hooks are numbered scales with simple mappings. The skill asks the agent to take more care with colors.
How do I install it?
Run npx skills add https://github.com/forcedotcom/sf-skills --skill design-systems-slds2-migrate in your project, then ask the agent to migrate a component or folder.
What tool does it run first?
The SLDS linter, which reports the violations the skill then fixes.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Warn.
What are the best design-systems-slds2-migrate alternatives?
Popular alternatives to design-systems-slds2-migrate include uplifting-components-to-slds2, design-systems-slds-validate and design-systems-slds-apply. See all design-systems-slds2-migrate alternatives





