UI Component Library and building blocks for ScriptHero using Vue3, Vite, and vanilla-extract. We also use Storybook as a development and review tool via Chromatic.
The component library should translate 1:1 as much as possible to the component library the ScriptHero UX team maintains, colors, names, spacing, borders, etc.
Lower level building blocks can provide flexibility to build additional feature-specific components
We should strive to optimize this library for developer happyness with first-class tooling, easy-to-understand component interfaces, and well-documented.
-
Configure project npm/yarn to have access to github's private npm registry (@TODO)
-
Add to your project's
package.json
"@scripthero/ui": "^1.0.0"
- Clone the repo
git checkout git@github.com:ScriptHero/ui.git
cd ui
- Install dependencies
yarn install
- Running Storybook
yarn run storybook
This should run storybook dev server (which has hot reloading) and is accessible at http://localhost:6006
Storybook-deployer will automatically publish any changes to scripthero.github.io/ui/ when anything is merged into master.
- You can also run storybook-deployer from the command line
yarn run deploy-storybook