fkotey / design-system

The DataCamp Design System, aka Waffles

Home Page:https://waffles.datacamp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Waffles is DataCamp's Design System

lerna

This repository holds all of the code for the waffles design system. This includes but is not limited to the documentation site, design tokens and a react component library. Full details on usage can be found on waffles.datacamp.com.

Running Locally

Waffles uses Yarn and Lerna to manage dependencies. Follow the following steps to work with the code on a local machine:

  • Clone the repository
  • Execute yarn install in the root directory
  • Execute yarn bootstrap to install and link all subdependencies

In order to view and work with components locally, check out the storybook package.

Repository Structure

This repository is a mono-repo powered by lerna. All the source code can be found in the /packages directory. This is split into 3 directories to organise different types of packages:

  • docs contains all packages relating to documentation
  • other contains published packages that do are neither react-components or stylesheets
  • react-components contains styled react components
  • stylesheets contains scss stylesheets
  • tools contains private packages that are used within this repo as dev dependencies. They are not published to the registry.

This separation is purely organisational, and does not affect the contents of each package. Every package.json should represent its dependencies as if they will be installed from the registry instead of as relative file paths. Lerna will link these packages locally when running the bootstrap command. Check the Readme files in each directory for more information.

Contributing

For guidelines around ci, deployment and anything else you may need to contribute to this project, check out the contribution guidelines

About

The DataCamp Design System, aka Waffles

https://waffles.datacamp.com/


Languages

Language:JavaScript 39.6%Language:TypeScript 36.9%Language:SCSS 14.3%Language:HTML 9.2%Language:Dockerfile 0.0%Language:CSS 0.0%