ab-tests
v1.1.2
Published
HBUI library
Downloads
65
Maintainers
Readme
Hummingbot UI library
WIP - contributions welcome
Getting started
To update design tokens:
1/3: Make sure you have a Specify personalAccessToken
and the Specify CLI installed in your system:
yarn global add @specifyapp/cli
2/3: Create a file called .specifyrc.json
at the root of the project with the following content (replace your personal access token):
{
"repository": "@hummingbot/ds",
"personalAccessToken": "your personalAccessToken here",
"rules": [
{
"name": "Design Tokens",
"path": "tokens/index.js",
"parsers": [
{
"name": "to-tailwind",
"options": {
"formatName": "kebabCase",
"formatTokens": {
"colorFormat": {
"format": "hex"
},
"fontSizeFormat": {
"unit": "rem"
}
},
"splitBy": "/",
"formatConfig": {
"objectName": "extend",
"module": "commonjs"
}
}
}
]
}
]
}
3/3: update the design tokens:
specify pull
To build the npm module:
Make sure the dependencies are installed before building
yarn
yarn pack_all
To publish the project:
1: Build the module 2: Bump the version in package.json 3: Publish with this command:
npm publish