Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

design-systems-slds2-migrate

Skill by forcedotcom

Migrates Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing the violations it reports. Built for developers who maintain LWC styling in Salesforce projects.

  • Score 80
  • 1.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install design-systems-slds2-migrate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/design-systems-slds2-migrate ~/.claude/skills/design-systems-slds2-migrate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install design-systems-slds2-migrate in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill migrates Lightning Web Components from SLDS 1 to SLDS 2. It starts by running the SLDS linter with the auto-fix option, which handles simple violations. The assistant then reviews the remaining violations and fixes each one using per-rule reference guides. The guidance covers color, spacing, sizing, typography, border, radius and shadow hooks.

Each replacement keeps the original CSS value as a fallback inside a var() call. Color hooks are chosen from the element's context rather than the first linter suggestion. Class overrides are fixed in both the CSS and the markup, and the SLDS class is kept. The process ends when the linter reports zero errors. It is aimed at developers who maintain LWC or Aura components and need to move their styling to SLDS 2.

Written from the project's SKILL.md and checked against it.

What it can do

  • Linter auto-fixRuns the SLDS linter with the fix option to handle simple violations first.
  • Violation triageSorts remaining linter violations by rule and explains the fix for each type.
  • Color hook selectionGuides choosing among color hook families based on element context and property.
  • Non-color hook mappingMaps spacing, sizing, typography, border, radius and shadow values to numbered SLDS hooks.
  • Class override fixesRenames overridden SLDS selectors to component-prefixed classes and updates the markup.
  • Deprecated token replacementReplaces legacy t() and token() syntax with SLDS 2 hooks and LWC fallbacks.
  • Validation loopRe-runs the linter until the output shows zero errors.

What you need

  • Node.js 14.x or higher
  • npx, version 7.0.0 or higher
  • Access to component CSS and markup files
  • Terminal access to run the linter
  • A Git repository for backup (recommended)

Try asking

  • Run the SLDS linter on my LWC folder and fix the violations.
  • Replace the hardcoded colors in this component with SLDS 2 styling hooks.
  • Fix the no-slds-class-overrides warnings in my CSS and markup.

Good to know

  • Layout values such as 100%, auto, 0, inherit and none are left unchanged.
  • Values with no close hook match are left as they are, not force-fitted.
  • Named hooks such as spacing-medium do not exist, so only numbered scales are used.
  • Color hook selection needs judgment based on the element's context.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/design-systems-slds2-migrate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to design-systems-slds2-migrate

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

design-systems-slds2-migrate: common questions

Does this skill cover Aura components as well as LWC?

The source says the linter analyzes both .html files for LWC and .cmp files for Aura. The skill's guidance is framed around migrating Lightning Web Components.

Will the skill change layout values like 100% or auto?

No. The source says layout values are structural and must not be replaced with hooks or removed.

Does the skill invent new SLDS hook names?

The source says it never invents hook names and only uses hooks documented in the SLDS design system.

How do I install design-systems-slds2-migrate?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is design-systems-slds2-migrate free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is design-systems-slds2-migrate safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to design-systems-slds2-migrate?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

design-systems-slds2-migrate Install

Add to stack

Loading.