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/hyphenation.md
View on GitHub---
id: slds.guidance.utilities.hyphenation
title: Hyphenation Utilities
description: SLDS hyphenation utility class
summary: "Utility for text wrapping and hyphenation. Enables automatic word breaking in narrow containers."
artifact_type: reference
domain: utilities
topic: hyphenation
content_format: structured
complexity: intermediate
audience: [implementer]
tasks: [implement]
refs:
- slds.guidance.utilities
- slds.guidance.overview.utilities
- slds.guidance.utilities.truncate
tags: [utilities, hyphenation, text-wrapping, word-break]
keywords: [slds-hyphenate, hyphenation, word-wrap, overflow-wrap]
---
# Hyphenation - Text Wrapping
Enabling automatic text hyphenation and word breaking in narrow width containers.
## Core Classes
| Class | Purpose |
|-------|---------|
| `slds-hyphenate` | Enables text hyphenation with word-wrapping fallbacks for narrow containers |
## Common Patterns
```html
<!-- Long text in narrow column -->
<div class="slds-size_1-of-3">
<p class="slds-hyphenate">
Supercalifragilisticexpialidocious text that needs to break appropriately.
</p>
</div>
<!-- Table cell with potential long words -->
<td class="slds-cell-wrap">
<span class="slds-hyphenate">
VeryLongProductNameWithoutSpaces
</span>
</td>
<!-- Card header with constrained width -->
<div class="slds-card__header">
<h2 class="slds-text-heading_small slds-hyphenate">
ExtremelyLongTitleThatMightOverflow
</h2>
</div>
<!-- Form label in narrow sidebar -->
<div class="slds-form-element">
<label class="slds-form-element__label slds-hyphenate">
InternationalizationConfiguration
</label>
</div>
<!-- Modal title with potential overflow -->
<div class="slds-modal__header">
<h2 class="slds-text-heading_medium slds-hyphenate">
SuperLongModalTitleForConfiguration
</h2>
</div>
```
## Best Practices
✅ Use on text that might contain long words without spaces
✅ Apply to elements in narrow width containers
✅ Use with non-truncated text that needs to remain visible
✅ Combine with responsive grid columns where text might overflow
❌ Don't use with [Truncate Utilities](ref:slds.guidance.utilities.truncate) (choose one strategy)
❌ Don't apply to elements with fixed widths larger than their containers
❌ Don't use on numeric data or codes that shouldn't breakRelated 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 |