forcedotcom/sf-skills / skills/design-systems-slds-apply
design-systems-slds-apply
UnverifiedApply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Lightning Base Components and SLDS Blueprints, applying styling hooks for theming, using utility classes for layout and spacing, or selecting icons. Triggers include "build a modal", "create a form", "data table", "SLDS styling", "style with hooks", "add an icon".
references/utilities/interactions.md
View on GitHub---
id: slds.guidance.utilities.interactions
title: Interactions Utilities
description: SLDS link reset, faux link, and focus state utility classes
summary: "Utilities for link resets, faux links, and focus states. Enables custom link styling and accessible focus indicators."
artifact_type: reference
domain: utilities
topic: interactions
content_format: structured
complexity: intermediate
audience: [implementer]
tasks: [implement]
refs:
- slds.guidance.utilities
- slds.guidance.overview.utilities
- slds.guidance.utilities.typography
tags: [utilities, interactions, links, focus, accessibility]
keywords: [slds-text-link, slds-has-blur-focus, slds-text-link_reset, slds-text-link_faux]
---
# Interactions - Links & Focus States
Managing link appearance, creating faux links, and implementing accessible focus states.
## Core Classes
| Class | Purpose |
|-------|---------|
| `slds-text-link_reset` | Makes links and buttons appear as regular text |
| `slds-text-link` | Restores link styling inside `slds-text-link_reset` |
| `slds-text-link_faux` | Creates underline-on-hover for non-anchor elements |
| `slds-type-focus` | Legacy alias for slds-text-link_faux |
| `slds-has-blur-focus` | Adds accessible blurred outline on focus |
| `slds-has-input-focus` | JavaScript-applied focus state for input containers |
## Common Patterns
```html
<!-- Reset link to look like plain text -->
<a href="/path" class="slds-text-link_reset">
This link looks like regular text
</a>
<!-- Reset with partial link styling restored -->
<a href="/article" class="slds-text-link_reset">
This article discusses important topics
<span class="slds-text-link">Read more</span>
</a>
<!-- Faux link on heading + button combo -->
<div class="slds-page-header__name">
<h1 class="slds-page-header__title slds-text-link_faux">
Account Name
</h1>
<button class="slds-button slds-button_icon slds-text-link_faux">
<svg class="slds-button__icon">...</svg>
</button>
</div>
<!-- Accessible blur focus on custom button -->
<button class="slds-button slds-has-blur-focus">
Custom Action
</button>
<!-- Input container with JavaScript focus state -->
<div class="slds-form-element__control" id="input-container">
<input class="slds-input"
onfocus="document.getElementById('input-container').classList.add('slds-has-input-focus')"
onblur="document.getElementById('input-container').classList.remove('slds-has-input-focus')" />
</div>
```
## Best Practices
✅ Use `slds-text-link_reset` to remove default link styling
✅ Use `slds-text-link_faux` for non-anchor elements that need link behavior
✅ Use `slds-has-blur-focus` for keyboard navigation accessibility
✅ Apply `slds-has-input-focus` via JavaScript when input receives focus
✅ Combine `slds-text-link_reset` with `slds-text-link` for partial link styling
❌ Don't use `slds-text-link_faux` on actual anchor elements
❌ Don't forget to handle both focus and blur events for `slds-has-input-focus`
❌ Don't remove focus indicators without providing alternatives
❌ Don't apply multiple interaction utilities to the same elementRelated skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |