Download (SLDS) platform-agnostic CSS framework.
- Go to below link for download latest version of salesforce lightning design system framework.
- https://www.lightningdesignsystem.com/downloads/
- By the ltng:require tag in lightning component we can load external CSS and JavaScript libraries after we upload them as static resources.
<ltng:require styles="{!$Resource.SLDS24 + '/assets/styles/lightning-design-system-ltng.css'}"/>
<!--Button with lightning style sheet class-->
<button class="slds-button slds-button--neutral">Button Neutral</button>
</aura:component>
Note : Instead of upload zip in static resource you can also use extends=”force:slds” in aura application.
Sample:
<aura:application extends=”force:slds” >
</aura>
Note : Instead of upload zip in static resource you can also use extends=”force:slds” in aura application.
Sample:
<aura:application extends=”force:slds” >
</aura>
No comments:
Post a Comment