forcedotcom avatar

Design Systems Slds Apply

If you're building UI on Salesforce's Lightning Design System, this skill keeps you from inventing CSS hooks and classes that don't exist. The big win is verification scripts that check SLDS's actual 523 styling hooks, 1,147 utility classes, and 1,732 icons before you use them. It teaches the component selection hierarchy (Lightning Base Components first, then SLDS Blueprints, then custom with hooks) and calls out naming traps where developers assume patterns that aren't there, like `--slds-g-font-size-3` (doesn't exist, use `--slds-g-font-scale-1` instead). Pairs well with the separate validation skill for auditing existing code. Targets SLDS v2 and works across frameworks, though LWC gets the most love.

skills.sh installs
6.1K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill design-systems-slds-apply --agent claude-code

Installs into .claude/skills of the current project.

Files

Applying SLDS

The Salesforce Lightning Design System (SLDS) is a CSS framework with thousands of artifacts. This skill teaches agents how to find and correctly use them.

Version: This skill targets SLDS v2. Legacy --lwc-* tokens and slds-*--modifier syntax are deprecated.

Audit scope: The companion design-systems-slds-validate skill analyzer only scans .css, .html, and .js files. Use it directly for LWC and similar HTML/CSS/JS components; treat it as a partial signal for JSX/TSX or other framework-specific template formats and supplement with manual review.

What is SLDS?

ArtifactCountDescription
Lightning Base Components~70Pre-built LWC components (LWC only)
SLDS Blueprints85CSS/HTML patterns for any framework
Styling Hooks523CSS custom properties (--slds-g-*) for theming
Utility Classes1,147Rapid styling classes for spacing, layout, visibility
Icons1,732SVG icons across 5 categories

Scope

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Frontend Development, DevOps & CI/CD, Code Review & Quality, Design & UI/UX
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1julianoczkowski avatardesign-tokensjulianoczkowski/designer-skillsGenerate a design tokens file (CSS variables or Tailwind config) based on a chosen aesthetic philosophy, with light and dark mode palettes, spacing scale, type 6.1Kskills.sh installs
2assistant-ui avatarupdateassistant-ui/skillsUpgrades an existing assistant-ui project to current releases and executes the resulting migrations. Use when the user wants to update, upgrade, bump, or migrat6Kskills.sh installs
3forcedotcom avatardesign-systems-slds-validateforcedotcom/sf-skillsAudit Lightning Web Components for SLDS compliance and produce a scored quality report. Runs the SLDS linter, analyzes CSS for theming hook usage and pairing, c6Kskills.sh installs
4forcedotcom avatarplatform-custom-application-generateforcedotcom/sf-skillsUse this skill when users need to create or configure tab-based Salesforce Custom Applications with navigation, branding, and action overrides. Trigger when use5.9Kskills.sh installs
5apollographql avatarapollo-clientapollographql/skillsGuide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React project, (2) writing GraphQL queries 5.7Kskills.sh installs
6affaan-m avatarmotion-patternsaffaan-m/eccProduction-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion5.7Kskills.sh installs