A design system built by W. W. Norton & Company.
View all documentation at https://wwnorton.github.io/design-system.
This repository uses workspaces to manage design system packages as a monorepo.
@wwnds/core
.@wwnds/core
and @wwnds/react
and uses Docusaurus as its static site generator.Any and all contributions are welcome from anyone who would like to help. To learn more about contributing, please read the contribution guide.
Because this is a monorepo, a couple extra steps are required to get your local environment ready.
The following assumes that you already have Node.js and Git installed locally.
npm@7+
.git clone https://github.com/wwnorton/design-system.git
cd design-system
npm install
All development commands should be run from the root of the repository.
npm run storybook
: the Storybook server for @wwnds/react
.
Useful for component development.npm run dev:docs
: start the Docusaurus server for the website.
Useful for writing documentation or full design system development.npm run build
: run a production build for each library package, outputting to packages/{package_name}/dist
.
Useful for testing production builds.npm run test
: run unit tests.