This is the mono-repo for PMC's design system, Larva. It contains Larva features that should be available across platforms.
Consult each package's README for a description and directions for use. Consult the How To Guides in Confluence for details on using Larva in consuming projects.
Clone this repository then, from the root, run the following commands:
sh scripts/install-dependencies.sh
These will setup the mono-repo and install dependencies for each of the packages. This will take a few moments.
To view and develop Larva patterns, run the following command after the above installation setup:
npm run larva
This will open a development server at localhost:3000. You can contribute to patterns in the packages/larva-patterns, and see the updates reflected here.
The core Larva repo uses Larva tools to build patterns. Some packages contain their own build steps, such as larva-css and larva-tokens. The flow is as follows:
- Larva CSS and Larva Tokens should be compiled in their respective packages with
npm run build
. - Then run
npm run prod
from the root of this repo to pulls everything together into a larva.css and to compile the default JS source files, and copy the build files into package/larva so they are available to consuming projects