Skip to content

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

TypeScript

docs(docsite): replace stale XDS references with Astryx (#3425)

EJ Hammond7f97e0bac677
diff --git a/.changeset/fix-core-readme-astryx-refs.md b/.changeset/fix-core-readme-astryx-refs.md
new file mode 100644
index 0000000000..75506fdae0
--- /dev/null
+++ b/.changeset/fix-core-readme-astryx-refs.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] Fix stale references in the core README: rename the "XDS CLI" section to "Astryx CLI", correct component names to their current bare exports (Layout, AppShell, TopNav, SideNav), and update remaining XDS brand mentions to Astryx.
+
+@ejhammond
diff --git a/apps/docsite/scripts/backfill-display-name.mjs b/apps/docsite/scripts/backfill-display-name.mjs
index d5ec3dcd21..7dd39d7f48 100644
--- a/apps/docsite/scripts/backfill-display-name.mjs
+++ b/apps/docsite/scripts/backfill-display-name.mjs
@@ -28,7 +28,7 @@
* - Otherwise treat as PascalCase / camelCase and space-separate the
* words while preserving capitalization
* (`ChatMessageMetadata` -> `Chat Message Metadata`,
- * `Button` -> `XDS Button`).
+ * `Button` -> `Button`).
*
* Run from the repo root:
* node apps/docsite/scripts/backfill-display-name.mjs
@@ -81,7 +81,7 @@ function findDocFiles(root, out = []) {
* - Otherwise treat as PascalCase / camelCase, insert spaces between
* word boundaries while preserving capitalization:
* `ChatMessageMetadata` -> `Chat Message Metadata`.
- * `Button` -> `XDS Button`.
+ * `Button` -> `Button`.
*/
function deriveDisplayName(name) {
if (!name) return name;
diff --git a/apps/docsite/scripts/generate-data.mjs b/apps/docsite/scripts/generate-data.mjs
index 2948251861..056529950e 100644
--- a/apps/docsite/scripts/generate-data.mjs
+++ b/apps/docsite/scripts/generate-data.mjs
@@ -5,7 +5,7 @@
/**
* @file generate-data.mjs
*
- * Build-time data extraction for the XDS docsite.
+ * Build-time data extraction for the Astryx docsite.
* Reads package.json, .doc.mjs, templates, and markdown files across the
* monorepo and generates typed TypeScript registries in src/generated/.
*
diff --git a/apps/docsite/scripts/generate-playground-types.mjs b/apps/docsite/scripts/generate-playground-types.mjs
index c65dcd4d46..961c79c60c 100644
--- a/apps/docsite/scripts/generate-playground-types.mjs
+++ b/apps/docsite/scripts/generate-playground-types.mjs
@@ -47,8 +47,8 @@ if (!existsSync(distDir)) {
process.exit(0);
}
-const xdsTypes = collectDts(distDir);
-const fileCount = Object.keys(xdsTypes).length;
+const astryxTypes = collectDts(distDir);
+const fileCount = Object.keys(astryxTypes).length;
// Also generate a minimal React types stub
const reactJsxRuntimeTypes = `
@@ -183,7 +183,7 @@ console.log(
);
const output = {
- '@astryxdesign/core': xdsTypes,
+ '@astryxdesign/core': astryxTypes,
react: {'index.d.ts': reactTypes, 'jsx-runtime.d.ts': reactJsxRuntimeTypes},
'@stylexjs/stylex': {'index.d.ts': stylexTypes},
'@heroicons/react': heroiconTypes,
@@ -191,4 +191,4 @@ const output = {
const json = JSON.stringify(output);
writeFileSync(join(outDir, 'playground-types.json'), json);
-console.log(`Generated playground-types.json: ${fileCount} XDS type files, ${(json.length / 1024).toFixed(0)}KB`);
+console.log(`Generated playground-types.json: ${fileCount} Astryx type files, ${(json.length / 1024).toFixed(0)}KB`);
diff --git a/apps/docsite/scripts/generate-scope.mjs b/apps/docsite/scripts/generate-scope.mjs
index 59bbd45586..9173c93f33 100644
--- a/apps/docsite/scripts/generate-scope.mjs
+++ b/apps/docsite/scripts/generate-scope.mjs
@@ -4,7 +4,7 @@
/**
* Generates apps/docsite/src/generated/playground-scope.ts
*
- * Maps every XDS module available in the playground preview iframe.
+ * Maps every Astryx module available in the playground preview iframe.
* This runs as part of `pnpm generate` (before dev/build) so new components
* are picked up automatically — no manual maintenance needed.
*
@@ -207,7 +207,7 @@ lines.push('');
lines.push("import {Theme} from '@astryxdesign/core/theme';");
lines.push("import type {DefinedTheme} from '@astryxdesign/core/theme';");
lines.push("import {createElement, type ComponentProps} from 'react';");
-lines.push("import * as xdsTokens from '@astryxdesign/core/theme/tokens.stylex';");
+lines.push("import * as astryxTokens from '@astryxdesign/core/theme/tokens.stylex';");
lines.push('');
// ── Hooks ──────────────────────────────────────────────────────────────
@@ -277,7 +277,7 @@ for (const t of SCOPE_THEMES) {
lines.push(" '@astryxdesign/core/theme': {Theme: ControlledTheme},");
// tokens.stylex
-lines.push(" '@astryxdesign/core/theme/tokens.stylex': xdsTokens,");
+lines.push(" '@astryxdesign/core/theme/tokens.stylex': astryxTokens,");
// hooks (useMediaQuery, etc.)
lines.push(" '@astryxdesign/core/hooks': Hooks,");
diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.ts
index a1efd419a6..5a83de28d6 100644
--- a/apps/docsite/src/__tests__/data-extraction.test.ts
+++ b/apps/docsite/src/__tests__/data-extraction.test.ts
@@ -366,7 +366,7 @@ describe('componentRegistry', () => {
const core = components['@astryxdesign/core'];
// Public hooks (useTheme, useToast, useTableSortable, …) ship example
// blocks; internal utility hooks (useFocusTrap, useScrollLock, …) do not.
- // Post un-prefix migration (P2380608025) the doc `name` is bare for both,
+ // Post un-prefix migration the doc `name` is bare for both,
// so the public set is identified by having an example-registry entry
// rather than by a name prefix.
const hooks = core.filter(
diff --git a/apps/docsite/src/__tests__/playground-scope.test.ts b/apps/docsite/src/__tests__/playground-scope.test.ts
index a22e81a722..77d3f39524 100644
--- a/apps/docsite/src/__tests__/playground-scope.test.ts
+++ b/apps/docsite/src/__tests__/playground-scope.test.ts
@@ -39,7 +39,9 @@ function getExpectedComponents(): string[] {
const pkg = JSON.parse(fs.readFileSync(CORE_PKG_PATH, 'utf-8'));
return Object.keys(pkg.exports ?? {})
.filter(k => {
- if (SKIP.test(k)) {return false;}
+ if (SKIP.test(k)) {
+ return false;
+ }
const name = k.replace('./', '');
return /^[A-Z]/.test(name);
})
@@ -70,7 +72,9 @@ describe('playground-scope', () => {
it('imports every PascalCase component from @astryxdesign/core', () => {
const missing = expectedComponents.filter(
name =>
- !scopeContent.includes(`import * as ${name} from '@astryxdesign/core/${name}';`),
+ !scopeContent.includes(
+ `import * as ${name} from '@astryxdesign/core/${name}';`,
+ ),
);
expect(missing).toEqual([]);
});
@@ -93,7 +97,9 @@ describe('playground-scope', () => {
it('component count matches core exports', () => {
const importLines = scopeContent
.split('\n')
- .filter(l => l.match(/^import \* as \w+ from '@astryxdesign\/core\/[A-Z]/));
+ .filter(l =>
+ l.match(/^import \* as \w+ from '@astryxdesign\/core\/[A-Z]/),
+ );
expect(importLines.length).toBe(expectedComponents.length);
});
@@ -124,7 +130,7 @@ describe('playground-scope', () => {
it('includes Theme controlled wrapper and tokens', () => {
expect(scopeContent).toContain("'@astryxdesign/core/theme': {Theme:");
expect(scopeContent).toContain(
- "'@astryxdesign/core/theme/tokens.stylex': xdsTokens,",
+ "'@astryxdesign/core/theme/tokens.stylex': astryxTokens,",
);
expect(scopeContent).toContain('ControlledTheme');
expect(scopeContent).toContain('SCOPE_THEMES');
diff --git a/apps/docsite/src/app/(docs)/docs/[topic]/page.tsx b/apps/docsite/src/app/(docs)/docs/[topic]/page.tsx
index 50a0309f15..6b7025c95c 100644
--- a/apps/docsite/src/app/(docs)/docs/[topic]/page.tsx
+++ b/apps/docsite/src/app/(docs)/docs/[topic]/page.tsx
@@ -56,7 +56,7 @@ function getInstallSteps(pkgName: string): InstallStep[] {
}
/** Sections to remove from the @astryxdesign/core README on the package page. */
-const CORE_STRIP_SECTIONS = ['Quick Start', 'Resources', 'XDS CLI'];
+const CORE_STRIP_SECTIONS = ['Quick Start', 'Resources', 'Astryx CLI'];
export function generateStaticParams() {
return [
diff --git a/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx b/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx
index 456d6c6c30..3f444d4493 100644
--- a/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx
@@ -99,7 +99,7 @@ const styles = stylex.create({
// the expected size and the column header sits at a consistent
// baseline across all three feature columns.
//
- // Rendered as a raw <span> in the JSX because XDS has no
+ // Rendered as a raw <span> in the JSX because Astryx has no
// primitive for "fixed-size inline-block decorative SVG wrapper"
// (Icon is glyph-only and bound to its registry; Thumbnail
// is chat-attachment chrome). The wrapper exists purely to reserve
diff --git a/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx b/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx
index d793f79446..98f25e49b0 100644
--- a/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx
@@ -362,7 +362,7 @@ const features: Record<string, Feature> = {
description:
'Accessible and themeable React components with built-in spacing, dark mode, and flexible styling.',
href: '/components',
- // Live, theme-aware sampler of real XDS components instead of a
+ // Live, theme-aware sampler of real Astryx components instead of a
// baked PNG — the old /feature-components.png stayed light on the
// dark surface; ComponentsPreview re-themes for dark mode.
preview: <ComponentsPreview />,
diff --git a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
index 5ca95e150c..2ccc8cfee0 100644
--- a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
@@ -50,7 +50,7 @@ const themePackages = packages
return ai - bi;
});
-// Re-set XDS's structural tokens (spacing, radii, font sizes) back to
+// Re-set Astryx's structural tokens (spacing, radii, font sizes) back to
// the defaults exported from @astryxdesign/core. Each <Theme> wrapper sets a
// full token bundle including these structural slots, which would make
// gallery tiles visually inconsistent (different button heights, badge
@@ -80,7 +80,7 @@ const CARD_WIDTH = 800;
// content and tiles render at visibly different heights based on
// which theme is showing. 620px chosen empirically as the smallest
// height that fits all themes' right-column content without clipping
-// at base XDS sizing.
+// at base Astryx sizing.
const CARD_HEIGHT = 620;
// Horizontal gutter that defines the page's content rim. The
@@ -257,10 +257,8 @@ function ShowcaseHeading() {
type="body"
color="secondary"
xstyle={styles.descriptionWidth}>
-
- Astryx makes it easy to apply your brand; no rewrites needed.
- Customize your theme at the token level: color, typography, radius, and
- motion.
+ Astryx makes it easy to apply your brand; no rewrites needed. Customize
+ your theme at the token level: color, typography, radius, and motion.
</Text>
</VStack>
);
@@ -274,11 +272,7 @@ function HeaderLinks() {
label="Create a custom theme"
href="/docs/theme"
/>
- <Button
- variant="secondary"
- label="Explore all themes"
- href="/themes"
- />
+ <Button variant="secondary" label="Explore all themes" href="/themes" />
</HStack>
);
}
diff --git a/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx b/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx
index c96aaf7007..c703e26ab9 100644
--- a/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx
+++ b/apps/docsite/src/app/(site)/_landing/hero/HeroThemeReel.tsx
@@ -136,7 +136,7 @@ const styles = stylex.create({
//
// The extra MUST match the showcase overlay's corner radius, which is the
// docsite (Astryx) --radius-page = 32px. We can't read --radius-page here
- // because this fill renders inside <XDSTheme theme={active}>, where the
+ // because this fill renders inside <Theme theme={active}>, where the
// active theme overrides it — e.g. Y2K sets --radius-page: 0, which left the
// fill 32px short and exposed the docsite body color in the rounded corners.
// Hence a fixed 32px tied to the overlay radius rather than the theme token.
diff --git a/apps/docsite/src/app/(site)/_landing/hero/heroThemeContent.ts b/apps/docsite/src/app/(site)/_landing/hero/heroThemeContent.ts
index 193b1d8785..224398c2b4 100644
--- a/apps/docsite/src/app/(site)/_landing/hero/heroThemeContent.ts
+++ b/apps/docsite/src/app/(site)/_landing/hero/heroThemeContent.ts
@@ -21,7 +21,7 @@ import {BRAND_BLUE} from '@/constants';
// Sentinel for the docsite's local brand theme (not an @astryxdesign/theme-* package).
const ASTRYX = 'astryx';
-// Shared XDS asset CDN. The per-theme reel cards pull the same product photos
+// Shared Astryx asset CDN. The per-theme reel cards pull the same product photos
// the /themes showcase uses (see themeShowcaseContent.ts) so the hero and the
// gallery stay in sync.
const IMAGE_CDN = 'https://lookaside.facebook.com/assets/astryx';
diff --git a/apps/docsite/src/app/(site)/page.tsx b/apps/docsite/src/app/(site)/page.tsx
index 764130a3a2..65d37a4d22 100644
--- a/apps/docsite/src/app/(site)/page.tsx
+++ b/apps/docsite/src/app/(site)/page.tsx
@@ -11,7 +11,7 @@ import {Grid} from '@astryxdesign/core/Grid';
import {Button} from '@astryxdesign/core/Button';
import {Theme} from '@astryxdesign/core/theme';
import {spacingVars} from '@astryxdesign/core/theme/tokens.stylex';
-// Built theme (__built:true) so <XDSTheme> uses the pre-built CSS and skips
+// Built theme (__built:true) so <Theme> uses the pre-built CSS and skips
// runtime style injection. Importing the source astryxTheme.ts re-triggers it.
import {astryxTheme} from '@/themes/astryx';
import {layout} from '../../layout.stylex';
diff --git a/apps/docsite/src/app/(site)/themes/page.tsx b/apps/docsite/src/app/(site)/themes/page.tsx
index ca72aeb181..315482ea44 100644
--- a/apps/docsite/src/app/(site)/themes/page.tsx
+++ b/apps/docsite/src/app/(site)/themes/page.tsx
@@ -3,7 +3,7 @@
/**
* Themes page — /themes
*
- * Single canonical surface for browsing every XDS theme. Renders the
+ * Single canonical surface for browsing every Astryx theme. Renders the
* full live ThemePackagePage (sidebar picker + themed preview
* mockup + card showcase), seeded with the Neutral theme as the
* default selection.
diff --git a/apps/docsite/src/app/globals.css b/apps/docsite/src/app/globals.css
index 524a114dac..6493d07baf 100644
--- a/apps/docsite/src/app/globals.css
+++ b/apps/docsite/src/app/globals.css
@@ -19,10 +19,10 @@ html {
}
/* Marketing-only custom properties for the docsite home page. These are
- NOT XDS theming tokens — they're docsite-specific values that back the
+ NOT Astryx theming tokens — they're docsite-specific values that back the
landing page's bento feature cards + section rhythm — so they live here
in globals.css rather than in the Astryx theme (which should only
- override real XDS semantic tokens). Each is a light-dark() pair so dark
+ override real Astryx semantic tokens). Each is a light-dark() pair so dark
mode is handled by the value itself, no consumer logic required. */
:root {
/* AppShell measures its header post-hydration and sets
@@ -43,7 +43,7 @@ html {
as a single related group. */
--astryx-marketing-feature-card-bg: light-dark(#e6f0ff, #1a2333);
- /* Spacing between major home-page sections (the XDS scale tops out at 48px,
+ /* Spacing between major home-page sections (the Astryx scale tops out at 48px,
too tight for a section break). Shrinks on mobile (below). */
--astryx-marketing-section-gap: 100px;
}
@@ -148,10 +148,10 @@ body[data-hero-dark]:not([data-nav-mode='surface'])
}
/* Hide the prev/next chevron buttons inside the home page's hero theme
- switcher pagination so only the dot indicators show. XDSPagination's
+ switcher pagination so only the dot indicators show. Pagination's
variant="dots" ships with chevrons by default; the hero wants a minimal
indicator-only treatment. Scoped to [data-home-page] so other
- XDSPagination instances across the site stay untouched. */
+ Pagination instances across the site stay untouched. */
[data-home-page] .astryx-pagination button[aria-label='Go to previous page'],
[data-home-page] .astryx-pagination button[aria-label='Go to next page'] {
display: none;
diff --git a/apps/docsite/src/app/playground/PlaygroundClient.tsx b/apps/docsite/src/app/playground/PlaygroundClient.tsx
index 7dd21ea9e7..ffb6498d8c 100644
--- a/apps/docsite/src/app/playground/PlaygroundClient.tsx
+++ b/apps/docsite/src/app/playground/PlaygroundClient.tsx
@@ -4,12 +4,12 @@
* @file PlaygroundClient.tsx
* @input URL hash (shared code), user edits, knob edits
* @output Full-page two-panel playground (editor + live preview)
- * @position app/playground — the interactive XDS code playground.
+ * @position app/playground — the interactive Astryx code playground.
*
* AppShell: side-nav-only shell; desktop nav is controlled collapsed to
* an icon rail while AppShell owns the mobile top bar and drawer.
* Left panel: Monaco editor (Code) or knobs (Properties).
- * - Code: Monaco editor (controlled) with real XDS .d.ts typedefs.
+ * - Code: Monaco editor (controlled) with real Astryx .d.ts typedefs.
* - Property: component selector + instance picker + knobs that edit the code.
* Right panel: toolbar (dark mode · target element · viewport
* segmented control · share · expand) over a responsive
diff --git a/apps/docsite/src/app/playground/monacoSetup.ts b/apps/docsite/src/app/playground/monacoSetup.ts
index 09714a4398..cb189229b5 100644
--- a/apps/docsite/src/app/playground/monacoSetup.ts
+++ b/apps/docsite/src/app/playground/monacoSetup.ts
@@ -3,10 +3,10 @@
/**
* @file monacoSetup.ts
* @input The Monaco runtime instance passed to the editor's onMount
- * @output Self-hosted loader config + TypeScript-service setup with XDS typedefs
+ * @output Self-hosted loader config + TypeScript-service setup with Astryx typedefs
* @position Playground Code editor — keeps Monaco wiring out of PlaygroundClient.
*
- * Configures Monaco's TypeScript service with real XDS type definitions loaded
+ * Configures Monaco's TypeScript service with real Astryx type definitions loaded
* from a pre-built JSON bundle (generated at build time), so the editor offers
* accurate autocomplete and diagnostics for @astryxdesign/core, React, StyleX, and icons.
*/
@@ -40,7 +40,7 @@ export type MonacoInstance = typeof MonacoTypes & {
};
/**
- * Configure Monaco's TypeScript service with real XDS type definitions.
+ * Configure Monaco's TypeScript service with real Astryx type definitions.
* Loads .d.ts files from a pre-built JSON bundle (generated at build time).
*/
export function configureMonaco(monaco: MonacoInstance) {
@@ -119,10 +119,10 @@ export function configureMonaco(monaco: MonacoInstance) {
);
}
- const xdsFiles = packages['@astryxdesign/core'] ?? {};
+ const coreFiles = packages['@astryxdesign/core'] ?? {};
const submoduleReexports: string[] = [];
- for (const [relPath, content] of Object.entries(xdsFiles)) {
+ for (const [relPath, content] of Object.entries(coreFiles)) {
ts.addExtraLib(
content,
`file:///node_modules/@astryxdesign/core/dist/${relPath}`,
diff --git a/apps/docsite/src/app/playground/preview/runner.ts b/apps/docsite/src/app/playground/preview/runner.ts
index d5e22136f7..196e21d901 100644
--- a/apps/docsite/src/app/playground/preview/runner.ts
+++ b/apps/docsite/src/app/playground/preview/runner.ts
@@ -9,7 +9,7 @@
* Transpiles TSX → CommonJS with the self-hosted TypeScript compiler
* (window.ts, served from /vendor/typescript.js — corpnet blocks CDNs), then
* evaluates it with a custom `require` mapped to the preview scope plus a
- * global scope so unimported React hooks / XDS components still resolve.
+ * global scope so unimported React hooks / Astryx components still resolve.
*/
import type * as TS from 'typescript';
@@ -107,7 +107,7 @@ const RESERVED_GLOBALS = new Set([
/**
* Build a scope with ALL named exports from every module so React hooks and
- * XDS components are available as globals without an explicit import.
+ * Astryx components are available as globals without an explicit import.
*
* Excludes names that would shadow JS built-ins (see RESERVED_GLOBALS).
*/
@@ -162,7 +162,7 @@ function compile(code: string): string {
/**
* Names the user's code declares at the top level of the compiled module.
*
- * Globals (every XDS/icon export) are passed to `new Function` as parameters so
+ * Globals (every Astryx/icon export) are passed to `new Function` as parameters so
* unimported components resolve. But a top-level `const Foo = ...` in the user
* code collides with a `Foo` parameter ("Identifier 'Foo' has already been
* declared") — e.g. a template defining `const AppleIcon` clashes with
diff --git a/apps/docsite/src/app/playground/propertyEditor/componentInstances.ts b/apps/docsite/src/app/playground/propertyEditor/componentInstances.ts
index 92c3133caf..6183d3bb8a 100644
--- a/apps/docsite/src/app/playground/propertyEditor/componentInstances.ts
+++ b/apps/docsite/src/app/playground/propertyEditor/componentInstances.ts
@@ -22,7 +22,7 @@ import {getComponentByModule} from './componentLookup';
/**
* True if a JSX identifier refers to an XDS-namespace component. Prefix-agnostic
- * (XDS-prefix migration P2380608025): the playground now authors bare names
+ * (XDS-prefix migration): the playground now authors bare names
* (`<Button>`), but legacy/prefixed names (`<XDSButton>`) must still resolve.
* Falls back to the `XDS` prefix for components not yet in the registry.
*/
diff --git a/apps/docsite/src/app/playground/propertyEditor/targetingOverlay.tsx b/apps/docsite/src/app/playground/propertyEditor/targetingOverlay.tsx
index 2eaae9ed18..ffbaeae750 100644
--- a/apps/docsite/src/app/playground/propertyEditor/targetingOverlay.tsx
+++ b/apps/docsite/src/app/playground/propertyEditor/targetingOverlay.tsx
@@ -269,7 +269,7 @@ function clearSelectionOverlay() {
/**
* Manages the targeting overlay lifecycle inside the iframe. When enabled,
- * intercepts pointer events to highlight hovered XDS components and report
+ * intercepts pointer events to highlight hovered Astryx components and report
* clicks back to the parent frame.
*/
export function createTargetingController(
diff --git a/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx b/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx
index 0a99bd2342..99ec76a996 100644
--- a/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx
+++ b/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx
@@ -25,7 +25,7 @@ const s = stylex.create({
swatchInteractive: {
cursor: 'pointer',
},
- // Native color input overlaid transparently on the swatch (XDS has no color
+ // Native color input overlaid transparently on the swatch (Astryx has no color
// picker), so clicking the swatch opens the OS picker.
colorInput: {
position: 'absolute',
diff --git a/apps/docsite/src/app/playground/themeEditor/ComponentTokensPanel.tsx b/apps/docsite/src/app/playground/themeEditor/ComponentTokensPanel.tsx
index 89b963ef47..54fa076707 100644
--- a/apps/docsite/src/app/playground/themeEditor/ComponentTokensPanel.tsx
+++ b/apps/docsite/src/app/playground/themeEditor/ComponentTokensPanel.tsx
@@ -228,7 +228,7 @@ export function ComponentTokensPanel({
<HStack gap={2} vAlign="end">
<StackItem size="fill" xstyle={styles.rowLabel}>
<Text type="supporting" color="secondary" maxLines={1}>
- .xds-{override.component} → {override.property}
+ .astryx-{override.component} → {override.property}
</Text>
</StackItem>
<Button
diff --git a/apps/docsite/src/app/playground/themeEditor/constants.ts b/apps/docsite/src/app/playground/themeEditor/constants.ts
index efd09cf614..4b2d52c701 100644
--- a/apps/docsite/src/app/playground/themeEditor/constants.ts
+++ b/apps/docsite/src/app/playground/themeEditor/constants.ts
@@ -267,7 +267,7 @@ export const COMPONENT_VARS: Record<
};
// Maps component CSS var names to defineTheme() components entries.
-// Most use the derivedVarRegistry keys (which match XDS component selector keys).
+// Most use the derivedVarRegistry keys (which match Astryx component selector keys).
// Some components set internal --_ vars via StyleX on a child element,
// so we target the child class directly with the internal var name.
export const COMPONENT_VAR_TO_OVERRIDE: Record<
diff --git a/apps/docsite/src/components/TemplatePreviewSurface.module.css b/apps/docsite/src/components/TemplatePreviewSurface.module.css
index 6b9e2a9fae..df04fa8626 100644
--- a/apps/docsite/src/components/TemplatePreviewSurface.module.css
+++ b/apps/docsite/src/components/TemplatePreviewSurface.module.css
@@ -17,7 +17,7 @@
overflow: auto;
border-radius: var(--radius-container);
border: var(--border-width) solid var(--color-border);
- /* Templates are content-only (no XDSAppShell) and render transparent, so
+ /* Templates are content-only (no AppShell) and render transparent, so
the preview host supplies the page background. Use the surface color so
templates read as a real themed app surface. */
background-color: var(--color-background-surface);
diff --git a/apps/docsite/src/components/ThemePackagePage.tsx b/apps/docsite/src/components/ThemePackagePage.tsx
index c12014df97..a4d7be923e 100644
--- a/apps/docsite/src/components/ThemePackagePage.tsx
+++ b/apps/docsite/src/components/ThemePackagePage.tsx
@@ -293,7 +293,7 @@ const styles = stylex.create({
// Per-theme bespoke picker artwork — one rule per theme that
// has a custom photo (vs. the multi-radial-gradient default).
// Each rule sets the picker card's background to a dedicated
- // theme-<slug>-picker.png banner hosted on the XDS asset CDN
+ // theme-<slug>-picker.png banner hosted on the Astryx asset CDN
// (see PICKER_CDN). These are SEPARATE files from the
// theme-<slug>-preview.png images used on the /themes overview +
// detail page hero — these picker assets are sized and
diff --git a/apps/docsite/src/components/ThemeShowcaseTile.tsx b/apps/docsite/src/components/ThemeShowcaseTile.tsx
index fd1e24f39a..a8d983b062 100644
--- a/apps/docsite/src/components/ThemeShowcaseTile.tsx
+++ b/apps/docsite/src/components/ThemeShowcaseTile.tsx
@@ -557,7 +557,7 @@ export function ThemeShowcaseTile({
vertical space so tall tiles (Butter, Y2K) don't
leave an empty band at the bottom; falls back to a
170px floor on short tiles. Raw <img> intentionally:
- XDS provides Thumbnail but it's purpose-built
+ Astryx provides Thumbnail but it's purpose-built
for file-attachment UX (square 64px default,
remove/click affordances, upload-style skeleton).
Tinted gradient fallback covers themes whose
diff --git a/apps/docsite/src/components/component-detail/InteractivePreview.tsx b/apps/docsite/src/components/component-detail/InteractivePreview.tsx
index 1185a86ab7..0d2634cbd5 100644
--- a/apps/docsite/src/components/component-detail/InteractivePreview.tsx
+++ b/apps/docsite/src/components/component-detail/InteractivePreview.tsx
@@ -142,7 +142,7 @@ function formatValue(
}
function generateCode(name: string, state: Record<string, unknown>): string {
- const componentName = `XDS${name}`;
+ const componentName = name;
// Filter out docs-only props that shouldn't appear in user code
const entries = Object.entries(state).filter(
([k, v]) => v !== undefined && k !== 'isInline',
diff --git a/apps/docsite/src/components/component-detail/parsePropType.ts b/apps/docsite/src/components/component-detail/parsePropType.ts
index 22e54b4297..d6642c538c 100644
--- a/apps/docsite/src/components/component-detail/parsePropType.ts
+++ b/apps/docsite/src/components/component-detail/parsePropType.ts
@@ -11,8 +11,6 @@ import {getIconRegistry} from '@astryxdesign/core/Icon';
* Parses a stringified TypeScript prop type into a control descriptor
* that the playground can render an input for. Literal unions become
* enum controls, including mixed string-literal + boolean unions.
- *
- * Ported from the internal docsite (nest/apps/xds).
*/
export interface ElementOption {
@@ -72,7 +70,7 @@ function isInputStatusType(typeStr: string, propName?: string): boolean {
return false;
}
- // Prefix-agnostic (XDS-prefix migration P2380608025): match both the legacy
+ // Prefix-agnostic (XDS-prefix migration): match both the legacy
// prefixed names (XDSInputStatus/XDSFieldStatus) and the bare forms.
if (/\b(?:XDS)?(?:InputStatus|FieldStatus)\b/.test(typeStr)) {
return true;
diff --git a/apps/docsite/src/components/component-detail/resolveElements.ts b/apps/docsite/src/components/component-detail/resolveElements.ts
index 65af46d323..9aae7963e2 100644
--- a/apps/docsite/src/components/component-detail/resolveElements.ts
+++ b/apps/docsite/src/components/component-detail/resolveElements.ts
@@ -19,8 +19,8 @@ import type {ElementDescriptor} from '../../generated/componentRegistry';
type AnyComponent = ComponentType<any>;
export function getComponent(name: string): AnyComponent | null {
- // Resolve by bare name first (canonical post un-prefix migration
- // P2380608025), falling back to the legacy XDS-prefixed export.
+ // Resolve by bare name first (canonical post un-prefix
+ // migration), falling back to the legacy XDS-prefixed export.
// Reads are wrapped because a strict module mock throws on undefined keys
// rather than returning undefined.
const readExport = (key: string): unknown => {
diff --git a/apps/docsite/src/components/docs/ListBlock.tsx b/apps/docsite/src/components/docs/ListBlock.tsx
index 6e148b7240..335a2c9377 100644
--- a/apps/docsite/src/components/docs/ListBlock.tsx
+++ b/apps/docsite/src/components/docs/ListBlock.tsx
@@ -52,7 +52,7 @@ export function ListBlock({
);
}
- const xdsListStyle =
+ const resolvedListStyle =
listStyle === 'ordered'
? 'decimal'
: listStyle === 'unordered'
@@ -60,7 +60,7 @@ export function ListBlock({
: 'none';
return (
- <List density="compact" listStyle={xdsListStyle}>
+ <List density="compact" listStyle={resolvedListStyle}>
{items.map((item, i) => (
<ListItem key={i} label={renderInlineMarkdown(item)} />
))}
diff --git a/apps/docsite/src/content/blog/authors.ts b/apps/docsite/src/content/blog/authors.ts
index 8e7cc356bb..d4e8a79fb2 100644
--- a/apps/docsite/src/content/blog/authors.ts
+++ b/apps/docsite/src/content/blog/authors.ts
@@ -4,7 +4,7 @@
* @file authors.ts
*
* Shared author registry for the blog. Posts reference authors by key in their
- * frontmatter (`authors: ["xds-team"]`) so profile metadata is defined once.
+ * frontmatter (`authors: ["team"]`) so profile metadata is defined once.
*
* For GitHub-backed authors, set `github` and the site derives a stable avatar
* and profile link from github.com without fetching profile data at build time.
diff --git a/apps/docsite/src/themes/astryxTheme.ts b/apps/docsite/src/themes/astryxTheme.ts
index 760208b149..64fd9a4c80 100644
--- a/apps/docsite/src/themes/astryxTheme.ts
+++ b/apps/docsite/src/themes/astryxTheme.ts
@@ -20,7 +20,7 @@
* The only other overrides are the cream body color, Figtree typography, a
* +4px radius bump, semibold display headings, and pill buttons. The neutral
* gray ramp (surfaces, borders, secondary/disabled text, skeleton/track,
- * categorical gray) is intentionally left at the XDS defaults — Astryx is a
+ * categorical gray) is intentionally left at the Astryx defaults — Astryx is a
* thin brand layer of primary + accent + body on top of the design system.
*/
@@ -61,7 +61,7 @@ export const astryxTheme = defineTheme({
// scale config — the scale runs HCT derivation across the whole palette
// and bleeds the accent's hue into neutrals (which made all the "gray"
// surfaces come out brown). Setting --color-accent directly leaves every
- // other token at the XDS default.
+ // other token at the Astryx default.
tokens: {
// --- ACCENT tokens → PRIMARY ---
// The brand blue is reserved for the logo, so every accent token resolves
@@ -76,11 +76,11 @@ export const astryxTheme = defineTheme({
// On-accent (the label/icon ON a filled accent surface, e.g. primary
// button text) must invert with the accent: PRIMARY is near-black in light
// and near-white in dark, so the on-accent ink is white in light and
- // near-black in dark. Without this it stays the XDS default white and
+ // near-black in dark. Without this it stays the Astryx default white and
// becomes unreadable on the light dark-mode accent fill.
'--color-on-accent': 'light-dark(#FFFFFF, #15110C)',
// Mode-aware so the page background flips with dark mode. Light keeps the
- // warm Astryx cream; dark falls back to the XDS default body color
+ // warm Astryx cream; dark falls back to the Astryx default body color
// (a flat static value here would freeze the page in light mode).
'--color-background-body': 'light-dark(#F8F4ED, #111112)',
@@ -88,12 +88,12 @@ export const astryxTheme = defineTheme({
// Both primary foreground tokens point at the single PRIMARY decision
// above (which also drives the accent tokens). Secondary, disabled, and the
// rest of the neutral gray ramp (surfaces, borders, skeleton/track,
- // categorical gray) are intentionally left at the XDS defaults — only the
+ // categorical gray) are intentionally left at the Astryx defaults — only the
// primary ink is a brand decision.
'--color-text-primary': PRIMARY,
'--color-icon-primary': PRIMARY,
- // Astryx display headings render semibold (XDS default is normal weight).
+ // Astryx display headings render semibold (Astryx default is normal weight).
'--text-display-1-weight': 'var(--font-weight-semibold)',
'--text-display-2-weight': 'var(--font-weight-semibold)',
'--text-display-3-weight': 'var(--font-weight-semibold)',
diff --git a/packages/core/README.md b/packages/core/README.md
index daaf81132b..78c8782536 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -1,6 +1,6 @@
# @astryxdesign/core
-Core UI components, theme system, and utilities for the XDS design system. For project setup, see [Quick Start](#quick-start) below.
+Core UI components, theme system, and utilities for the Astryx design system. For project setup, see [Quick Start](#quick-start) below.
## Component Docs
@@ -15,9 +15,9 @@ node node_modules/@astryxdesign/core/docs.mjs --list --brief # brief summaries
## Page Layouts
Building a full page? Start with a template rather than composing from scratch.
-Templates are content-only; they compose `XDSLayout` with header, content, and
+Templates are content-only; they compose `Layout` with header, content, and
panel slots into common page patterns (dashboards, settings, forms, detail pages).
-Wrap them in your own app chrome (`XDSAppShell`, `XDSTopNav`, `XDSSideNav`) to add
+Wrap them in your own app chrome (`AppShell`, `TopNav`, `SideNav`) to add
global navigation.
Requires `@astryxdesign/cli` (`npm install -D @astryxdesign/cli`):
@@ -28,7 +28,7 @@ npx astryx template dashboard # emit full page source
npx astryx template settings --skeleton # layout skeleton with spatial annotations
```
-## XDS CLI
+## Astryx CLI
The CLI (`@astryxdesign/cli`) provides additional tooling:
@@ -38,11 +38,12 @@ npx astryx component Button # full docs + related block templates
npx astryx docs # reference docs (principles, tokens, theming, styling)
npx astryx docs theme # theming guide (Theme, defineTheme, light/dark)
npx astryx docs tokens # spacing, color, radius, typography token reference
-npx astryx init # initialize XDS in your project
+npx astryx init # initialize Astryx in your project
npx astryx theme build # build theme CSS for production
npx astryx swizzle Button # eject component source for customization
npx astryx upgrade --apply # run codemods to migrate between versions
-npx astryx discover # discover external XDS packages
+npx astryx discover # discover external Astryx packages
+npx astryx gap-report # report a missing capability
```
## Related Packages
@@ -61,7 +62,7 @@ npx astryx discover # discover external XDS packages
## Quick Start
-Install XDS and a theme:
+Install Astryx and a theme:
```bash
npm install @astryxdesign/core @astryxdesign/theme-neutral
@@ -121,7 +122,7 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
### Next.js + Tailwind
-No build plugins needed; XDS ships pre-built CSS that works alongside Tailwind.
+No build plugins needed; Astryx ships pre-built CSS that works alongside Tailwind.
**`src/app/globals.css`**
@@ -149,7 +150,7 @@ The `tailwind-theme.css` import maps system tokens to Tailwind utilities via `@t
Some useful mappings:
-| Tailwind class | XDS token |
+| Tailwind class | Astryx token |
| --------------------------------------------------------- | ------------------------------------------------- |
| `text-primary` / `text-secondary` | `--color-text-primary` / `--color-text-secondary` |
| `bg-surface` / `bg-card` / `bg-body` | `--color-background-surface` / `card` / `body` |
@@ -159,7 +160,7 @@ Some useful mappings:
| `rounded-sm` / `rounded-md` / `rounded-lg` | `--radius-inner` / `element` / `container` |
| `shadow-sm` / `shadow-md` / `shadow-lg` | `--shadow-low` / `med` / `high` |
-Spacing references `var(--spacing-1)` as the base unit, so `p-4` = 16px, matching XDS's `--spacing-4`. Arbitrary values still work as an escape hatch: `bg-[var(--color-background-surface)]`.
+Spacing references `var(--spacing-1)` as the base unit, so `p-4` = 16px, matching Astryx's `--spacing-4`. Arbitrary values still work as an escape hatch: `bg-[var(--color-background-surface)]`.
**`src/app/providers.tsx`**
@@ -203,7 +204,7 @@ That's it. Start using components:
import {Button} from '@astryxdesign/core/Button';
export default function Page() {
- return <Button label="Hello XDS" variant="primary" />;
+ return <Button label="Hello Astryx" variant="primary" />;
}
```
@@ -231,7 +232,7 @@ Providers and layout are the same as the Tailwind example (use `@astryxdesign/th
npm install @astryxdesign/core @astryxdesign/theme-neutral
```
-Same CSS imports and providers as above. No build plugins needed; XDS ships pre-built.
+Same CSS imports and providers as above. No build plugins needed; Astryx ships pre-built.
### No build step (CDN)