forcedotcom/sf-skills / plugins/builder/experience-lwc/skills/experience-lwc-generate
experience-lwc-generate
UnverifiedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use platform-apex-generate), Aura components, or Visualforce.
assets/basic-component/basicComponent.css
View on GitHub/**
* BASIC LWC COMPONENT TEMPLATE - CSS
*
* CSS in LWC is automatically scoped to the component.
* Use SLDS (Salesforce Lightning Design System) classes when possible.
*
* CSS Custom Properties (variables) can be exposed for theming.
*/
/* Host element styling */
:host {
display: block;
}
/* Custom properties for theming */
:host {
--card-background: var(--lwc-colorBackground, #ffffff);
--card-border-radius: var(--lwc-borderRadiusMedium, 0.25rem);
--item-hover-background: var(--lwc-colorBackgroundRowHover, #f3f3f3);
}
/* List item hover effect */
.slds-item:hover {
background-color: var(--item-hover-background);
cursor: pointer;
}
/* Smooth transitions */
.slds-tile {
transition: background-color 0.2s ease;
}
/* Loading state fade */
.slds-spinner {
opacity: 0.8;
}
/* Error state styling */
.slds-alert_error {
border-radius: var(--card-border-radius);
}
/* Empty state styling */
.empty-state {
padding: 2rem;
text-align: center;
}
/* Responsive adjustments */
@media (max-width: 480px) {
.slds-tile__detail {
padding: 0.5rem;
}
.slds-text-heading_small {
font-size: 0.875rem;
}
}
/* Focus states for accessibility */
a:focus {
outline: 2px solid var(--lwc-colorBorderBrand, #1589ee);
outline-offset: 2px;
border-radius: 0.25rem;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.slds-item:hover {
background-color: highlight;
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |