### Install and Build SLDS Source: https://www.lightningdesignsystem.com/2e1ef8501/p/014cb2-slds-scope-customizer Before using the customizer, install dependencies and build the project. This command is run from the root of the design system repository. ```bash npm install && npm run build ``` -------------------------------- ### Few-Shot + Chain-of-Thought Example Analysis Source: https://www.lightningdesignsystem.com/2e1ef8501/p/682769-prompting-techniques/b/975a38 This example demonstrates a Few-Shot Chain-of-Thought prompt. It provides an initial example with a detailed analysis and win probability, then presents a new scenario for the model to analyze step-by-step, incorporating the learned reasoning process. ```text Opportunity: Northeast Healthcare expansion Details: Existing customer, 3-month sales cycle, champion identified, technical review completed Analysis: This opportunity shows several positive indicators. The customer is already familiar with our products, reducing adoption concerns. The sales cycle is within normal range, suggesting standard decision processes. Having an identified champion provides internal advocacy. Technical review completion indicates we've passed a major hurdle. Win Probability: 75% ``` ```text Opportunity: Western Financial Services Details: New prospect, 6-month sales cycle so far, multiple competitors being evaluated, budget confirmed, no clear champion Please think through this step-by-step, considering all relevant factors before determining the final win probability. ``` -------------------------------- ### Density-Aware Styling Hooks - Example Usage Source: https://www.lightningdesignsystem.com/2e1ef8501/p/805bbe-display-density This example demonstrates how to use a density-aware styling hook (--slds-g-spacing-var-4) for padding, which automatically adjusts based on the system's density setting. ```APIDOC ## Density-Aware Styling Hooks - Example Usage ### Description This hook provides different values based on density setting. The padding that uses `--slds-g-spacing-var-4` automatically adapts with the appropriate values when the system detects a density change. ### Method Not applicable (CSS Example) ### Endpoint Not applicable (CSS Example) ### Request Body Not applicable (CSS Example) ### Request Example ```css .my-component { padding: var(--slds-g-spacing-var-4); } ``` ### Response Not applicable (CSS Example) ``` -------------------------------- ### Install and Run SLDS Linter Source: https://www.lightningdesignsystem.com/2e1ef8501/p/8184ad Use this command in a VS Code terminal to initiate the SLDS Linter installation and analysis process. ```bash npx @salesforce-ux/slds-linter@latest lint ``` -------------------------------- ### Grid Column Gutters with Padding Utilities Source: https://www.lightningdesignsystem.com/2e1ef8501/p/61d07d-grid/b/788fe9 Example demonstrating the use of padding utilities to create 16px gutters between columns. ```html https://slds2-metadata-stories-54d63ecb6c29.herokuapp.com/iframe.html?id=utilities-with-code-grid--grid-column-gutters-2-col-utilities ``` -------------------------------- ### Grid Column Reordering Source: https://www.lightningdesignsystem.com/2e1ef8501/p/61d07d-grid/b/788fe9 Example demonstrating column reordering while maintaining accessibility compliance. ```html https://slds2-metadata-stories-54d63ecb6c29.herokuapp.com/iframe.html?id=utilities-with-code-grid--grid-column-reordering-3-col ``` -------------------------------- ### Construct Prompt with Merge Fields Source: https://www.lightningdesignsystem.com/2e1ef8501/p/59dd9a-prompt-elements Example of a prompt template utilizing multiple merge fields to define persona and context. ```text You are a Sales Executive and your name is {!$Input:Sender.Name} from an organization called {!$Input:Sender.CompanyName}. Your customer is {!$Input:Recipient.Name}, who has the title/role of {!$Input:Recipient.Title}, from the company called {!$Input:Recipient.Account.Name}. Here's the Transcript: {!$Input:Transcript} ``` -------------------------------- ### Set Focus on First Interactive Element in Modal Body (Blueprint HTML) Source: https://www.lightningdesignsystem.com/2e1ef8501/p/92a50f-global-focus If a modal does not have a title or is not a wizard, focus the first interactive element within the modal body. This ensures users have a clear starting point. This example targets a `lightning-input` element. ```html