An open source design system that's fully customizable and agent ready
TypeScript
docs(slop): source-code AI-slop cleanup, pass 1 of 2 (30 files) (#2868)
Joey00e9df698387
diff --git a/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx b/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsxindex 407b920958..1799b95c3e 100644--- a/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx+++ b/apps/docsite/src/app/(site)/_landing/AboutShowcase.tsx@@ -227,7 +227,7 @@ const columns: AboutColumn[] = [{title: "Ready for what's next",description:- 'The quality bar is accelerating. Astryx pairs opinionated foundations with flexible patterns so your system keeps pace — no matter how the craft evolves.',+ 'The quality bar is accelerating. Astryx pairs opinionated foundations with flexible patterns so your system keeps pace, no matter how the craft evolves.',ctaLabel: "See what's new →",ctaHref: '/changelog',shape: <YellowDiamondShape />,diff --git a/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx b/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsxindex 0948a8e48c..33b3244c49 100644--- a/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx+++ b/apps/docsite/src/app/(site)/_landing/DiscoverShowcase.tsx@@ -276,8 +276,8 @@ export function DiscoverShowcase() {color="secondary"xstyle={styles.supportingText}>Browse {CORE_COMPONENT_COUNT_ROUNDED}+ components, explore- production-ready templates, and tune themes to match your brand- — pick a starting point and go.+ production-ready templates, and tune themes to match your brand;+ pick a starting point and go.</XDSText></XDSVStack><XDSGriddiff --git a/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx b/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsxindex 8ef3f63ba8..243702fb6e 100644--- a/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx+++ b/apps/docsite/src/app/(site)/_landing/FeaturesShowcase.tsx@@ -343,7 +343,7 @@ const features: Record<string, Feature> = {href: '/themes',image: {src: '/feature-brand.png',- alt: 'A product landing page styled with the Butter theme, shown alongside the theme\u2019s color swatches and type sample',+ alt: 'A product landing page styled with the Butter theme, shown alongside the theme\'s color swatches and type sample',},},templates: {diff --git a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsxindex 7a03ae740f..64bad8d842 100644--- a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx+++ b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx@@ -257,7 +257,8 @@ function ShowcaseHeading() {type="body"color="secondary"xstyle={styles.descriptionWidth}>- Astryx makes it effortless to apply your brand — no rewrites needed.++ Astryx makes it easy to apply your brand; no rewrites needed.Customize your theme at the token level: color, typography, radius, andmotion.</XDSText>diff --git a/apps/docsite/src/app/mcp/route.ts b/apps/docsite/src/app/mcp/route.tsindex 4e32f9f37d..80a7e95bb1 100644--- a/apps/docsite/src/app/mcp/route.ts+++ b/apps/docsite/src/app/mcp/route.ts@@ -114,7 +114,7 @@ const handler = createMcpHandler(// ══════════════════════════════════════════════════════════════════server.tool('search',- `Search Astryx (XDS) design system — finds components, documentation topics, and page templates.\n\n` ++ `Search Astryx (XDS) design system: finds components, documentation topics, and page templates.\n\n` +`Returns brief results (name, description, key info). Use the "get" tool with a ` +`specific name for full details including props and code examples.\n\n` +`Examples: "dropdown menu", "form inputs", "theming", "dashboard template", ` +diff --git a/apps/example-nextjs-stylex/src/app/page.tsx b/apps/example-nextjs-stylex/src/app/page.tsxindex fd8452e5f2..f33c6d5033 100644--- a/apps/example-nextjs-stylex/src/app/page.tsx+++ b/apps/example-nextjs-stylex/src/app/page.tsx@@ -45,7 +45,8 @@ export default function Home() {<XDSText type="body" weight="bold">@xds/core</XDSText>{' '}- as a pre-built dist package — StyleX is only used for++ as a pre-built dist package. StyleX is only used forproduct-level layout styles, not to compile XDS itself. XDShandles components, theming, and design tokens.</XDSText>diff --git a/apps/example-nextjs-tailwind/src/app/page.tsx b/apps/example-nextjs-tailwind/src/app/page.tsxindex ee3889cb5f..9b24335c28 100644--- a/apps/example-nextjs-tailwind/src/app/page.tsx+++ b/apps/example-nextjs-tailwind/src/app/page.tsx@@ -57,7 +57,8 @@ export default function Home() {<XDSVStack gap={2}><XDSHeading level={1}>XDS + Tailwind</XDSHeading><XDSText type="body" color="secondary">- Pre-built dist package — no StyleX plugin needed. Tailwind handles++ Pre-built dist package. No StyleX plugin needed. Tailwind handleslayout, XDS handles components and tokens.</XDSText></XDSVStack>diff --git a/apps/example-nextjs/src/app/page.tsx b/apps/example-nextjs/src/app/page.tsxindex 0311016132..e2028f9902 100644--- a/apps/example-nextjs/src/app/page.tsx+++ b/apps/example-nextjs/src/app/page.tsx@@ -28,7 +28,8 @@ export default function Home() {<XDSText type="body" weight="bold">@xds/core</XDSText>{' '}- as a pre-built dist package — no StyleX build plugin needed. Plain++ as a pre-built dist package: no StyleX build plugin needed. Plaininline styles handle layout. XDS handles components, theming, anddesign tokens.</XDSText>diff --git a/apps/example-vite-tailwind/src/App.tsx b/apps/example-vite-tailwind/src/App.tsxindex a24498f17a..f1ddbf18da 100644--- a/apps/example-vite-tailwind/src/App.tsx+++ b/apps/example-vite-tailwind/src/App.tsx@@ -34,8 +34,9 @@ export default function App() {<XDSVStack gap={2}><XDSHeading level={1}>XDS + Vite + Tailwind</XDSHeading><XDSText type="body" color="secondary">+XDS handles components and design tokens. Tailwind handles page- layout and custom styling — powered by the token bridge.+ layout and custom styling, powered by the token bridge.</XDSText></XDSVStack>diff --git a/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsxindex 1fa151352b..adb7f1a104 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsx@@ -308,7 +308,7 @@ const notePatterns: NotePatternDef[] = [{id: 'whole-tone',label: 'whole tone',- desc: 'C-D-E \u2192 E-D-C \u2014 rising energy then settling',+ desc: 'C-D-E \u2192 E-D-C, rising energy then settling',startNotes: [{freq: 523, delay: 0},{freq: 587, delay: 0.05},@@ -465,7 +465,8 @@ export default function DictationLabPage() {<XDSVStack gap={3}><XDSHeading level={3}>Live Demo</XDSHeading><XDSText type="supporting" color="secondary">- Click the mic button to start dictating. Speak naturally — the++ Click the mic button to start dictating. Speak naturally; thevolume ring reacts to your voice.</XDSText>@@ -612,7 +613,8 @@ export default function DictationLabPage() {<XDSVStack gap={3}><XDSHeading level={3}>Sound Mixer</XDSHeading><XDSText type="supporting" color="secondary">- Combine any attack style with any note pattern. All synthesized — no++ Combine any attack style with any note pattern. All synthesized: noaudio files.</XDSText>diff --git a/apps/sandbox/src/app/(fullscreen)/pages/doc-docs/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/doc-docs/page.tsxindex 52144695d0..91039fbb3d 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/doc-docs/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/doc-docs/page.tsx@@ -684,7 +684,8 @@ export default function DocDocsPage() {</li><li>Toggling a UI element or performing an inline action</li><li>- Performing destructive actions such as deleting items — use the++ Performing destructive actions such as deleting items; use thedanger variant for these</li></ul>diff --git a/apps/sandbox/src/app/(fullscreen)/pages/documentation/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/documentation/page.tsxindex 6fd6acf4cf..c7483785e7 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/documentation/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/documentation/page.tsx@@ -552,7 +552,7 @@ const COMPONENT_DOCS: Record<'In toolbars and action bars for contextual operations',],whenNotToUse: [- 'For navigation to another page — use Link instead',+ 'For navigation to another page; use Link instead','To toggle a state on/off — use ToggleButton or Switch instead','When the action is part of a menu — use DropdownMenu instead',],diff --git a/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsxindex 67ab060ff1..98760ffe14 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx@@ -94,7 +94,7 @@ export default function GothicPalettePage() {<ThemePalettePreviewtheme={gothicTheme}title="Gothic Theme Palette"- subtitle="Dark-only theme — deep blue-gray surfaces, distressed display heading, pastel categorical accents that glow against the dark page like illuminated panels."+ subtitle="Dark-only theme: deep blue-gray surfaces, distressed display heading, pastel categorical accents that glow against the dark page like illuminated panels."tonalColors={TONAL_COLORS}coreSwatches={CORE}singleMode="dark"diff --git a/apps/sandbox/src/app/(fullscreen)/pages/stone-palette/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/stone-palette/page.tsxindex ee3d3af638..76a7195b35 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/stone-palette/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/stone-palette/page.tsx@@ -101,11 +101,11 @@ export default function StonePalettePage() {<ThemePalettePreviewtheme={stoneTheme}title="Stone Theme Palette"- subtitle="A warm, earthy neutral theme inspired by natural stone and sandstone. Light mode uses pastel T90 surfaces with T30 text; dark mode uses T35 surfaces with T90 text — same hex as the light-mode pastel, clean palette symmetry. Montserrat for headings and display, Figtree for body, JetBrains Mono for code."+ subtitle="A warm, earthy neutral theme inspired by natural stone and sandstone. Light mode uses pastel T90 surfaces with T30 text; dark mode uses T35 surfaces with T90 text, same hex as the light-mode pastel, clean palette symmetry. Montserrat for headings and display, Figtree for body, JetBrains Mono for code."tonalColors={TONAL_COLORS}coreSwatches={CORE}leadingExtras={<DisplayTextSection />}- shadowDescription="Three shadow levels — warm, low-alpha drop shadow stack using Stone 900. Plain drops in both modes (no inset bezel); dark surfaces lift via a slightly lighter card token rather than a shadow rim."+ shadowDescription="Three shadow levels: warm, low-alpha drop shadow stack using Stone 900. Plain drops in both modes (no inset bezel); dark surfaces lift via a slightly lighter card token rather than a shadow rim."/>);}diff --git a/apps/sandbox/src/app/(fullscreen)/pages/y2k-palette/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/y2k-palette/page.tsxindex 18dc07254d..fa80a0d1b1 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/y2k-palette/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/y2k-palette/page.tsx@@ -53,7 +53,7 @@ export default function Y2kPalettePage() {<ThemePalettePreviewtheme={y2kTheme}title="Y2K Theme Palette"- subtitle="A bubbly, playful pop theme — hot pink body, lime green accents, Crimson Text headings + Poppins body."+ subtitle="A bubbly, playful pop theme: hot pink body, lime green accents, Crimson Text headings + Poppins body."tonalColors={TONAL_COLORS}leadingExtras={<DisplayTextSection />}/>diff --git a/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsx b/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsxindex 6154093741..0de3867356 100644--- a/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsx@@ -313,7 +313,8 @@ function TonalRamps({Tonal Palettes</h2><p style={{fontSize: 11, color: '#888', margin: 0, marginBottom: 12}}>- OKLCH tonal ramps — {toneSteps.length} steps per channel.++ OKLCH tonal ramps: {toneSteps.length} steps per channel.{vibrancy !== 1.0 && ` Vibrancy: ${vibrancy.toFixed(1)}x.`}</p><div style={{...S.tonalRow, marginBottom: 6}}>diff --git a/apps/sandbox/src/app/(sandbox)/pages/media-mode/page.tsx b/apps/sandbox/src/app/(sandbox)/pages/media-mode/page.tsxindex 0e57a0abc3..5ff9e1a02c 100644--- a/apps/sandbox/src/app/(sandbox)/pages/media-mode/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/media-mode/page.tsx@@ -230,8 +230,9 @@ export default function MediaModePage() {<XDSHeading level={4}>Real Images</XDSHeading><div style={{fontSize: 12, color: '#888'}}>+Samples the upper-right corner where a remove button would sit.- Switch algorithms above — images re-detect with the selected algorithm.+ Switch algorithms above; images re-detect with the selected algorithm.</div><div style={gridStyle}>diff --git a/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsx b/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsxindex 0e94ae1792..ff243869bf 100644--- a/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsx@@ -249,7 +249,7 @@ export default function MegaMenuPage() {/><XDSTopNavMegaMenuItemtitle="Developer Tools"- description="APIs, SDKs, and CLI tools for seamless integration"+ description="APIs, SDKs, and CLI tools for integration"icon={<CodeIcon />}href="#dev-tools"/>diff --git a/apps/sandbox/src/app/(sandbox)/pages/motion-examples/page.tsx b/apps/sandbox/src/app/(sandbox)/pages/motion-examples/page.tsxindex 4a277faee0..0162a10868 100644--- a/apps/sandbox/src/app/(sandbox)/pages/motion-examples/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/motion-examples/page.tsx@@ -540,7 +540,8 @@ function ReducedMotionCard() {<XDSVStack gap={2}><XDSText type="supporting" color="secondary" display="block">- Honor the OS-level prefers-reduced-motion setting — replace movement++ Honor the OS-level prefers-reduced-motion setting; replace movementwith instant state changes. Toggle the switch to simulate.</XDSText><XDSVStack gap={3}>diff --git a/apps/sandbox/src/components/ThemePalettePreview.tsx b/apps/sandbox/src/components/ThemePalettePreview.tsxindex 261e1cb3e5..82408bd256 100644--- a/apps/sandbox/src/components/ThemePalettePreview.tsx+++ b/apps/sandbox/src/components/ThemePalettePreview.tsx@@ -1044,7 +1044,8 @@ function TonalSection({margin: 0,marginBottom: 20,}}>- Full HCT tonal ramps — 21 perceptually uniform steps from black (T0) to++ Full HCT tonal ramps: 21 perceptually uniform steps from black (T0) towhite (T100).{isDark && (<>diff --git a/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsx b/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsxindex 1be97b1ce1..1265ae5c23 100644--- a/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsx+++ b/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsx@@ -465,7 +465,7 @@ export function ThemeAuditDrawer({`- Locate the \`defineTheme(...)\` call and find the existing \`tokens: { ... }\` block inside it.`,`- For each entry below, find a line whose key matches the token name and replace its value with the value below. Preserve indentation, quote style, and trailing comma. Replace any existing trailing inline comment with the annotation comment provided.`,`- If a token is not present, insert a new line at the bottom of the \`tokens\` block (just before the closing \`}\`) using the same indentation and quote style as sibling entries.`,- `- For \`--color-syntax-*\` entries: prefer to update the \`defineSyntaxTheme({ tokens: { ... } })\` block instead — strip the \`--color-syntax-\` prefix to get the key name (e.g. \`--color-syntax-keyword\` → \`keyword\`). Only fall back to inserting them as direct \`--color-syntax-*\` tokens inside \`defineTheme.tokens\` if no \`defineSyntaxTheme\` block exists.`,+ `- For \`--color-syntax-*\` entries: prefer to update the \`defineSyntaxTheme({ tokens: { ... } })\` block instead. Strip the \`--color-syntax-\` prefix to get the key name (e.g. \`--color-syntax-keyword\` → \`keyword\`). Only fall back to inserting them as direct \`--color-syntax-*\` tokens inside \`defineTheme.tokens\` if no \`defineSyntaxTheme\` block exists.`,`- Do not modify any other tokens, comments, or surrounding code.`,'',inner,diff --git a/apps/storybook/stories/Banner.stories.tsx b/apps/storybook/stories/Banner.stories.tsxindex aada0bb88e..c0af127027 100644--- a/apps/storybook/stories/Banner.stories.tsx+++ b/apps/storybook/stories/Banner.stories.tsx@@ -223,7 +223,7 @@ export const AllFeatures: Story = {<XDSBannerstatus="warning"title="Dismissable"- description="Click the X to dismiss — works without onDismiss."+ description="Click the X to dismiss. Works without onDismiss."isDismissable/><XDSBannerdiff --git a/apps/storybook/stories/ChartStreamGL.stories.tsx b/apps/storybook/stories/ChartStreamGL.stories.tsxindex 7ea3c35c7f..da0ff6ef9b 100644--- a/apps/storybook/stories/ChartStreamGL.stories.tsx+++ b/apps/storybook/stories/ChartStreamGL.stories.tsx@@ -352,7 +352,8 @@ export const MultiSensorOverlay: StoryObj = {<XDSStack direction="vertical" gap={4}><XDSHeading level={3}>Multi-Sensor Overlay</XDSHeading><XDSText type="supporting" color="secondary">- Three streams sharing one chart — same xDomain, same yDomain=[0, 100].++ Three streams sharing one chart, same xDomain, same yDomain=[0, 100].</XDSText><XDSChartdata={[diff --git a/apps/storybook/stories/ClickableCard.stories.tsx b/apps/storybook/stories/ClickableCard.stories.tsxindex ac6ffc133f..75ce4dfc4a 100644--- a/apps/storybook/stories/ClickableCard.stories.tsx+++ b/apps/storybook/stories/ClickableCard.stories.tsx@@ -35,7 +35,7 @@ const meta: Meta<typeof XDSClickableCard> = {description: {component:'An interactive card for navigation or action targets. ' +- 'Nested interactive elements (buttons, links) work independently — ' ++ 'Nested interactive elements (buttons, links) work independently; ' +"clicking them does NOT trigger the card's onClick or navigation. " +'Uses `useClickableContainer` internally.',},@@ -64,7 +64,7 @@ export const Navigation: Story = {docs: {description: {story:- 'Card with `href` — clicking navigates. Ctrl/Cmd+click opens new tab. Middle-click opens new tab.',+ 'Card with `href`: clicking navigates. Ctrl/Cmd+click opens new tab. Middle-click opens new tab.',},},},@@ -91,7 +91,7 @@ export const WithOnClick: Story = {docs: {description: {story:- 'Card with `onClick` — fires the handler when the card surface is clicked.',+ 'Card with `onClick`: fires the handler when the card surface is clicked.',},},},@@ -195,7 +195,7 @@ export const ColorVariants: Story = {docs: {description: {story:- 'All color variants — same palette as XDSCard. Color cards have transparent borders.',+ 'All color variants: same palette as XDSCard. Color cards have transparent borders.',},},},diff --git a/apps/storybook/stories/Collapsible.stories.tsx b/apps/storybook/stories/Collapsible.stories.tsxindex 863bc84186..5848e16332 100644--- a/apps/storybook/stories/Collapsible.stories.tsx+++ b/apps/storybook/stories/Collapsible.stories.tsx@@ -171,7 +171,8 @@ export const WithoutCard: Story = {<XDSVStack gap={2}><XDSCollapsible trigger="Show more details"><p {...stylex.props(styles.text)}>- XDSCollapsible works anywhere — it doesn't require a card wrapper.++ XDSCollapsible works anywhere; it doesn't require a card wrapper.</p></XDSCollapsible><XDSCollapsible trigger="Another section" defaultIsOpen={false}>diff --git a/apps/storybook/stories/DateInput.stories.tsx b/apps/storybook/stories/DateInput.stories.tsxindex fe053db2e5..e50310d4da 100644--- a/apps/storybook/stories/DateInput.stories.tsx+++ b/apps/storybook/stories/DateInput.stories.tsx@@ -186,7 +186,7 @@ export const WithMaxDateInLayout: Story = {label: 'End date',max: new Date().toISOString().slice(0, 10) as ISODateString,description:- 'Max is today — open the calendar to verify the label does not turn grey when nav buttons are disabled',+ 'Max is today; open the calendar to verify the label does not turn grey when nav buttons are disabled',placeholder: 'Select an end date',},};diff --git a/apps/storybook/stories/Grid.stories.tsx b/apps/storybook/stories/Grid.stories.tsxindex d3af0fcec5..d77eabf363 100644--- a/apps/storybook/stories/Grid.stories.tsx+++ b/apps/storybook/stories/Grid.stories.tsx@@ -174,7 +174,8 @@ export const ResponsiveAutoFit: Story = {</div><div {...stylex.props(styles.container)}><XDSText type="supporting" xstyle={styles.sectionLabel}>- Same grid with 6 items — looks fine because items fill the tracks++ Same grid with 6 items; looks fine because items fill the tracks</XDSText><XDSGrid columns={{minWidth: 200}} gap={4}><GridItem>Item 1</GridItem>diff --git a/apps/storybook/stories/Layer.stories.tsx b/apps/storybook/stories/Layer.stories.tsxindex 2f8fc00036..5bf35515be 100644--- a/apps/storybook/stories/Layer.stories.tsx+++ b/apps/storybook/stories/Layer.stories.tsx@@ -156,8 +156,9 @@ function LayerProviderDemo() {<XDSLayerProvider toast={{position: 'topEnd', maxVisible: 3}}><div style={{padding: 16}}><XDSText type="body">+XDSLayerProvider wraps your app to configure layer systems (toast- positioning, max visible toasts). It is optional — hooks fall back to+ positioning, max visible toasts). It is optional; hooks fall back todefaults when no provider exists.</XDSText></div>