1.5.5 • Published 2 months ago

@trvt/cli v1.5.5

Weekly downloads
-
License
AGPLv3
Repository
-
Last release
2 months ago

Trivet CLI

The Trivet (trvt) CLI, will provide you a default experience based on a styling suitable for open source projects. However if you have your own styling you can use this CLI to add your own custom tokens.

Roadmap

Completed

  • Tokens ( Visual system tokens only, for theming or to be replaced by third party solution. )

Install

NPM: npm i @trvt/cli -D;

Usage

In your scripts npx trvt tokens;

Options

You can add the following flags:

  • -l,--layer
    Wrap the generated custom property tokens in a CSS layer with the given layername.
    "npx trvt tokens -l designtokens"
  • -b, --buildPath
    Tokens are put in a folder "build". Here you can set an alternate path.
    "npx trvt tokens -b './mytokens/buildfolder'"
  • -p, --sourcePath
    Tokens retrieved from the folder "tokens". Here you can set an alternate folder path.
    "npx trvt tokens -p './mytokens/src'"
  • -t, --themePath
    You can set an explicit path for you theme tokens. These, if present, will be composed on top of the source tokens.
    "npx trvt tokens -t './mytokens/themes'"
  • -s, --scope
    This is the design system prefix. The default is trvt. This is used in the filename and in the token keys/properties.
    "npx trvt tokens -s myds"
    Results with a CSS custom property --myds-color-base-dark.
  • -f, --filename
    A filename is constructed like this: <scope>_<suffix>. The default suffix is tokens, but you can pick a different <suffix>.
    "npx trvt tokens -s cssprops" => trvt_cssprops.css
  • -e, --exclude
    Exclude custom properties that contain the given string. These are generated separately.
  • -x --extension The $extensions name that points to the name of the CSS registered property object

License

AGPLv3 License

1.5.5

2 months ago

1.5.4

2 months ago

1.5.3

3 months ago

1.5.2

3 months ago

1.5.1

3 months ago

1.5.0

3 months ago

1.4.5

6 months ago

1.4.4

6 months ago

1.4.3

6 months ago

1.4.2

6 months ago

1.4.1

6 months ago

1.4.0

6 months ago

1.3.4

6 months ago

1.3.3

6 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.0

8 months ago

1.1.0

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago