Code Monkey home page Code Monkey logo

sldsx's Introduction

#SLDS Sample Components SLDS Sample Components is an open-source project to provide a set of common Lightning Components that conform and wrap Salesforce Lightning Design System's (SLDS) CSS framework. This is to help you not worry about SLDS specific CSS, markup for basic components. And also to provide JS support so you don't have to implement them.

Prerequisite:

Needs Winter '16

image

SLDSX Tutorial

We've created a tutorial to explain how to use it. Please go through the tutorial here.

image

Installation

This project is distributed as an unmanaged package. The package has all the components, and latest version of SLDS framework (CSS, fonts, icons etc). To use it, simply install the package, load SLDS static resource and use individual components in your app.

  1. Install the unmanaged package (w/ SLDS v0.8).
  2. Load SLDS static resource
<ltng:require styles="/resource/slds/assets/styles/salesforce-lightning-design-system-ltng.css"/>

If your org has it's own namespace, for example: ns then, append ns__ to the sldsx in the resource path to look like below:

 <ltng:require styles="/resource/ns__slds/assets/styles/salesforce-lightning-design-system-ltng.css"/>
  1. Write SLDS component under <div class="slds">

Notes: If your org already has some of the components

Reference App (SLDS.app)

SLDS app contains a list of all the SLDSX components and source code for each one of them. The examples are identical to what you'll find in the Salesforce Lightning Design System's (SLDS) website.

Usage: Once you install the unmanaged package, open {yourOrg}//{namespace}/SLDS.app.

Note: All the components are in metadata/aura/ folder.

image

Distribution

If you are distributing a component that's built using SLDSX, you need to package your component and SLDSX static resource. This is to ensure that your component uses proper version of SLDS.

Contribution

You can fork this repo and contribute newer SLDSX components or bug fixes. When you submit a new component, make sure it is in metadata/aura folder metadata/aura/{yourcomponent} In addition also provide an example usage of your component by editing {yourOrg}//sldsx/SLDS.app and adding your component at the bottom of the app.

License

Please see the details in the LICENSE file above.

Support

This project is built as a 'labs' project and while a small team within Salesforce will try to maintain it, but it is so not officially supported.

sldsx's People

Contributors

dcarroll avatar rajaraodv avatar sdruckerfig avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.