salesforce lightning design system

26
#StruckByLightning #JaipurDUG #LightningExperience Durgesh Dhoot A Salesforce Developer & Mobile Architect * Beta Release 0.8.0 @ddurgesh28 @ddurgesh28 Create the world’s best enterprise app experiences.

Upload: durgesh-dhoot

Post on 16-Apr-2017

1.229 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Salesforce Lightning Design System

#StruckByLightning #JaipurDUG #LightningExperience

Durgesh DhootA Salesforce Developer & Mobile Architect

* Beta Release 0.8.0

@ddurgesh28 @ddurgesh28

Create the world’s best enterprise app experiences.

Page 2: Salesforce Lightning Design System

Safe HarbourSafe harbor statement under the Private Securities Litigation Reform Act of 1995:

This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.

The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal quarter. This document and others are available on the SEC Filings section of the Investor Information section of our Web site.

Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 3: Salesforce Lightning Design System
Page 4: Salesforce Lightning Design System
Page 5: Salesforce Lightning Design System

So a new Lightning Experience is coming...

Page 6: Salesforce Lightning Design System

Let’s take a Sneak PeekPre Release Winter 16 Org

Page 7: Salesforce Lightning Design System

But what about our Custom Implementations ???

Page 8: Salesforce Lightning Design System

Salesforce provided,A New CSS basedDesign Framework

* Beta Release 0.8.0

Page 9: Salesforce Lightning Design System

Diff. b/w VF & SLDS

➔ Page Centric➔ Server-side Rendering➔ Tried & True Model➔ Limited Interactivity➔ High Latency

➔ App Centric➔ Client-side Rendering➔ Complex➔ Highly Interactive➔ Low Latency

Page 10: Salesforce Lightning Design System

VF inside SLDS➔ Visualforce inside iframe➔ Sidebar & Header are always false (hidden)➔ Start considering “sforce.one”

Page 11: Salesforce Lightning Design System

Features:➔ Easy to use:

◆ Supporting Components Library◆ Consistent with core Salesforce feature◆ Extensive Documentation◆ Full Responsive CSS Framework

Page 12: Salesforce Lightning Design System

Features:➔ Easy to use➔ Design with Expertise

◆ Detailed Guidelines◆ Interactive Design Patterns◆ Best Practices guides

Page 13: Salesforce Lightning Design System

Features:➔ Easy to use➔ Design with Expertise➔ Platform Agnostic

◆ Can easily be used with any other framework

◆ Can be Used at any of the platforms including Salesforce, Lightning & Heroku.

Page 14: Salesforce Lightning Design System

Features:➔ Easy to use➔ Design with Expertise➔ Platform Agnostic➔ Trustworthy & Growing

◆ Designed by Salesforce itself◆ Growing rapidly to add more

components.

Page 15: Salesforce Lightning Design System

Where To Use ?

Visualforce

Lightning Component

s

Heroku, Mobile or

Any Other Platform

Page 16: Salesforce Lightning Design System

Similar to...

Twitter Bootstrap Android’s Material Design

Page 17: Salesforce Lightning Design System

Design Guidelines

Component Toolkit Design Tokens

What it has ?

Page 18: Salesforce Lightning Design System

Design Guidelines➔ Layout- based on use-cases & content➔ Loading Indicators- use spinners & stencils for reassurance➔ Navigation Patterns- guidance for navigation based on

requirement➔ Motions- guidance for effective motion, effects & animations.

Page 19: Salesforce Lightning Design System

SLDS CSS Pattern➔ Block : ➔ Element (__)➔ Modifier (--)

Modifier

Page 20: Salesforce Lightning Design System

Component ToolkitCollection of various components, to help in designing consistent, responsive and good looking UI design. Some of important components among them are:➔ Grid System➔ Page Header➔ Activity Timeline➔ Datatables➔ Form & Elements➔ Modals➔ Lookups & many more...

Page 21: Salesforce Lightning Design System

Design tokens are the visual design atoms of the design system, helps to achieve a scalable and consistent visual system for UI development.Some of this tokens are:➔ Color- Background, Text, Border➔ Font- Font, Size, Line Height➔ Z Index➔ Size➔ and many more...

Design Tokens

Page 22: Salesforce Lightning Design System

DemoVisualforce Pages Lightning

Components

Page 23: Salesforce Lightning Design System

FAQs➔ Is any JavaScript included as part of the framework? - No its an Pure

CSS Framework ➔ What CSS syntax does SLDS use? - It uses BEM CSS Syntax Pattern for

naming all classes ➔ Do we need to use (and compile) SASS to use SLDS? - SASS or any

preprocessor can be used to preprocess Design Tokens, but if you are only using predefined component you don’t have to worry about them.

➔ Does Lightning Experience replace Visualforce? - LX & SLDS are provided to be integrated inside Visualforce, so now you can consider that you have 2 ways to design your app either in older fashion with new framework inside Visualforce, or a completely new Platform Lightning

➔ Should we start building in Lightning or Visualforce? - It may varies based on your requirement.

➔ Will Lightning Experience support Visualforce's apex tags? - So far VF tags are not going to show in new UI but will use older class CSS while rendering

➔ How to identify whether we are on Classic View Or Lightning Experience - You can use sforce.one to identify whether you are in a Classic View or inside SF1 or LX

Page 24: Salesforce Lightning Design System

Reference➔ https://www.lightningdesignsystem.com/➔ Developer Trail - Lightning Experience➔ ForceDotComLabs - sldsx

Page 25: Salesforce Lightning Design System

Trailhead: Developer Trail - Lightning Experience

Start learning today.

Page 26: Salesforce Lightning Design System

Q/A