Welcome to the Vlocity Newport Design System brought to you by Vlocity.
Tailored for building Vlocity Newport apps: Using the Newport Design System markup and CSS framework results in UIs that reflect the Vlocity Newport look and feel. Includes Storybook.js previewer to help you customize and rebrand all of Vlocity's newport based templates in one place.
Want to see the project hosted live? Go to http://newport.vlocinternal.com/
NOTE: You'll need to use the command line to work with Newport, if you're not familar with the command line we recommend following the short Git Tower Command Line 101 tutorial: https://www.git-tower.com/learn/git/ebook/en/command-line/appendix/command-line-101
You'll need the following installed:
- Install Git: https://git-scm.com/downloads
- Install Node.js: https://nodejs.org/en/download/
- Install gulp-cli - after installing the above open your command prompt and run
npm install --global gulp-cli
Clone the project with
git clone https://github.com/vlocityinc/newport-design-system.git
Change into the newport-design-system
folder using
cd newport-design-system
(optional) Switch to the right branch for your version of the Salesforce package, for example
git checkout 248
Install the dependencies by running:
npm install
Finally you can launch Storybook previewer by running:
npm start
Having trouble getting these steps to work on your machine? Follow the troubleshooting guide below.
For more indepth documentation please checkout the documentation section in storybook.
We support the latest versions of all browsers and IE 11.
When you have an updated version of Newport that you're happy with and want to test in an org you can run the following command:
npm run build && npm run dist
This will generate a zipped up version to be uploaded into Salesforce in the dist
folder in your workspace.
If you also want to deploy it to an org then run it with the following env variables:
SF_USERNAME=myusername@email.com SF_PASSWORD=mypassword SF_LOGINURL=myLoginUrl npm run dist
If the SF_LOGINURL argument is not passed, then it defaults to https://login.salesforce.com
The Vlocity Newport 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 v8 or up.
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:
- The installed
npm
version must be at least v3.10. You can update your npm with:npm install npm -g
(sudo
may be required). - Re-install dependencies:
rm -Rf node_modules && npm install
npm start
If this did not work, try running npm cache clean
and repeat the above steps.
- Originally forked from Salesforce Lightning Design System.
- Source code is licensed under BSD 3-Clause
- All icons and images are licensed under Creative Commons Attribution-NoDerivatives 4.0
- The Lato font is licensed under the SIL OPEN FONT LICENSE
Please open a new GitHub Issue.