Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix: clean up stale 'xds' references in user-facing CLI output and console warnings (#3079)

nynexman44646909782b1f47
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ab2c196be0..0bfba5e7b7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -131,7 +131,7 @@ xds/
│
├── packages/
│ ├── core/ # Core components (Button, Input, etc.)
-│ ├── cli/ # CLI tooling (npx xds)
+│ ├── cli/ # CLI tooling (npx astryx)
│ ├── lab/ # Experimental components (not yet stable)
│ └── themes/ # Theme presets (default, neutral, daily, and more)
│
diff --git a/packages/cli/src/commands/init.mjs b/packages/cli/src/commands/init.mjs
index 1755640709..a58df0ad2c 100644
--- a/packages/cli/src/commands/init.mjs
+++ b/packages/cli/src/commands/init.mjs
@@ -248,7 +248,7 @@ export function registerInit(program) {
humanLog(' 2. Optionally add a theme:');
humanLog(" import { neutralTheme } from '@astryxdesign/theme-neutral'");
humanLog(' <Theme theme={neutralTheme}>...</Theme>');
- humanLog(` 3. ${run} xds --help for all commands`);
+ humanLog(` 3. ${run} astryx --help for all commands`);
humanLog('');
});
}
diff --git a/packages/cli/src/utils/package-manager.mjs b/packages/cli/src/utils/package-manager.mjs
index 4f7d1440b4..2440fb8dba 100644
--- a/packages/cli/src/utils/package-manager.mjs
+++ b/packages/cli/src/utils/package-manager.mjs
@@ -4,7 +4,7 @@
* @file Detect the project's package manager from lockfiles.
*
* Returns the correct command prefix for running package binaries
- * (e.g. 'npx xds', 'yarn xds', 'pnpm exec xds').
+ * (e.g. 'npx astryx', 'yarn astryx', 'pnpm exec astryx').
*/
import * as fs from 'node:fs';
diff --git a/packages/core/src/theme/Theme.tsx b/packages/core/src/theme/Theme.tsx
index d77acc8797..d174dfbb12 100644
--- a/packages/core/src/theme/Theme.tsx
+++ b/packages/core/src/theme/Theme.tsx
@@ -123,7 +123,7 @@ function useThemeStyleInjection(theme: DefinedTheme): void {
if (!warnedThemes.has(theme.name)) {
warnedThemes.add(theme.name);
console.warn(
- `[XDS] Theme "${theme.name}" is using runtime style injection. ` +
+ `[Astryx] Theme "${theme.name}" is using runtime style injection. ` +
`For better performance, use the pre-built theme:\n\n` +
` import {${theme.name}Theme} from '@astryxdesign/theme-${theme.name}/built';\n` +
` import '@astryxdesign/theme-${theme.name}/theme.css';\n\n` +
diff --git a/packages/core/src/theme/syntax/defineSyntaxTheme.ts b/packages/core/src/theme/syntax/defineSyntaxTheme.ts
index 05b04b6263..6c74e21c94 100644
--- a/packages/core/src/theme/syntax/defineSyntaxTheme.ts
+++ b/packages/core/src/theme/syntax/defineSyntaxTheme.ts
@@ -134,7 +134,7 @@ export function defineSyntaxTheme(input: SyntaxThemeInput): SyntaxThemeDefinitio
const missing = ALL_SYNTAX_KEYS.filter(key => !(key in input.tokens));
if (missing.length > 0) {
console.warn(
- '[XDS] defineSyntaxTheme("' + input.name + '"): missing tokens: ' +
+ '[Astryx] defineSyntaxTheme("' + input.name + '"): missing tokens: ' +
missing.join(', ') + '. All 14 syntax tokens are required.',
);
}