@terra-money/station-ui
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

Station UI

Banner

Station UI is a component library to serve Station Web and Station Extension.

Local Storybook

This library uses Storybook for local testing and development of components.

To use Storybook:

  1. Install the dependencies:
npm install
  1. Build the package: This is primary to build the tokens
npm run build
  1. Start the Storybook server:
npm run storybook

Building the Package

npm run build

This will first run npm run build-dictionary to generate CSS tokens. Then it will build the package and output it to dist/.

Style Dictionary

This library uses Style Dictionary to generate CSS tokens.

To generate CSS tokens:

npm run build-dictionary

This will output the tokens to src/styles/variables.css.

Any change make to the JSON in /style-dictionary/tokens/ will need npm run build-dictionary to update the changes.

Linking the built package

To test the package locally, you can link the package to your project.

  1. Build the package:
npm run build
  1. Link the package:
npm link
  1. In your project, link the package:
npm link station-ui
  1. Add the station-ui stylesheet to your project (likely in src/index.tsx):
import 'station-ui/dist/style.css';
  1. Import the package:
import { Button } from 'station-ui';

Linking local with .tgz

  1. Build the package:
npm run build
  1. Pack the build:
npm pack

Readme

Keywords

none

Package Sidebar

Install

npm i @terra-money/station-ui

Weekly Downloads

18

Version

1.0.13

License

none

Unpacked Size

20.5 MB

Total Files

247

Last publish

Collaborators

  • terra-engineering
  • simke9445
  • alecande
  • mwmerz
  • terra-devops