Slippers UI - GitLab's Marketing Design System
Slippers is the open-source GitLab Marketing Web Design System. It was created in the spirit of "everyone can contribute".
Resources:
Gettings started with Slippers:
Local development
Slippers uses Storybook to enable component exploration.
Yarn is the preferred package manager.
Running Storybook locally:
- Clone the Slippers project.
- Install the dependecies using the version of node specified in .npmrc -
npm install
. - Run Storybook -
yarn storybook
. - Storybook should now be running at: http://localhost:6009/.
Updating the slippers-ui NPM package
- Make changes to slippers-ui.
- If needed, create/update .stories so Storybook is upto date.
- Increment the version number in package.json.
- If needed, add component into install.js (this adds components into the build).
- Build /dist folder -
yarn build-library
. - Publish to NPM -
yarn publish
. - Merge changes into origin/main.
- Once the package has been published it's now ready to be updated in the consuming repositories (Example: Buyer Experience, be-navigation, etc.).
Importing slippers-ui into your project:
- With NPM
npm install slippers-ui
OR with YARN yarn add slippers-ui
- Slippers main entry point is /dist/slippers-core.umd.min.js, example usage. To import the styling for the above components, the compiled css file can be found at: /dist/slippers-core.css.