@kinetixui/cli 0.23.0 → 0.23.1
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/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2610,7 +2610,7 @@ function presetDecode(input, opts) {
|
|
|
2610
2610
|
pc8.dim(
|
|
2611
2611
|
// Wrapped so that no command name is split across lines — a reader scanning for `theme build`
|
|
2612
2612
|
// should find it, and so should a test.
|
|
2613
|
-
" A preset describes a design, not a stylesheet.\n\n kinetixui preset css <code> the same web CSS the workspace
|
|
2613
|
+
" A preset describes a design, not a stylesheet.\n\n kinetixui preset css <code> the same web CSS the workspace exports\n kinetixui preset swiftui <code> a SwiftUI colour theme\n kinetixui preset compose <code> a Jetpack Compose colour theme\n kinetixui preset flutter <code> a Flutter colour theme\n\n For a file of literal colours, `kinetixui theme build` is unchanged."
|
|
2614
2614
|
)
|
|
2615
2615
|
);
|
|
2616
2616
|
console.log();
|
|
@@ -2875,7 +2875,7 @@ async function themeBuild(name, options) {
|
|
|
2875
2875
|
console.log(pc9.dim("(no checkable pairs \u2014 set at least one base + foreground, or just a base to auto-derive one)"));
|
|
2876
2876
|
}
|
|
2877
2877
|
console.log();
|
|
2878
|
-
console.log("
|
|
2878
|
+
console.log("This command compiles to CSS only. For a native theme, run `preset swiftui`, `preset compose` or `preset flutter` on a KX1 preset.");
|
|
2879
2879
|
console.log(pc9.dim("See https://kinetixui.com/docs/cli#theme for the current scope."));
|
|
2880
2880
|
if (failed > 0 && options.failOnContrast) {
|
|
2881
2881
|
process.exitCode = 1;
|
|
@@ -2885,7 +2885,7 @@ async function themeBuild(name, options) {
|
|
|
2885
2885
|
// package.json
|
|
2886
2886
|
var package_default = {
|
|
2887
2887
|
name: "@kinetixui/cli",
|
|
2888
|
-
version: "0.23.
|
|
2888
|
+
version: "0.23.1",
|
|
2889
2889
|
description: "Add KinetixUI components and tokens to your project.",
|
|
2890
2890
|
type: "module",
|
|
2891
2891
|
license: "MIT",
|
|
@@ -2992,7 +2992,7 @@ theme.command("create").description("Scaffold kinetixui-themes/<name>.csv with e
|
|
|
2992
2992
|
process.exitCode = 1;
|
|
2993
2993
|
}
|
|
2994
2994
|
});
|
|
2995
|
-
theme.command("build").description("Compile kinetixui-themes/<name>.csv to CSS and print a WCAG AA contrast report. CSS only
|
|
2995
|
+
theme.command("build").description("Compile kinetixui-themes/<name>.csv to CSS and print a WCAG AA contrast report. This command is CSS only; native themes come from `preset swiftui|compose|flutter`.").argument("<name>", "theme name, e.g. acme").option("--no-fail-on-contrast", "exit 0 even if a pair fails WCAG AA").action(async (name, opts) => {
|
|
2996
2996
|
try {
|
|
2997
2997
|
await themeBuild(name, { failOnContrast: opts.failOnContrast });
|
|
2998
2998
|
} catch (err) {
|
|
@@ -3009,7 +3009,7 @@ preset.command("decode").description("Show what a preset contains. Accepts a KX1
|
|
|
3009
3009
|
process.exitCode = 1;
|
|
3010
3010
|
}
|
|
3011
3011
|
});
|
|
3012
|
-
preset.command("css").description("Resolve a preset into its web CSS override block \u2014 the same output
|
|
3012
|
+
preset.command("css").description("Resolve a preset into its web CSS override block \u2014 the same output the workspace exports for Web CSS. This command is CSS only; see `preset swiftui|compose|flutter`.").argument("<preset>", "a KX1_ code, or a share URL").option("-o, --output <file>", "write to a file instead of stdout").action(async (input, opts) => {
|
|
3013
3013
|
try {
|
|
3014
3014
|
await presetCss(input, { output: opts.output });
|
|
3015
3015
|
} catch (err) {
|