Creating an Enterprise CSS Framework: A Salesforce UX Case Study

45
Designing an Enterprise CSS Framework Stephanie Rewis Salesforce UX

Transcript of Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Page 1: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Designing an Enterprise CSS Framework

Stephanie RewisSalesforce UX

Page 2: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Stephanie Rewis@stefsullPrincipal UX EngineerDesign Systems, Salesforce UX Engineering

Page 3: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Forward-Looking StatementsStatement 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 product or service availability, 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, new products and services, 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, the outcome of any litigation, risks associated with completed and any 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 year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures 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 presentations, 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 4: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 5: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

How do I get my app to look like this?

Page 6: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Can I use the CSS in myapp?

Page 7: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 8: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

We'd like our prototypers to iterate more rapidly.

Page 9: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

We learned our style guide was too static.

Page 10: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Lightning Design SystemThe next generation of living style guides

Page 11: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Lightning Experience

Page 12: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Design System ComponentsCSS Framework + UI Library

Page 13: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Objects/Components

Lightweight

Modular

Reusable

Utilities

Non-semantic

Single Purpose

Dependencies

Tokens

Page 14: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 15: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 16: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

clarityEliminate ambiguity. Enable people to see, understand, and act with confidence.

Page 17: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Clarity and understandability in class names

Page 18: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

BEM NamingBlockElementModifier

Page 19: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Let's build a house!.house { block or component name }.house__door { element or component part }.house--red { modifier or component variation }.house__door--white { variation of a component part }

Page 20: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

We love documentation!

Page 21: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 22: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 23: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

efficiencyStreamline and optimize workflows. Intelligently anticipate needs to help people work better, smarter, and faster.

Page 24: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Design audit and inventory of all components in designer's comps

Page 25: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

We broke the components down to their smallest patterns and objects.

Page 26: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 27: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Applications have some unique traits.

Page 28: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Lists are used for their semantics.

Page 29: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Enterprise applications demand content and data-rich interfaces.They lack vertical rhythm.

Page 30: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Heading levels may vary and our components should be agnostic.

Page 31: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

You can opt back in to the default element style using utility classes or a single wrapper.

<h2 class="slds-text-heading--medium slds-m-right--small">Medium heading with a small margin on the right.

</h2>

Page 32: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 33: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Accessibility for all people and devices is very important.

Page 34: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

We baked accessibility in:Semantics matterARIA rolesREM unit sizingWe’ve documented what needs to happen when JS is added

Page 35: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

consistencyCreate familiarity and strengthen intuition by applying the same solution to the same problem.

Page 36: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Design TokensThe basic atoms of the Design System

Page 37: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Types of Design Tokens

• Fonts• Font Sizes• Font Weights• Line Heights• Background Colors• Text Colors

• Border Colors• Shadows• Spacing• Sizing• Animation Durations• Media Queries• Z-indexes

Page 38: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 39: Creating an Enterprise CSS Framework: A Salesforce UX Case Study
Page 40: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

We play well with others.

.button

.slds-button

Page 41: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

beautyDemonstrate respect for people’s time and attention

through thoughtful and elegant craftsmanship.

Page 42: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

SVG icons for beauty at every size

Page 43: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Components should render beautifully at any width.

Page 44: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Get the Design Systemhttps://www.lightningdesignsystem.com/

https://github.com/salesforce-ux/design-system/

https://github.com/salesforce-ux/design-system-starter-kit

Page 45: Creating an Enterprise CSS Framework: A Salesforce UX Case Study

Thank you