1.11.0 • Published 28 days ago

@cobalt-ui/cli v1.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

Cobalt UI

CLI for managing Design Tokens Community Group (DTCG) token manifests (tokens.json) and generating code for any platform via plugins.

Usage

Install:

npm i -D @cobalt-ui/cli

And place a tokens.config.mjs file in the root of your project. Here are all the options, along with defaults:

// tokens.config.mjs

/** @type {import("@cobalt-ui/core").Config} */
export default {
  /** path to tokens.json */
  tokens: "./tokens.json",
  /** output directory for generated code*/
  outDir: "./tokens/",
  /** plugins to generate different outputs */
  plugins: [],
};

Commands

All CLI commands require a config to work properly, with the exception of co check and co convert.

npx co [command]

CommandNotes
buildTurn design tokens into output files using plugins((https://cobalt-ui.pages.dev/docs//integrations). You can watch for changes in dev mode with build --watch.
bundle --out [path]Bundle multiple tokens.json files into one, e.g. co bundle --out path/to/output.json. Can output .json or .yaml. Requires multiple schemas set in config
check [path]Validate a tokens.json file and check for errors. This won’t output any files.
initCreate a starter tokens.json file.
convert [path] --out [path]Convert a Style Dictionary JSON file to DTCG (docs)

Plugins

Plugins are the entire purpose of using Cobalt! See the plugin documentation for instructions on getting started.

Documentation

See Documentation

1.10.2

28 days ago

1.11.0

28 days ago

1.10.0

1 month ago

1.8.1

1 month ago

1.8.0

1 month ago

1.7.1

2 months ago

1.7.0

3 months ago

1.2.0

10 months ago

1.6.2

6 months ago

1.6.1

6 months ago

1.6.0

8 months ago

1.4.2

8 months ago

1.5.0

8 months ago

1.4.1

8 months ago

1.4.0

9 months ago

1.3.1

9 months ago

1.3.0

10 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.0

1 year ago

0.7.4

1 year ago

0.7.3

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.6.2

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.3.9

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.0.2

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.0.0

2 years ago