Develop components
Available scripts:
# general
turbo dev
# publish package
turbo ship
# publish storybook to Chromatic (optional)
# for Figma embed
turbo chromatic
# manually build token file from Figma
# only when github workflow failed
turbo build-tokenRun the dev server
turbo devYou should see two servers running:
localhost:3000- the documentation website (this site) (opens in a new tab)localhost:6006- the workshop (storybook) (opens in a new tab)
Develop components
- Add files in
packages/ui/* - Export them in the
packages/ui/src/index.tsxfile
Publish package
turbo shipPublish storybook to Chromatic
turbo chromaticEmbed Story in website
Get url from the top right corner of a story (opens in a new tab).
Example:
import {Story} from "../misc/Story"
# Button
<Story id="https://nomi-workshop.vercel.app/iframe.html?args=&id=atomic-button--default"/>