Giter VIP home page Giter VIP logo

design-system's Introduction

Salesforce Lightning Design System Build Status

Welcome to the Salesforce Lightning Design System brought to you by Salesforce UX.

  • Tailored for building Salesforce apps: Using the Lightning Design System markup and CSS framework results in UIs that reflect the Salesforce Lightning look and feel.
  • Continuously updated: As long as you’re using the latest version of the Lightning Design System, your pages are always up to date with Salesforce UI changes.

Quick start

gem install bundler
npm install
npm start

Having trouble getting these steps to work on your machine? Follow the troubleshooting guide below.

Tasks

Install gulp globally:

npm install --global gulp

gulp

Generate and run the Lightning Design System.

gulp serve

Run the lightning design system.

Faster than gulp, as it won't re-generate the whole site before starting the server. Useful when mainly working on styles.

gulp lint

Lint the code base for syntax and stylistic errors.

# Lint indentation, Sass, JavaScript files
gulp lint

# Lint languages independently
gulp lint:sass
gulp lint:js
gulp lint:js:test
gulp lint:spaces
gulp lint:html
gulp lint:vnu (optional: --component "{trees_base_with*,trees_base_deep*}")

Compilation

gulp pages: generate the site’s pages.

gulp styles: compile Sass to CSS.

gulp clean

Delete temporary build and local files.

Stats

npm run stats: Useful stats about the project's deliverables.

Tests

npm test: run all tests

Troubleshooting

npm and Node.js

The Salesforce Lightning Design System uses npm to manage dependencies. Please install Node.js, and try running npm install again.

If Node.js is already installed, make sure you’re running v6 or up.

Ruby dependencies

Ruby comes pre-installed on macOS. For other systems, check https://www.ruby-lang.org.

If gem install bundler fails, run sudo gem install bundler and try running npm install again.

JavaScript and compilation issues

JavaScript dependencies sometimes get out of sync and inexplicable bugs start to happen. Follow these steps to give a fresh start to your development environment:

  1. The installed npm version must be at least v3.10. You can update your npm with: npm install npm -g (sudo may be required).
  2. Re-install dependencies: rm -Rf node_modules && npm install
  3. npm start

If this did not work, try running npm cache clean and repeat the above steps.

Contributing to the code base

See CONTRIBUTING.md.

Licenses

Got feedback?

Please open a new GitHub Issue.

design-system's People

Contributors

kaelig avatar brandonferrua avatar aputinski avatar rickschmoo avatar stefsullrew avatar ishakasliwal avatar sitaggart avatar brunofonzi avatar dottenpixel avatar amyleesalesforce avatar owenschoppe avatar srohde avatar chriscorwin avatar topherauyeung avatar grebstock avatar donnieberg avatar mcsuth avatar kevinberonilla avatar tsheiner avatar guria avatar dpeet avatar jonnyl avatar pmdartus avatar thvd avatar interactivellama avatar shannonsans avatar seimith avatar salesforce-ux-bot avatar ryanguest avatar lokeshrj 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.