sf-lwc-theming
Installation
SKILL.md
sf-lwc-theming: Custom Themes for LWC
Create and apply custom themes that extend SLDS 2 for branded Salesforce experiences. Build theme systems that support multiple brands and component-level overrides — all without breaking the design system. Light mode is the default; dark mode is an optional enhancement when explicitly requested.
Core Principles
- Light mode first — all themes default to light mode; dark mode is opt-in
- Extend, never override — add brand tokens alongside SLDS hooks, don't reassign them
- Semantic naming — brand tokens describe purpose, not color (
--brand-primary, not--brand-blue) - Theme at the boundary — apply themes at the
:hostlevel, not deep in component CSS - Portable — themes work in internal Lightning, Experience Cloud, and mobile
Theme Architecture
┌─────────────────────────────────────────────┐
│ Brand Theme Layer (your custom tokens) │ --brand-*, --app-*
Related skills