https://github.com/knowankit/ui
https://github.com/knowankit/ui
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/knowankit/ui
- Owner: knowankit
- Created: 2024-07-11T08:32:30.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2024-10-11T18:26:24.000Z (over 1 year ago)
- Last Synced: 2025-02-13T17:33:49.879Z (11 months ago)
- Language: JavaScript
- Size: 2.78 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UI Package
[](https://github.com/standard/standard)
[](https://bangthetable.github.io/ui)
UI component and style package for BTT frontend apps.
## Demo
The storybook is deployed in the [Github pages](https://bangthetable.github.io/ui/).
## Setup
- Add this package to your BTT app `yarn add bangthetable/ui`
- Import components: [https://bangthetable.github.io/ui](https://bangthetable.github.io/ui)
## Upgrade
- `docker-compose exec yarn upgrade ui`
- `docker-compose stop `
- `docker-compose rm `
- `docker-compose up -d`
## Run Storybook app locally
- `yarn run storybook`
## Deploy Storybook
Storybook is deployed via the `gh-pages` branch on this repo.
- `yarn storybook:deploy`
## Note
[NextJS only allows you to add relative styles to _app.tsx file](https://nextjs.org/docs/messages/css-global). The _app.tsx is rendered for all the pages present inside a NextJS application. Because of these, when the styles are imported from UI into _app.tsx, the styles of new home pages are also getting affected. As a result, we can't port this repository into [blue-haven](https://github.com/bangthetable/blue-haven).