Development

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-token

Run the dev server

turbo dev

You should see two servers running:

Develop components

  • Add files in packages/ui/*
  • Export them in the packages/ui/src/index.tsx file

Publish package

turbo ship

Publish storybook to Chromatic

turbo chromatic

Embed 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"/>