@kyburz/kdesign-system
v0.6.50
Published
### Install
Downloads
5,207
Readme
KDesignSystem
Install
npm i @kyburz/kdesign-system
Run storybook
Install the dependencies from package.json
:
yarn install
Then run storybook with yarn:
yarn storybook
Release storybook
- Merge your branch to master
- Increment version in
package.json
(line 3) - Run
yarn release
- it includes yarn deploy-storybook and yarn build-storybook - Commit file
package.json
to save new version - 🎉
- On fleet_frontend:
7. Update kdesign version on
package.json
->@kyburz/kdesign-system
7. Runyarn
again, to build everything 8. Runyarn dev
to run the app
How to test changes in the Design System without publishing new version
- Increment version in
package.json
(line 3) - Run
yarn build:lib
to make a build - Copy
dist
folder in the root ofkdesign-system
, go to the projectfleet_frontend_v2
(or else) and replace olddist
folder with new one (path/node_modules/kyburz/kdesign-system/dist
) - Increment version of
@kyburz/kdesign-system
package inpackage.json
file in projectfleet_frontend_v2
- Start
fleet_frontend_v2
- changes should apply. If it's not working try to clean yarn cache
Theme Setup
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { ThemeProvider } from '@mui/styles';
import { theme } from '@kyburz/kdesign-system';
import 'typeface-roboto';
ReactDOM.render(
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>,
document.getElementById('root')
);
Try it out on Storybook
http://kyburzstorybook.s3-website-eu-west-1.amazonaws.com/?path=/docs/