- Clone the repo
- yarn install at root
- yarn storybook to play with packages.
lerna create <PACKAGE_NAME>
lerna add <DEPENDENT_PACKAGE_NAME> --scope=<DESTINATION_PACKAGE_NAME>
- These packages can be hosted as a npm packages or we can use self hosted package managers like verdicco.
- Once hosted then add registry to your projects
- Install packages npm install <PACKAGE_NAME> or yarn add <PACKAGE_NAME>
-
We can create our own theme as per the the projects. Or default theme can be added as below.
Default theme
import { DefaultTheme } from '@design-system/themes'; <ThemeProvider theme={DefaultTheme}> <YOUR_APP /> </ThemeProvider>
Create theme
import { createTheme } from '@design-system/themes'; const siteTheme = createTheme({ config: { zIndex: { modal: 500, }, font: { rootSize: 16, family: 'Montserrat,sans-serif', }, } }); <ThemeProvider theme={siteTheme}> <YOUR_APP /> </ThemeProvider>
- Themes
- Buttons
- Typography
- Icons