--- id: slds.guidance.utilities.themes title: Themes Utilities description: SLDS theme utility classes for background and text colors summary: "Utilities for applying color themes including default, shade, inverse, and semantic states (success, info, warning, error, offline)." artifact_type: reference domain: utilities topic: themes content_format: structured complexity: intermediate audience: [implementer] tasks: [implement] refs: - slds.guidance.utilities - slds.guidance.overview.utilities - slds.guidance.hooks.color tags: [utilities, themes, colors, backgrounds] keywords: [slds-theme, background colors, semantic colors, inverse themes] --- # Themes - Color & Background Applying consistent color themes to containers and components. ## Core Classes | Class | Purpose | |-------|---------| | `slds-theme_default` | White background with default text color | | `slds-theme_shade` | Gray background (#F3F3F3) for subtle contrast | | `slds-theme_inverse` | Dark blue background with white text | | `slds-theme_alt-inverse` | Darker blue background variant | ## Semantic State Themes | Class | Background Color | Text Color | |-------|-----------------|------------| | `slds-theme_success` | Green (#4BCA81) | White | | `slds-theme_info` | Gray-blue (#706E6B) | White | | `slds-theme_warning` | Yellow (#FFB75D) | Black | | `slds-theme_error` | Red (#EA001E) | White | | `slds-theme_offline` | Black (#444) | White | ## Texture Modifier | Class | Purpose | |-------|---------| | `slds-theme_alert-texture` | Adds diagonal striped pattern overlay | ## Common Patterns ```html
Content on subtle gray background
All text and links are automatically styled for dark backgrounds