Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Design System | 3,444 | 242 | 113 | a month ago | 209 | July 20, 2023 | 21 | other | JavaScript | |
Salesforce Lightning Design System | ||||||||||
Lwc Recipes | 2,282 | 2 | 3 days ago | 8 | October 02, 2022 | 8 | cc0-1.0 | JavaScript | ||
A collection of easy-to-digest code examples for Lightning Web Components on Salesforce Platform | ||||||||||
Lwc | 1,449 | 11 | 92 | 2 days ago | 508 | August 24, 2023 | 311 | mit | JavaScript | |
:zap: LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation | ||||||||||
Salesforcedx Vscode | 879 | a day ago | 1 | September 06, 2021 | 295 | bsd-3-clause | TypeScript | |||
Salesforce Extensions for VS Code | ||||||||||
Design System React | 872 | 20 | 7 | a month ago | 86 | June 01, 2022 | 159 | bsd-3-clause | JavaScript | |
Salesforce Lightning Design System for React | ||||||||||
Ebikes Lwc | 692 | 5 days ago | 2 | cc0-1.0 | JavaScript | |||||
Sample application for Lightning Web Components and Experience Cloud on Salesforce Platform. Part of the sample gallery. Retail use case. Get inspired and learn best practices. | ||||||||||
Aura | 677 | 2 years ago | apache-2.0 | JavaScript | ||||||
This project is archived, please see the readme for additional resources. | ||||||||||
Lightningflowcomponents | 516 | 3 days ago | 283 | other | Apex | |||||
A collection of unofficial Flow extensions that can be used to enhance Salesforce Flow and Orchestrator. | ||||||||||
Base Components Recipes | 467 | 4 months ago | 6 | mit | JavaScript | |||||
A collection of base component recipes for Lightning Web Components on Salesforce Platform | ||||||||||
Design System Starter Kit | 334 | 4 months ago | 10 | bsd-3-clause | HTML | |||||
Rapid prototyping environment using the Salesforce Lightning Design System |
Welcome to the source code repository for Salesforce Lightning Design System, brought to you by Salesforce UX.
SLDS is...
This project utilizes Storybook for component development. If you would like to know more about Storybook or how it works, check out their website.
cd
into the project and run npm install
to install all project dependencies.The Storybook development environment can be started by running npm start
Whenever you add, remove, or alter a component's css annotation metadata, you'll need to restart Storybook to see those changes.
Node v12 is recommended for use with the Design System repository, and NVM is the recommended choice for managing multiple versions of Node on your computer.
A .nvmrc file is included in this project to aid in local development. To utilize it for setting your project's node version, run nvm use
in the root of the directory.
Additionally, you can set up a deeper shell integration for automatically invoking the nvmrc file when you change into the project directory by
following these instructions.
Once the development server is started with npm start
, you can load it at http://localhost:9002.
See the annotations guide.
npm start
Starts the Storybook server for local development.
npm run gulp -- lint
Lint the code base for syntax and stylistic errors.
# Lint indentation, Sass, JavaScript files
npm run gulp -- lint
# Lint languages independently
npm run gulp -- lint:sass
npm run gulp -- lint:javascript
npm run gulp -- lint:javascript:test
npm run gulp -- lint:spaces
npm run gulp -- lint:html
# HTML5 validation
npm run gulp -- lint:vnu
# HTML5 validation on comma separated blueprint names
npm run gulp -- lint:vnu --components button,path,trees
# a11y validation
npm run gulp -- lint:a11y
# a11y validation on comma separated blueprint names
npm run gulp -- lint:a11y --components button,path,trees
# Lint examples using vnu, aXe, slds validation, and HTML5 validation
npm run gulp -- lint:examples
To run all the checks a pull request will run in Travis use the following command.
# To run every check against all blueprints
npm run pr-checks
# To run every check but target certain blueprints for slow checks like aXe and vnu
npm run pr-checks -- --components button,path,trees
npm run build-dist
Generate the Lightning Design System into the .dist
directory.
npm run gulp -- styles
Compile Sass to CSS into .assets/styles
.
npm run gulp -- clean
Delete temporary build and local files.
npm run gulp -- styles:stats
: Useful stats about the project's deliverables.
npm test
: run all tests
See the troubleshooting guide.
See the contributing guide.
Please open a new GitHub Issue.