Salesforce Lightning Design System - SLDS

Salesforce Lightning Design System : 

Salesforce has 2 desktop user interface.
1) Salesforce classic
2) Lightning Experience

Salesforce lightning Design System use to design responsive webpages compatable to all the devices.

we know the Salesforce classic very well because we already working from long back.Now we will learn about what is Lightning Experience in Salesforce.
Lightning Experience is a easy way to Design application userinterface and develop the functionality. it is completely modern way of designing.
What we are doing in salesforce Classic, we can do it in salesforce lightning.
but everyone thinking why we need to switch to Lightning ???

1) We can track sales, services easily and close deals fastly.
2) More user friendly design using SLDS.
3) Less Design and Development Efforts.

Salesforce Lightning Design System
Lightning design system


Salesforce lightning Design System helps to desing beautiful and powerful user friendly applications.It helps to build applications easily.
We can design attractive webpages using SLDS.SLDS provided Predefined webpage elements like divs,tabs,accordions,icons,sections,animations and more..
Lets start learning Salesforce lightning Design System.

Use Lightning Design System in visualforce page we have to add <apex:slds/> to your page.
if we want lightning experience to the visualforce page we need to include lightningStyleSheets="true" in the apex:page.


Salesforce lightning Design System Naming :

1) Block represent using .className
2) Element represent using .Classname__element
3) Modifier represent using .Classname__element--modifier

SLDS Grid System :
Salesforce lightning Design System given some Predefined classes to divide visualforce page into multiple coloumns and rows.these are responsive classes
so these divs/sections will divide the space accordingly based on devices hight and width,portrait/landscape.

The Outer Wrapper class name is "slds-grid". we can use like <div class="slds-grid">

Avatar Image from SLDS :

<span class="slds-avatar slds-avatar--x-small">
  <img src="/assets/images/avatar1.jpg" alt="meaningful text" />
</span>

By using Salesforce lightning Design System we can keep Animations,colors,Layouts,Loading images,Markups,styles,Navigations,icons and more....

Ref : https://www.lightningdesignsystem.com/

Comments

Post a Comment

Popular posts from this blog

Community/Experience Cloud Interview Questions

Script to delete multiple records using Apex salesforce

Change Owner / Update record using Lightning Custom Button Salesforce