material-theme-builder 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli.js +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,12 +50,12 @@ theme.toCss();
|
|
|
50
50
|
## CLI
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
$ npx material-theme-builder
|
|
53
|
+
$ npx material-theme-builder "#6750A4"
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
will generate a `material-theme` folder with: `Light.tokens.json` and `Dark.tokens.json` [design-tokens](https://www.designtokens.org/tr/2025.10/) files, you can (both) import into Figma.
|
|
57
57
|
|
|
58
|
-
See `npx material-theme-builder
|
|
58
|
+
See `npx material-theme-builder --help` for all available options.
|
|
59
59
|
|
|
60
60
|
## React
|
|
61
61
|
|
package/dist/cli.js
CHANGED
|
@@ -768,8 +768,7 @@ function builder(hexSource, {
|
|
|
768
768
|
|
|
769
769
|
// src/cli.ts
|
|
770
770
|
var program = new Command();
|
|
771
|
-
program.name("material-theme-builder").description("
|
|
772
|
-
program.command("builder").description("Generate a color theme from a source color").argument("<source>", "Source color in hex format (e.g. #6750A4)").addOption(
|
|
771
|
+
program.name("material-theme-builder").description("Generate a color theme from a source color").argument("<source>", "Source color in hex format (e.g. #6750A4)").addOption(
|
|
773
772
|
new Option("--scheme <name>", "Color scheme variant").choices(schemeNames).default(DEFAULT_SCHEME)
|
|
774
773
|
).option(
|
|
775
774
|
"--contrast <number>",
|