Sloper is a foundation of patterns from which to build your own UI patterns and design system.
This repository uses Lerna with Yarn workspaces for package management.
tokens
: package to manage low-level values from which to reference in styles, scripts and componentsstyles/*
: workspace for adding CSS represenations of UI patternscomponents/*
: workspace for adding component implementations of UI patternstools/*
: workspace for providing pattern-agnostic tools and utilitiesstorybook
: sandbox for building, testing and documenting patterns
Node Version Manager (nvm) is the ideal tool for managing multiple versions and installations of node.js. Installation instructions can be found on the NVM GitHub README. Sloper uses the LTS (lts/fermium) version of Node (v14.16.0).
Once installed:
- check for installation
lts/fermium
by runningnvm list
- if not avilable, install lts version
nvm install --lts
- switch to the lts version
nvm use --lts
To install the Yarn CLI, run npm i -g yarn
.
- Clone the repo:
git clone [email protected]:d13-design/sloper.git
- Install dependencies:
yarn
yarn build
: builds each package in the monorepoyarn lint
: lints formatting of all scripts and stylesyarn serve:storybook
: runs storybook from the storybook package