@grantbii/design-system
v1.11.5
Published
Grantbii's Design System
Readme
Grantbii's Design System
Storybook's viewport triggers media query for small screen (e.g. mobile) by default.
View in full screen to see components for big screen (e.g. desktop).
Based on Grantbii's Global Design Library in Figma.
Approach: Atomic Design
Prerequisites
Node 22
node -v # expected output: v22.xx.xxSet-up
Install dependencies
npm iRun
npm run storybookOpen http://localhost:6006 with your browser to see the result.
The pages auto-update as you edit the files.
Develop
Versioning
Bump version number in package.json
Images
Use the webp format for images as it is lossless but more efficient than png.
Get started by installing cwebp.
Convert an image from png to webp like so:
cwebp -exact -lossless -progress your_image.png -o your_image.webpPublish
Bump version in package.json
Check which files would be published with npm publish --dry-run
The package is published to npm automatically with GitHub Actions.
Documentation is published automatically to GitHub pages with GitHub Actions.
Once a commit has been made on the prod branch, a build would be triggered.
