1.5.6 • Published 1 year ago

@trvt/cli v1.5.6

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
1 year 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

AGPL-3.0" License

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago