Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
forcedotcom avatar

Applying Slds

  • 946 installs
  • 787 repo stars
  • Updated August 5, 2026
  • forcedotcom/sf-skills

applying-slds is a Salesforce agent skill (v1.0) that makes agents produce Lightning Design System compliant interfaces using correct blueprints, styling hooks, utility classes, and icons for developers building Salesfor

About

applying-slds is a forcedotcom/sf-skills agent skill (version 1.0) for the Salesforce Lightning Design System, a CSS framework with thousands of UI artifacts. It teaches agents to choose between Lightning Base Components and SLDS Blueprints, apply styling hooks for theming, use utility classes for layout and spacing, and pick the right icons when building modals, forms, data tables, and other SLDS-styled surfaces. Developers reach for applying-slds whenever UI work must match Salesforce platform conventions rather than generic Tailwind or Bootstrap patterns. Triggers include phrases like build a modal, create a form, data table, SLDS styling, style with hooks, or add an icon inside Salesforce projects.

  • Teaches agents to choose between ~70 Lightning Base Components and 85 SLDS Blueprints
  • Applies 523 styling hooks for theming with --slds-g-* custom properties
  • Leverages 1,147 utility classes for layout, spacing and visibility
  • Selects and implements correct SLDS icons for any UI element
  • Targets SLDS v2 and flags deprecated --lwc-* tokens and slds-*--modifier syntax

Applying Slds by the numbers

  • 946 all-time installs (skills.sh)
  • Ranked #447 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/forcedotcom/sf-skills --skill applying-slds

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs946
repo stars787
Last updatedAugust 5, 2026
Repositoryforcedotcom/sf-skills

How do you build SLDS-compliant Salesforce Lightning UI components?

Make agents produce Salesforce Lightning Design System compliant interfaces using the right blueprints, styling hooks, utility classes and icons.

Who is it for?

Salesforce developers building Lightning Web Components or platform UI who need agents to follow SLDS blueprints, hooks, and utility conventions.

Skip if: Non-Salesforce web apps using Tailwind or Material UI, or backend-only Apex work with no UI surface.

When should I use this skill?

The user builds Salesforce UI, mentions SLDS, styling hooks, Lightning Base Components, blueprints, modals, forms, data tables, or icon selection.

What you get

SLDS-compliant component markup, blueprint selections, styling-hook theming, utility-class layouts, and correct Salesforce icon usage.

  • SLDS-compliant markup
  • blueprint selection guide
  • themed component structure

By the numbers

  • Skill metadata version 1.0
  • Covers SLDS framework with thousands of UI artifacts

Files

SKILL.mdMarkdownGitHub ↗

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 validating-slds 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

This skill covers:

  • Which blueprint to use for a given UI pattern
  • How to style with hooks (color, spacing, typography, shadows, borders)
  • Which utility classes to use for layout, spacing, visibility
  • Which icon to use and from which category
  • SLDS naming conventions, class structure, hook syntax

This skill includes basic accessibility reminders (icon alt text, focus outlines, color-not-sole-indicator) in the validation checklists. Full WCAG compliance requires a dedicated accessibility review.

This skill does NOT cover (use companion skills):

  • Design decisions -- visual hierarchy, composition, interaction patterns
  • LWC mechanics -- component structure, @wire, @api, lifecycle, events (not yet available)
  • Full accessibility -- WCAG conformance, ARIA patterns, keyboard navigation, focus management, contrast ratios (not yet available)

---

Component Selection Hierarchy

Always follow this order:

1. Lightning Base Components (LWC only)    ← Check first
2. SLDS Blueprints (any framework)         ← Use exact SLDS classes
3. Custom with Styling Hooks               ← Use var(--slds-g-*)
4. Custom CSS (last resort)                ← Still use hooks for values

If building in LWC, check for an LBC first: Lightning Component Library

If no LBC exists (or not using LWC), select an SLDS Blueprint. See references/component-selection.md.

---

Core Rules

Do

  • Follow the selection hierarchy: LBC > Blueprint > Hooks > Custom CSS
  • Use var(--slds-g-*, fallback) for all themeable values
  • Create custom classes (my-*, c-*) instead of overriding .slds-*
  • Verify every hook, class, and utility exists before using it — run the search scripts; never assume an artifact exists based on naming patterns (see Verify Before You Use)
  • Pair surface colors with on-surface colors for text
  • Provide alternative-text on every <lightning-icon>

Don't

  • Hard-code colors, spacing, or typography values
  • Override .slds-* classes directly
  • Use deprecated --lwc-* tokens as primary values
  • Use --slds-s-* (shared) hooks -- they are private/internal
  • Reassign hook values -- only reference them with var()
  • Use color alone to convey meaning
  • Invent hook names by interpolating patterns from other families (see Na

Related skills

How it compares

Choose applying-slds for Salesforce-native SLDS compliance; use generic frontend-design skills for non-Salesforce web stacks.

FAQ

What UI patterns does applying-slds cover?

applying-slds covers SLDS-compliant modals, forms, data tables, layout utilities, styling hooks, and icon selection. Version 1.0 guides agents to pick Lightning Base Components or SLDS Blueprints from the thousands of SLDS artifacts.

When should developers invoke applying-slds?

Developers should invoke applying-slds when building any Salesforce UI that must follow SLDS, including triggers like build a modal, create a form, data table, SLDS styling, style with hooks, or add an icon.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.