@astryxdesign/cli 0.7.14-canary.gfdb9213 → 0.7.14

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +197 -0
  2. package/api/theme/_adapter.d.mts +33 -0
  3. package/api/theme/_adapter.mjs +352 -16
  4. package/api/theme/build/build.mjs +261 -10
  5. package/api/theme/eject/eject.mjs +13 -1
  6. package/api/theme/list/list.mjs +11 -2
  7. package/api/theme/template/template.mjs +139 -6
  8. package/api/theme/theme.type.d.mts +15 -1
  9. package/api/theme/theme.type.mjs +9 -3
  10. package/api/theme/themeAdd.doc.mjs +1 -1
  11. package/api/theme/themeBuild.doc.mjs +10 -2
  12. package/api/theme/themeEject.doc.mjs +2 -2
  13. package/api/theme/themeListAvailable.doc.mjs +1 -1
  14. package/api/theme/themeRemove.doc.mjs +1 -1
  15. package/api/theme/themeTemplate.doc.mjs +8 -0
  16. package/api/theme/themeUse.doc.mjs +1 -1
  17. package/api/theme-edit/_adapter.d.mts +10 -2
  18. package/api/theme-edit/_adapter.mjs +52 -31
  19. package/api/theme-edit/_check.d.mts +28 -25
  20. package/api/theme-edit/_check.mjs +586 -548
  21. package/api/theme-edit/_color.d.mts +28 -2
  22. package/api/theme-edit/_color.mjs +306 -68
  23. package/api/theme-edit/_compiler.d.mts +8 -4
  24. package/api/theme-edit/_compiler.mjs +30 -27
  25. package/api/theme-edit/_context.d.mts +10 -4
  26. package/api/theme-edit/_context.mjs +21 -4
  27. package/api/theme-edit/_edit.mjs +300 -43
  28. package/api/theme-edit/_how-commands.d.mts +91 -0
  29. package/api/theme-edit/_how-commands.mjs +269 -0
  30. package/api/theme-edit/_how-question.d.mts +57 -0
  31. package/api/theme-edit/_how-question.mjs +2574 -0
  32. package/api/theme-edit/_how.d.mts +25 -17
  33. package/api/theme-edit/_how.mjs +727 -305
  34. package/api/theme-edit/_palette.d.mts +127 -19
  35. package/api/theme-edit/_palette.mjs +1313 -399
  36. package/api/theme-edit/_parts.mjs +36 -3
  37. package/api/theme-edit/_png.d.mts +18 -6
  38. package/api/theme-edit/_png.mjs +135 -25
  39. package/api/theme-edit/_preview-app.d.mts +26 -7
  40. package/api/theme-edit/_preview-app.mjs +1611 -280
  41. package/api/theme-edit/_preview.d.mts +4 -2
  42. package/api/theme-edit/_preview.mjs +18 -7
  43. package/api/theme-edit/_settings.d.mts +56 -5
  44. package/api/theme-edit/_settings.mjs +197 -49
  45. package/api/theme-edit/_tables.d.mts +0 -12
  46. package/api/theme-edit/_tables.mjs +24 -97
  47. package/api/theme-edit/theme-edit.type.d.mts +22 -5
  48. package/api/theme-edit/theme-edit.type.mjs +17 -6
  49. package/api/theme-edit/themeEditHow.doc.mjs +13 -3
  50. package/api/theme-edit/themeEditNew.doc.mjs +2 -1
  51. package/api/theme-edit/themeEditPreviewAdd.doc.mjs +16 -4
  52. package/api/theme-edit/themeEditPreviewApp.doc.mjs +12 -4
  53. package/api/theme-edit/themeEditPreviewList.doc.mjs +9 -1
  54. package/api/theme-edit/themeEditPreviewRemove.doc.mjs +27 -2
  55. package/api/theme-edit/themeEditUndo.doc.mjs +1 -1
  56. package/assets/docs.generated.json +1 -0
  57. package/assets/preview-app/gitignore +3 -0
  58. package/assets/templates/components.generated.json +1 -0
  59. package/clients/cli/bin/astryx.mjs +37 -5
  60. package/clients/cli/commands/experimental/theme.mjs +231 -31
  61. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +14 -5
  62. package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +0 -1
  63. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
  64. package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +3 -2
  65. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +2 -2
  66. package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +2 -2
  67. package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +2 -2
  68. package/clients/cli/commands/experimental-theme-targets.doc.mjs +1 -1
  69. package/clients/cli/commands/experimental-theme.doc.mjs +2 -2
  70. package/clients/cli/commands/theme-build.doc.mjs +1 -1
  71. package/clients/cli/commands/theme-eject.doc.mjs +3 -3
  72. package/clients/cli/commands/theme-remove.doc.mjs +2 -2
  73. package/clients/cli/commands/theme-template.doc.mjs +11 -4
  74. package/clients/cli/commands/theme.mjs +104 -40
  75. package/clients/cli/commands.generated.json +1 -0
  76. package/clients/cli/index.mjs +96 -4
  77. package/clients/cli/lib/json-shim.mjs +29 -1
  78. package/foundation/config/project.d.mts +16 -2
  79. package/foundation/config/project.mjs +40 -6
  80. package/foundation/config/theme-state.d.mts +9 -0
  81. package/foundation/config/theme-state.mjs +20 -1
  82. package/foundation/discovery/template-adapter.d.mts +12 -1
  83. package/foundation/discovery/template-adapter.mjs +24 -1
  84. package/foundation/discovery/template-needs.d.mts +7 -0
  85. package/foundation/discovery/template-needs.mjs +117 -8
  86. package/foundation/discovery/template-source-tree.d.mts +5 -1
  87. package/foundation/discovery/template-source-tree.mjs +6 -4
  88. package/foundation/discovery/theme-discovery.d.mts +14 -3
  89. package/foundation/discovery/theme-discovery.mjs +45 -12
  90. package/foundation/doc-compiler/import.mjs +68 -3
  91. package/foundation/doc-compiler/stored-docs.d.mts +27 -0
  92. package/foundation/doc-compiler/stored-docs.mjs +65 -0
  93. package/foundation/fs/fs-error.d.mts +17 -0
  94. package/foundation/fs/fs-error.mjs +34 -0
  95. package/package.json +6 -6
@@ -0,0 +1 @@
1
+ {"000a92a531fcd6fda922f98505b4648a":{"default":{"type":"icon-definition","name":"chevronsRight","description":"Jump to the last item or page.","words":["last","end","chevron double right"],"builtIn":true}},"001bd86bc354042f323a85ba5c18859b":{"default":{"type":"icon-definition","name":"frame","description":"A frame that holds other layers on a canvas.","words":["artboard","canvas frame","container"]}},"0024e59bf79f5d6d5fdbb075fa7a5529":{"doc":{"type":"block","exampleFor":"Dialog","alsoExampleFor":["useImperativeDialog"],"name":"Dialog — Required","displayName":"Dialog — Required","description":"Cannot be dismissed by Escape or backdrop click; the user must explicitly choose an action. Uses purpose=\"required\". Use for ownership transfers, legal acknowledgements, or critical decisions where skipping is not an option.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Dialog","Layout","Button","Text"]}},"002984b3803fb64f3681faa6a9705440":{"doc":{"type":"block","exampleFor":"CodeBlock","name":"CodeBlock","displayName":"Code Block","description":"A syntax-highlighted TypeScript code block with line numbers, a title bar, and a copy button.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CodeBlock"]}},"012bb420e7ca669ecbbe66e71883b92b":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput — Search","displayName":"TextInput — Search","description":"Search input with a hidden label, start icon, and clear button. Use for toolbar and header search bars where the icon provides sufficient context.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextInput","Layout"],"icons":{"MagnifyingGlassIcon":"search"}}},"014ebfc231e204d320bd387d95d43b90":{"doc":{"type":"block","exampleFor":"useLocale","name":"useLocale — Invoice Summary","displayName":"useLocale — Invoice Summary","description":"An invoice summary that formats its date and amount with Intl using the locale from useLocale, so switching the provider from English to German changes \"Nov 2, 2026\" and \"$1,234.50\" to \"2. Nov. 2026\" and \"1.234,50 $\" with no second locale source.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["InternationalizationProvider","Card","SegmentedControl","Text","Layout"]}},"0175361a658484d254ae837d3c9b2272":{"doc":{"type":"block","exampleFor":"DateInput","name":"DateInput","displayName":"Date Input","description":"A date input field with a calendar popover. Type a date or click the calendar icon to pick one.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["DateInput","Layout"]}},"0204a1879751faf298bc21c3438bf393":{"doc":{"type":"block","exampleFor":"Link","name":"Link","displayName":"Link","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A standalone link.","componentsUsed":["Link"]}},"02393da58e75abfc4999eb43a808484c":{"doc":{"type":"block","exampleFor":"DropdownMenu","name":"DropdownMenu — Icon Trigger","displayName":"DropdownMenu — Icon Trigger","description":"Overflow menu triggered by an icon-only button with no chevron or label text. Use for row-level actions in tables, cards, or lists where a text button would take too much space.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","Icon","Layout","Text"],"icons":{"EllipsisHorizontalIcon":"moreHorizontal"}}},"0263458bc254d964ca8e899986644733":{"docs":{"type":"namespace","name":"build-the-template","placement":{"parent":"namespace:templates","slot":"build","order":30},"title":"Build the template","summary":"Make sure your template works when an app copies it: write the template file, set up its styles, fonts, icons, and images, then package and test it.","keywords":["template source","portable template","template assets","template imports"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic","namespace"]}}}}},"02ba2254af8730eb2a77f3ff3014dba8":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — Photo","displayName":"Avatar — Photo","description":"Show a profile photo at different sizes. Use when you have a user photo URL. If the image fails to load, initials are shown instead.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout"]}},"0356bdfaf7906b6d2bebeddf7d7bee7a":{"doc":{"type":"block","exampleFor":"SegmentedControlItem","name":"SegmentedControlItem","displayName":"Segmented Control Item","description":"Segmented control items with text labels and icons, including a disabled item.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["SegmentedControl","SegmentedControlItem"]}},"0386bfe4f18194feda58b8afa7c25f37":{"docs":{"type":"generic","name":"links","placement":{"parent":"namespace:docs","slot":"guides","order":30},"title":"Links","category":"guide","description":"Link one doc to another so the link keeps working when the doc moves.","sections":[{"id":"link-another-doc","title":"Link another doc","content":[{"type":"prose","text":"Write `{@link [provider:]kind:name}` in prose, list items, and table cells to link another doc. The CLI prints the command that opens it, so the link keeps working when the doc moves."},{"type":"code","lang":"javascript","code":"{type: 'prose', text: 'Before you ship, read {@link generic:deploying}.'},\n{type: 'list', style: 'unordered', items: ['All guides: {@link namespace:acme}.']},\n{type: 'table', headers: ['Task', 'Guide'], rows: [['Ship', '{@link generic:deploying}']]},"},{"type":"prose","text":"Each link reads as a command. This link, {@link generic:extend-or-replace}, opens the next guide."},{"type":"list","style":"unordered","items":["The kind is `generic` for a topic or guide, `namespace` for a docs section, `command` or `function` for a CLI command or API function, `schema` or `enum` for a schema or a fixed set of values, `component` for a component, and `page` or `block` for a template.","Name a component by its export name and a template by its id. Its link reads as the command that opens it, such as `{@command component AcmeCarousel --package @acme/widgets}`.","Inside backticks or a code block, link syntax prints as written."]}]},{"id":"link-another-packages-docs","title":"Link another package's docs","content":[{"type":"prose","text":"A link without a provider resolves against your own package. To link the CLI's docs, or another package's, start the target with that package's name, such as `@astryxdesign/cli:`."},{"type":"code","lang":"javascript","code":"// Resolves: the CLI's doctor command\n{type: 'prose', text: 'Check the app with {@link @astryxdesign/cli:command:doctor}.'},\n// Does not resolve: looks for a doctor command in your package\n{type: 'prose', text: 'Check the app with {@link command:doctor}.'},"},{"type":"list","style":"unordered","items":["Name a CLI command the way you type it, spaces included, such as `@astryxdesign/cli:command:doctor integration docs`.","In a topic that `extends` another package's topic, your sections still resolve against your package, so a link to the base topic's docs needs its provider."]}]},{"id":"fix-a-link-that-names-no-doc","title":"Fix a link that names no doc","content":[{"type":"prose","text":"A link that names no doc prints as written, and `doctor integration docs` warns. The warning names a search that finds the right target."},{"type":"code","lang":"bash","code":"{@command doctor integration docs}"},{"type":"code","lang":"text","code":"severity: [warn]\ncode: invalid_doc_graph\nmessage: acme/deploying § check-before-you-ship: \"command:doctor\" names no doc. Find it with `astryx search doctor --type doc`, then name it as `[<provider>:]<kind>:<name>`."},{"type":"list","style":"unordered","items":["The warning keeps exit code 0, so read the report before you ship; see {@link generic:check-your-docs}.","Published 0.6.4 and later read links. An older CLI, such as published 0.6.3, prints each one as written; see {@link generic:versioning}."]}]}]}},"03cca5ac98e494995a755f0c51714c57":{"doc":{"type":"block","exampleFor":"CodeBlock","name":"Code — Terminal","displayName":"Code — Terminal","description":"A dark terminal-style command block: a bash CodeBlock wrapped in SyntaxTheme with the GitHub Dark preset, copy button on, and no line numbers. Use for shell sessions or CLI output that should read as a terminal even on light pages. Reach for a dark syntax preset instead of hand-rolling a dark box with custom CSS.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CodeBlock","SyntaxTheme"]}},"03dc2a70162f68f2bd733bd39eb7d5d6":{"doc":{"type":"block","exampleFor":"TextArea","name":"TextArea","displayName":"Text Area","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A text area with placeholder text.","componentsUsed":["TextArea"]}},"03f049114b8e6d856da05272b36f7084":{"doc":{"type":"block","exampleFor":"MetadataListItem","name":"MetadataListItem — Basic","displayName":"MetadataListItem — Basic","description":"A titled section of label and value rows for one record, here a deployment's environment, health status badge, version, and last deploy date. Values take plain text or a component such as a Badge.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MetadataList","MetadataListItem","Badge"]}},"03fba931e8ffd90b9e0d959ad6f848a6":{"default":{"type":"icon-definition","name":"folderAdd","description":"Create a new folder.","words":["new folder","folder plus"]}},"04158064d79433bc5f4b147492b825e0":{"docs":{"type":"namespace","name":"templates","placement":{"parent":"namespace:building-blocks","slot":"guides","order":20},"title":"Templates","summary":"Templates are ready-made UI pages or page sections built with Astryx. Apps copy them into their code and adapt them to their product.","keywords":["integration template","template quality","template grading","template assets","template package","replace a core template"],"slots":{"build":{"title":"Build","accepts":{"kinds":["generic","namespace"]}},"quality":{"title":"Quality","accepts":{"kinds":["namespace"]}}},"blocks":[{"type":"prose","text":"In global mode: templates from an integration installed for the computer show up outside projects; inside a project, only templates from integrations the project installs. See {@link namespace:global} and {@link generic:global-integrations}."}]}},"045660e429e2677290ae1fe92e1dd9e8":{"doc":{"type":"block","name":"Modal or non-modal (hasScrim)","displayName":"Modal or non-modal (hasScrim)","description":"The default modal drawer dims the page, traps focus, and closes on a scrim click. With hasScrim={false}, the drawer has no scrim or focus trap and leaves the page interactive.","exampleFor":"Drawer","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","Button","Layout","LayoutContent","HStack","DrawerHeader","Text"]}},"0484b0ce4a5317b758c172e41f54049a":{"default":{"type":"icon-definition","name":"notificationOff","description":"Turn notifications off, or show that they are muted.","words":["mute","silence","notifications off","bell slash","bell off"]}},"0577fccb304a2fd6fa7ae42f9b4743fa":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Action","displayName":"Banner — Action","description":"Add a button to a banner so the user can act on the message. Use for trial expirations, payment failures, or anything that needs a response.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner","Button","Layout"]}},"05c6b818f4b585e20a92b8001460e716":{"docs":{"type":"generic","name":"replace-a-core-component","placement":{"parent":"namespace:components","slot":"guides","order":50},"title":"Replace a Core component","category":"guide","description":"Use a component replacement only when an integration must intentionally own a Core component identity.","sections":[{"id":"decide-whether-to-replace","title":"Decide whether to replace","content":[{"type":"prose","text":"Most components should not use `replaces`. Give a new component its own name and let apps choose it explicitly. Replace Core only when your component must become the default for one Core identity everywhere the integration is active."},{"type":"heading","level":3,"text":"Use it when"},{"type":"list","style":"unordered","items":["Your component intentionally serves the same role as one specific Core component.","Every app that loads the integration should get your component from unqualified component detail, `component --list`, search, `swizzle <Name>`, and issue routing.","You have tested both the replacement and explicit access to the original Core component."]},{"type":"heading","level":3,"text":"Do not use it when"},{"type":"list","style":"unordered","items":["Your component is an alternative, variant, wrapper, or product-specific extension. Give it a unique name instead.","You only need to resolve an accidental name collision.","You want the replacement in only one screen or workflow. Replacement applies across the app wherever the integration is active."]}]},{"id":"set-the-replacement","title":"Set the replacement","content":[{"type":"code","lang":"javascript","label":"components/AcmeSideNav.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */\nexport default {\n type: 'component',\n name: 'AcmeSideNav',\n displayName: 'Acme Side Nav',\n replaces: 'SideNav',\n import: '@acme/astryx-widgets/components/AcmeSideNav',\n usage: {description: 'Product navigation for Acme apps.'},\n props: [],\n};"},{"type":"prose","text":"Every field is in {@link schema:component-doc}."},{"type":"prose","text":"The replacement turns on only when your package declares the first CLI release that applies it. Add this to its `package.json`:"},{"type":"code","lang":"json","label":"package.json","code":"{\n \"peerDependencies\": {\"@astryxdesign/cli\": \">=0.6.7\"},\n \"peerDependenciesMeta\": {\"@astryxdesign/cli\": {\"optional\": true}}\n}"},{"type":"list","style":"unordered","items":["Any `@astryxdesign/cli` range that starts at that release or later turns it on, including the `>=0.7.0` that `integration add doc --parent` wrote in published 0.6.4 and 0.6.5, and `integration add theme` in published 0.6.5.","Without such a range, the component keeps its own name, the Core component stays selected (a component named like its target stays ambiguous by that bare name, as before), and `doctor integration components` warns with the range to add. Apps that load such a package see no change.","`replaces` names the Core `ComponentDoc` identity, not its display label, import path, or a standalone hook.","Your component may keep a distinct name or use the same name as the target. A distinct name remains directly addressable on older CLIs that ignore `replaces`.","`--package @astryxdesign/core` always selects the original Core component, and `--package` with your package selects your component by either name.","Replacing `SideNav` replaces only that name. `SideNavItem` and the other SideNav parts stay Core components; document any parts your package provides under their own names.","`swizzle --list` lists Core components, including the one you replace. `swizzle SideNav` copies your component, and `swizzle SideNav --package @astryxdesign/core` copies the original."]}]},{"id":"check-replacement-resolution","title":"Check replacement resolution","content":[{"type":"code","lang":"bash","code":"{@command doctor integration components}\n{@command component SideNav}\n{@command component AcmeSideNav}\n{@command component SideNav --package @astryxdesign/core}"},{"type":"list","style":"unordered","items":["Once the package declares the range, a missing target, invalid value, second replacement for one target in the same package, or a replacement named after a different Core component is an error. Without the range, `doctor integration components` reports each of these as a warning.","When several integrations replace one target, explicit configuration beats the automatic pick. Among explicitly configured integrations, the later package wins and Doctor warns. Among autolinked integrations alone, the dependency listed later in `package.json` wins and Doctor warns."]}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: a replacement from a package installed for the computer applies in folders outside any project; inside a project, only replacements from packages the project installs apply. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"05caca2035349abb0876ce35b400bee5":{"doc":{"type":"block","exampleFor":"SegmentedControl","name":"SegmentedControl — With Icons","displayName":"SegmentedControl — With Icons","description":"Segmented control with icon and label pairs for a view mode switcher.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SegmentedControl"]}},"05df363f2c2fceea041e3aa0c7dc3c41":{"default":{"type":"icon-definition","name":"alignBottom","description":"Align items to the bottom edge.","words":["bottom align","align end vertical"]}},"0630d9541b8c232cb0b31a7a052dfac6":{"doc":{"type":"block","exampleFor":"Item","name":"Item — Metadata","displayName":"Item — Metadata","description":"Status rows with an icon, a title, a short description, and end-aligned metadata such as a timestamp or a status badge, here build, memory, and sync events. Use the endContent slot for counts, status, timestamps, and other secondary row information.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Item","Badge","Icon","Text","Layout"]}},"065fec69ff37e04200366b847f92ebf0":{"doc":{"type":"page","name":"Login Card","displayName":"Login Card","description":"Credential form inside an elevated centered card, third-party provider buttons separated from the fields by a divider, secondary sign-up and legal links beneath.","keywords":["login","sign in","signin","authentication","credentials","social","account access"],"isReady":true,"category":"Login - Card","icons":{"CubeIcon":"package"}}},"066467b52aae8ca6d5f3741e9e9c9d27":{"doc":{"type":"block","exampleFor":"VStack","name":"VStack","displayName":"V Stack","description":"Demonstrates VStack arranging items vertically with different gaps.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","Badge","Text"]}},"0671aa1b79d3a4a780f2929402fa12c3":{"doc":{"type":"block","exampleFor":"useCollapsible","name":"useCollapsible — Custom Disclosure","displayName":"useCollapsible — Custom Disclosure","description":"Custom disclosure UI built directly with useCollapsible for headless open/close state.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Collapsible","Button","Card","Text","Layout"]}},"06782e4eb83b95f39d3a661104c5d909":{"default":{"type":"icon-definition","name":"strikethrough","description":"Strike text through.","words":["strike","cross out","text format"]}},"06811340e77b3312ed36df390e764666":{"doc":{"type":"block","exampleFor":"useTableRowExpansion","name":"useTableRowExpansion — Tree Table","displayName":"useTableRowExpansion — Tree Table","description":"A tree table using useTableRowExpansion with inherited columns. Child rows use the same columns as parents, indented by depth. Click the chevron or right-click to expand/collapse.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"06bd7a7c32f63cdefce01a94b5639f28":{"doc":{"type":"block","exampleFor":"Spinner","name":"Spinner — On Media Shade","displayName":"Spinner — On Media Shade","description":"Default and onMedia shade spinners for light and dark backgrounds.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Spinner"]}},"06dc24d72c6bb1831045826d3e66fbe0":{"default":{"type":"icon-definition","name":"undo","description":"Undo the last change.","words":["revert","back","arrow uturn left"]}},"06e33ad6942e5772489bf3d05bdd200a":{"docs":{"type":"generic","name":"install-once","placement":{"parent":"namespace:global","slot":"guides","order":2},"title":"Install Astryx globally","category":"guide","keywords":["pnpm add -g","yarn global add","bun add -g","volta install","npx","offline","cache","per-user cache","EACCES","permission denied","sudo","npm prefix"],"description":"Install the Astryx CLI once for your computer with npm, pnpm, Yarn, Bun, or Volta, and what happens when you are offline.","sections":[{"id":"install","title":"Install it","content":[{"type":"prose","text":"Install the CLI package with your package manager. One astryx command then works in every folder."},{"type":"code","lang":"bash","code":"{@pm install @astryxdesign/cli --global}\n# with Volta: volta install @astryxdesign/cli"},{"type":"prose","text":"Keep the CLI installed in each project too: that pins its version for teammates and CI ({@link generic:project-global-or-both}). Inside a project, whichever astryx command you type, the project's version answers. Outside a project, your global install answers with its own version, and a version you name, such as `{@pm dlx @astryxdesign/cli@0.7.0}`, answers as exactly that version."}]},{"id":"eacces","title":"Permission denied (EACCES)","content":[{"type":"prose","text":"If `npm i -g` fails with `EACCES`, do not use `sudo`. Give npm a global folder you own, then add its `bin` folder to your PATH, or use a Node version manager such as nvm, fnm, or Volta:"},{"type":"code","lang":"bash","code":"{@pm-only npm \"moves the npm global folder\" config set prefix ~/.npm-global}\nexport PATH=\"$HOME/.npm-global/bin:$PATH\"\n{@pm-only npm \"installs into the npm global folder above\" i -g @astryxdesign/cli}"},{"type":"prose","text":"Astryx's update notice then names that folder in its upgrade command."}]},{"id":"versions-for-projects","title":"Versions for your projects","content":[{"type":"prose","text":"When a project's own CLI is installed but cannot start, Astryx runs the CLI version equal to the project's Core instead, installing it once into a cache in your home folder and reusing it. It uses npm for that, so your npm registry, proxy, and offline settings apply. Deleting the cache is safe: versions come back when a project needs them. Where it lives: {@link generic:reference}."}]},{"id":"offline","title":"Offline","content":[{"type":"prose","text":"Your global install answers offline in a project with only Core, and so does any project that installs its own CLI. Outside a project, commands that read components, such as `{@command component Button}`, need your global version's Core: after any command you run online, your global install downloads it once into the cache in the background, so they work offline from then on (not in CI, where nothing downloads by itself: {@link generic:ci-and-containers}; and not on Windows, where the first component command downloads it). Only a project whose own CLI cannot start needs a version installed or cached; when it is neither and cannot be fetched, your global install answers with a one-line warning, and Astryx waits 2 minutes before trying to download it again (10 minutes after a second failure in a row). {@link generic:problems} has the exact message."}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works. Next: {@link generic:who-answers}."}]}]}},"07a2d035a58968ff7453f59dc254fdba":{"doc":{"type":"block","exampleFor":"Toolbar","name":"Toolbar — Card Header","displayName":"Toolbar — Card Header","description":"A toolbar as a card header with a left-aligned title and icon actions on the right. Use Toolbar instead of LayoutHeader when your card header has interactive actions; Toolbar adds start/end slot layout, keyboard navigation, and automatic size cascading. If the header is just a title with no actions, a LayoutHeader or Section is enough.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toolbar","Button","Icon","Text","Card","Section"],"icons":{"FunnelIcon":"funnel","PlusIcon":"add"}}},"07b507a3c5d6bf75205c8a1c13faecf8":{"doc":{"type":"page","name":"Documentation Technical","displayName":"Documentation Technical","description":"Reference article ordered as sequential numbered steps with code at each stage, plus callout cards for prerequisites and onward links. A linear walkthrough rather than a browsable reference.","keywords":["getting started","install","setup","tutorial","quickstart","onboarding guide"],"isReady":true,"category":"Content - Documentation Technical","icons":{"ChevronDownIcon":"chevronDown","ClipboardDocumentIcon":"clipboard","SparklesIcon":"sparkles"}}},"07fa053aec44a196f6edc13c942c485c":{"docs":{"type":"namespace","name":"typography","title":"Typography","summary":"Font families, geometric type scale, weight, line-height, and semantic text tokens for consistent, accessible text styling.","keywords":["typography","font","fonts","type scale","heading","text","weight","line-height","display"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"07ff4cbbf9b535688d3de22b0a745585":{"doc":{"type":"block","exampleFor":"Section","name":"Section — Default with Wash","displayName":"Section — Default with Wash","description":"A default section stacked with a full-width muted section. Shows how muted draws attention to a specific region like an upgrade prompt or banner.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Section","Layout","Text","Button","Icon"],"icons":{"CheckIcon":"check"}}},"09632c41c3ef218281f6a62e74eac96f":{"doc":{"type":"page","name":"Vertical Wizard","displayName":"Vertical Wizard","description":"Multi-step wizard with the steps in a fixed left rail that stays visible while the form scrolls, plus a side panel whose guidance follows the focused field. Suits long or unequal steps carrying uploads, previews, and dense review metadata. As width tightens the guidance drops first, then the rail rotates into a horizontal stepper above the form.","isReady":true,"category":"Form - Wizard Vertical","icons":{"BookOpenIcon":"book","BuildingLibraryIcon":"bank","CalendarIcon":"calendar","CheckBadgeIcon":"checkDouble","CurrencyDollarIcon":"money","ExclamationTriangleIcon":"warning","GlobeAltIcon":"globe","LanguageIcon":"language","RectangleStackIcon":"collection","TagIcon":"tag","UserIcon":"user"}}},"098e15becd32c6cf251aa92eaec2a932":{"default":{"type":"icon-definition","name":"unlock","description":"Unlocked or public.","words":["open","public","unlocked"]}},"0a850d769252b5b437c2083d430d334a":{"doc":{"type":"block","exampleFor":"Field","name":"Field — Required & Optional","displayName":"Field — Required & Optional","description":"Required and optional field indicators side by side. Use isRequired on fields the user must fill in, and isOptional to clarify which fields can be skipped.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextInput","Layout","Text"]}},"0b056071dd3b39e6ae8c524f0c0b0b02":{"doc":{"type":"block","exampleFor":"ContextMenuItem","name":"ContextMenuItem","displayName":"Context Menu Item","description":"Context menu with custom-rendered items using ContextMenuItem for icons and descriptions.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ContextMenu","ContextMenuItem"]}},"0b1a0439e0d2b0a8667943e560b02559":{"doc":{"type":"block","exampleFor":"useFocusTrap","name":"useFocusTrap — Quick Edit Panel","displayName":"useFocusTrap — Quick Edit Panel","description":"A custom quick-edit panel, not built on Dialog, that traps focus with useFocusTrap: focusFirst moves focus to its field on open, Tab and Shift+Tab stay inside it, Escape closes it through onEscape, and closing returns focus to the Quick edit button.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","TextInput","Text","Layout"]}},"0b26a259a9f896258bd83bea2b1e7e63":{"default":{"type":"icon-definition","name":"sparkles","description":"AI or something new and special.","words":["ai","magic","new"]}},"0b3465fcdf423990d713756ce00fda1d":{"doc":{"type":"block","exampleFor":"SideNavItem","name":"SideNavItem","displayName":"Side Nav Item","description":"Demonstrates SideNavItem with selected, icon, disabled, and nested states.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","SideNavItem","SideNavSection"]}},"0b3872f76e83ccd1a36f7a63db3b99bc":{"default":{"type":"icon-definition","name":"bookmark","description":"Save something to read later.","words":["save","later"]}},"0b8616de3e7ec99c70a62a74e56e8b1d":{"doc":{"type":"block","exampleFor":"Spinner","name":"Spinner — Sizes","displayName":"Spinner — Sizes","description":"All spinner sizes displayed side by side.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Spinner"]}},"0bae4b7294b08cd553ce43167e8e4864":{"doc":{"type":"block","exampleFor":"ButtonGroup","name":"ButtonGroup — Floating","displayName":"ButtonGroup — Floating","description":"A grouped action bar raised with `elevation=\"med\"`. The connected buttons share one surface, so the shadow lifts them as a unit.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ButtonGroup","Button","Layout","Text"]}},"0bca9aedcfbb65e37466e8946650328c":{"docs":{"type":"generic","name":"side-panels","title":"Side panels","placement":{"parent":"namespace:layout","slot":"guides","order":35},"category":"guide","description":"Add a master-detail side panel that opens on row select instead of navigating away.","keywords":["LayoutPanel","side panel","master detail","ResizeHandle","useResizable","EmptyState","isScrollable","detail panel","split view"],"sections":[{"id":"side-panels","title":"Side panels","content":[{"type":"prose","text":"Master-detail: selecting a row opens a fixed-width side panel instead of navigating away."},{"type":"list","style":"unordered","items":["LayoutPanel in the start or end slot of Layout, holding a fixed width budget","hasDivider to fence it from the content region; isScrollable so long detail scrolls on its own","For user-adjustable width, pair useResizable() with a ResizeHandle on the panel inner edge: after the panel in a start slot, before it in an end slot with isReversed","The handle then owns the divider, so the panel sets hasDivider={false}","Render an EmptyState when nothing is selected, so the region never collapses"]},{"type":"code","lang":"tsx","label":"Fixed panel, then the resizable form","code":"// Recommended panel width: 340–420.\n<Layout\n content={<LayoutContent>{/* rows */}</LayoutContent>}\n end={\n <LayoutPanel width={380} hasDivider isScrollable label=\"Details\">\n {/* detail fields, or EmptyState when nothing is selected */}\n </LayoutPanel>\n }\n/>\n\n// Resizable: handle first in an end slot, and isReversed so\n// dragging left widens the panel.\nend={\n <>\n <ResizeHandle isReversed hasDivider resizable={panel.props}\n label=\"Resize details\" />\n <LayoutPanel width={panel.size} hasDivider={false} />\n </>\n}"},{"type":"prose","text":"Verify: at narrow widths the panel yields width instead of squeezing content (see the Responsive guide), and only one element between the regions draws a border."}]}]}},"0c11704266324584623d883aab11162b":{"doc":{"type":"page","name":"Blank","displayName":"Blank","description":"Bare scaffold: one heading slot, one empty content region, no navigation and no chrome. The starting point when every other layout imposes more structure than wanted.","keywords":["blank","empty","stub","placeholder","minimal scaffold"],"isReady":true,"scaffold":true,"category":"Shell - Blank"}},"0c804a5e88cfb8d705f3f42cdd7e1c89":{"doc":{"type":"block","exampleFor":"AvatarGroupOverflow","name":"AvatarGroupOverflow","displayName":"Avatar Group Overflow","description":"Overflow indicators for hidden avatars, including the default +N label and custom count text.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["AvatarGroupOverflow","AvatarGroup","Avatar","Layout","Text"]}},"0c805b94640c03e5907e34aac5c7e607":{"default":{"type":"icon-definition","name":"file","description":"A file of any type.","words":["file","attachment","document"]}},"0ce95e7609df867eae51c4f98596153c":{"docs":{"type":"generic","name":"headers-and-footers","title":"Headers and footers","placement":{"parent":"namespace:layout","slot":"guides","order":30},"category":"guide","description":"Pin a header or footer while the body scrolls, so the title and commit actions stay reachable.","keywords":["LayoutHeader","LayoutFooter","Toolbar","defaultHasDividers","pinned header","pinned footer","scrolling body"],"sections":[{"id":"headers-and-footers","title":"Headers and footers","content":[{"type":"prose","text":"A region can pin a header or footer while its body scrolls. Both are Layout slots, and padding set once on Layout reaches all three, so header, body, and footer share one content line."},{"type":"list","style":"unordered","items":["LayoutHeader in the header slot: the region title and its primary action","Toolbar instead of LayoutHeader when the header carries interactive controls","LayoutFooter in the footer slot: actions that commit the work and must stay reachable","defaultHasDividers on Layout fences both at once, rather than hasDivider per slot"]},{"type":"code","lang":"tsx","label":"Pinned header and footer around a scrolling body","code":"// padding on Layout reaches every slot, so all three align.\n<Layout\n padding={4}\n defaultHasDividers\n header={<LayoutHeader>{/* title + primary action */}</LayoutHeader>}\n content={<LayoutContent>{/* rows */}</LayoutContent>}\n footer={<LayoutFooter>{/* Save and Cancel */}</LayoutFooter>}\n/>"},{"type":"prose","text":"Verify: scroll the body. The header and footer stay put, their dividers run full-bleed, and all three still share one left content line."}]}]}},"0d45e696f338e6cab135110505fb5edd":{"doc":{"type":"block","exampleFor":"InternationalizationProvider","name":"Override one Astryx string","displayName":"Internationalization Provider — Overrides","registry":{"slug":"overrides"},"description":"Override a small number of Astryx strings without providing a full locale catalog.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["InternationalizationProvider","Selector"]}},"0d6a567e9c58546b0d27556d2b802b0b":{"doc":{"type":"block","exampleFor":"useHoverCard","name":"useHoverCard — Profile Preview","displayName":"useHoverCard — Profile Preview","description":"Custom profile preview using useHoverCard with direct trigger and render control.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["HoverCard","Button","Text","Layout","Center"]}},"0dab67bb1a603756cb2440fe796b06aa":{"doc":{"type":"block","exampleFor":"Table","name":"Table — Rich Cell Content","displayName":"Table — Rich Cell Content","description":"Table with rich cell content using Link for emails and Badge for role labels.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","Badge","Link"]}},"0db564f04b668d5d9b773eef7917e32a":{"default":{"type":"icon-definition","name":"eyeSlash","description":"Hide something, or show that it is hidden.","words":["hide","hidden","invisible","eye off"],"builtIn":true}},"0dcd49cf5c083a5ecd49e9cf988e2a76":{"doc":{"type":"block","exampleFor":"DateRangeInput","name":"DateRangeInput — With Presets","displayName":"DateRangeInput — With Presets","description":"Date range picker with quick-select presets for common periods. Use for analytics dashboards, report filters, or any context where users frequently select standard time windows.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["DateRangeInput","Layout","Text"]}},"0e0fc72ad4e8ce52289908a85f705df1":{"doc":{"type":"block","exampleFor":"Table","name":"Table","displayName":"Table","description":"Data-driven table with proportional and pixel column widths and hover highlighting.","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Table","Card"]}},"0e899cc7a7f5ed4adcc7bbe8c8910e92":{"doc":{"type":"block","exampleFor":"TabMenu","name":"TabMenu — Basic","displayName":"TabMenu — Basic","description":"An overflow menu at the end of a TabList that collects secondary tabs behind a dropdown. Use it when there are more tabs than fit comfortably inline.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TabList","Tab","TabMenu"]}},"0ea090f4dcb02ad4df80a4914d7f1c92":{"doc":{"type":"block","exampleFor":"Blockquote","name":"Blockquote — With Attribution","displayName":"Blockquote — With Attribution","description":"A plain quote and a quote with a cite attribution. Use cite to credit the original author or source.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Blockquote","Layout"]}},"0ec9e8955a92fe35e5445058b6f44241":{"doc":{"type":"block","exampleFor":"Toast","name":"Toast — Types","displayName":"Toast — Types","description":"Info and error toast variants side by side. Info toasts auto-dismiss after 5 seconds, error toasts persist until the user dismisses them.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toast","Button","Layout","Text"]}},"0efaf8695026e6fc486a0f5f2a7a938e":{"doc":{"type":"block","exampleFor":"InputGroup","name":"InputGroup — Basic","displayName":"InputGroup — Basic","description":"A currency field with static prefix and suffix addons around a TextInput. Use InputGroupText to clarify units or input format.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["InputGroup","InputGroupText","TextInput"]}},"0f1e296b0cc6ca3d0e422daf0ec9ce57":{"docs":{"type":"generic","name":"host-entry","placement":{"parent":"namespace:cli","slot":"guides","order":15},"title":"Host entry","category":"guide","keywords":["host entry","runHostedCli","@astryxdesign/cli/host","carry the cli","embed the cli","programmatic run","package sets","cliCommand"],"description":"Run the Astryx CLI from your own command-line tool: the inputs `runHostedCli` takes, what it returns, and when the process ends instead.","sections":[{"id":"start","title":"Start a run","content":[{"type":"prose","text":"A tool that carries the CLI for its own users starts one run per process with `runHostedCli` from `@astryxdesign/cli/host`. The run behaves as the CLI's own command does with the same arguments in the same folder, and the commands it prints start with your tool's command."},{"type":"code","lang":"javascript","code":"import {runHostedCli} from '@astryxdesign/cli/host';\n\nconst {status} = await runHostedCli({\n argv: process.argv.slice(2),\n cwd: process.cwd(),\n cliCommand: 'acme astryx',\n});\nprocess.exitCode = status;"}]},{"id":"options","title":"Options","content":[{"type":"table","headers":["Option","Default","Meaning"],"rows":[["`argv`","none","The command-line arguments, without the command name."],["`cwd`","the process's working folder","The folder the run works in. It must exist."],["`cliCommand`","the package manager's name","The command your users type, such as `acme astryx`: a non-blank single line of at most 120 characters, with no surrounding spaces."],["`declinedProjectCli`","none","Why you did not run the project's own CLI, such as `untrusted`: a non-blank single line of at most 120 characters. That CLI then never runs."],["`roots`","none","Your package sets, in order of preference: folders whose `node_modules` each hold a CLI, the Core of the same release, and integrations. A run never installs a release; it takes the release a project needs from the first set that holds it."],["`integrations`","none","Integrations you approve for use outside a project, by package name."],["`discoverSources`","none","Your own discover sources. `{@command discover}` reports each as the host's."]]}]},{"id":"result","title":"Result and errors","content":[{"type":"list","style":"unordered","items":["It resolves with `{status, packages}`: the exit status the CLI's own command would exit with, and each package the run used, with its version and whether it came from the project or a package set.","When another release answers from one of your package sets through its own host entry, that entry runs in the same process with the same inputs, and the call resolves with its result.","It rejects with a `TypeError`, before anything runs, for an unknown option or an invalid value, and with an `Error` when a run already started in the process. Start each run in a new process."]}]},{"id":"process-ends","title":"When the process ends instead","content":[{"type":"prose","text":"Like the CLI's own command, a run ends the process with its exit status, and the call never resolves, when it:"},{"type":"list","style":"unordered","items":["prints help or the version (`--help`, `-h`, `help`, `--version`, `-V`, `--version --json`);","rejects the command line, such as an unknown command or option;","reports an error it stops on, including every error in `--json` mode;","meets an unexpected error;","hands the run to another CLI's own command: the project's CLI when you pass no `declinedProjectCli`, or a package set whose CLI has no host entry."]}]}]}},"0f27ba7515ceea2bdf4855a64c3091f2":{"doc":{"type":"block","exampleFor":"Section","name":"Section — With Dividers","displayName":"Section — With Dividers","description":"Adjacent sections separated by bottom dividers, like a settings page. Use dividers when stacking same-variant sections that need visual separation without a background change.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Section","Layout","Text"]}},"0f87be2b0f5ced4263a4d1f92379ff47":{"default":{"type":"icon-definition","name":"delete","description":"Delete something permanently.","words":["trash","bin","discard"]}},"0ff82c24b8b4656a7073413ce42c7ddf":{"default":{"type":"icon-definition","name":"flag","description":"Flag or report something.","words":["report","mark"]}},"1009709d62d191059c30aaed25c7289a":{"docs":{"type":"generic","name":"component-lookups","placement":{"parent":"namespace:cli","slot":"guides","order":5},"title":"Component lookups","category":"guide","keywords":["look up","looking up components","lookup","batch"],"description":"Look up one or several exact component identities, choose a focused projection, and handle complete batch receipts.","sections":[{"id":"several","title":"Look up several components","category":"guide","content":[{"type":"prose","text":"`{@command component}` accepts exact selectors as a variadic positional argument. With no selector it browses the catalog. With one selector it keeps the normal single-component response. With two or more it prints one complete ordered batch receipt."},{"type":"code","lang":"bash","label":"Several component docs","code":"{@command component Button Badge Text}\nastryx --json component Button Badge Text"},{"type":"prose","text":"Every selector gets one row in input order. Duplicate selectors stay duplicate rows. A missing or ambiguous component does not hide successful neighbors or stop later selectors from resolving."},{"type":"prose","text":"A batch accepts at most 100 selectors, including duplicates, in every projection mode. A larger request returns a top-level `ERR_INVALID_ARGUMENT` before any component resolves. It emits no `component.batch` receipt and no partial results."},{"type":"prose","text":"Focused component controls apply to every found row. Use the same control you use for one component:"},{"type":"code","lang":"bash","label":"Focused batch lookups","code":"astryx --json component Button Card --props\n{@command component Button Card --source}\n{@command component Button Card --showcase}\n{@command component Button Card --blocks}\n{@command component Button Card --detail compact}\n{@command component Button Card --lang dense}\n{@command component Button Card --package @astryxdesign/core}"}]},{"id":"selectors","title":"Selector forms","category":"reference","content":[{"type":"prose","text":"A selector is an exact component identity, not free-text search. Use one of these forms:"},{"type":"list","style":"unordered","items":["`Button` for an unqualified component name.","`widgets/Button` for a component in an unscoped package.","`@acme/widgets/Button` for a component in a scoped package.","`@acme/widgets@1.2.3/Button` to require that exact installed package version."]},{"type":"prose","text":"A version qualifies the package, never the component. The lookup does not fall through to another installed version. An unqualified name owned by several installed packages is `ambiguous` and lists every candidate. Use a package-qualified selector or `--package` to choose one."},{"type":"prose","text":"`{@command discover}` remains free-text package discovery. Its words form one query; they are not component batch selectors."}]},{"id":"output","title":"Batch output and exit status","category":"reference","content":[{"type":"prose","text":"JSON uses `component.batch` with `{count, results}`. Each row echoes `selector` and has one status: `found`, `not_found`, `ambiguous`, or `error`. A found row carries the normal single-component `{type, data}` under `result`. Failed rows carry `code` and `error`, plus `suggestions` or `candidates` when available."},{"type":"code","lang":"bash","label":"Outcome and duplicate examples","code":"astryx --json component Button Badge # all found, exit 0\nastryx --json component Button MissingWidget # mixed, exit 1\nastryx --json component MissingWidget MissingPanel # all failed, exit 1\nastryx --json component Button Button # two ordered rows, exit 0"},{"type":"code","lang":"bash","label":"A complete failed JSON receipt","code":"astryx --json component MissingWidget MissingPanel"},{"type":"code","lang":"json","code":"{\n \"apiVersion\": 1,\n \"type\": \"component.batch\",\n \"data\": {\n \"count\": 2,\n \"results\": [\n {\n \"selector\": \"MissingWidget\",\n \"status\": \"not_found\",\n \"code\": \"ERR_UNKNOWN_COMPONENT\",\n \"error\": \"No component named \\\"MissingWidget\\\"\"\n },\n {\n \"selector\": \"MissingPanel\",\n \"status\": \"not_found\",\n \"code\": \"ERR_UNKNOWN_COMPONENT\",\n \"error\": \"No component named \\\"MissingPanel\\\"\"\n }\n ]\n }\n}"},{"type":"code","lang":"text","label":"The same receipt in text mode","code":"Component batch\n\ncount: 2\n\nResults\n\nMissingWidget\n\nselector: MissingWidget\nstatus: not_found\ncode: ERR_UNKNOWN_COMPONENT\nerror: No component named \"MissingWidget\"\n\nMissingPanel\n\nselector: MissingPanel\nstatus: not_found\ncode: ERR_UNKNOWN_COMPONENT\nerror: No component named \"MissingPanel\""},{"type":"prose","text":"The CLI emits every row first, then exits 1 when any row is not `found`. This includes mixed receipts and receipts where every row failed. JSON and text use the same exit status. A batch where every row is `found` exits 0."}]},{"id":"api","title":"Programmatic API","category":"reference","content":[{"type":"prose","text":"The argument shape chooses the response shape. Omit the argument for the catalog, pass a string for the existing single-component response, and pass an array for `component.batch`. An array always means batch, including empty and one-item arrays, so filtering a selector list cannot silently change the response type. The published `ComponentBatchResponse` specializes the shared `BatchResponse` and `BatchRow` types."},{"type":"code","lang":"javascript","code":"import {component} from '@astryxdesign/cli/api';\n\nconst catalog = await component(); // component.list\nconst button = await component('Button'); // component.detail\nconst empty = await component([]); // component.batch, count 0\nconst oneRow = await component(['Button']); // component.batch, count 1\nconst batch = await component(['Button', 'Badge']); // component.batch, count 2\nawait component(Array(101).fill('Button')); // ERR_INVALID_ARGUMENT before lookup"},{"type":"code","lang":"json","label":"Exact empty-array response","code":"{\n \"type\": \"component.batch\",\n \"data\": {\n \"count\": 0,\n \"results\": []\n }\n}"},{"type":"code","lang":"javascript","label":"Handle every row without losing partial results","code":"const receipt = await component(['Button', 'MissingWidget']);\n\nfor (const row of receipt.data.results) {\n if (row.status === 'found') {\n useComponentDoc(row.selector, row.result);\n } else if (row.status === 'ambiguous') {\n choosePackage(row.selector, row.candidates);\n } else {\n reportLookupFailure(row.selector, row.code, row.error);\n }\n}"}]}]}},"1031a49500af6d1d235ef60caca0a6e2":{"doc":{"type":"page","name":"Tree Table","displayName":"Tree Table","description":"Hierarchical table where every parent row rolls up from its children — a code repository whose folders show the newest commit beneath them, beside a detail sidebar and a rendered README. Columns resize, siblings sort within their own level, arrow keys walk the rows, and search prunes the tree to matching branches.","keywords":["tree","hierarchy","nested rows","drilldown","expand","collapse","resizable","expandable","file browser","repository","rolled-up parents"],"isReady":true,"category":"Table - Tree/Hierarchical List","icons":{"BookOpen":"book","ChartColumn":"chart","Code":"code","Eye":"eye","File":"file","Folder":"folder","GitBranch":"gitBranch","GitFork":"gitFork","Scale":"scale","Search":"search","ShieldCheck":"shield","Star":"star","Tag":"tag"}}},"105928eb2335bc878053b7b778618dad":{"docs":{"type":"generic","name":"tokens-text-size","title":"Font Size Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":130},"category":"foundations","description":"Geometric type scale: round(14 × 1.2^step). Base is 14px (--font-size-base).","sections":[{"title":"Font Size Tokens","content":[{"type":"prose","text":"Geometric type scale: round(14 × 1.2^step). Base is 14px (--font-size-base)."},{"type":"table","headers":["Token","Core default"],"rows":[["--font-size-4xs","0.375rem"],["--font-size-3xs","0.4375rem"],["--font-size-2xs","0.5rem"],["--font-size-xs","0.625rem"],["--font-size-sm","0.75rem"],["--font-size-base","0.875rem"],["--font-size-lg","1.0625rem"],["--font-size-xl","1.25rem"],["--font-size-2xl","1.5rem"],["--font-size-3xl","1.8125rem"],["--font-size-4xl","2.1875rem"],["--font-size-5xl","2.625rem"]]}],"previewType":"font-sample"}]}},"106304b366fb610f01de468a19448e8c":{"doc":{"type":"page","name":"Data Dashboard","displayName":"Data Dashboard","description":"Comparison-heavy analytics behind a persistent filter bar: tiles that each carry an inline sparkline and several period-over-period deltas, then segmented breakdowns underneath. Every number is shown against another number.","keywords":["dashboard","metrics","stats","analytics","trends","reporting"],"isReady":true,"category":"Dashboard - Comparison","icons":{"ArrowDownIcon":"arrowDown","ArrowDownTrayIcon":"download","ArrowUpIcon":"arrowUp","CursorArrowRaysIcon":"click","StopIcon":"stop","UsersIcon":"users"}}},"106e581530d9814417092fd860158579":{"doc":{"type":"block","exampleFor":"ChatMessage","name":"ChatMessage — Multi-Bubble","displayName":"ChatMessage — Multi-Bubble","description":"Grouped bubbles using the group prop for corner radius reduction. Use first, middle, and last to visually connect related bubbles from the same sender.","isReady":true,"aspectRatio":1,"componentsUsed":["Chat","ChatMessage","ChatMessageBubble","ChatMessageMetadata","Avatar","Timestamp","Text","Layout"]}},"10764cb6b18b5e6572dea59492783ad1":{"doc":{"type":"block","exampleFor":"CheckboxInput","name":"CheckboxInput — Indeterminate","displayName":"CheckboxInput — Indeterminate","description":"A \"select all\" checkbox that controls a group of options. When only some options are checked, it shows a dash instead of a checkmark. Clicking it checks or unchecks everything.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxInput","Divider","Layout"]}},"107deba79e57a41b2a008a7a4ef5aca4":{"default":{"type":"icon-definition","name":"alignEnd","description":"Align text or items to the end edge: the right in a left-to-right layout, the left in a right-to-left one.","words":["align end","right align","justify right","text align"]}},"110dca0acefc6978773f59cac17f0f63":{"default":{"type":"icon-definition","name":"image","description":"An image or photo.","words":["photo","picture","media"]}},"111eb27427835c0e7fb38c949613148f":{"docs":{"type":"generic","name":"i18n-quick-start","title":"Quick Start","placement":{"parent":"namespace:internationalization","slot":"guides","order":10},"category":"guide","description":"Wrap your app in InternationalizationProvider, load a locale catalog, and swap languages at runtime.","keywords":["InternationalizationProvider","quick start","language swap"],"sections":[{"title":"Quick Start","content":[{"type":"prose","text":"Internationalization ships with `@astryxdesign/core`. There is nothing to install. Wrap your app in `<InternationalizationProvider>` and set the active `locale`; astryx components pick up localized strings from that provider."},{"type":"code","lang":"tsx","label":"Wrap your app","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\n\nfunction App() {\n return (\n <InternationalizationProvider locale=\"en\">\n <YourApp />\n </InternationalizationProvider>\n );\n}"},{"type":"prose","text":"The provider always has the built-in English catalog. Pass additional catalogs through `messages` when you enable another locale."},{"type":"code","lang":"tsx","label":"Load an astryx locale catalog","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\nimport frFR from '@astryxdesign/core/locales/fr-FR.generated.js';\n\n<InternationalizationProvider\n locale=\"fr-FR\"\n messages={{'fr-FR': frFR}}>\n <App />\n</InternationalizationProvider>;"},{"type":"prose","text":"Astryx ships English and first-party translations for supported locales. Compact runtime modules from `@astryxdesign/core/locales/*.generated.js` contain only the messages apps need; the existing `@astryxdesign/core/locales/*.json` files retain translator context. Until a locale is available, apps can pass a local catalog in either shape. Missing keys fall back through the locale chain to English (for example, `pt-BR` walks to `pt`, then to shipped `en`)."},{"type":"prose","text":"Locale catalogs only affect astryx strings. Your app can continue using its own i18n system for product copy."}]},{"title":"Runtime language swap","content":[{"type":"prose","text":"Re-render `<InternationalizationProvider>` with a new `locale` prop and every astryx string updates live. No reload, no separate API call."},{"type":"code","lang":"tsx","label":"Toggle between locales","code":"const [locale, setLocale] = useState<'en' | 'fr'>('en');\n\n<InternationalizationProvider locale={locale} messages={{fr}}>\n <Button\n label={locale === 'en' ? 'Français' : 'English'}\n onClick={() => setLocale(l => (l === 'en' ? 'fr' : 'en'))}\n />\n <App />\n</InternationalizationProvider>;"},{"type":"prose","text":"Persisting the user's choice (localStorage, cookie, URL segment, account setting) is up to the consumer. Astryx reads whatever `locale` you pass in."}]}]}},"11486d45e301986ee053149dfb0669ce":{"docs":{"type":"generic","name":"short-and-findable","placement":{"parent":"namespace:docs","slot":"guides","order":50},"title":"Short and findable","category":"guide","description":"Write short sections that people and agents find by search.","sections":[{"id":"keep-each-read-short","title":"Keep each read short","content":[{"type":"prose","text":"Readers open one section at a time, so give each section one idea and keep it to about 30 lines. `{@command doctor}` warns on any read over 32 KB."},{"type":"list","style":"unordered","items":["When a section needs a second idea, split it into two sections.","Keep a topic to a few sections. When it grows past five, split it into more guides in your docs section.","A topic with more than one section reads as its section list. Readers open one section by its key, or the whole topic with `--full`."]},{"type":"code","lang":"bash","code":"# The section list\n{@command docs acme/deploying}\n# One section\n{@command docs acme/deploying check-before-you-ship}\n# Everything\n{@command docs acme/deploying --full}"}]},{"id":"lead-with-the-summary","title":"Lead with the summary","content":[{"type":"prose","text":"A section's first prose block, or its first list item, is its summary in section lists and search results. Make it answer the section's question in one or two sentences."},{"type":"list","style":"unordered","items":["The summary is cut at about 240 characters.","A code block first does not count: the summary comes from the next prose block.","Open with the answer, not with background."]},{"type":"code","lang":"text","code":"build-before-you-ship Build before you ship - Build the app, then upload the `dist` folder."}]},{"id":"make-docs-findable","title":"Make docs findable","content":[{"type":"prose","text":"In a topic with more than one section, search ranks a section whose title matches the query, or that names it in backticks, above words in body text. Title each section with the task a reader searches for."},{"type":"list","style":"unordered","items":["Name the task in the words a reader types, such as \"Deploy to production\". Avoid titles such as \"Overview\" or \"Details\".","Write field names, file names, and error codes in backticks, such as `deployTarget`: in a topic with more than one section, search treats each one as a keyword.","Other words in the summary and body match too, but rank below titles and identifiers. The summary shows under each hit, so make it answer the query."]}]},{"id":"test-with-search","title":"Test with search","content":[{"type":"prose","text":"Test a doc the way a new reader finds it: search for the question, and check that the first hit answers it. Quote a query of more than one word."},{"type":"code","lang":"bash","code":"{@command search \"place a doc\" --type doc}"},{"type":"list","style":"unordered","items":["This query returns the section of these guides that shows how to place a doc.","Run the same search in an app that installs your package; see {@link generic:test-in-an-app}."]}]}]}},"1197c273e98486538caffba1752edf33":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList — With Icons","displayName":"TabList — With Icons","description":"Tabs with leading icons alongside text labels.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab"]}},"121cb2fffa88cac7c093f904b37c10aa":{"doc":{"type":"block","exampleFor":"FormLayout","name":"FormLayout — Mixed Controls","displayName":"FormLayout — Mixed Controls","description":"Form with different control types: text input, selector, and checkboxes","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["FormLayout","TextInput","Selector","CheckboxList"]}},"1253b3cc4a6ffee801aee39fbf1a7d5c":{"default":{"type":"icon-definition","name":"rocket","description":"Launch or get started.","words":["launch","start","deploy"]}},"129ce708340f51265737bd9b307238c2":{"docs":{"type":"namespace","name":"layout","title":"Layout","summary":"Build an app layout outside-in: scaffold the regions, structure the content, tune the spacing, then adapt across widths.","keywords":["layout","scaffold","structure","spacing","responsive","AppShell","SideNav","TopNav","hasDivider","MobileNav","contentWidth"],"blocks":[{"type":"prose","text":"Build a layout outside-in. Settle the shell and its region budgets before any content exists, then work inward. Content-first layouts drift into a padded column of cards, because every section ends up inventing its own container."},{"type":"list","style":"ordered","items":["Scaffold: pick the shell, budget each region, and choose navigation","Structure: rank each region's content and choose its container","Spacing: align each region to one content line, then set gaps and density","Breakpoints: decide what each region does as width changes"]},{"type":"prose","text":"This guide decides layout, not component APIs. Run `{@command build \"<idea>\"}` to start from the closest template for your app type, and `{@command component <Name>}` for a component's props."}],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"12a53aaf82b5fa36e5f3ab399e0f06c1":{"doc":{"type":"block","exampleFor":"AvatarStatusDot","name":"AvatarStatusDot — Variants","displayName":"AvatarStatusDot — Variants","description":"Presence dots on Avatars using the success, neutral, and error variants. Pass an AvatarStatusDot to the Avatar status prop; the dot sizes itself to match the Avatar.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","AvatarStatusDot","HStack"]}},"12c956c44be5125b12742a256a11675c":{"doc":{"type":"block","exampleFor":"ChatMessageMetadata","name":"ChatMessageMetadata — Timestamps","displayName":"ChatMessageMetadata — Timestamps","description":"Timestamp-only metadata on user and assistant messages. Supports absolute time and relative formats via Timestamp.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatMessageMetadata","Timestamp"]}},"12e40c3f4bec6b2eb1248d9c2d0fad01":{"doc":{"type":"block","exampleFor":"CheckboxInput","name":"CheckboxInput — States","displayName":"CheckboxInput — States","description":"Checkboxes with labels and descriptions in checked, unchecked, and disabled states. Each checkbox controls a single on/off setting. Add a description to explain what the setting does.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxInput","Layout"]}},"130771b23b90d0e253e5c9cad08da0ca":{"default":{"type":"icon-definition","name":"document","description":"A document or file.","words":["file","page","doc"]}},"135a6de53ade4074342b609b6d5d9b3d":{"doc":{"type":"page","name":"Course Detail","displayName":"Course Detail","description":"Long-form sales page for a single offering, in two columns — read the pitch, then enroll from a sticky rail. The main column holds a preview poster with a fact row, an about block with skill chips, a module syllabus whose sections collapse module by module, an instructor card, reviews with a scored-aspects panel, and a FAQ; the rail holds the price, a self-paced or cohort start picker, and a weekly-pace slider that computes a finish date. The shape for any offering with a curriculum and a purchase panel — a course, class, masterclass, bootcamp, workshop, or training.","keywords":["course","class","lesson","curriculum","syllabus","e-learning","enroll","cohort","masterclass","bootcamp","training","education"],"isReady":true,"category":"Content - Course Detail","icons":{"PlayIcon":"play","CheckIcon":"check","StarIcon":"star","ClockIcon":"clock","UsersIcon":"users","GlobeAltIcon":"globe","BoltIcon":"bolt","ArrowRightIcon":"arrowRight","BookOpenIcon":"book"}}},"138a57724e5cea8a79b8ec877fc8cfa5":{"doc":{"type":"page","name":"Inbox Table","displayName":"Inbox Table","description":"Two-pane message queue: the table indexes a reading pane rather than being the destination, with a divider you drag to resize. Rows stack when the table narrows, not the window; threads read as collapsible messages; replying opens a composer that leaves the list live.","keywords":["inbox","mail","email","conversations","thread","triage","reading pane","split pane","resize","collapse","compose","notifications","review queue","approvals","decisions"],"isReady":true,"category":"Table - Split Pane","icons":{"ArchiveBoxIcon":"archive","ArrowLeftIcon":"arrowLeft","ArrowPathIcon":"refresh","ArrowUturnLeftIcon":"undo","FaceSmileIcon":"emoji","FolderArrowDownIcon":"folder","InboxIcon":"inbox","LinkIcon":"link","PaperAirplaneIcon":"send","PaperClipIcon":"attach","PencilSquareIcon":"compose","PhotoIcon":"image","TrashIcon":"delete","UsersIcon":"users","XMarkIcon":"close"}}},"13c8dc5a5522e5e71daaec29265d2e2b":{"doc":{"type":"block","exampleFor":"FieldStatus","name":"FieldStatus","displayName":"Field Status","description":"Field status messages in error, warning, and success states with attached and detached variants.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["FieldStatus","Layout"]}},"142e5b1f05261c6c427ded917049c5fa":{"doc":{"type":"block","exampleFor":"ScrollableArea","name":"ScrollableArea — Sticky Section Labels","displayName":"Scrollable Area — Sticky Section Labels","description":"A scrollable viewport is the containing block for position: sticky, so section labels pin to the top edge of the list instead of the page.","isReady":true,"aspectRatio":1,"componentsUsed":["ScrollableArea","Card","Grid"]}},"143f2a09dc02ae6d692f64f1cac68b8f":{"default":{"type":"icon-definition","name":"panelLeft","description":"Show or hide a side panel on the left, such as a navigation sidebar.","words":["sidebar","left panel","drawer","toggle sidebar"]}},"1472c219ecd9601676aa40d089d8a88d":{"doc":{"type":"block","exampleFor":"Toast","name":"Toast — Stacking","displayName":"Toast — Stacking","description":"Multiple toasts stacking vertically with smooth enter and exit animations. Click repeatedly to see how toasts queue and dismiss.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toast","Button","Layout","Text"]}},"14a4aa3572e1fb683506b54a997469f6":{"doc":{"type":"block","exampleFor":"CollapsibleGroup","name":"CollapsibleGroup","displayName":"Collapsible Group","description":"CollapsibleGroup coordinates its Collapsible children: with type=\"single\", opening one closes the others. No state or handlers in the example — the group owns which value is open and each child only declares its own. One Collapsible per Card, so each trigger keeps its default large type as the heading of its own surface.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Collapsible","CollapsibleGroup","Card","Text","Stack"]}},"14b7c9645cb4573cc85e74445f682e82":{"doc":{"type":"block","exampleFor":"Table","alsoExampleFor":["useTableFiltering","useTableFilterState"],"alsoShowcaseFor":["useTableFiltering","useTableFilterState"],"name":"Table — Popover Filters","displayName":"Table — Popover Filters","description":"Table with popover filter controls triggered by icons in column headers.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","PowerSearch"]}},"150995794ff317d98d91a0b113bb47f2":{"doc":{"type":"page","name":"IDE","displayName":"IDE","description":"Dense multi-pane workspace of resizable, collapsible regions: a hierarchy tree on one flank, tabbed documents in the middle, a docked drawer along the bottom, an inspector opposite. Drag a divider to resize or collapse any of them.","keywords":["editor","ide","workbench","terminal","development environment"],"isReady":true,"category":"Tools - IDE","icons":{"DocumentTextIcon":"document","FolderIcon":"folder","MagnifyingGlassIcon":"search"}}},"15561ef2ff6ba5463cbabba99c27e9a4":{"docs":{"type":"generic","name":"tokens-border","title":"Border Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":60},"category":"foundations","description":"Border width for card and input borders.","sections":[{"title":"Border Tokens","content":[{"type":"prose","text":"Border width for card and input borders."},{"type":"table","headers":["Token","Core default"],"rows":[["--border-width","1px"]]}],"previewType":"border-line"}]}},"1579473615368a1beecc088cac16416a":{"default":{"type":"icon-definition","name":"link","description":"Add or show a link.","words":["url","chain","hyperlink"]}},"157cd9ca8262e6fd9318a93cd79235ec":{"doc":{"type":"block","exampleFor":"Token","name":"Token — Clickable","displayName":"Token — Clickable","description":"Interactive tokens that respond to clicks. Use for toggleable filters or tokens that open a detail view when selected.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Token","Layout","Text"]}},"15e0565defb75f91fba7d353755b1bb9":{"doc":{"type":"block","exampleFor":"Badge","name":"Badge — Variants","displayName":"Badge — Variants","description":"All semantic and color badge variants in a single view. Use semantic variants for status and color variants for categories.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Badge","Layout"]}},"15faa3c5a86d30e17e33f7796266e773":{"default":{"type":"icon-definition","name":"trendDown","description":"Show a value going down.","words":["decrease","decline","down","arrow trending down","trending down"]}},"16049c5a7662386be92f7c55909fb601":{"default":{"type":"icon-definition","name":"group","description":"Group selected items together.","words":["group layers","combine","bundle"]}},"162de24c31049743b557d5a6d43c3aca":{"doc":{"type":"block","exampleFor":"ChatLayoutScrollButton","name":"ChatLayoutScrollButton","displayName":"Chat Layout Scroll Button","description":"Scroll button in hidden, visible, and expanded (with label) states. The button fades in when the user scrolls up and expands when new messages arrive.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Layout","Text"]}},"163f94ae8497dd4ba8869fde77efdfb9":{"doc":{"type":"page","name":"Login SSO","displayName":"Login SSO","description":"Progressive credential flow that branches on input: the email domain resolves an identity provider and redirects, with a password path as fallback. Two-stage rather than one form.","keywords":["single sign-on","sso","saml","enterprise login","directory","corporate authentication"],"isReady":true,"category":"Login - SSO","icons":{"ShieldCheckIcon":"shield"}}},"16876af84ff36660d6f8d4c057f4c7ec":{"doc":{"type":"block","exampleFor":"Divider","name":"Divider — Variants","displayName":"Divider — Variants","description":"Subtle, labeled, and strong dividers in a single card. Use subtle between related sections, labeled for alternatives like \"or\", and strong for high-contrast boundaries.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Divider","Card","Section","Layout","Text"]}},"169c7088f213c8813d8655b97df29e1d":{"docs":{"type":"generic","name":"troubleshooting","placement":{"parent":"namespace:help","slot":"guides","order":10},"title":"Troubleshooting","category":"guide","keywords":["integration error","integration not loading"],"description":"Find the message the CLI printed while you build, verify, or install an integration, and apply its fix.","sections":[{"id":"fix-setup-errors","title":"Fix setup errors","content":[{"type":"prose","text":"These appear while you start the package or run the CLI in it. Each row quotes what the CLI prints."},{"type":"table","headers":["Message","Fix"],"rows":[["`No package.json found. Run this command inside an integration package.`","Run `{@pm-only npm \"writes package.json\" init -y}` and `{@pm-only npm \"edits package.json\" pkg set name=@acme/astryx-widgets}` first, in the package folder."],["`Error: Could not find @astryxdesign/core package`","Component commands read Core. Run `{@pm install @astryxdesign/core --dev}` in the package."],["`core_not_found`: `Could not resolve @astryxdesign/core, so component names could not be checked.`","Same fix. The check exits 1."],["`Error: unknown subcommand 'integration verify'`, or `Error: Pass --check to verify the integration tarball.`","Your CLI is older than `integration verify`. Run `{@pm install @astryxdesign/cli@latest --dev}`. On the older CLI, the same check is `integration pack --check`."],["Note: `integration pack --check` is deprecated.","The old name still runs the same check. Switch to `{@command integration verify}`; the old name will be removed in a later release."]]}]},{"id":"fix-verify-failures","title":"Fix integration verify failures","content":[{"type":"prose","text":"`{@command integration verify}` prints each failure as a `[fail]` line. Add `--json` to see its issue code, such as `component_export_missing`."},{"type":"table","headers":["Message","Fix"],"rows":[["`component_export_missing`: `Component \"AcmeCarousel\" advertises import \"@acme/astryx-widgets/components/AcmeCarousel\", but that packed module does not export \"AcmeCarousel\".`","package.json has no `exports` map, or the module does not export the name. Keep `export function AcmeCarousel`, and add the entry: `{@pm-only npm \"edits package.json\" pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'}`. When the quoted name is a file name, such as `acme-carousel`, set the doc's `name` to the component the file exports. A type-only export does not count."],["`template_export_missing`: `Template \"acme-dashboard\" public import \"@acme/astryx-widgets/templates/acme-dashboard\" does not have a default export.`","Run `{@pm-only npm \"edits package.json\" pkg set 'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx'}`, and keep `export default` in the source. Start new packages with `\"exports\": {}` so each add writes these."],["`component_import_unresolvable` or `template_import_unresolvable`: `…Package subpath './components/AcmeCarousel' is not defined by \"exports\"…`","The `exports` map has no entry for it. Run `{@pm-only npm \"edits package.json\" pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'}`, or `'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx'` for a template."],["`component_import_unresolvable`: `…but a consumer cannot resolve it: Cannot find package '@acme/old-name'`","You renamed the package after the add wrote each doc's `import`. Change `import` in every component doc to the new name."],["`Declared templates root \"templates\" has 0 of 2 expected files in the pack list. Add \"templates\" to \"files\" in package.json.`","Run `{@pm-only npm \"edits package.json\" pkg set 'files[]=templates'}`."],["`docs_tree_needs_cli`: `The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer.`","Run `{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.4'}` and `{@pm-only npm \"edits package.json\" pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json}`."],["`replaces_needs_cli`: The package has a template that sets `replaces` but declares no @astryxdesign/cli peer.","Run `{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.4'}` and `{@pm-only npm \"edits package.json\" pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json}`. A stable CLI before 0.6.4 rejects `replaces`, drops that template, and hides your doc topics."],["`component_replaces_needs_cli` (a warning): The package has a component that sets `replaces` but declares no @astryxdesign/cli peer, or a peer range that admits an earlier CLI.","Run `{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.7'}` and `{@pm-only npm \"edits package.json\" pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json}` to turn the replacement on. Until then apps see no change ({@link generic:replace-a-core-component})."],["`keywords_needs_cli`: The package has a template that sets `keywords` but declares no @astryxdesign/cli peer.","Run `{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.6'}` and `{@pm-only npm \"edits package.json\" pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json}`. What an older CLI does with the field is in {@link generic:template-doc-overview}."],["`themes_need_cli`: The package ships a theme but declares no @astryxdesign/cli peer.","Run `{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.4'}` and `{@pm-only npm \"edits package.json\" pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json}`. A CLI older than published 0.6.4 cannot read typed theme descriptors, so it drops your themes and can hide your doc topics."],["`section_ids_need_cli`: The package has a doc section that sets `id` but declares no @astryxdesign/cli peer.","The same fix as `themes_need_cli`, or drop the section `id`s: a CLI older than published 0.6.4 rejects them and hides your doc topics."],["`doc_tokens_need_cli`: The package writes doc tokens (`{@@command …}`, `{@@pm …}`, `{@@pm-only …}`) in its docs, but its @astryxdesign/cli peer admits a CLI before 0.7.4.","Run `{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/cli=>=0.7.4'}` and `{@pm-only npm \"edits package.json\" pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json}`. A CLI before 0.7.4 prints each token as written, so readers see raw tokens."]]}]},{"id":"fix-problems-in-an-app","title":"Fix problems in an app","content":[{"type":"prose","text":"These appear in an app that installs your package, or in the doctor checks that predict them."},{"type":"table","headers":["Symptom","Fix"],"rows":[["`Error: No component named \"AcmeCarousel\"` for a component your package documents.","Its doc still names its file. Set `name` to the export, such as `name: 'AcmeCarousel'` in `acme-carousel.doc.mjs`. A family member is listed only when the module its family doc imports exports it ({@link generic:component-family})."],["`{@command component Dialog}` opens Core's `Dialog`, not yours.","A name that Core, a legacy docs package, or another package's file already has stays theirs. Run `{@command component Dialog --package @acme/astryx-widgets}`, or give your component a name of its own."],["`Error: Template \"dashboard\" is ambiguous — narrow it with --type and/or --package.`","Your template id matches a Core id. Rename it, such as `acme-dashboard`, or set `replaces: 'dashboard'` to take its place. `{@command doctor integration templates}` warns about this before you publish."],["`invalid_doc_graph`: `placement.parent \"namespace:nope\" names no namespace; @acme/astryx-widgets declares \"acme\".`","The guide stays hidden until its `placement` names a namespace and slot your package declares. For `\"…\" names no doc`, fix the link target."],["Error: Unknown topic \"acme\". The docs of @acme/astryx-widgets did not load; run `{@command doctor integration docs}` in that package to see why.","One invalid doc hides all of your docs. Run `{@command doctor integration docs}` in the package and fix the `invalid_doc` it names."],["`cli-command` warns: `Loaded integrations declare different CLI commands`","Two packages the app loads set different `cliCommand` values, so the CLI prints the package manager's command. Agree on one command, or remove the package that does not belong. See {@link generic:cli-command}."],["`invalid_cli_command`","Your `cliCommand` is not one line of plain text of at most 120 characters, so it is ignored. Fix the value; the rest of the manifest still loads."],["`{@command upgrade}` runs none of your codemods","The app must list your package in `integrations` in `astryx.config`, or pass `--integration @acme/astryx-widgets`. It runs a codemod folder only when its version is after `--from` and at most the installed `@astryxdesign/core`."],["Your docs section, templates, or themes are missing only in some apps","Those apps run a CLI too old to read them ({@link generic:checks} lists which field needs which CLI). Update `@astryxdesign/cli` there, and keep your optional `@astryxdesign/cli` peer so npm checks the app's CLI against it when the app installs your package."]]},{"type":"prose","text":"What each check catches is in {@link generic:checks}."}]}]}},"16c7a1fdf945785a3d35ca22b1c6b5e0":{"default":{"type":"icon-definition","name":"cpu","description":"A processor or compute resource.","words":["processor","chip","compute","hardware"]}},"172df9bc6d44d725f3abcc4abf0714e9":{"default":{"type":"icon-definition","name":"collection","description":"A series or stack of related items.","words":["series","stack","set of items"]}},"176d0fa4e31b7024a5c0ad58afe8d9bc":{"doc":{"type":"block","exampleFor":"MobileNavToggle","name":"MobileNavToggle — Basic","displayName":"MobileNavToggle — Basic","description":"A nav toggle with a custom icon and accessible label instead of the default hamburger. It opens a MobileNav drawer via the AppShell mobile context, which AppShell provides automatically.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MobileNav","MobileNavToggle","AppShell","SideNavItem","SideNavSection","Icon","HStack","Text"]}},"1791bb72787fc71c80665045fb2ab4e1":{"doc":{"type":"block","exampleFor":"Outline","name":"Outline — Density","displayName":"Outline — Density","description":"Two density variants control item padding. Use compact for dense sidebars and default for standard documentation layouts. The sliding indicator automatically matches each item height.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Outline","Layout","Text"]}},"17e4e2b8472392dd60a2bb76448fa837":{"doc":{"type":"block","exampleFor":"useScrollOverflow","name":"useScrollOverflow — Filter Strip Edge Fades","displayName":"useScrollOverflow — Filter Strip Edge Fades","description":"A row of active filters that scrolls sideways. useScrollOverflow reports which edge has hidden filters, and the strip fades only that edge: none while every filter fits, the end at the start, both mid-scroll and the start at the end. Adding or removing a filter updates the fades, and in a right-to-left layout the start edge is on the right.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Token","Button","Switch","Layout"]}},"18538343980d6c9149c64022b5ca0880":{"docs":{"type":"namespace","name":"experimental","placement":{"parent":"namespace:cli","slot":"guides","order":90},"stability":"experimental","title":"Experimental features","summary":"Features you can try now that may change or be removed in a patch release.","keywords":["experimental","experiment","preview","unstable"],"slots":{"guides":{"title":"Experimental features","accepts":{"kinds":["generic","namespace"]}}},"blocks":[{"type":"prose","text":"Everything here is experimental: its commands (under `astryx experimental`), configuration (under `experimental` in astryx.config and in an integration manifest), output, and docs may change or be removed in any patch release, with no deprecation period. Nothing here changes what the rest of Astryx does unless you use it. A feature leaves this section when it becomes stable."}]}},"185b45103a54d7f2e19aea33ba1e3c83":{"doc":{"type":"block","exampleFor":"TreeList","name":"TreeList — Navigation Tree","displayName":"TreeList — Navigation Tree","description":"Navigation tree with a selected item for the current page.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TreeList"]}},"18aba5185f52e34bd564cf5648e1c780":{"doc":{"type":"block","exampleFor":"Step","name":"Step — States","displayName":"Step — States","description":"Every state a single Step can land in, each shown as one Step in its own Stepper. Completed, current, and upcoming are derived by comparing the step index against the parent activeStep, so they are never set directly; isDisabled and status are the two a step declares itself. Status is a separate axis from progress, which is why a completed step can still carry a warning.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper","Step","Text"]}},"18bbfae5750a19eb2ed0741a9978b7db":{"default":{"type":"theme","name":"neutral","displayName":"Neutral","description":"Restrained warm grays. Minimal and quiet, so the content stays the focus.","maintained":true}},"1908facdddd370e47cc728ab5d8f64a1":{"doc":{"type":"block","exampleFor":"useOverflow","name":"useOverflow — Editor Toolbar","displayName":"useOverflow — Editor Toolbar","description":"Resize the card: useOverflow moves the toolbar actions that do not fit into a More menu, and shows them again when the card gets wider.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Card","Button","DropdownMenu"]}},"19101f92e826d8fffdc841b3873c5c4f":{"default":{"type":"icon-definition","name":"home","description":"Go to the home page.","words":["house","start","dashboard"]}},"19290000832b6521882ec63e85557041":{"doc":{"type":"block","exampleFor":"Skeleton","name":"Skeleton","displayName":"Skeleton","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A skeleton loading placeholder.","componentsUsed":["Skeleton"]}},"197109043878143d8e4a58168d811f8a":{"default":{"type":"icon-definition","name":"archive","description":"Archive an item.","words":["box","stash"]}},"19b1abcdea88dea503a3771657c56376":{"default":{"type":"icon-definition","name":"transfer","description":"Move money or items between two places.","words":["exchange","swap","payment processor"]}},"1a1a5baca3d928000832a24a66ac6e0d":{"doc":{"type":"page","name":"Service Monitoring Dashboard","displayName":"Service Monitoring Dashboard","description":"Always-on analytics with a triage rail: status-colored tiles with sparklines, multi-series time charts over a switchable window, and an independently scrolling alert column that folds into the content when narrow.","keywords":["monitoring","uptime","health","latency","alerting","incidents","observability","operations","live status","real-time","reliability","traffic","anomalies","severity","on-call","oncall","fleet","pipelines","freshness","command center"],"isReady":true,"category":"Dashboard - Monitoring","icons":{"ArrowDownIcon":"arrowDown","ArrowUpIcon":"arrowUp","BellAlertIcon":"notificationActive","CheckCircleIcon":"success","ServerStackIcon":"server","StopIcon":"stop"}}},"1a30261d5ad48636ebf471a92bbdeb69":{"default":{"type":"icon-definition","name":"building","description":"A company or office.","words":["company","office","organization"]}},"1a336345b5aa3dd72fa6612306e9a9c7":{"default":{"type":"icon-definition","name":"attach","description":"Attach a file.","words":["attachment","paperclip","paper clip"]}},"1a722eccfe700207003b5601cf900ef3":{"doc":{"type":"block","name":"Width budget: pixels or any CSS length","displayName":"Width budget: pixels or any CSS length","description":"Compare a numeric pixel width with rem and percentage lengths. The width budget also caps the drawer on mobile.","exampleFor":"Drawer","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","Button","Layout","LayoutContent","HStack","DrawerHeader","Text"]}},"1b02adae268e8dd76a2df34fd11be986":{"doc":{"type":"block","exampleFor":"Timer","name":"Timer — Inline","displayName":"Timer — Inline","description":"A Timer composed into status copy while inheriting the surrounding typography.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timer","Text"]}},"1b3b2f424432e5a6e8923db3d74706a6":{"doc":{"type":"block","exampleFor":"MetadataList","name":"MetadataList — Multi-Column","displayName":"MetadataList — Multi-Column","description":"Multi-column metadata grid with token tags.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MetadataList","Token","HStack"]}},"1b765971e88eb2772d861c2baa8ebbe5":{"default":{"type":"icon-definition","name":"notificationActive","description":"New or unread notifications.","words":["ringing","unread","new alert","bell alert","bell ring"]}},"1be865a3a4a24a1b77827eac91357087":{"doc":{"type":"block","exampleFor":"Calendar","name":"Calendar — Range","displayName":"Calendar — Range","description":"Pick a start and end date with the range highlighted between them. Use for booking dates, time-off requests, or report filters.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Calendar","Layout","Text"]}},"1c2a9cb97c4c92d57be3dcdd4d859de8":{"doc":{"type":"block","exampleFor":"Carousel","name":"Carousel","displayName":"Carousel","description":"A horizontal carousel of cards with scroll-snap and navigation buttons. Scroll or click the arrows to browse.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Carousel","Card","Layout","Text"]}},"1c3de820fe1978f3c8d3565c12c87ba1":{"default":{"type":"icon-definition","name":"cornerRadius","description":"How round the corners of an item are.","words":["radius","rounded corners","border radius"]}},"1c7e385febef57a01ba1808c79acedbd":{"doc":{"type":"block","exampleFor":"Breadcrumbs","name":"Breadcrumbs — Deep Path","displayName":"Breadcrumbs — Deep Path","description":"A 5-level breadcrumb trail for deeply nested content. Use in e-commerce, file browsers, or any UI with several levels of hierarchy.","isReady":true,"aspectRatio":4,"componentsUsed":["Breadcrumbs","Icon"],"icons":{"HomeIcon":"home"}}},"1cd73138172e31208e257658734f6393":{"doc":{"type":"block","exampleFor":"Thumbnail","name":"Thumbnail — States","displayName":"Thumbnail — States","description":"All visual states side by side: image loaded, placeholder, skeleton loading, and upload overlay. Demonstrates the full lifecycle of a thumbnail from empty to loaded.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Thumbnail","Layout","Text"]}},"1d09d7e666c859aa9e360fb5290321b3":{"default":{"type":"icon-definition","name":"sun","description":"Light mode or daytime.","words":["light mode","day","bright"]}},"1df9c63d57d374b05a0ab788dd3a1a28":{"doc":{"type":"block","exampleFor":"Table","alsoExampleFor":["useTableColumnSettings"],"alsoShowcaseFor":["useTableColumnSettings"],"name":"Table — Column Settings","displayName":"Table — Column Settings","description":"Table with a column visibility picker in the toolbar. Toggle columns on and off.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","MultiSelector","Toolbar","Text","Layout"]}},"1dfe47b9511fbc527215043218e7fe65":{"doc":{"type":"block","exampleFor":"ChatMessageMetadata","name":"ChatMessageMetadata","displayName":"Chat Message Metadata","description":"Three-message conversation showcasing error status with retry, delivery status, and full footer actions with model label.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","ChatMessageMetadata","Timestamp","Button","Icon","Text","Layout"],"icons":{"ArrowPathIcon":"refresh","ClipboardDocumentIcon":"clipboard","HandThumbDownIcon":"thumbsDown","HandThumbUpIcon":"thumbsUp"}}},"1e329f7c0980eab390ba811f510ebace":{"doc":{"type":"block","exampleFor":"Lightbox","name":"Lightbox — Video","displayName":"Lightbox — Video","description":"Opens a video in the lightbox. Native browser controls are available. Zoom and pan are disabled for video items.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Lightbox"]}},"1e3e9a52e147855538e62b4d3d6f1707":{"doc":{"type":"block","exampleFor":"useMultiCombobox","name":"useMultiCombobox — Issue Labels","displayName":"useMultiCombobox — Issue Labels","description":"A Labels field built on useMultiCombobox: typing filters the labels, the arrow keys move the active option while focus stays in the field, Enter or a click toggles a label and the list stays open, and selected labels show as removable tokens above the field.","isReady":true,"aspectRatio":1.3333333333333333,"icons":{"CheckIcon":"check"},"componentsUsed":["MultiSelector","Card","TextInput","Item","Icon","Token","Layout"]}},"1e3efbb6fc68cae01dee0b835b41cdcc":{"default":{"type":"icon-definition","name":"server","description":"A server or backend service.","words":["backend","host","infrastructure"]}},"1e50abb6a1740867aed4b57e5bbd8d89":{"doc":{"type":"block","exampleFor":"useCalendarConstraints","name":"useCalendarConstraints — Hotel Booking Range","displayName":"useCalendarConstraints — Hotel Booking Range","description":"A hotel booking range picker enforcing season min/max dates, a 7-night maximum stay once check-in is picked, and a custom rule disabling closed Mondays.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Button","Layout","Text"]}},"1e898794bc2cc10d5894bbc31d71d187":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — Initials","displayName":"Avatar — Initials","description":"Show initials instead of a photo. The avatar extracts the first and last initials from the name automatically. Use when you only have a user name, like in anonymous accounts or new user onboarding.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout","Text"]}},"1f120d5fe2e6a8801d7c7e59205de4e9":{"doc":{"type":"block","exampleFor":"Dialog","alsoExampleFor":["BottomSheet","useMediaQuery"],"name":"Dialog — Adaptive presentation","displayName":"Dialog — Adaptive presentation","description":"Opt-in recipe for an AdaptiveDialog wrapper: Dialog remains the default everywhere, while touchPresentation=\"bottom-sheet\" switches only at lg and below when pointer is coarse and hover is unavailable. Includes a deterministic presentation override for tests/unusual environments and notes that BottomSheet purpose controls swipe and scrim dismissal. Usage examples: touchPresentation=\"dialog\" keeps Dialog, \"fullscreen\" chooses fullscreen Dialog, and \"bottom-sheet\" chooses BottomSheet only for the touch-oriented range. Keep presentation as the deterministic override. Do not use this by default for AlertDialog or destructive confirmations.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Dialog","DialogHeader","BottomSheet","Layout","Button","Text","TextInput","TextArea","useMediaQuery"]}},"1f459f2dc9f5c3914e12548b55a56cad":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp — Tooltip time zones","displayName":"Timestamp — Tooltip time zones","description":"Hover tooltips that show one instant across several time zones or formats. Use tooltipEntries when readers must compare zones, like an incident log carrying both the reader's time and the event's origin zone.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timestamp","Layout","Text"]}},"1f9c7b5361a04e5bfc467131ef05b111":{"default":{"type":"icon-definition","name":"eye","description":"Show or preview something.","words":["view","visible","preview"]}},"1fa88bbc2540138f05e06bbd21a60cdb":{"doc":{"type":"block","exampleFor":"SegmentedControl","name":"SegmentedControl","displayName":"Segmented Control","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["SegmentedControl"]}},"1fb37c644a64864695232b9623db97b2":{"default":{"type":"icon-definition","name":"pin","description":"Pin an item to the top.","words":["pinned","keep"]}},"20759fd1eac2ca853a11ce5a1d02f851":{"doc":{"type":"block","exampleFor":"LayoutPanel","name":"LayoutPanel — Navigation","displayName":"LayoutPanel — Navigation","description":"A fixed-width side panel holding a navigation list next to the main content. Use LayoutPanel in the start or end slot of Layout for sidebars.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["LayoutPanel","Layout","LayoutContent","Center","List","ListItem","Card"]}},"2141a209f43447fa1cef4a83b72865e7":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Footer Actions","displayName":"ChatComposer — Footer Actions","description":"Chat composer with dropdown menus for a model selector and settings in the footer, and a mic button in the send actions slot.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","Button","DropdownMenu","Icon","Layout","Text"],"icons":{"Cog6ToothIcon":"settings","MicrophoneIcon":"microphone","SparklesIcon":"sparkles"}}},"2158b667452e5306e9c80d0b151ba7de":{"doc":{"type":"block","exampleFor":"useImageMode","name":"useImageMode — Photo Caption","displayName":"useImageMode — Photo Caption","description":"A photo banner with a caption over the sky. useImageMode samples only the strip under the caption and MediaTheme switches the caption between light and dark text from the result. A Beach photo switch swaps a night photo for a bright beach photo, and while the new photo loads the caption keeps the dark fallback.","isReady":true,"aspectRatio":1.5,"componentsUsed":["AspectRatio","MediaTheme","Switch","Text","Layout"]}},"2166f87636395a4ff4437af01ed2bb0e":{"doc":{"type":"block","exampleFor":"MobileNavToggle","name":"MobileNavToggle","displayName":"Mobile Nav Toggle","description":"Demonstrates MobileNavToggle as a standalone hamburger button for opening the mobile navigation drawer.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["MobileNav","Button","SideNav"]}},"21dc45c304d2a360639317a278c113dd":{"doc":{"type":"block","exampleFor":"AlertDialog","name":"AlertDialog — Loading","displayName":"AlertDialog — Loading","description":"A confirmation dialog that shows a spinner while the action runs.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AlertDialog"]}},"220e45a3617bb9df3894b766b908f991":{"default":{"type":"icon-definition","name":"success","description":"Show that something worked.","words":["ok","complete","passed","check circle","circle check"],"builtIn":true}},"2212758b2ee05e17f9bd272c2a9502f9":{"default":{"type":"icon-definition","name":"panelRight","description":"Show or hide a side panel on the right, such as a details or inspector pane.","words":["right panel","inspector","details pane","drawer"]}},"221e1e48e59ecbe3b545eab1270e8a3c":{"doc":{"type":"block","exampleFor":"NavIcon","name":"NavIcon","displayName":"Nav Icon","description":"Circular icon containers for navigation headers with accent backgrounds.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["NavIcon","Icon"]}},"22ed93f79cdfc93af8c6d34c7d6c77c4":{"default":{"type":"icon-definition","name":"lowercase","description":"Make text all small letters.","words":["lower case","small letters"]}},"2302504aede8492fc8dbbf048ef78a59":{"doc":{"type":"block","exampleFor":"MobileNav","name":"MobileNav — Basic Drawer","displayName":"MobileNav — Basic Drawer","description":"Mobile navigation drawer with sectioned nav items triggered by a menu button","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MobileNav","SideNav","Button","Icon"],"icons":{"ChartBarIcon":"chart","Cog6ToothIcon":"settings","FolderIcon":"folder","HomeIcon":"home","UsersIcon":"users"}}},"23084608c5be63c70895eea474efc9bf":{"doc":{"type":"block","exampleFor":"ChatSystemMessage","name":"ChatSystemMessage — Status Updates","displayName":"ChatSystemMessage — Status Updates","description":"Realistic status messages in a conversation flow showing membership changes, timestamps, and resolution notices.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","Icon"],"icons":{"CheckCircleIcon":"success","UserMinusIcon":"userRemove","UserPlusIcon":"userAdd"}}},"2348f62973d5e2b4e4775ca13ee66e79":{"doc":{"type":"block","exampleFor":"Overlay","name":"Overlay","displayName":"Overlay","description":"A media card with an always-visible scrim and centered action content.","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Overlay","AspectRatio","Button","Layout","Text"]}},"23d077f59f23e7a8e3cf06a8973f9e0e":{"doc":{"type":"block","exampleFor":"useOutlineFromMarkdown","name":"useOutlineFromMarkdown — Docs Article","displayName":"useOutlineFromMarkdown — Docs Article","description":"A docs-style article with an Outline next to it, built from the same Markdown string through useOutlineFromMarkdown. \"Add section\" appends a heading to the string, and a new entry that links to it appears in the outline.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Markdown","Outline","ScrollableArea","Button","Layout"]}},"23d6a74652e983657891fe989a4412bd":{"doc":{"type":"block","exampleFor":"useListFocus","name":"useListFocus — Recent Files","displayName":"useListFocus — Recent Files","description":"A \"Recent files\" list of buttons with keyboard navigation from useListFocus: ArrowUp and ArrowDown move between rows, Home and End jump to the first and last row, focus wraps at the ends, and only one row is in the tab order.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","Layout"]}},"241a9851585c3fc634741d8544b9c5cb":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav","displayName":"Top Nav","isReady":true,"aspectRatio":3,"isShowcase":true,"componentsUsed":["Button","Icon","TopNav"],"icons":{"BellIcon":"notification","CubeIcon":"package","UserCircleIcon":"userCircle"}}},"2445018e1079ec2fcef8180dc8af3282":{"doc":{"type":"block","exampleFor":"Collapsible","name":"Collapsible — Single Mode","displayName":"Collapsible — Single Mode","description":"Only one section open at a time, so a single body of content competes for attention. Use defaultValue to pre-expand whichever section a first-time reader needs. Each Collapsible owns a Section, so its trigger is that section heading.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Collapsible","CollapsibleGroup","Section","Text","Stack"]}},"249b7c66621168fbaf12c865fe91512e":{"default":{"type":"icon-definition","name":"cart","description":"A shopping cart.","words":["shop","buy","checkout","shopping cart"]}},"24a9edf6b932dd1dbc8189a1c6d3ae74":{"docs":{"type":"generic","name":"generate-a-palette","placement":{"parent":"namespace:themes","slot":"guides","order":20},"title":"Generate a palette","category":"guide","description":"Turn a few seed colors into full light and dark color ramps, saved in the theme folder.","sections":[{"id":"generate-a-palette","title":"Generate a palette","content":[{"type":"prose","text":"A theme needs dozens of related colors — shades of each brand color for backgrounds, borders, text, and states, in both light and dark mode. A palette is that full set of shades. Rather than hand-pick every one, you name a few seed colors and generate the rest, so the shades stay consistent."},{"type":"prose","text":"You write a short config naming each color family and its seed, then run `theme palette generate`. It expands each seed into a full light and dark ramp — the scale of shades — and writes the result into the theme folder, where your theme tokens point at it (see {@link generic:define-the-theme}). Keep the config and the generated palette together in that folder."},{"type":"prose","text":"The smallest config is one color family: an `id` to name it and a `seed` color to grow it from. Save it as `themes/ocean/palette.config.json`:"},{"type":"code","lang":"json","code":"{\"families\": [{\"id\": \"ocean\", \"seed\": \"#0074e2\"}]}"},{"type":"code","lang":"bash","code":"# Print the palette without writing files\n{@command theme palette generate themes/ocean/palette.config.json}\n# Write the palette and its receipt\nastryx theme palette generate themes/ocean/palette.config.json \\\n --out themes/ocean/tokens/ocean.palette.ts"},{"type":"code","lang":"text","code":"[ok] Wrote themes/ocean/tokens/ocean.palette.ts\n\n[ok] Wrote themes/ocean/tokens/ocean.palette.receipt.json\n\nReview and edit the candidate before adopting it as theme-owned palette data."},{"type":"prose","text":"The command writes two files. `ocean.palette.ts` is the palette your theme tokens will read: it exports `black`, `white`, and `palette` — a ramp of 21 shades (stops `0` to `100`) for both `light` and `dark`. The `.receipt.json` beside it records the exact seeds and settings, so you can regenerate the same palette later. A second run leaves both files alone unless you pass `--overwrite`."},{"type":"prose","text":"Add `--preview <file>.html` to also get a web page showing every shade, so you can eyeball the palette in a browser. Write it outside `themes/` so it does not ship in your package. Every option is in {@link command:theme palette generate}, and the config it reads is described in {@link function:generateTonalPalette}."}]}]}},"24aa14f8bc31112d7dfc4eec0cfa6a11":{"default":{"type":"icon-definition","name":"italic","description":"Italic text.","words":["emphasis","text format"]}},"24e756d552d5a395e2f665398f243e95":{"doc":{"type":"block","exampleFor":"ChatDictation","name":"ChatDictationButton — States","displayName":"ChatDictationButton — States","description":"Dictation button in idle, listening, and speaking states side by side. Shows the three visual phases of a voice input interaction.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatDictation","Layout","Text"]}},"250bd4fd2e0143796dd66610d4ed3ce1":{"doc":{"type":"block","exampleFor":"Carousel","name":"Carousel — Snap","displayName":"Carousel — Snap","description":"Scroll-snap carousel with navigation buttons and team member cards. Each card snaps to the start edge on scroll. Use when items should be viewed one at a time rather than as a continuous strip.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Carousel","Avatar","Badge","Card","Layout","Text"]}},"255858f1640f36ccd9572c5ffa2e6ce3":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — Icon","displayName":"Tokenizer — Icon","description":"Tokenizer with a leading search icon to visually reinforce the search behavior.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Tokenizer","Layout","Text"],"icons":{"MagnifyingGlassIcon":"search"}}},"255c684e9630169c58842a8cfcaedb82":{"doc":{"type":"page","name":"Shell Nav","displayName":"Shell Nav","description":"Application frame combining both navigation axes: a top menu bar with command-palette search over a resizable hierarchy rail, wrapping placeholder content. For when one axis is not enough.","keywords":["shell","chrome","layout frame","navigation","sidebar","menu bar"],"isReady":true,"category":"Shell - Top Nav + Left Sidebar","icons":{"DocumentTextIcon":"document","FolderIcon":"folder","MagnifyingGlassIcon":"search","PlayIcon":"play"}}},"258184d2293eb8032f9564b28a3b4a29":{"doc":{"type":"block","exampleFor":"SideNav","name":"SideNav","displayName":"Side Nav","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["SideNav"]}},"25a04fec071c4062792d2cc519b256d1":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — On-Track Vertical","displayName":"Stepper — On-Track Vertical","description":"The on-track layout in vertical orientation: indicators sit inline on a continuous connector rail, with each label and description beside its node. Compare with the separated layout, where the indicator sits alongside its own bar segment instead of on a shared rail.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper","Step"]}},"260580e14e63692903c1bd5007329719":{"doc":{"type":"block","exampleFor":"SideNavSection","name":"SideNavSection — Basic","displayName":"SideNavSection — Basic","description":"Group related SideNavItems under titled sections. Use sections to organize longer navigation lists into scannable clusters like Overview and Account.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["SideNav","SideNavSection","SideNavItem"]}},"26149c8f6d0edd5957788555739daaf0":{"doc":{"type":"block","exampleFor":"Dialog","name":"Dialog","displayName":"Dialog","description":"Modal dialog with a header, body content, and close button.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Dialog","Layout","Text"]}},"264029cef8cc24dfa3e95c17ab75a766":{"default":{"type":"icon-definition","name":"user","description":"A person or the current user's profile.","words":["person","profile","account"]}},"26585bd2084a2daa996cbb8d221db830":{"doc":{"type":"block","exampleFor":"ChatTokenizedText","name":"ChatTokenizedText — Colors","displayName":"ChatTokenizedText — Colors","description":"Tokens with different color variants to distinguish mentions, bugs, and features. Use variant colors to create a visual taxonomy: blue for people, red for bugs, green for features.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatTokenizedText","Chat"]}},"26693e3f776b44dde662ce58729bd067":{"doc":{"type":"block","exampleFor":"ContextMenuItem","name":"ContextMenuItem — Basic","displayName":"ContextMenuItem — Basic","description":"Context menu items with labels and secondary descriptions. Use ContextMenuItem to render custom menu entries with consistent styling.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ContextMenu","ContextMenuItem"]}},"2775b2a4776a278bf6e0e1852227bfee":{"doc":{"type":"block","exampleFor":"Icon","name":"Icon — Status Indicators","displayName":"Icon — Status Indicators","description":"Status list using semantic icons for success, warning, error, and info.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Icon","VStack","HStack","Text"]}},"278b9e936ef4f43c1af0742183f7cb62":{"doc":{"type":"block","name":"Edit form with footer actions","displayName":"Edit form with footer actions","description":"Compose a Layout with DrawerHeader, the fields in LayoutContent, and Cancel and Save in a pinned LayoutFooter. purpose=\"form\" keeps Escape but ignores scrim clicks, so a stray click outside does not discard edits.","exampleFor":"Drawer","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","DrawerHeader","Button","Layout","LayoutContent","LayoutFooter","HStack","VStack","TextInput"]}},"27c1bb8c93258fbf190df0043bb71cf2":{"doc":{"type":"block","exampleFor":"LayoutHeader","name":"LayoutHeader — With Actions","displayName":"LayoutHeader — With Actions","description":"A fixed page header with a title and a primary action, above scrollable content. Use LayoutHeader inside Layout for persistent page-level headers.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["LayoutHeader","Layout","LayoutContent","Center","Card","HStack","Heading","Button"]}},"283f365e5181b0a1456fff4745e1d8d1":{"doc":{"type":"block","exampleFor":"ChatComposerDrawer","name":"ChatComposerDrawer — With Progress","displayName":"ChatComposerDrawer — With Progress","description":"Drawer paired with a context progress bar in the header. Show context window usage when attachments consume part of the available token budget.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Token","ProgressBar","Icon","Button","Layout"],"icons":{"AtSymbolIcon":"mention","PaperClipIcon":"attach"}}},"28874279b75f49773eebfdad04289b87":{"doc":{"type":"page","name":"Documentation Design","displayName":"Documentation Design","description":"Reference article alternating prose with live rendered examples: an interactive preview, a property table, paired do and don't comparisons, and copyable code blocks.","keywords":["documentation","docs","guide","reference","usage","api entry"],"isReady":true,"category":"Content - Documentation Design","icons":{"ArrowTopRightOnSquareIcon":"externalLink","ArrowsPointingOutIcon":"expand","PlusIcon":"add"}}},"28b05475016635f35452ba38d483118f":{"doc":{"type":"block","exampleFor":"useTableRowStatus","name":"useTableRowStatus - Semantic and Custom Markers","displayName":"useTableRowStatus - Semantic and Custom Markers","description":"A job table using both row-status paths: status resolves themed semantic glyphs and tones, while color stays a custom paint choice with an optional caller-selected icon or the stable dot.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"2913b1c044f4d3172f9ac6a0a4c7ad81":{"docs":{"type":"generic","name":"monorepos","placement":{"parent":"namespace:global","slot":"guides","order":7},"title":"Monorepos and nested folders","category":"guide","keywords":["monorepo","workspace","nested folder","nested project","subfolder","packages folder","which project","yarn pnp","hoisting"],"description":"How Astryx finds the project a folder belongs to, and which version answers in a monorepo, a nested app, or a cloned repository inside another project.","sections":[{"id":"find","title":"How a project is found","content":[{"type":"prose","text":"Astryx searches upward from the current folder: `@astryxdesign/core` or `@astryxdesign/cli` installed there or a few folders above, else the nearest `package.json` declaring either, up to the repository root. Folders without any are outside projects."}]},{"id":"workspaces","title":"Workspaces","content":[{"type":"list","style":"unordered","items":["A workspace member declaring Astryx is its own project, even with packages hoisted to the repository root. A root CLI answers it, as always; a member with its own Core and no CLI anywhere gets answered by the astryx command you started.","A folder without its own `package.json`, such as `src/` or `scripts/`, belongs to the project above it.","A repository that builds the CLI itself, with the CLI in `packages/cli` next to Core in `packages/core`, runs that CLI."]}]},{"id":"nested","title":"Nested folders","content":[{"type":"list","style":"unordered","items":["Folders inside another project, such as nested apps or cloned repositories, answer with the enclosing project's release.","Folder names compare as your file system compares them: a folder reached through a link, or typed in different letter case on macOS or Windows, answers like the folder itself.","In a Yarn Plug'n'Play project, Astryx cannot see the project's own CLI, so the astryx command you started answers. Run the project's CLI through Yarn (`yarn astryx`) to use it directly."]}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"Part of {@link namespace:global}: what global mode is and how each part works."}]}]}},"29198ce4e15794b3147f683b42b91f45":{"doc":{"type":"block","exampleFor":"ProgressBar","name":"ProgressBar","displayName":"Progress Bar","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A progress bar filled to 60%.","componentsUsed":["ProgressBar"]}},"298d1acaaad350959459a6c3d7bacc26":{"doc":{"type":"block","exampleFor":"Stack","name":"Stack — Alignment","displayName":"Stack — Alignment","description":"Buttons positioned at the start, center, and end of a row.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","Card","Button","Text"]}},"29b268dabcc76eeba57cd04064f8917c":{"doc":{"type":"block","exampleFor":"Toolbar","alsoExampleFor":["OverflowList"],"name":"Toolbar — Table Filter","displayName":"Toolbar — Table Filter","description":"Filter bar above a table: a search box leads the row, each field beside it is a closed trigger that doubles as its own filter chip — the bare field name unset, the whole clause once set — and the clauses fold from the end into a count as the row narrows, followed by a live result count, a clear all, and a column picker. Use to search, filter, and narrow flat rows of records such as jobs, orders, tickets, or users.","isReady":true,"aspectRatio":2.2857142857142856,"componentsUsed":["Toolbar","Selector","TextInput","OverflowList","Popover","Button","Icon","Link","Text","CheckboxList","Layout","Section","Table","EmptyState"],"icons":{"Columns3Cog":"viewColumns","Search":"search"}}},"29cff14e41b1f28dccb9ab46e69cbfa6":{"doc":{"type":"block","exampleFor":"BaseTypeahead","name":"BaseTypeahead","displayName":"Base Typeahead","description":"A custom result renderer that adds supporting metadata while BaseTypeahead retains option semantics and keyboard behavior.","registry":{"slug":"custom-search-bar"},"isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["BaseTypeahead","Layout","Text"]}},"2a04a2163d9e07ae7f454ddbe38c7958":{"doc":{"type":"block","exampleFor":"PowerSearch","name":"PowerSearch","displayName":"Power Search","description":"Token-based filter bar with enum and text fields, pre-populated with sample filters.","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["PowerSearch"]}},"2a17f51767efa8887fe63f931fbd7e84":{"docs":{"name":"use-a-theme","title":"Use a theme","category":"guide","keywords":["theme","Theme","dark mode","light","nested","provider","SSR","built","runtime","neutralTheme","available themes","theme add","import","astryx-themes","eject"],"description":"Apply a theme to your app: install, import with the CLI, wire the generated module, switch dark mode, nest themes, and choose runtime or built for production.","sections":[{"id":"quick-start","title":"Wrap your app in a theme","content":[{"type":"code","lang":"bash","label":"Install and add a theme","code":"{@pm install @astryxdesign/theme-neutral}\n{@command theme add neutral}"},{"type":"code","lang":"tsx","label":"Wire the generated module once","code":"import {Theme} from '@astryxdesign/core/theme';\nimport {themes, defaultThemeSlug} from './astryx-themes';\n\nfunction App() {\n return (\n <Theme theme={themes[defaultThemeSlug]}>\n <YourApp />\n </Theme>\n );\n}"},{"type":"code","lang":"tsx","label":"Switch among added themes","code":"import {useState} from 'react';\nimport {Theme} from '@astryxdesign/core/theme';\nimport {themes, type ThemeSlug} from './astryx-themes';\n\nconst [slug, setSlug] = useState<ThemeSlug>('neutral');\nconst app = <Theme theme={themes[slug]}><YourApp /></Theme>;"},{"type":"prose","text":"`theme add` records an installed package theme and regenerates `src/astryx-themes.ts` or `.js` with its built module, production CSS, and optional font CSS. In a project without `src`, the module is at the project root. The first imported theme becomes the default. `theme use <slug>` changes that default, and `theme remove <slug>` removes a non-default theme."},{"type":"prose","text":"Customize a package theme with `defineTheme({extends: importedTheme, ...})`, then build and add that local theme. Use `theme eject` only when you want an independent source fork that no longer receives the package owner's updates. For the full authoring guide, see {@link generic:author-a-theme}."}]},{"title":"Migrating Earlier Theme Copies","content":[{"type":"prose","text":"A theme copied by the released `theme add` stays app source. The upgrade does not move, delete, or rewrite it. It only writes the missing same-stem descriptor with `maintained: false`, so the copy becomes a local theme."},{"type":"code","lang":"bash","label":"Add descriptors to earlier copies","code":"{@command upgrade --from 0.6.4 --path . --apply}"},{"type":"prose","text":"Before the upgrade runs, theme commands skip a descriptor-less copy in `src/themes`. `theme list` and doctor name it as unmigrated and show the upgrade command. A script that meant to copy source now runs `theme eject` with the same arguments. A script that meant to make the app use a theme runs `theme add`."},{"type":"prose","text":"`ASTRYX_THEME` is no longer read. Run `theme add <slug>` and `theme use <slug>` to choose the default in a generated app theme module. When that module exists, component metadata reads its recorded default theme. Without the module, the released `package.json#astryx.theme` lookup keeps its meaning."}]},{"title":"Available Themes","content":[{"type":"prose","text":"Install the theme package you want with `{@pm install @astryxdesign/theme-<name>}`, then import its slug with `theme add <slug>`. The CLI imports the package's built outputs for you."},{"type":"table","headers":["Theme","Add command","Description"],"rows":[["Neutral","{@command theme add neutral}","Muted, minimal aesthetic with Figtree typography. A good starting point."],["Butter","astryx theme add butter","Golden, buttery surfaces with blue accents; Sarina + Outfit type."],["Chocolate","astryx theme add chocolate","Warm brown tones and cozy beige; Fraunces + Albert Sans type."],["Gothic","astryx theme add gothic","Dark-only atmospheric theme; deep blue-gray surfaces, distressed display type."],["Matcha","astryx theme add matcha","Earthy greens; DM Sans + Playwrite US Trad type."],["Stone","astryx theme add stone","Warm stone and slate tones; Montserrat + Figtree type."],["Y2K","astryx theme add y2k","Playful Y2K pop; periwinkle body, holographic accents, Poppins + Crimson Text."]]},{"type":"prose","text":"Every first-party package exports its built theme at `@astryxdesign/theme-{name}/built`, production CSS at `/theme.css`, and font loading CSS at `/fonts.css`. `theme add` writes those imports into the generated app module."}]},{"title":"Theme Props","content":[{"type":"prose","text":"`<Theme>` takes `theme` (required), `mode` (`'system'` by default, or `'light'`/`'dark'`), and `children`. For every prop, run `{@command component Theme}`."}]},{"id":"integration-themes","title":"Using a Theme from an Integration","content":[{"type":"prose","text":"Install the integration as a direct dependency. Astryx discovers its themes and guides without an `astryx.config` entry. A theme can be added only when the installed package exports its built module and production stylesheet."},{"type":"code","lang":"bash","label":"Install, inspect, and add","code":"{@pm install @astryxdesign/core @acme/brand-integration}\n{@command theme list --package @acme/brand-integration}\n{@command docs brand-theme}\n{@command theme add ocean --package @acme/brand-integration}"},{"type":"prose","text":"`theme add` keeps the owner package in the app record and imports its built module, stylesheet, and optional font stylesheet. Package updates continue to reach the app. Run `theme eject ocean --package @acme/brand-integration` only to copy the source and descriptor into `src/themes/ocean` as an independent local fork."}]},{"id":"light-dark-mode","title":"Dark mode","content":[{"type":"prose","text":"Use [light, dark] tuples in token values for automatic mode switching. Use mode='system' (default) on Theme to follow OS preference."},{"type":"code","lang":"tsx","label":"Light/dark tuple","code":"'--color-accent': ['#0064E0', '#2694FE'],\n// ^light ^dark"},{"type":"code","lang":"tsx","label":"Toggle with a button","code":"const [mode, setMode] = useState<'light' | 'dark'>('light');\n\n<Theme theme={myTheme} mode={mode}>\n <Button\n label={mode === 'light' ? 'Switch to Dark' : 'Switch to Light'}\n onClick={() => setMode(m => (m === 'light' ? 'dark' : 'light'))}\n />\n</Theme>;"},{"type":"prose","text":"To create a theme with custom dark mode colors, see {@link generic:author-a-theme}."}]},{"id":"nesting-themes","title":"Nested themes","content":[{"type":"prose","text":"Wrap different sections in separate `<Theme>` providers."},{"type":"code","lang":"tsx","label":"Dark sidebar with light content","code":"<Theme theme={lightTheme} mode=\"light\">\n <Layout\n header={<LayoutHeader>...</LayoutHeader>}\n start={\n <Theme theme={darkTheme} mode=\"dark\">\n <LayoutPanel>{/* Dark sidebar */}</LayoutPanel>\n </Theme>\n }\n content={<LayoutContent>{/* Light content */}</LayoutContent>}\n />\n</Theme>"}]},{"title":"Runtime vs Built Themes","content":[{"type":"prose","text":"Themes work in two modes:"},{"type":"table","headers":["","Runtime (source)","Built"],"rows":[["Import (published theme)","@astryxdesign/theme-{name}","@astryxdesign/theme-{name}/built + theme.css"],["Import (custom theme)","defineTheme() directly","Built .js + .css from `{@command theme build}`"],["How it works","useInsertionEffect injects <style> at hydration","Pre-compiled .css file loaded with the page"],["Component overrides","Injected client-only","In static CSS: present during SSR"],["SSR safe","Tokens yes, component overrides flash on hydration","Fully SSR safe: no flash"],["Best for","Authoring input for `{@command theme build}`","App wiring, in development and production"]]},{"type":"list","style":"do","items":["Use `theme add` for production apps; it wires the built module and CSS.","Import `themes` and `defaultThemeSlug` from the generated module once, and keep that wiring in development too.","While you edit a local theme, run `{@command theme build --watch}` so its built files stay current.","Run `{@command theme build}` for custom themes to get the built artifacts."]},{"type":"list","style":"dont","items":["Use runtime themes in production SSR apps; component overrides will flash on hydration.","Import /built without the CSS file; component overrides won't apply.","Import package theme source into app runtime code.","Hand-edit the generated theme module; `theme add`, `theme remove`, and `theme use` regenerate it."]},{"type":"prose","text":"To build a custom theme for production, see the Build section of {@link generic:author-a-theme}."}]}]}},"2a51029bf1a6bd7b91a0e68c74fe0dc4":{"doc":{"type":"page","name":"Login Split","displayName":"Login Split","description":"Credential form filling one half of a two-pane split, full-bleed media holding the other. Same fields as the card variant, but the layout carries brand imagery.","keywords":["login","sign in","signin","authentication","credentials","account access"],"isReady":true,"category":"Login - Split","icons":{"CheckCircleIcon":"success","SquaresPlusIcon":"apps"}}},"2acb28474f7132758ac26489ea290910":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Flat","displayName":"ChatComposer — Flat","description":"The composer is raised by default (`elevation=\"low\"`). Set `elevation=\"none\"` to flatten it; it then draws a border with the same rest / hover / focus treatment as a text input.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","Layout","Text"],"icons":{"Cog6ToothIcon":"settings","MicrophoneIcon":"microphone","SparklesIcon":"sparkles"}}},"2b07a8fd2a1d4690cf2526a07e3dfc87":{"docs":{"type":"generic","name":"styling-basics","title":"Basics","placement":{"parent":"namespace:styling","slot":"guides","order":10},"category":"guide","description":"Overview of styling approaches, xstyle prop, Tailwind integration, className/style props, and rest props.","keywords":["style","rest props","data-testid","ref"],"sections":[{"title":"Overview","content":[{"type":"prose","text":"Style components with `xstyle` (StyleX), `className` (Tailwind or your own CSS), or a styling library aliased to Astryx tokens. All of them resolve to the same tokens."},{"type":"table","headers":["Approach","Use for","Example"],"rows":[["StyleX","Component-specific overrides, reusable styles, pseudo-classes, and typed tokens","`const styles = stylex.create(...); <Button xstyle={styles.save} />`"],["Tailwind utilities","Page layout, wrappers, and utility styling","`className=\"flex gap-3 p-4\"`"],["className","Integrating with external CSS or Tailwind on components","`className=\"my-card shadow-lg\"`"],["Styling-library token aliases","Keeping Panda, Chakra, MUI, Emotion, styled-components, UnoCSS, CSS Modules, or Sass in sync with the system","`colors.surface = 'var(--color-background-surface)'`"]]},{"type":"prose","text":"Theming and dark mode work whichever you choose. For external styling libraries, see {@link namespace:styling-libraries}; it covers Tailwind, StyleX, Panda, Chakra, MUI, CSS-in-JS, CSS Modules, Sass, and `useTheme()` for non-CSS processing."}]},{"title":"xstyle Prop","content":[{"type":"prose","text":"Every component accepts an `xstyle` prop for style customization. It accepts StyleX styles created via `stylex.create()`, not inline objects or class name strings. StyleX styles are compiled at build time for optimal deduplication and dead-code elimination."},{"type":"code","lang":"tsx","label":"Simple overrides","code":"import * as stylex from '@stylexjs/stylex';\n\nconst overrides = stylex.create({\n card: { maxWidth: 400, marginBlock: 16 },\n saveButton: { alignSelf: 'flex-end' },\n});\n\n<Card xstyle={overrides.card} />\n<Button label=\"Save\" xstyle={overrides.saveButton} />"},{"type":"code","lang":"tsx","label":"Pseudo-classes and conditional styles","code":"import * as stylex from '@stylexjs/stylex';\n\nconst overrides = stylex.create({\n card: {\n boxShadow: {\n default: 'none',\n ':hover': { '@media (hover: hover)': '0 4px 12px rgba(0,0,0,0.1)' },\n },\n },\n});\n\n<Card xstyle={overrides.card}>...</Card>"},{"type":"list","style":"unordered","items":["All xstyle values must come from stylex.create()","Pseudo-classes (:hover, :focus-visible) are supported inside stylex.create","All :hover styles MUST use @media (hover: hover) guard","For non-StyleX styling (Tailwind, external CSS), use className instead"]}]},{"title":"Tailwind Integration","content":[{"type":"prose","text":"The package ships a Tailwind v4 theme bridge that maps all design tokens to Tailwind utility classes. Import it once and use Tailwind classes backed by design tokens: colors, spacing, radius, shadows, and typography all resolve to the active theme."},{"type":"prose","text":"For the imports and the cascade-layer order to put in your global CSS, see {@link generic:tailwind}."},{"type":"code","lang":"tsx","label":"Tailwind utilities alongside components","code":"<div className=\"text-primary bg-surface rounded-lg p-4 flex gap-3\">\n <Button label=\"Save\" variant=\"primary\" />\n <Button label=\"Cancel\" variant=\"secondary\" />\n</div>"},{"type":"prose","text":"The bridge is pure CSS with zero JS. Theme changes (dark mode, custom themes) apply automatically because the utilities reference the same CSS custom properties that components use. This is the paved Tailwind path; for other styling libraries that follow the same aliasing pattern, see {@link namespace:styling-libraries}."}]},{"title":"className and style Props","content":[{"type":"prose","text":"Every component also accepts standard `className` and `style` props. `className` is appended after the component's own classes. `style` is merged after StyleX inline styles, so consumer values win on conflict."},{"type":"code","lang":"tsx","label":"className with Tailwind utilities","code":"<Card className=\"shadow-lg hover:shadow-xl transition-shadow\">\n ...\n</Card>\n<Button label=\"Save\" className=\"my-app-save-btn\" />"},{"type":"prose","text":"For layout and wrapper styling, Tailwind utilities on className work well. For component-specific overrides (padding, colors, borders), prefer xstyle; it integrates with StyleX deduplication and the component's internal style pipeline."}]},{"title":"Rest Props (Prop Drilling)","content":[{"type":"prose","text":"Components extend HTML attributes and spread rest props onto their root DOM element. This means data-* attributes, aria-* attributes, event handlers, and other HTML props pass through automatically."},{"type":"code","lang":"tsx","label":"Data attributes, event handlers, and ARIA","code":"<Card\n data-testid=\"user-card\"\n data-user-id={user.id}\n onMouseEnter={handleHover}\n aria-label=\"User profile card\"\n>\n ...\n</Card>"},{"type":"code","lang":"tsx","label":"Ref forwarding","code":"const cardRef = useRef<HTMLDivElement>(null);\n<Card ref={cardRef}>...</Card>"},{"type":"prose","text":"A few HTML attributes are intentionally omitted from the base type (contentEditable, dangerouslySetInnerHTML). children is not in the base type either; components that accept children declare it explicitly, so slot-based components don't silently drop JSX children."}]}]}},"2b6b810c3e3715bca27fe605e2f9aa5b":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Attachments","displayName":"ChatComposer — Attachments","description":"Chat composer with removable file tokens in a collapsible drawer. Use when users can attach files or context to their message.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","Token","Layout"]}},"2bad85d18d18b3d646dfc1f67bac29d9":{"doc":{"type":"block","exampleFor":"Resizable","alsoExampleFor":["useResizable"],"alsoShowcaseFor":["useResizable"],"name":"Resizable","displayName":"Resizable","description":"Horizontal resizable split with a draggable handle between two panels.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Resizable","Card","Layout","Text"]}},"2c0b953dcd009af9f320cfbcc8973a7d":{"default":{"type":"icon-definition","name":"fingerprint","description":"A passkey, biometric sign-in, or unique identity.","words":["passkey","biometric","touch id"]}},"2c0b98920c1bf3682f7c3de6bca2e535":{"doc":{"type":"block","exampleFor":"MultiSelector","alsoExampleFor":["BottomSheet"],"name":"MultiSelector — Bottom Sheet","displayName":"MultiSelector — Bottom Sheet","description":"Keeps a multi-selection list open in a bottom sheet while choices are toggled.","isReady":true,"aspectRatio":0.75,"componentsUsed":["MultiSelector"]}},"2c7862c7b973ac23fc4552f8c0137452":{"doc":{"type":"block","exampleFor":"TextArea","name":"TextArea — States","displayName":"TextArea — States","description":"Required, disabled, and loading textareas side by side. Shows the interactive states the component supports.","isReady":true,"aspectRatio":1,"componentsUsed":["TextArea","Layout"]}},"2c87e6e9ae5db56eefe4e77e469ec5ed":{"doc":{"type":"block","exampleFor":"DropdownMenu","name":"DropdownMenu — Actions","displayName":"DropdownMenu — Actions","description":"Action menu with dividers separating safe and destructive operations. Use for row-level actions on items like documents, projects, or records.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","Layout","Text"]}},"2c9e489cc7751365a4eba1759f980cc1":{"doc":{"type":"page","name":"Analytics Dashboard","displayName":"Analytics Dashboard","description":"Three-band analytics: a row of headline tiles, then charts, then supporting tables, all re-reading from one global filter bar. Breadth over depth, a summary surface rather than a drill-down.","keywords":["dashboard","overview","metrics","stats","analytics","reporting","insights","kpi tiles","widgets","donut charts","breakdowns","forecasts"],"isReady":true,"category":"Dashboard - Analytics","icons":{"ArrowDownIcon":"arrowDown","ArrowPathIcon":"refresh","ArrowUpIcon":"arrowUp","StopIcon":"stop"}}},"2ca922c7c219a14a26834e00093c4ecd":{"default":{"type":"icon-definition","name":"collapse","description":"Make something smaller or exit full screen.","words":["minimize","shrink","arrows pointing in"]}},"2cb56dfebb7fb0dcbe67a638d1d373c7":{"default":{"type":"icon-definition","name":"download","description":"Download a file.","words":["export","save file","arrow down tray"]}},"2d0756a3e089a4471bb189e361103629":{"doc":{"type":"block","exampleFor":"Collapsible","name":"Collapsible — Multiple Mode","displayName":"Collapsible — Multiple Mode","description":"Several sections open at once, for comparing across them — feature lists, pricing tiers. One Collapsible per Card, so each trigger keeps its own large type: it is the heading of its surface, not a row in a list.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Collapsible","CollapsibleGroup","Card","Text","Stack"]}},"2d2fb60f2802e9e2888ddb55538c36d8":{"doc":{"type":"block","exampleFor":"ChatComposerInput","name":"ChatComposerInput — Mentions","displayName":"ChatComposerInput — Mentions","description":"Chat input with an @ trigger that opens a typeahead menu for mentioning users. Selected names appear as inline tokens.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","ChatComposerInput","Typeahead","Layout","Text"]}},"2d33d224aeac3dd918b9b97ea89a1520":{"doc":{"type":"block","exampleFor":"Table","alsoExampleFor":["useTableSortable"],"alsoShowcaseFor":["useTableSortable"],"name":"Table — Sortable Columns","displayName":"Table — Sortable Columns","description":"Table with sortable columns, click headers to sort ascending or descending.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"2da3f82b55e24347a5b6c99da3d3cdde":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Full Featured","displayName":"ChatComposer — Full Featured","description":"Chat composer with all slots populated: collapsible attachment drawer, header actions, context progress bar, footer dropdown menus, and mic button. Shows the maximum composer configuration.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ChatComposer","Token","Button","DropdownMenu","Icon","ProgressBar","Layout","Text"],"icons":{"AtSymbolIcon":"mention","Cog6ToothIcon":"settings","MicrophoneIcon":"microphone","PaperClipIcon":"attach","SparklesIcon":"sparkles"}}},"2dbb0d1b73f125e97d53e9c22390b28d":{"docs":{"type":"generic","name":"template-icons","placement":{"parent":"namespace:template-assets","slot":"guides","order":40},"title":"Icons","category":"guide","description":"Keep icons consistent and accessible by rendering them through Astryx, and ship custom product icons from your package.","sections":[{"id":"use-astryx-icon","title":"Use Astryx Icon","content":[{"type":"prose","text":"Use `Icon` for a standalone icon. For a component icon prop, pass what that prop accepts: most, such as `Button` and `IconButton`, take an element like `<Icon icon={BellIcon} />`, and some menu and navigation items also accept the icon definition itself. This keeps sizing, color, and accessibility aligned with the system."},{"type":"code","lang":"tsx","code":"import {Button} from '@astryxdesign/core/Button';\nimport {Icon} from '@astryxdesign/core/Icon';\nimport {BellIcon} from '@heroicons/react/24/outline';\n\n<Icon icon={BellIcon} size=\"sm\" />\n<Button label=\"Alerts\" icon={<Icon icon={BellIcon} />} />"},{"type":"list","style":"unordered","items":["Use one supported icon set consistently inside a template.","Give an icon-only control its required visible or assistive label through the Astryx control API.","Do not paste raw `svg` and `path` markup when an existing icon definition fits.","Do not render a library icon directly when `Icon` or the receiving Astryx component can render it.","Declare an icon library other than Astryx as a dependency ({@link generic:export-template-assets})."]}]},{"id":"ship-a-custom-icon","title":"Ship a custom icon deliberately","content":[{"type":"prose","text":"A product mark or missing domain symbol can stay package-owned. Export a compatible icon definition from a public package path, then import that path from the template."},{"type":"code","lang":"tsx","label":"templates/acme-dashboard.tsx","code":"import {Icon} from '@astryxdesign/core/Icon';\nimport {AcmePulseIcon} from '@acme/astryx-widgets/icons/AcmePulseIcon';\n\n<Icon icon={AcmePulseIcon} size=\"sm\" label=\"Account health\" />"},{"type":"prose","text":"Export the icon path and include its file in the package ({@link generic:export-template-assets})."}]},{"id":"check-icons-in-the-app","title":"Check icons in the app","content":[{"type":"prose","text":"When you test the template in an app ({@link generic:test-template-in-app}), also confirm the following."},{"type":"list","style":"unordered","items":["Every icon state renders, including selected, disabled, loading, and narrow layouts.","Meaningful icons have an accessible name, and decorative icons add no duplicate spoken text.","No missing icon leaves an empty control."]}]}]}},"2e03f9d4f8cced71c86cf8166099e4f3":{"doc":{"type":"block","exampleFor":"Overlay","name":"Overlay — Hover Reveal","displayName":"Overlay — Hover Reveal","description":"Reveals an overlay action on hover or keyboard focus. Use when actions should stay visually quiet until the media receives attention.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Overlay","AspectRatio","Button"]}},"2e5a66d6cac5e1cd3d83de0ecb200d22":{"default":{"type":"icon-definition","name":"key","description":"Keys, passwords or access.","words":["password","access","credential"]}},"2ec9f1b63485b32ccad4ab6419312790":{"doc":{"type":"block","exampleFor":"MobileNav","name":"MobileNav — End Side Drawer","displayName":"MobileNav — End Side Drawer","description":"Navigation drawer that slides in from the right side of the screen","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MobileNav","SideNav","Button"],"icons":{"Cog6ToothIcon":"settings","UsersIcon":"users"}}},"2f419a3ad290f9995e0ea55bbf89da50":{"doc":{"type":"block","exampleFor":"RadioListItem","name":"RadioListItem","displayName":"Radio List Item","description":"Radio list items with labels, descriptions, and different states including disabled.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["RadioList","RadioListItem"]}},"2f613ba736d71afefd0dee1803984bb2":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer","displayName":"Chat Composer","isReady":true,"aspectRatio":1.3333333333333333,"isShowcase":true,"componentsUsed":["Chat","Layout"]}},"2fb5bc32253c1978bbfa916f139b9a4c":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList — With Status Dot","displayName":"TabList — With Status Dot","description":"Tabs with status dot indicators rendered via endContent to show live environment health at a glance.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab","StatusDot"]}},"2fdedc8871a0ee0e7340552ac2dad3ec":{"doc":{"name":"Mixed Gallery","displayName":"Mixed Gallery","description":"Masonry grid of variable-height tiles that pack against each other instead of cropping to a shared ratio, captioned per tile. Irregular rhythm, unlike the uniform gallery.","keywords":["photos","images","pictures","portfolio","masonry","media wall"],"type":"page","isReady":true,"category":"Gallery - Mixed"}},"300013106c401e9a22b7db7a5483455c":{"doc":{"type":"block","exampleFor":"AppShell","name":"AppShell — With Banner","displayName":"AppShell — With Banner","description":"Full layout with TopNav, SideNav, and a dismissable info banner between the nav and content.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AppShell","TopNav","SideNav","Banner","Heading","Text","VStack","NavIcon"],"icons":{"ChartBarIcon":"chart","Cog6ToothIcon":"settings","CubeIcon":"package","FolderIcon":"folder","HomeIcon":"home","UsersIcon":"users"}}},"300ca0dc4b4b88cb4f9ebc72d6585868":{"doc":{"type":"block","exampleFor":"SideNavItem","name":"SideNavItem — Basic","displayName":"SideNavItem — Basic","description":"Navigation links inside a SideNav, each with a label, an icon, and an href. Mark the item for the current page with isSelected.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["SideNav","SideNavItem"]}},"3012ab317765261c0443055bf5ca8caa":{"doc":{"type":"block","exampleFor":"useHotkeys","name":"useHotkeys — Search and Help Shortcuts","displayName":"useHotkeys — Search and Help Shortcuts","description":"Page shortcuts registered with useHotkeys: \"/\" focuses the search field and \"?\" opens the shortcut help, while typing either character in the field just types it. A switch turns the single-key shortcuts off through isDisabled.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","TextInput","Button","Switch","Dialog","Kbd","Text","Layout"]}},"30ae106212ce958e778f49d6c57856a4":{"doc":{"type":"block","exampleFor":"BottomSheet","name":"Bottom Sheet — Height variants","displayName":"Bottom Sheet — Height variants","description":"Compares hug, capped, and tall starting heights for different amounts of content.","isReady":true,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","Divider","Heading","Stack","Text"]}},"3169ffdf8cdb7b600819f1dbde3c4e3c":{"doc":{"type":"block","exampleFor":"Theme","name":"Theme — Apply Theme","displayName":"Theme — Apply Theme","description":"Wrap a subtree in Theme to apply a theme to every child component in that region.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Theme","Card","Button","Section","Layout","Text"]}},"31827e300d475e202c64530618bc1af0":{"default":{"type":"icon-definition","name":"calendar","description":"Pick or show a date.","words":["date","schedule","day"],"builtIn":true}},"318eee5b690a5ea18139c8efec34faea":{"doc":{"type":"block","exampleFor":"RadioListItem","name":"RadioListItem — Basic","displayName":"RadioListItem — Basic","description":"Radio items with labels and descriptions inside a controlled RadioList. Use for single-choice option groups like shipping methods.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["RadioList","RadioListItem"]}},"31afd78d3b8032b90a3b424557d6fcc1":{"doc":{"type":"block","exampleFor":"createDragToSnapPoints","name":"createDragToSnapPoints — Playing card in plain JavaScript","displayName":"createDragToSnapPoints — Playing card in plain JavaScript","description":"The three-place playing card from the useDragToSnapPoints example, built in plain JavaScript with createDragToSnapPoints: a sideways drag settles it on the nearest place or the next after a flick, buttons settle it from the keyboard, and a live region announces the place. React only mounts it.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":[]}},"31e40c241bcd9c2350cb112aee3d60ba":{"doc":{"type":"block","exampleFor":"useAnimator","name":"useAnimator — Playing cards","displayName":"useAnimator — Playing cards","description":"A playing card that follows a drag: a gentle release springs it back on its release velocity, and a quick flick throws it away with momentum before the next card is dealt. A Discard button moves it off from the keyboard, fading it in place under Reduce Motion, and the discard is announced. Built only on the public useAnimator hook.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","Layout","Text","VisuallyHidden","useAnimator"]}},"31eadade15fe6bb457e0b9938d3c3d7f":{"doc":{"type":"page","name":"Side Nav","displayName":"Side Nav","description":"Application frame with a single collapsible, resizable left rail carrying grouped history and search, wrapping the main content. Vertical navigation only, no top bar.","keywords":["shell","chrome","layout frame","sidebar","drawer","left rail","navigation","desktop app","directory","workspace"],"isReady":true,"category":"Shell - Left Sidebar","icons":{"BookOpenIcon":"book","BuildingOffice2Icon":"building","CodeBracketIcon":"code","Cog6ToothIcon":"settings","MagnifyingGlassIcon":"search","PlusIcon":"add","SparklesIcon":"sparkles","UserCircleIcon":"userCircle","UserIcon":"user"}}},"32c9354f32a0f4210dc1ff5715ec3527":{"doc":{"type":"block","exampleFor":"useSnapPaging","name":"useSnapPaging — Onboarding Pages","displayName":"useSnapPaging — Onboarding Pages","description":"Onboarding cards in a Carousel with hasSnap={useSnapPaging()}: under a finger or a trackpad swipe, each flick moves one view and rests on a card's start edge. A switch picks one view or one card per flick through the hook's pages option.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Carousel","Card","Layout","Switch","Text"]}},"32e58a48020283b097f9d3d8f17b6f65":{"default":{"type":"icon-definition","name":"userCircle","description":"The signed-in user's avatar or account.","words":["avatar","account","me"]}},"3309316c948c1725dc5ed7a988578515":{"default":{"type":"icon-definition","name":"paddingPerSide","description":"Set the space inside an item one side at a time.","words":["padding per side","individual padding"]}},"331e86b06935c7a9d5cf39f99debf945":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp — Formats","displayName":"Timestamp — Formats","description":"All display formats side by side: date, date_time, time, and their system equivalents. Use date and date_time for user-facing UI, system variants for logs and dev tools.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timestamp","Layout","Text"]}},"33e0590bf6e8cdd9b1ef7ba50094ba1a":{"doc":{"type":"block","exampleFor":"Center","name":"Center","displayName":"Center","description":"Content centered horizontally and vertically inside a fixed-height container.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Center","Layout","Text"]}},"33f66e5d452da9846a7a3cd6c2b5619d":{"doc":{"type":"block","exampleFor":"NumberInput","name":"NumberInput — Range Constrained","displayName":"NumberInput — Range Constrained","description":"Number input with min/max boundaries and a helper description","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["NumberInput","Center"]}},"342e1e12a8b88cd1eb0089d2979519dd":{"doc":{"type":"block","exampleFor":"ChatLayout","name":"ChatLayout","displayName":"Chat Layout","isReady":true,"aspectRatio":1.3333333333333333,"isShowcase":true,"componentsUsed":["Chat","Stack"]}},"347b29ac5362c6698f0697ba5f2a7103":{"doc":{"type":"block","exampleFor":"MultiSelector","name":"MultiSelector — Sectioned Permissions","displayName":"MultiSelector — Sectioned Permissions","description":"Multi-select with options grouped into labeled sections.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MultiSelector","Center"]}},"348a12e3f3d2a011cf8367acb8517caa":{"default":{"type":"icon-definition","name":"share","description":"Share with other people.","words":["send to","forward"]}},"348f3f0584cc44bd04332defa5c187be":{"doc":{"type":"page","name":"Comparison Table","displayName":"Comparison Table","description":"Transposed matrix that puts candidates in the columns and criteria in grouped rows, with a pinned label column that survives horizontal scroll, columns you can swap or add, and best-in-row marks you can toggle. Compare, comparison, matrix, spec sheet, feature grid, pricing table, benchmark, frozen column, sticky column, or side-by-side.","isReady":true,"category":"Table - Comparison","icons":{"AudioLines":"audio","Box":"package","CircleCheck":"success","CircleX":"error","Cpu":"cpu","FileText":"document","Image":"image","Plus":"add","Sparkles":"sparkles","Type":"text","Video":"video","Zap":"bolt"}}},"3492cd852db088ec5f2fb18bbf27832f":{"doc":{"type":"block","exampleFor":"useTableGroupedRows","name":"useTableGroupedRows — Collapsible Groups","displayName":"useTableGroupedRows — Collapsible Groups","description":"A table grouped into collapsible sections with useTableGroupedRows. Each group gets a full-width header with a chevron, label, and member count; click to collapse/expand.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"349aa9fdbc0a8b5ae792272de7dfc655":{"doc":{"type":"block","exampleFor":"Divider","name":"Divider — Full Bleed","displayName":"Divider — Full Bleed","description":"Divider that extends past container padding to span the full width. Use inside cards or panels when you want a clean edge-to-edge separation, like between an order summary and total.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Divider","Card","Section","Layout","Text"]}},"34bc3b7255e31f9daecf9e4a4ba83a64":{"doc":{"type":"block","exampleFor":"ScrollableArea","name":"ScrollableArea — Sticky Passthrough","displayName":"Scrollable Area — Sticky Passthrough","description":"A section whose content fits clips instead of scrolling, so its sticky label passes outward and pins to the panel edge. The next section sets stickyContainment=\"always\" and keeps its label in its own box.","isReady":true,"aspectRatio":1,"componentsUsed":["ScrollableArea","Card","Grid"]}},"35307aeef6d6f71adf86c2944b82e959":{"docs":{"type":"generic","name":"styling-advanced","title":"Advanced","placement":{"parent":"namespace:styling","slot":"guides","order":20},"category":"guide","description":"Compound component styling, data-attribute selectors, migrating removed theme compatibility selectors, and common anti-patterns.","keywords":["compound","data attributes","removed classes","selector","astryx-button","data-variant"],"sections":[{"title":"Compound Components","content":[{"type":"prose","text":"Complex components are composed from smaller components. Each sub-component accepts its own xstyle, className, and rest props. You style the parts individually; there's no single \"drill into sub-part\" prop."},{"type":"code","lang":"tsx","label":"Dialog with individually styled parts","code":"import * as stylex from '@stylexjs/stylex';\n\nconst overrides = stylex.create({\n dialog: { maxWidth: 500 },\n content: { gap: 'var(--spacing-4)' },\n});\n\n<Dialog isOpen={isOpen} onOpenChange={close} xstyle={overrides.dialog}>\n <Layout\n header={\n <LayoutHeader hasDivider>\n <Heading level={2}>Edit Profile</Heading>\n </LayoutHeader>\n }\n content={\n <LayoutContent xstyle={overrides.content}>\n <TextInput label=\"Name\" value={name} onChange={setName} />\n </LayoutContent>\n }\n footer={\n <LayoutFooter hasDivider>\n <Button label=\"Cancel\" variant=\"secondary\" onClick={close} />\n <Button label=\"Save\" variant=\"primary\" onClick={save} />\n </LayoutFooter>\n }\n />\n</Dialog>"},{"type":"prose","text":"The pattern: the parent component (Dialog) controls structure and behavior, child components (Layout, Header, Button) control their own appearance. Style each piece where it lives."}]},{"id":"preferred-selector-surface-data-attributes","title":"Data attribute selectors","content":[{"type":"prose","text":"When external CSS needs to target an Astryx component by prop or state, combine the stable component class with reflected data attributes. The component class identifies the component (`.astryx-button`, `.astryx-card`); data attributes identify the axis and value (`data-variant`, `data-size`, `data-level`, etc.). This is the preferred selector surface for new CSS because it is explicit and collision-resistant."},{"type":"code","lang":"css","code":".my-app .astryx-button[data-variant=\"primary\"] {\n /* primary buttons in this app context */\n}\n\n.my-app .astryx-button[data-variant=\"primary\"][data-size=\"sm\"] {\n /* small primary buttons */\n}\n\n.my-app .astryx-heading[data-level=\"2\"] {\n /* level 2 headings; numeric values stay literal in data attrs */\n}"},{"type":"code","lang":"tsx","label":"What components reflect","code":"// <Button variant=\"primary\" size=\"sm\" />\n// preferred selector attrs: data-variant=\"primary\" data-size=\"sm\"\n\n// <Card variant=\"elevated\" />\n// preferred selector attrs: data-variant=\"elevated\"\n\n// <Heading level={2} />\n// preferred selector attrs: data-level=\"2\""},{"type":"prose","text":"For systematic theming, use defineTheme component overrides instead of raw CSS selectors. defineTheme keeps the higher-level `prop:value` API (`variant:primary`, `size:sm`) and handles selector generation for you. Run {@link generic:author-a-theme} for component theming."}]},{"id":"deprecated-classes","title":"Migrating Removed Theme Compatibility Selectors","content":[{"type":"prose","text":"Astryx 0.7 emits canonical `astryx-*` target classes and reflected `data-*` attributes only. Run `{@command upgrade --from <your 0.6 version> --apply --path .}` to rename removed target keys inside theme `components` maps and to migrate CSS selectors. The CSS migration renames removed target classes and replaces target-qualified bare prop/value/state classes such as `.primary`, `.sm`, `.level-2`, and `.checked` with their reflected `data-*` selectors."},{"type":"code","lang":"css","code":"/* Before */\n.astryx-progressbar.success > .astryx-progressbar-mark.fill {}\n.astryx-selector-clear-icon { color: red; }\n\n/* After */\n.astryx-progress-bar:is([data-variant=\"success\"]) >\n .astryx-progress-bar-mark:is([data-placement=\"fill\"]) {}\n.astryx-input-clear-icon:where(.astryx-selector *) { color: red; }"},{"type":"prose","text":"Removed target mappings: `base-table` → `table`; `checkbox` → `checkbox-indicator`; `codeblock` → `code-block`; `codeblock-copy-button` → `code-block-copy-button`; `codeblock-header` → `code-block-header`; `codeblock-title` → `code-block-title`; `date-input-clear-icon`, `date-range-input-clear-icon`, `multi-selector-clear-icon`, and `selector-clear-icon` → `input-clear-icon`; `hovercard` → `hover-card`; `navicon` → `nav-icon`; `popover-surface` → `popover`; `progressbar`, `progressbar-fill`, `progressbar-mark`, and `progressbar-track` → their hyphenated `progress-bar*` forms; `radio` → `radio-indicator`; `radio-dot` → `radio-indicator-dot`; `statusdot` → `status-dot`; `textarea` → `text-area`."},{"type":"prose","text":"`input-clear-icon` styles the clear icon of every input. In CSS the upgrade keeps each old clear-icon rule on its component with `:where(.astryx-<component> *)`. A theme key cannot carry that scope, so the upgrade renames the key and adds a `TODO(astryx upgrade)` that names the CSS selector to use instead."},{"type":"prose","text":"The upgrade treats a `components` map as a theme when it belongs to a `defineTheme()` call imported from Astryx, an object typed as an Astryx theme, or the theme object a same-stem theme descriptor (`<stem>.doc.mjs`) declares: the top-level binding exported as `<stem>`, with a static `name` and component entries that are style objects. A look-alike object anywhere else, such as a theme object from another library in the same file, is not an Astryx theme. It leaves computed theme keys, unqualified classes, unknown consumer classes, declarations, comments, and CSS inside JavaScript or TypeScript strings unchanged. It adds `TODO(astryx upgrade)` when a map has both an old and a canonical key, and when a bare class Astryx once emitted has no known meaning on the target it qualifies. Review each TODO by hand."}]},{"title":"What NOT to Do","content":[{"type":"list","style":"dont","items":["style={{}} on raw <div> wrappers. Use xstyle on the component directly.","Hardcoded colors (#fff, rgb(...)). Use var(--color-*) tokens or Tailwind semantic classes (text-primary, bg-surface).","Hardcoded spacing (16px, 1rem). Use var(--spacing-*) tokens or Tailwind spacing utilities (p-4, gap-3).","Wrapping a component in a <div> just to add margin. Use xstyle with stylex.create on the component.","Using !important. If styles aren't applying, check specificity; xstyle is merged last."]}]}]}},"3546a1548a074ebca69c188d5e96dafd":{"doc":{"type":"block","exampleFor":"TreeList","name":"Tree List — Variants","displayName":"Tree List — Variants","description":"The `variant` prop controls whether hierarchy guide lines are shown: `lineGuides` (default) draws connector lines between parent and child rows, while `noGuides` relies on indentation alone. It is orthogonal to `density`, which controls spacing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TreeList","Stack","Text"]}},"35479e906a29dd62935bcb4dfee89487":{"default":{"type":"icon-definition","name":"upload","description":"Upload a file or content.","words":["import","attach file","arrow up tray"],"builtIn":true}},"3548de16cef49cd2ca3d57efa387cf7e":{"doc":{"type":"block","exampleFor":"HoverCard","name":"HoverCard — Link Preview","displayName":"HoverCard — Link Preview","description":"Shows a page summary when hovering a link: title, description, and URL. Use for documentation links, article references, or any URL where a preview helps the user decide whether to click.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["HoverCard","Icon","Layout","Link","Text"],"icons":{"LinkIcon":"link"}}},"35a1b908a9761689660836bd645a8eeb":{"default":{"type":"icon-definition","name":"flipVertical","description":"Mirror an image or shape top to bottom.","words":["mirror","flip","upside down"]}},"35da292a58046c8675d2f5f957ae6f8c":{"doc":{"type":"block","exampleFor":"CommandPaletteGroup","name":"CommandPaletteGroup","displayName":"Command Palette Group","description":"Command palette groups in both data-driven (auxiliaryData.group) and composed (CommandPaletteGroup + CommandPaletteItem) forms.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteGroup","CommandPaletteItem","CommandPaletteList","Layout","Text"]}},"35ed96a208ca1d76ac32885f1df666c0":{"default":{"type":"icon-definition","name":"chart","description":"A chart or analytics.","words":["analytics","graph","stats","metrics"]}},"36110aa6f413b9e47c63c80a674c4c65":{"default":{"type":"icon-definition","name":"gitFork","description":"A fork: a copy of a repository someone develops separately.","words":["fork","repository","version control"]}},"3656f74d7d39695152badd6a99417993":{"doc":{"type":"block","exampleFor":"Heading","name":"Heading — Truncation","displayName":"Heading — Truncation","description":"Single-line and multi-line heading truncation with ellipsis for constrained layouts","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Heading"]}},"3694708ce53026d097830e671685b2f7":{"doc":{"type":"block","exampleFor":"SideNavCollapseButton","name":"SideNavCollapseButton","displayName":"Side Nav Collapse Button","description":"Demonstrates SideNavCollapseButton inside a collapsible SideNav.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","SideNavCollapseButton","SideNavItem","SideNavSection"]}},"36b0cf1fc1ce7f19ca5989bc13b19e8d":{"doc":{"type":"block","exampleFor":"Center","name":"Center — Horizontal Center","displayName":"Center — Horizontal Center","description":"A formatting control group centered with axis=\"horizontal\" in the default horizontal writing mode. In other writing modes, Center currently follows the flex main axis rather than guaranteeing physical horizontal centering.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Center","Card","Icon","IconButton","Layout"],"icons":{"BoldIcon":"bold","ItalicIcon":"italic","LinkIcon":"link","ListBulletIcon":"list","PhotoIcon":"image","UnderlineIcon":"underline"}}},"36b82f789fb1e7b4f3f334176464dd48":{"default":{"type":"icon-definition","name":"viewColumns","description":"Choose which columns are shown.","words":["columns","layout"],"builtIn":true}},"3786022f6ab2d1cff72e526d1a6e89ad":{"doc":{"type":"block","exampleFor":"ChatMessageList","name":"ChatMessageList — Density","displayName":"ChatMessageList — Density","description":"Side-by-side comparison of compact, balanced, and spacious densities. Use compact in sidebars or panels, balanced for most full-page chat, and spacious for long-form reading. Use gap when row spacing needs to differ from density.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Chat","ChatMessageList","Layout","Text","Avatar"]}},"37dae9cc431bca58b2928e3a4dda75b7":{"doc":{"type":"block","exampleFor":"ToggleButton","name":"ToggleButton — Label","displayName":"ToggleButton — Label","description":"Toggle buttons with visible text labels that show a font weight shift on press. Use when the icon alone is not enough to communicate the action.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ToggleButton","ToggleButtonGroup","Layout","Text","Icon"],"icons":{"EyeIcon":"eye","EyeSlashIcon":"eyeSlash","FunnelIcon":"funnel","MapPinIcon":"location"}}},"380b0195a1eefc642544421fbb25ae3f":{"default":{"type":"theme","name":"butter","displayName":"Butter","description":"Warm, creamy yellows with a friendly blue accent. Playful enough for consumer surfaces, soft enough to stay readable.","maintained":false}},"3813e2f2ffdceb6705996a5f38cc83de":{"doc":{"type":"block","exampleFor":"Card","name":"Card — Callout","displayName":"Card — Callout","description":"Muted-variant cards for tips, notes, or supplementary information. Use when content should be visually distinct but not prominent. The muted variant uses a wash background instead of the elevated default, making it feel recessed rather than raised. Works well in sidebars, help panels, or inline callouts.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Card","Layout","Text"]}},"3842180acea2ff7dfdc8c392c8f2bcda":{"doc":{"type":"block","exampleFor":"useTranslator","name":"useTranslator — Load More Footer","displayName":"useTranslator — Load More Footer","description":"A \"Load more\" footer under a list that gets its button label and its \"Showing 3 of 9\" count from the function useTranslator returns, with app message keys supplied per locale through InternationalizationProvider, so switching the provider to French changes both strings.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["InternationalizationProvider","Card","SegmentedControl","List","Text","Button","Layout"]}},"38dce660e138535341b7b63680ae2f86":{"doc":{"type":"block","exampleFor":"CheckboxList","name":"CheckboxList — Select All With Indeterminate","displayName":"CheckboxList — Select All With Indeterminate","description":"A \"select all\" toggle at the top of a checkbox list that switches to an indeterminate dash when only some items are checked, useful for bulk actions like exporting documents or assigning permissions where users often want everything at once.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxList"]}},"3913614247b49182bf8e80fcdcb67b45":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp — Relative","displayName":"Timestamp — Relative","description":"Relative time labels from seconds to months ago, with hover tooltips showing the full date. Use in feeds, comment threads, and activity logs.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timestamp","Layout","Text"]}},"392afb13d4a7e21a4e6a00d2d00025cc":{"default":{"type":"icon-definition","name":"video","description":"A video or camera recording.","words":["camera","record","movie"]}},"3941b70b6b910e81285c3e9ec74d3b37":{"doc":{"type":"block","exampleFor":"ChatMessageBubble","name":"ChatMessageBubble — Variants","displayName":"ChatMessageBubble — Variants","description":"Filled and ghost bubble variants for both user and assistant senders. Use filled for standard messages and ghost when content needs alignment without a visual boundary.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Layout","Text"]}},"3992a6ff91b9d100c36b66d2e72527c9":{"docs":{"type":"generic","name":"project-global-or-both","placement":{"parent":"namespace:global","slot":"guides","order":1},"title":"Project, global, or both","category":"guide","keywords":["which setup","project or global","global or project","both","install in project","npx @astryxdesign/cli","dev dependency","recommended setup","should i install globally"],"description":"Install Astryx in each project and once for your computer: both is the recommended setup, and the two never conflict. What each side gives you, and how to set it up.","sections":[{"id":"both","title":"Both (recommended)","content":[{"type":"prose","text":"Install the CLI in each project and once for your computer. Each side does something the other cannot, and they never conflict:"},{"type":"list","style":"unordered","items":["**In the project**, the CLI version is pinned in `package.json` and the lockfile, so teammates and CI run exactly that version, with nothing fetched at run time.","**Globally**, the astryx command works in every folder, including an empty one before a project exists, and every coding agent on your computer knows Astryx through its agent guide.","**Together**, in a project the project's version always answers, even when you type the global astryx command; outside a project your global version does. Global mode never makes the project's CLI unnecessary."]}]},{"id":"compare","title":"At a glance","content":[{"type":"table","headers":["Setup","What you get","What it costs","Who it is for"],"rows":[["Both","A pinned version in each project, plus docs, components, and search in any folder, and an agent guide for every agent","Two installs to keep current","Most people"],["Project only","A version pinned in the repo, the same for the team and CI","No astryx command outside the project; agents elsewhere don't know Astryx","CI machines and build servers"],["Global only","Docs, components, and search in any folder; every agent knows Astryx","Nothing pinned for a team; a project without its own CLI gets whatever version you started","Agents, prototypes, and quick lookups"]]}]},{"id":"set-up","title":"How to set up each","content":[{"type":"prose","text":"In the project folder (the getting-started guide lists the other packages an app installs):"},{"type":"code","lang":"bash","code":"{@pm install @astryxdesign/core @astryxdesign/cli}\n{@command init}"},{"type":"prose","text":"Once for your computer:"},{"type":"code","lang":"bash","code":"{@pm install @astryxdesign/cli --global}"},{"type":"prose","text":"For both, do both, in either order."}]},{"id":"what-happens","title":"What happens when you have both","content":[{"type":"prose","text":"In a project, the project's version always answers, even when you type the global astryx command; outside a project, your global version does. {@link generic:who-answers}"}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works. To start an app: {@link generic:getting-started}."}]}]}},"3998e7f8717d46ac0c53e42438c8a52d":{"doc":{"type":"block","exampleFor":"ComplexSelector","name":"ComplexSelector — Tree Search","displayName":"Complex Selector — Tree Search","description":"A destination picker that combines a search field with a TreeList hierarchy. TreeList owns tree keyboard navigation; ComplexSelector owns the trigger, popover, and focus restore. Selecting a folder closes the popup.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ComplexSelector","TextInput","TreeList"]}},"3a6aca83cacaf5b32f0f3d882a77eee6":{"default":{"type":"icon-definition","name":"arrowUp","description":"Sort ascending or move up.","words":["ascending","up","increase"],"builtIn":true}},"3b04abdc0c304f266d33ec3af297bdfe":{"doc":{"type":"block","exampleFor":"ScrollableArea","name":"ScrollableArea — Overscroll","displayName":"Scrollable Area — Overscroll","description":"The same section, two edge policies: the default overscroll=\"allow\" hands a gesture that reaches the end to the panel behind it, while overscroll=\"contain\" stops it at the section edge.","isReady":true,"aspectRatio":1,"componentsUsed":["ScrollableArea","Card","Grid"]}},"3b25d8801e4ba019c294ba1bfa6f1f29":{"docs":{"type":"generic","name":"calendar-systems","title":"Calendar systems","placement":{"parent":"namespace:calendars","slot":"guides","order":10},"category":"guide","description":"Choosing a calendar, which calendars need Temporal, server rendering, the lunisolar calendars, and week numbers.","sections":[{"title":"Choose a calendar","content":[{"type":"prose","text":"`Calendar` shows the Gregorian calendar unless you choose another one. Pass `calendar` to `<InternationalizationProvider>` to set it for a subtree. A locale on its own never changes the calendar: `fa-IR` shows Gregorian dates in Persian until you pass `calendar=\"persian\"`. A locale with a `-u-ca-` keyword, such as `th-TH-u-ca-buddhist`, keeps Gregorian dates too; set `calendar` to choose one."},{"type":"code","lang":"tsx","label":"Persian dates in a Persian interface","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\nimport {Calendar} from '@astryxdesign/core/Calendar';\n\n<InternationalizationProvider locale=\"fa-IR\" calendar=\"persian\">\n {/* shows Aban 1405; value and onChange stay '2026-10-30' */}\n <Calendar value={date} onChange={setDate} />\n</InternationalizationProvider>;"},{"type":"prose","text":"Calendar and language are independent: `locale=\"en\" calendar=\"hebrew\"` shows Hebrew dates in English. `Calendar` also takes its own `calendar`, which wins over the provider. Use it when one screen shows two calendars side by side."},{"type":"prose","text":"Values never change with the calendar. `value`, `defaultValue`, `onChange`, `min`, and `max` stay Gregorian ISO dates (`YYYY-MM-DD`) in every calendar, so your data, server code, and existing handlers keep working."}]},{"title":"Supported calendars","content":[{"type":"table","headers":["Calendar","Identifiers","Needs Temporal"],"rows":[["Gregorian","`gregory`, `iso8601`","No"],["Buddhist","`buddhist`","No"],["Minguo","`roc`","No"],["Japanese","`japanese`","No"],["Persian","`persian`","Yes"],["Indian National","`indian`","Yes"],["Hebrew","`hebrew`","Yes"],["Hijri","`islamic-umalqura`, `islamic-civil`, `islamic-tbla`","Yes"],["Chinese","`chinese`","Yes"],["Dangi","`dangi`","Yes"],["Coptic","`coptic`","Yes"],["Ethiopic","`ethiopic`, `ethioaa`","Yes"]]},{"type":"prose","text":"Any other identifier, such as `islamic`, shows Gregorian dates and warns once in development."}]},{"title":"Load Temporal where the runtime lacks it","content":[{"type":"prose","text":"Calendars whose months are not Gregorian use the runtime's `Temporal` for their month lengths, leap months, and years. Chrome and Edge 144 and later, Firefox 139 and later, and Node.js 26 and later ship it. Safari and older runtimes do not. Astryx bundles no polyfill, so Gregorian applications pay nothing."},{"type":"prose","text":"Where `Temporal` is missing, load the full build of `temporal-polyfill` before your app renders. The default build has only the Gregorian calendar (`gregory` and `iso8601`). Load it only where `Temporal` is missing: a native implementation is more accurate for the lunisolar calendars."},{"type":"code","lang":"ts","label":"Load the polyfill only where Temporal is missing","code":"// temporal-setup.ts: import before your app renders, on the server and in the browser\nif (!('Temporal' in globalThis)) {\n await import('temporal-polyfill/full/global');\n}"},{"type":"prose","text":"If you render on the server, load it there too. `Calendar` resolves its calendar during render, so a server without `Temporal` renders Gregorian dates, and a browser with it renders Persian ones: hydration then fails. When both have `Temporal`, or both lack it, they render the same markup."},{"type":"prose","text":"Without a `Temporal` that supports it, a calendar that needs one shows Gregorian dates and warns once in development, on the server and in the browser. The Gregorian-aligned calendars (Buddhist, Minguo, and Japanese) work everywhere without it."}]},{"title":"Lunisolar calendars","content":[{"type":"prose","text":"In the lunisolar calendars, months start on new moons computed from astronomy, and runtimes do not all agree on a few of them. Astryx follows the runtime's `Temporal` and does not correct it."},{"type":"list","style":"unordered","items":["Native `Temporal` in Chrome, Edge, Firefox, and Node.js 26 agrees with official observatory data from 1900 through 2100.","A polyfill reads the platform's `Intl` data instead. Under a polyfill, Node.js 24 starts nine Chinese calendar months and four Dangi calendar months in that range one day apart from the native result: the first month of the 2027 Chinese calendar year starts on February 6 with native `Temporal` and on February 7 under the polyfill. Safari uses the same kind of `Intl` data, so expect the same differences there.","Within one browser, the day numbers a person sees, the dates a screen reader announces, and the value they pick agree. Only two different runtimes can disagree."]},{"type":"prose","text":"If you render on the server, a server and a browser that use different implementations can disagree on one of these month starts. The browser then renders that month differently from the server markup, and React renders that part again on the client during hydration. The `temporal-polyfill/full/global` import keeps a native `Temporal` where one exists, so on its own it leaves Chrome, Edge, and Firefox on native `Temporal` and a Node.js 24 server on the polyfill. When identical server and browser markup for these calendars matters more than matching official data, call `installImplementation()` from `temporal-polyfill/full/shim` on the server and in the browser before rendering: it installs the polyfill even over a native `Temporal`. A server runtime with native `Temporal`, such as Node.js 26, also matches native browsers. Otherwise, do not replace a native `Temporal`: that makes native environments less accurate."}]},{"title":"Week numbers","content":[{"type":"prose","text":"`Calendar`'s `hasWeekNumbers` shows ISO 8601 week numbers in every calendar. Temporal defines week numbering only for `iso8601`, the Gregorian calendar with ISO 8601 weeks."}]}]}},"3b6c72f4596cdc289bbad4e0c47b03ee":{"doc":{"type":"page","name":"File Explorer","displayName":"File Explorer","description":"Hierarchical browser that drills through nested levels as adjacent columns rather than replacing the list each time, with breadcrumb history, switchable list and grid density, and a metadata pane for the selected node.","keywords":["files","folders","directory","tree","finder-style navigator"],"isReady":true,"category":"Tools - File Explorer","icons":{"AdjustmentsHorizontalIcon":"adjustments","Bars4Icon":"list","ChevronLeftIcon":"chevronLeft","ChevronRightIcon":"chevronRight","DocumentIcon":"file","EllipsisHorizontalIcon":"moreHorizontal","FolderIcon":"folder","MagnifyingGlassIcon":"search","ShareIcon":"share","Squares2X2Icon":"gridView","TableCellsIcon":"table","TagIcon":"tag","ViewColumnsIcon":"viewColumns"}}},"3bf7ecc68909844dd2ffebdbe836291b":{"doc":{"type":"block","exampleFor":"SegmentedControlItem","name":"SegmentedControlItem — Basic","displayName":"SegmentedControlItem — Basic","description":"A row of label-only options that switches between a few views, here Board, List, and Timeline. Each item declares a value; the parent control holds the selected value and change handler.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["SegmentedControl","SegmentedControlItem"]}},"3c056beec1c3754b66c052682233bf74":{"doc":{"type":"block","exampleFor":"ProgressBar","name":"ProgressBar — Custom Format","displayName":"ProgressBar — Custom Format","description":"Progress bar with a custom value label showing disk usage in GB.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ProgressBar","Center","VStack","Text"]}},"3c2a08e06720a4fe80a58e3a37688774":{"doc":{"type":"block","exampleFor":"BreadcrumbItem","name":"BreadcrumbItem","displayName":"Breadcrumb Item","description":"BreadcrumbItem represents a single step in a breadcrumb trail, supporting links, icons, current-page markers, and custom link components.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Breadcrumbs","BreadcrumbItem"],"icons":{"HomeIcon":"home"}}},"3c75f5e0f9c4752a4833773aa90d777d":{"docs":{"type":"namespace","name":"building-blocks","placement":{"parent":"namespace:authoring","slot":"guides","order":20},"title":"Building Blocks","summary":"Add components, templates, themes, docs, and codemods, and configure how it behaves.","keywords":["authoring","building blocks","contribute","add to an integration","contribution kinds"],"slots":{"guides":{"title":"Building Blocks","accepts":{"kinds":["generic","namespace"]}}},"blocks":[{"type":"prose","text":"In global mode: every kind your package adds also applies outside projects when users install it for their computer, beside the global CLI; inside a project, only if the project installs it. See {@link namespace:global} and {@link generic:global-integrations}."},{"type":"prose","text":"These are everything you can add to an integration. Mix them however you like. You are not limited to any one thing."},{"type":"list","style":"unordered","items":["One component, or a whole library of them.","Components together with themes and templates.","Only docs, if that is all you need.","Agent guidance, so the AI agents in an app follow your library.","Codemods that update app code across your breaking changes."]},{"type":"prose","text":"Each kind below is its own guide. Open one to learn, in depth, how to add it and how to keep it healthy as your package grows."}]}},"3c798bc82082bcbadaa5f9e881471de8":{"docs":{"type":"generic","name":"structure","title":"Structure","placement":{"parent":"namespace:layout","slot":"guides","order":20},"category":"guide","description":"Rank the content in each region, then pick the weakest container that groups it.","keywords":["type hierarchy","Card","Section","Table","List","containers","rows","secondary","Divider"],"sections":[{"id":"structure","title":"Structure","content":[{"type":"prose","text":"Rank the content in each region, then pick the weakest container that groups it. Type hierarchy and Card or rows cover each step; these rules hold for all of them."},{"type":"list","style":"do","items":["One lead per region; rank with weight and color; one primary action","Leave body copy at its defaults; demote by weight and color, not size","Default to Section; use the weakest container that reads as a group","Render collections as rows (Table or List), edge-to-edge with dividers"]},{"type":"list","style":"dont","items":["Grey and shrink body copy, so a whole region reads as secondary metadata","The disabled color for content; it fails contrast and is for disabled controls","Card soup: each record wrapped in its own Card instead of rendered as rows","Cards inside Cards, or full-width Cards stacked as page structure","Flexbox soup: nested ad-hoc flexboxes instead of Grid, Layout, Section, or FormLayout","Two competing primary actions in one region","Badge as decoration; use StatusDot or Token for status and metadata"]}]},{"id":"type-hierarchy","title":"Type hierarchy","content":[{"type":"prose","text":"Give every region one lead, then rank the rest with weight and color rather than size. Content uses two text colors, primary and secondary, and nothing dimmer: body copy needs no props at all."},{"type":"list","style":"unordered","items":["Body, the default: plain Text with no type, color, or size prop","Lead: Heading at the level matching page depth, or body Text at a heavier weight","Support: step to the secondary color, not to a smaller size","Metadata: the supporting type, or a StatusDot or Token instead of prose"]},{"type":"code","lang":"tsx","label":"Body copy, then one row of four ranks","code":"// Body copy takes no props. Text already defaults to body\n// size in the primary color.\n<Text>Credentials rotate every 90 days</Text>\n\n<HStack gap={2}>\n <Text weight=\"semibold\">Payments API</Text>\n <StatusDot variant=\"success\" label=\"Healthy\" />\n <Text color=\"secondary\">v2.14</Text>\n <Text type=\"supporting\">edited 3h ago</Text>\n</HStack>"},{"type":"prose","text":"Squint test: blurred, you read lead, then support, then groups, in that order. If everything reads at once, raise contrast with weight and color, not borders and not smaller text."}]},{"id":"containers","title":"Card or rows","content":[{"type":"prose","text":"Reach for the weakest container that reads as a group, and escalate only when it fails. Weakest to strongest:"},{"type":"list","style":"ordered","items":["spacing and gap: related items inside one group. The default rhythm","Divider: peers in a dense list or toolbar, or fencing a header from a scrollable body","Section: the default page-structure unit, related content under a heading. No border","Card: a self-contained widget (KPI tile, chart, gallery entry), or a hard boundary around critical content"]},{"type":"code","lang":"tsx","label":"Section as the default unit","code":"// Records are rows in one Section, not one Card each.\n// Recommended row height: 32–40px.\n<Section padding={0}>\n <List header={<Heading level={3}>Members</Heading>} hasDividers>\n {/* ListItem per member */}\n </List>\n</Section>"},{"type":"prose","text":"Decision test: records render as rows, Table for columnar and List for single-line; a self-contained widget or hard boundary is a Card; everything else is a Section."}]}]}},"3c7c434370c4ee81ad503e8dcc99f7ca":{"doc":{"type":"block","exampleFor":"SelectableCard","name":"SelectableCard","displayName":"Selectable Card","description":"A plan picker with single-select radio behavior. Cards show an accent border when selected.","isReady":true,"isShowcase":true,"aspectRatio":2,"componentsUsed":["SelectableCard","Layout","Text"]}},"3d2fa6e4b28b3adb980a63719dac39d2":{"doc":{"type":"block","exampleFor":"Markdown","name":"Markdown — Data Table","displayName":"Markdown — Data Table","description":"Comparison table rendered from a markdown string","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Markdown"]}},"3d3f5e18f5557d8d10c289b0a69c957c":{"doc":{"type":"block","exampleFor":"SideNav","name":"SideNav — End Content","displayName":"SideNav — End Content","description":"Side navigation items with badges, counts, and context menus as trailing content.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","Badge","Text","MoreMenu"]}},"3d632e3b57334d6d46d2b670a8255345":{"doc":{"type":"block","exampleFor":"TreeList","name":"TreeList — File Tree With Icons","displayName":"TreeList — File Tree With Icons","description":"File browser tree with folder and document icons distinguishing directories from files.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TreeList","Icon"],"icons":{"DocumentIcon":"file","FolderIcon":"folder"}}},"3e5fbc4b792856d08a54c0607de450fd":{"doc":{"type":"block","exampleFor":"Pagination","name":"Pagination — Variants","displayName":"Pagination — Variants","description":"All four display variants stacked: dots, compact, count, and pages. A quick visual reference for choosing the right variant.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Pagination","Layout"]}},"3eb1e889a7aa7717f9403e898da1280e":{"doc":{"type":"block","exampleFor":"Popover","name":"Popover — Settings Panel","displayName":"Popover — Settings Panel","description":"Popover with toggle switches for managing user preferences like notifications, dark mode, and sounds.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Popover","Button","Layout","Text","Switch","Divider"]}},"3eb78d4ef39692a2aa86b4d36f9baffc":{"default":{"type":"icon-definition","name":"paddingVertical","description":"Space on the top and bottom sides inside an item.","words":["vertical padding","block padding"]}},"3ed2cc5ee1aadf16bed9da7df70fcf0f":{"default":{"type":"icon-definition","name":"radiusPerCorner","description":"Set the roundness of each corner on its own.","words":["radius per corner","individual corners"]}},"3f079865391697d7d264784e58b8c145":{"doc":{"type":"block","exampleFor":"ChatToolCalls","name":"ChatToolCalls — Simple","displayName":"ChatToolCalls — Simple","description":"A single inline tool call above a collapsible multi-call group with diff stats. Shows both layouts side by side.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatToolCalls","Layout"]}},"3f617a3812610469f120e44707c41edc":{"doc":{"type":"block","exampleFor":"ListItem","name":"ListItem","displayName":"List Item","description":"List items with icons, descriptions, and end content slots demonstrating the full ListItem API.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["List","ListItem"]}},"3f7e8cded46ab08ba12e01e066e0ca92":{"doc":{"type":"block","exampleFor":"Grid","name":"Grid — Dashboard Layout","displayName":"Grid — Dashboard Layout","description":"Dashboard layout with mixed-size widgets and a full-width summary row","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Grid","GridSpan","Card","Text"]}},"3f8a19865dcf40633eb066910be389d0":{"doc":{"type":"block","exampleFor":"DateInput","name":"DateInput — Min/Max Constraints","displayName":"DateInput — Min/Max Constraints","description":"Date input constrained to a min/max window. Use when only certain dates are valid, like booking availability or a fiscal quarter.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DateInput","Layout","Text"]}},"3fc0b19bb2013198f95bb6205bbb1a20":{"doc":{"type":"block","name":"With close button","displayName":"With close button","description":"Pass onOpenChange to render a close button that calls it with false. Drawer renders no close button of its own, so this is the usual visible way to close.","exampleFor":"DrawerHeader","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","DrawerHeader","Button","Layout","LayoutContent","Text"]}},"3fc0cbd5d0ec0fe54825a73e301a3d00":{"docs":{"type":"namespace","name":"describe-the-component","placement":{"parent":"namespace:components","slot":"guides","order":20},"title":"Describe the component","summary":"Write and maintain the default component doc, then adapt it when one family owns several exports or a member needs its own file.","keywords":["component doc","component documentation","component family","subcomponent"],"slots":{"guides":{"title":"Describe the component","accepts":{"kinds":["generic"]}}},"blocks":[{"type":"prose","text":"A component's `.doc.mjs` is part of the integration's public contract, not optional commentary. Astryx uses it for CLI output and search, and people and agents read it to decide whether the component fits and how to use it."},{"type":"list","style":"unordered","items":["Change the source and its `.doc.mjs` together.","Update the doc whenever the public name, import, behavior, props, defaults, examples, or accessibility requirements change.","`integration verify` checks the doc shape and packed import, and `doctor integration components` compares each props table with the component's TypeScript props ({@link generic:check-the-props}). Neither can prove the prose still matches the component."]},{"type":"prose","text":"Every component doc has one stable identity and enough usage guidance for a reader to choose it correctly. Pick the shape below that matches your module."},{"type":"prose","text":"After every source or doc change, read the component back. This output is what people and agents receive."},{"type":"code","lang":"bash","code":"{@command component AcmeCarousel}"}]}},"401b9bee32a52b177b6b97c6b7351bbc":{"doc":{"type":"block","exampleFor":"Popover","name":"Popover — Bottom Sheet Alternative","displayName":"Popover — Bottom Sheet Alternative","description":"Opt-in BottomSheet alternative for compact touch surfaces where actions should use a modal presentation anchored to the bottom edge.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["BottomSheet","Button","Icon","Section","Layout","Text","List"],"icons":{"CalendarIcon":"calendar","TagIcon":"tag","UserIcon":"user"}}},"401fd01beaa7f41c6460994a111e0084":{"doc":{"type":"block","exampleFor":"BottomSheet","name":"Bottom Sheet","displayName":"Bottom Sheet","description":"A mobile filter surface that rises from the bottom edge.","isReady":true,"isShowcase":true,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","CheckboxList","Divider","Heading","Section","Stack"]}},"41389dad46a06d6d6e10712c6958290c":{"doc":{"type":"block","exampleFor":"MultiSelector","name":"MultiSelector — Searchable","displayName":"MultiSelector — Searchable","description":"Multi-select with search filtering and select-all.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MultiSelector","Center"]}},"414f3f1d92ae3d7ac603216b1224d40b":{"doc":{"type":"block","exampleFor":"Dialog","alsoExampleFor":["useImperativeDialog"],"name":"Dialog — Form","displayName":"Dialog — Form","description":"Collects user input without navigating away from the page. Uses purpose=\"form\" so clicking the backdrop won't close it. Use for editing profiles, creating items, or updating settings inline.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Dialog","Layout","Button","TextInput","TextArea"]}},"41565eb12c51b477d0c81002519b7d60":{"default":{"type":"icon-definition","name":"edit","description":"Edit or change something.","words":["pencil","change","modify"]}},"41ddbe841b4d45280ac61224cfe92698":{"docs":{"type":"generic","name":"template-images-media","placement":{"parent":"namespace:template-assets","slot":"guides","order":50},"title":"Images and media","category":"guide","description":"Make sure every image and video still works after the copy, or becomes a clear placeholder the app replaces.","sections":[{"id":"do-not-copy-relative-media","title":"Do not rely on sibling media","content":[{"type":"prose","text":"A reference such as `./hero.png` or `../assets/demo.mp4` stays unchanged in the copied file and normally breaks."},{"type":"list","style":"unordered","items":["Use a stable public URL when the integration owner will continue to host the media.","Use an explicit app-owned placeholder when every app must supply product-specific media.","Use a package-owned JS or CSS entrypoint only when every supported app toolchain can resolve and emit the underlying asset.","Do not assume that a file inside `node_modules` is automatically served at a browser URL."]}]},{"id":"understand-template-assets","title":"Understand `/template-assets`","content":[{"type":"prose","text":"`/template-assets/<path>` is a preview-only fixture path. During copy, Astryx replaces a complete static image reference with an inline neutral SVG placeholder. It replaces a complete static video reference with an empty string because it cannot create a valid inline video."},{"type":"table","headers":["Source reference","Copied result"],"rows":[["`/template-assets/hero.png`","Inline SVG data URL placeholder"],["`/template-assets/demo.mp4`","Empty string"],["`./hero.png` or `/product/hero.png`","Unchanged"],["`https://example.com/template-assets/hero.png`","Unchanged"]]},{"type":"list","style":"unordered","items":["Supported preview image suffixes are SVG, PNG, JPG, JPEG, GIF, WebP, AVIF, and ICO.","Supported preview video suffixes are MP4, WebM, MOV, OGV, and M4V.","Keep the preview path as one complete static string. Concatenation, interpolation, method calls, module imports, and unknown file formats are rejected when Astryx cannot replace them safely.","Use this path only when a placeholder is the intended copied result. It is not a way to ship required product media.","Astryx serves `/template-assets` only in its own docs. A preview you host must serve that path itself."]}]},{"id":"design-a-useful-placeholder","title":"Design a useful placeholder","content":[{"type":"prose","text":"When the app must provide the final asset, keep the replacement point obvious in the copied source. Preserve enough surrounding layout and example data that the template still teaches the pattern without pretending the final content is included."},{"type":"code","lang":"tsx","code":"const HERO_IMAGE = '/acme-dashboard-hero.jpg';\n// Replace HERO_IMAGE with an app-owned public URL before shipping the page.\n\n<img\n src={HERO_IMAGE}\n alt=\"Account health trends for the current quarter\"\n width={1200}\n height={675}\n/>"},{"type":"list","style":"unordered","items":["Use accurate alternative text for informative images and `alt=\"\"` for decoration.","Provide dimensions or an aspect-ratio container so loading does not shift the page.","For video, provide controls, a useful poster, and captions when the content requires them.","Do not leave an inaccessible, expiring, authenticated, or environment-specific URL in copied source."]}]},{"id":"check-media-in-the-app","title":"Check media in the app","content":[{"type":"prose","text":"When you test the template in an app ({@link generic:test-template-in-app}), also confirm the following."},{"type":"list","style":"unordered","items":["The copied source shows the placeholder substitutions you expect.","The network log has no missing, redirected, blocked, or unauthorized media requests.","Each placeholder keeps the layout and says what the app must replace."]}]}]}},"41e3677d4623088c7b42cc2cf8fcdf27":{"doc":{"type":"block","exampleFor":"useTypeahead","name":"useTypeahead — Type to Focus a Country","displayName":"useTypeahead — Type to Focus a Country","description":"A country list of buttons with useListFocus arrow keys and useTypeahead type-to-focus. Typing \"can\" focuses Canada, pressing \"b\" again and again cycles through Belgium, Brazil and Bulgaria, and \"e\" finds Éire with the accent ignored. The hook only reports the match through onMatch, and useListFocus moves focus.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Button","Text","Layout"]}},"4235a25c7ffa3a66e0e5585c1bb1a16e":{"doc":{"type":"block","exampleFor":"Citation","name":"Citation — Source List","displayName":"Citation — Source List","description":"A list of citation sources with icons, as you might show at the end of an AI-generated response or article footer.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Citation","Layout","Text"]}},"42ce02667929692faf72f2f00cf2de3d":{"doc":{"type":"block","exampleFor":"useClickableContainer","name":"useClickableContainer — Clickable Project Card","displayName":"useClickableContainer — Clickable Project Card","description":"A project card that useClickableContainer makes clickable anywhere: a click on the card follows its title link, while the Star button, the owner link and a text selection keep their own behavior, and Ctrl/Cmd+click or middle-click opens the project in a new tab.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","Link","Text","Layout"]}},"42d08dc4a0a07651ad8fd000bed69463":{"default":{"type":"icon-definition","name":"pause","description":"Pause media or a running task.","words":["hold","wait"]}},"4333cf926bb8ea1419dc5d8f5a9b17c9":{"default":{"type":"icon-definition","name":"alignJustify","description":"Justify text so each line fills the full width.","words":["justify","full width text"]}},"4377f809e31f93f4fecc58398307a07f":{"docs":{"type":"namespace","name":"write-good-templates","placement":{"parent":"namespace:templates","slot":"quality","order":10},"title":"How to write good templates","summary":"Write templates people trust: what good means, the rubric that scores it, and how to grade one with an agent.","keywords":["template quality","template rubric","grade template","template review"],"blocks":[{"type":"prose","text":"A good template does more than render. It gives an app a clear product starting point that is easy to understand, safe to change, and complete after Astryx copies it out of the package. A rubric scores that quality so you can grade as you build."},{"type":"list","style":"unordered","items":["Its purpose and primary task are clear before someone reads every detail.","It composes Astryx components instead of rebuilding their behavior with raw HTML or custom styles.","Its hierarchy, spacing, interactions, and reading order still work at narrow widths and in every supported color mode.","Its source, imports, styles, fonts, icons, images, and media still work from the copied location.","Its metadata makes the template easy to find and accurately explains when to use it.","Its example content is realistic enough to expose overflow, empty-space, and hierarchy problems."]},{"type":"prose","text":"Grade the first runnable version, again after each source, doc, dependency, or asset change, and in full before every release. Grade the source, doc, copied file, and rendered app together; none of them is enough alone."},{"type":"list","style":"ordered","items":["Read every scoring rule in {@link generic:template-grading-rubric}.","Fix publication blockers first, then every reasonable deduction.","Repeat the full grade on the packed package in a clean app ({@link generic:test-template-in-app}).","To have an agent grade and improve the template, use {@link generic:grade-template-with-agent}."]},{"type":"prose","text":"Keep each scorecard with its package revision and rubric version."}],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"43a3020520170ba6b4719e6062184bbf":{"doc":{"type":"block","exampleFor":"ChatComposerInput","name":"ChatComposerInput — Controlled","displayName":"ChatComposerInput — Controlled","description":"Controlled chat input with live value display. Use controlled mode when you need to read or transform the input value outside the composer.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","ChatComposerInput","Layout","Text"]}},"43ec24866655305ad1f12b78bbce7149":{"doc":{"type":"block","exampleFor":"InfoTip","name":"InfoTip","displayName":"Info Tip","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["InfoTip","HStack","VStack","Text"]}},"43f26c43baf20cc4bde4f84c503e5b63":{"doc":{"type":"block","exampleFor":"Badge","name":"Badge — Colors","displayName":"Badge — Colors","description":"Tag items with color-coded categories like teams, priorities, or topics. Use the 9 non-semantic color variants when you need to distinguish groups visually.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Badge","Layout","Text"]}},"451df0f43846261ca4a915c08260f6cc":{"doc":{"type":"block","exampleFor":"EmptyState","name":"EmptyState — Compact","displayName":"EmptyState — Compact","description":"Smaller empty state with reduced spacing for constrained areas. Use inside sidebar panels, card widgets, or notification drawers where a full-size empty state would overwhelm the layout.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["EmptyState","Button","Layout","Icon"],"icons":{"InboxIcon":"inbox"}}},"4523064ca6374540ca38e4b98ba8fb3c":{"doc":{"type":"block","exampleFor":"TopNavItem","name":"TopNavItem — Basic","displayName":"TopNavItem — Basic","description":"Navigation links inside a TopNav with one item marked as selected. Use for top-level pages of an application.","isReady":true,"aspectRatio":3,"componentsUsed":["TopNav","TopNavHeading","TopNavItem"]}},"455a330c6087a880ea81f98b9da9dc83":{"docs":{"type":"generic","name":"extend-or-replace","placement":{"parent":"namespace:docs","slot":"guides","order":40},"title":"Extend or replace a topic","category":"guide","description":"Take over a topic or guide, or merge sections into it.","sections":[{"id":"replace-a-topic","title":"Replace a topic","content":[{"type":"prose","text":"Set `replaces` to take over an existing topic, such as Core's `getting-started`. Readers who open the old name get your topic."},{"type":"code","lang":"bash","code":"{@command integration add doc acme-getting-started --replaces getting-started}\n# The old name now opens your topic\n{@command docs getting-started}"},{"type":"code","lang":"javascript","label":"docs/acme-getting-started.doc.mjs","code":"export default {\n type: 'generic',\n name: 'acme-getting-started',\n replaces: 'getting-started',\n title: 'Acme getting started',\n description: 'Install Acme widgets and render your first carousel.',\n sections: [/* ... */],\n};"},{"type":"prose","text":"The docs list shows your topic in place of the old one. Because your topic has its own `name`, the old name keeps resolving to it, so links and agents that learned the old name still land on your topic."}]},{"id":"extend-a-topic","title":"Extend a topic","content":[{"type":"prose","text":"Set `extends` to merge sections into an existing topic instead of owning it. A section replaces the base section it matches, and a section that matches none is added at the end."},{"type":"code","lang":"bash","code":"{@command integration add doc acme-theming --extends theme}\n{@command docs theme --index}"},{"type":"code","lang":"javascript","label":"docs/acme-theming.doc.mjs","code":"export default {\n type: 'generic',\n name: 'acme-theming',\n extends: 'theme',\n title: 'Acme theming',\n description: 'Theme an app that uses Acme widgets.',\n sections: [\n {id: 'quick-start', title: 'Quick Start', content: [/* replaces the base section */]},\n {id: 'use-the-ocean-theme', title: 'Use the ocean theme', content: [/* added at the end */]},\n ],\n};"},{"type":"list","style":"unordered","items":["Read the base topic's keys with `--index`, and give a section that replaces one that key as its `id`. A section that replaces one keeps its place. A section without an `id` matches only a base section with exactly its title, or one whose `id` is the key its title makes, so `Integration Themes` is added beside a base `Integration themes` that has no `id`.","Set `before` or `after` to a base section's key to add a new section there instead of at the end. A key that names no section adds it at the end, and `astryx doctor integration validate` lists a note. An older CLI rejects these fields, so declare an `@astryxdesign/cli` peer range that starts at the release that reads them; `astryx integration verify` warns without it.","The topic keeps the base's title and description, and readers open it by the base's name.","Replace the `Overview` placeholder that `integration add` writes, or it is added to the base topic.","Extend a topic to correct or add to it. A copy made with `replaces` stops getting the owner's fixes."]}]},{"id":"replace-or-extend-a-cli-guide","title":"Replace or extend a CLI guide","content":[{"type":"prose","text":"A guide in the CLI's docs tree has a route rather than a topic name. Set `replaces` or `extends` to that route to change the guide for every app that installs your package: say what differs for your users on the page agents already read."},{"type":"code","lang":"javascript","label":"docs/acme-quick-start.doc.mjs","code":"export default {\n type: 'generic',\n name: 'acme-quick-start',\n extends: 'authoring/quick-start',\n title: 'Acme quick start',\n description: 'What differs when you build integrations at Acme.',\n sections: [\n {id: 'use-the-acme-registry', title: 'Use the Acme registry', before: 'fill-in-package-json', content: [/* ... */]},\n ],\n};"},{"type":"list","style":"unordered","items":["Your doc stays a flat topic: do not give it a `placement`. Readers open the guide by its route, never by your `name`.","With `replaces`, readers of the route get your doc, under your package. With `extends`, each section you add or replace names your package.","A name that holds no topic or guide, such as a namespace, changes nothing; `astryx doctor integration validate` lists it as a note, with the guides below a namespace."]},{"type":"code","lang":"bash","code":"# Every guide route, by namespace\nastryx docs authoring --depth all\nastryx docs cli --depth all\n# The keys to place sections by\nastryx docs authoring/quick-start --index"}]},{"id":"check-overlaps-with-core-topics","title":"Check overlaps with Core topics","content":[{"type":"prose","text":"A topic sets `replaces` or `extends`, never both, and a placed guide sets neither. A topic that uses a Core topic's name with neither is an accidental conflict: apps keep reading the Core topic."},{"type":"code","lang":"bash","code":"{@command doctor integration docs}"},{"type":"code","lang":"text","code":"severity: [info]\ntopic: acme-getting-started\nrelationship: replaces\ncoreTopic: getting-started\nmessage: Intentional override: \"acme-getting-started\" replaces the Core topic \"getting-started\".\n\nseverity: [fail]\ntopic: color\nrelationship: accidental\ncoreTopic: color\nmessage: Accidental conflict: \"color\" is already a Core topic. Rename it, declare replaces: 'color' to take it over, or declare extends: 'color' to merge sections."},{"type":"list","style":"unordered","items":["An intentional overlap prints as `[info]`. An accidental one fails with exit code 1.","A topic that sets both fails as `invalid_doc`, and so does a placed guide that sets either one."]}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: a doc that extends or replaces a topic from a package installed for the computer applies in folders outside any project; inside a project, only those from packages the project installs apply. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"462180f60f8122119e1b102080913179":{"doc":{"type":"block","exampleFor":"Toast","name":"Toast — Deduplication","displayName":"Toast — Deduplication","description":"Prevent duplicate toasts with uniqueID. Use ignore to keep the first toast, or overwrite to replace it with updated content like a progress percentage.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toast","Button","Layout","Text"]}},"46449308aaa5c6cf9055abc5fd54d4f5":{"doc":{"type":"block","exampleFor":"Tooltip","name":"Tooltip — Action Bar","displayName":"Tooltip — Action Bar","description":"Tooltips on an action button bar with contextual descriptions.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Tooltip","Button","HStack","Center"]}},"46ce1755596e2a1615ce6bab4ec9003d":{"doc":{"type":"block","exampleFor":"AppShell","name":"AppShell — Content Only","displayName":"AppShell — Content Only","description":"Minimal shell with no navigation, useful for full-bleed pages, auth screens, or embedded views.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AppShell","Heading","Text","VStack"]}},"46d389a0aef35e0471e32671e71af9f7":{"docs":{"name":"getting-started","title":"Getting Started","category":"guide","description":"Add the design system to your project and start building.","keywords":["quick start","setup","install"],"sections":[{"title":"Quick Start with AI","content":[{"type":"prose","text":"Paste this into your AI coding tool and let it handle the setup:"},{"type":"code","lang":"text","label":"Set up the design system","code":"Install @astryxdesign/core, @stylexjs/stylex, @astryxdesign/theme-neutral, and @astryxdesign/cli in this project, then run `{@command init}` to set up agent docs. Read the generated files to learn the conventions."},{"type":"prose","text":"Then give it a look. Every app gets a theme whether or not anyone picks one, so it is worth one question at setup rather than revisiting screens later that were built around the wrong look:"},{"type":"code","lang":"text","label":"Give it a look","code":"Ask me what look and feel this app should have. Run `{@command theme list}`, install the closest theme package, and run `theme add <slug>`; use `--package` when owners share a slug. Import `themes` and `defaultThemeSlug` from the generated module once and pass `themes[defaultThemeSlug]` to `<Theme>`. Customize with `defineTheme({extends: importedTheme, ...})`. Use `theme eject` only when I ask for an independent source fork. Default to neutral if I have no preference, and show me the result before moving on."}]},{"title":"Install","content":[{"type":"prose","text":"Astryx requires React 19 or later: `react` and `react-dom` >= 19.0.0 are peer dependencies of `@astryxdesign/core`."},{"type":"prose","text":"Add the core package and its `@stylexjs/stylex` peer dependency, plus a theme and the CLI."},{"type":"code","lang":"bash","label":"Terminal","code":"{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral @astryxdesign/cli}"},{"type":"prose","text":"Then run `{@command init}` to install the AI agent cheat sheet (AGENTS.md/CLAUDE.md). It's non-interactive; no prompts; so it's safe for AI agents, CI, and scripts. Add `--all` for pointers to the theme and page-building workflows."},{"type":"code","lang":"bash","label":"Terminal","code":"{@command init}"}]},{"id":"upgrade","title":"Upgrade","content":[{"type":"prose","text":"Upgrade every Astryx package your app lists in one command, to the same release. Each theme names the exact Core release it works with, so a theme left on an older release no longer matches the new Core."},{"type":"code","lang":"bash","label":"Terminal","code":"{@pm install @astryxdesign/core@latest @astryxdesign/theme-neutral@latest @astryxdesign/cli@latest}\n{@command upgrade --from <old Core version> --apply}"},{"type":"prose","text":"Add every other Astryx package your app lists to the same command, and pass the Core version you had before to `--from`. If your package manager holds new releases back, exempt the whole `@astryxdesign/*` scope; in pnpm, `minimumReleaseAgeExclude: ['@astryxdesign/*']`. Exempting only some of its packages installs packages from different releases side by side."}]},{"id":"install-once","title":"Install once, use everywhere","content":[{"type":"prose","text":"Install the CLI once for your computer too, and the astryx command works in any folder, for you and for any coding agent, even before a project exists. Inside a project, the project's own version still answers, so a global install never changes what your team and CI get. Keep it in the project as well; that is the recommended setup."},{"type":"code","lang":"bash","label":"Terminal","code":"{@pm install @astryxdesign/cli --global}"},{"type":"prose","text":"Project, global, or both: {@link generic:project-global-or-both}. Everything else about global mode: {@link namespace:global}."}]},{"title":"Add base CSS and a theme","content":[{"type":"prose","text":"Import the reset and base styles in your global CSS. Then run `{@command theme add neutral}`; the generated app module imports the theme’s production CSS and font CSS."},{"type":"code","lang":"css","label":"globals.css","code":"@import '@astryxdesign/core/reset.css';\n@import '@astryxdesign/core/astryx.css';"},{"type":"prose","text":"Run `{@command theme list}` to see every theme."},{"type":"code","lang":"tsx","label":"App root","code":"import {Theme} from '@astryxdesign/core/theme';\nimport {themes, defaultThemeSlug} from './astryx-themes';\n\n<Theme theme={themes[defaultThemeSlug]}><App /></Theme>"},{"type":"list","style":"unordered","items":["`@astryxdesign/theme-neutral`: muted and minimal; a good starting point","`@astryxdesign/theme-butter`: warm, golden tones with blue accents","`@astryxdesign/theme-chocolate`: rich chocolate and caramel tones","`@astryxdesign/theme-gothic`: dark-only theme with ink and noir influences","`@astryxdesign/theme-matcha`: earthy greens and botanical tones","`@astryxdesign/theme-stone`: warm neutrals inspired by sandstone","`@astryxdesign/theme-y2k`: playful early-2000s pop aesthetic"]},{"type":"prose","text":"These stylesheets are cascade-layered: the reset loads in @layer reset and component styles in @layer astryx-base. If your project has existing global CSS, a legacy reset, or Tailwind, declare the layer order explicitly and assign every stylesheet to a layer deliberately: unlayered styles and later layers both override astryx-base regardless of specificity. Before building screens, read the two cascade layer sections of {@link generic:migration-setup}."},{"type":"prose","text":"Run {@link generic:use-a-theme} for the full theming guide."}]},{"title":"Add your first component","content":[{"type":"prose","text":"Import each component from its own entry, the path `{@command component <Name>}` prints. This keeps bundles small and makes intent clear."},{"type":"code","lang":"tsx","label":"app/page.tsx","code":"import {Button} from '@astryxdesign/core/Button';\nimport {VStack} from '@astryxdesign/core/VStack';\n\nexport default function Page() {\n return (\n <VStack gap={2}>\n <Button label=\"Hello Astryx\" onClick={() => alert('Hi!')} />\n </VStack>\n );\n}"}]},{"title":"Customize with StyleX","content":[{"type":"prose","text":"Astryx components support various styling solutions, from plain CSS and `className` to Tailwind and CSS-in-JS. See {@link namespace:styling} for the full guide. Astryx also has a deep integration with [StyleX](https://stylexjs.com/), an atomic CSS-in-JS library: create styles with `stylex.create()` and pass them to components with the `xstyle` prop."},{"type":"code","lang":"tsx","label":"Style overrides","code":"import * as stylex from '@stylexjs/stylex';\n\nconst overrides = stylex.create({\n save: { alignSelf: 'flex-end', marginTop: 16 },\n});\n\n<Button label=\"Save\" xstyle={overrides.save} />"}]},{"title":"Example Apps","content":[{"type":"prose","text":"For a full working project, clone one of the example apps from the repo. These are complete setups with routing, theming, and components wired together."},{"type":"table","headers":["Example","Stack","Path"],"rows":[["Next.js","Next.js + theme CSS","[apps/example-nextjs](https://github.com/meta/astryx/tree/main/apps/example-nextjs)"],["Next.js + StyleX","Next.js + StyleX for custom styles","[apps/example-nextjs-stylex](https://github.com/meta/astryx/tree/main/apps/example-nextjs-stylex)"],["Next.js + Tailwind","Next.js + Tailwind bridge","[apps/example-nextjs-tailwind](https://github.com/meta/astryx/tree/main/apps/example-nextjs-tailwind)"],["Vite + Tailwind","Vite + Tailwind bridge","[apps/example-vite-tailwind](https://github.com/meta/astryx/tree/main/apps/example-vite-tailwind)"]]},{"type":"code","lang":"bash","label":"Clone and run an example","code":"git clone https://github.com/meta/astryx.git\ncd astryx/apps/example-nextjs\n{@pm install}\n{@pm run dev}"}]},{"title":"Explore the CLI","content":[{"type":"prose","text":"The CLI is your reference for components, tokens, templates, and docs. For reliable invocation (especially with AI assistants), add this script to your package.json:"},{"type":"code","lang":"json","label":"package.json","code":"\"scripts\": {\n \"astryx\": \"node node_modules/@astryxdesign/cli/clients/cli/bin/astryx.mjs\"\n}"},{"type":"prose","text":"Then discover what's available:"},{"type":"code","lang":"bash","label":"Terminal","code":"{@command component} # list all components\n{@command component Button} # props, usage, theming for Button\n{@command docs} # list all doc topics\n{@command template --list} # available page templates\n{@command docs tokens} # spacing, color, radius reference"}]}]}},"46f572ca9cafb46d879e134cc8d2b04a":{"doc":{"type":"block","exampleFor":"MoreMenu","name":"MoreMenu — With Sections","displayName":"MoreMenu — With Sections","description":"A three-dot menu with actions organized into labeled groups.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MoreMenu"],"icons":{"DocumentDuplicateIcon":"copy","PencilIcon":"edit","TrashIcon":"delete"}}},"47801ebc6f529d7da953abb4749938e1":{"doc":{"type":"block","exampleFor":"TopNavHeading","name":"TopNavHeading","displayName":"Top Nav Heading","description":"Demonstrates TopNavHeading with a logo and text, both as a plain display and as a clickable link.","isReady":true,"isShowcase":true,"aspectRatio":3,"componentsUsed":["TopNav","TopNavHeading"]}},"47b419bef7a26b4d1fa28a9d3a38341d":{"doc":{"type":"block","exampleFor":"useMergedRefs","name":"useMergedRefs — AutoGrowTextArea","displayName":"useMergedRefs — AutoGrowTextArea","description":"An AutoGrowTextArea that forwards the caller's ref and also keeps its own ref to measure scrollHeight. The merged ref attaches both to the same textarea: it resizes itself while a parent button focuses it through the forwarded ref.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","Layout"]}},"47ee5c71f6cbf777e6bbd3599c8102d8":{"default":{"type":"icon-definition","name":"documentSearch","description":"Inspect a document or a detailed log.","words":["inspect","logging","find in document"]}},"484e2add2c3b04edff204eed7f1aadbc":{"docs":{"type":"namespace","name":"migration","title":"Migration","summary":"Migrate an existing Tailwind, shadcn, or Radix app to the design system incrementally — setup, component replacement, and verification.","keywords":["migration","migration guide","migrate","Tailwind","shadcn","Radix","coexistence"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"486525d015e5b2953b8d3a163dabc51f":{"doc":{"type":"block","exampleFor":"useTruncation","name":"useTruncation — Tooltip on Cut-Off Text","displayName":"useTruncation — Tooltip on Cut-Off Text","description":"A narrow table column shows the full path in a Tooltip only where useTruncation reports the text is cut off; the short path shows none. One cell clamped to two lines shows the multi-line case.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Table","Tooltip"]}},"4871c014bf198a8059cdf86924bad9e7":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout — Basic Card","displayName":"Layout — Basic Card","description":"A card layout with header, scrollable content area, and footer with action buttons.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","LayoutHeader","LayoutContent","LayoutFooter","Card","Button","HStack","VStack","Text","Heading"]}},"48922eed0f43dfcccc68e8c43c38b385":{"doc":{"type":"block","exampleFor":"CodeBlock","name":"Code — Config","displayName":"Code — Config","description":"A JSON configuration file with a title bar and line numbers. The title prop adds a filename label in the header so readers know which file the code belongs to.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CodeBlock"]}},"48a3728ce56e9b64aa04d8b20b6a3ac6":{"docs":{"type":"generic","name":"template-styles","placement":{"parent":"namespace:template-assets","slot":"guides","order":20},"title":"Styles","category":"guide","description":"Keep the copied UI on the app's theme: use Astryx props and tokens first, keep editable styles in the file, and ship shared CSS from your package.","sections":[{"id":"start-with-astryx","title":"Start with Astryx","content":[{"type":"prose","text":"Use Astryx component props, layout primitives, and design tokens before writing custom CSS. This keeps the copied result aligned with the host theme and reduces the styling contract an app inherits."},{"type":"list","style":"unordered","items":["Use Stack and Grid spacing props instead of margins between children.","Use component variants, sizes, padding, and alignment props before restyling internals.","Use public theme token exports for a value that Astryx does not expose as a prop.","Do not copy private generated class names or target component internals with selectors."]}]},{"id":"keep-editable-styles-with-the-source","title":"Keep editable styles with the source","content":[{"type":"prose","text":"When a style belongs to the editable starting point, define it in the template file."},{"type":"code","lang":"tsx","code":"import * as stylex from '@stylexjs/stylex';\nimport {colorVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n trend: {\n color: colorVars['--color-text-success'],\n minWidth: 0,\n },\n});\n\n// Later: <Text xstyle={styles.trend}>Up 12%</Text>"},{"type":"prose","text":"Use custom declarations only when no Astryx prop or token fits. Each one counts in the Custom CSS category of {@link generic:template-grading-rubric}."}]},{"id":"publish-shared-css","title":"Publish shared CSS deliberately","content":[{"type":"prose","text":"When a stylesheet must stay package-owned, import it from the template by its public package path."},{"type":"code","lang":"tsx","label":"templates/acme-dashboard.tsx","code":"import '@acme/astryx-widgets/styles/acme-dashboard.css';"},{"type":"prose","text":"Then export that path and include the file in the package ({@link generic:export-template-assets}). TypeScript 6 and later check side-effect imports by default, so this import type-checks only when the app or its framework declares `*.css` modules."}]}]}},"48b55a1f8b5eb257ed088fffba093a2e":{"doc":{"type":"block","exampleFor":"DateInput","name":"DateInput — Validation","displayName":"DateInput — Validation","description":"Date input in all three status states: error, warning, and success. Use to surface validation issues, caution the user, or confirm a valid selection.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["DateInput","Layout","Text"]}},"499ff93fb78c88e656778a4a9682a2cd":{"doc":{"type":"block","exampleFor":"FieldLabel","name":"FieldLabel — Basic","displayName":"FieldLabel — Basic","description":"Standalone labels with required and optional indicators and a helper description. Use when labeling a custom control that does not render its own label.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Field","FieldLabel","VStack"]}},"49f6c859b41223c299b01d354648a088":{"docs":{"type":"generic","name":"type-scale","title":"Type Scale","placement":{"parent":"namespace:typography","slot":"guides","order":20},"category":"foundations","description":"Line height, semantic type scale tokens, display text, Heading and Text components, custom type scales via defineTheme, and following the reader's text size on iOS.","keywords":["line height","leading","defineTheme","base","ratio","dynamic type","text size"],"sections":[{"title":"Line Height","content":[{"type":"prose","text":"Line heights are computed from a tiered target ratio and snapped to a 4px vertical grid. Small text (<20px) targets 1.5, medium text (20–31px) targets 1.4, and large text (≥32px) targets 1.25. A minimum gap of fontSize + 4px is enforced. The result is a unitless ratio stored in each --text-*-leading token."},{"type":"prose","text":"The 4px grid matters: every line box aligns to 4px increments, which keeps baselines, spacing, and component heights predictable. The expandTypeScale utility computes these automatically when you provide a base and ratio, so you should never need to set line-height manually."}]},{"title":"Type Scale","content":[{"type":"prose","text":"Semantic tokens that combine size, weight, and line-height into a single type style. Each token triplet (--text-*-size, --text-*-weight, --text-*-leading) is consumed by Text and Heading. Use the component props rather than composing raw font tokens."},{"type":"token-ref","topic":"tokens","section":"Type Scale Tokens"}]},{"title":"Display Text","content":[{"type":"prose","text":"Display variants (display-1, display-2, display-3) continue the geometric progression above heading-1, at steps +6, +5, and +4. They use normal weight (400) instead of semibold, and tighter line-heights (~1.2), since large text reads better with less leading. Use display types for hero banners, marketing headlines, and data callouts, not for document headings."},{"type":"prose","text":"Display text often needs heading semantics for accessibility. Use the type prop on Heading to apply display styling while preserving the correct HTML element: `<Heading level={1} type=\"display-1\">` gives you display-1 styling with an `<h1>` tag, so screen readers see the correct document outline."}]},{"id":"usage","title":"Headings and text","content":[{"type":"prose","text":"Use `Heading` for document structure and `Text` for everything else; each maps its props to the type scale tokens."},{"type":"code","lang":"tsx","label":"Heading for document structure","code":"import {Heading} from '@astryxdesign/core/Heading';\n\n// Heading levels map to semantic tokens: level 1 → --text-heading-1-*\n<Heading level={1}>Page Title</Heading>\n<Heading level={2}>Section</Heading>\n<Heading level={3}>Subsection</Heading>\n\n// Display type for hero/marketing headings — level sets the HTML element\n<Heading level={1} type=\"display-1\">Hero Title</Heading>\n<Heading level={2} type=\"display-2\">$1.2M Revenue</Heading>\n\n// Override the accessibility level when visual ≠ document hierarchy\n<Heading level={2} accessibilityLevel={3}>\n Sidebar Section\n</Heading>"},{"type":"code","lang":"tsx","label":"Text for body, label, and display text","code":"import {Text} from '@astryxdesign/core/Text';\n\n<Text type=\"body\">Body text at the base scale.</Text>\n<Text type=\"large\">Emphasized body text.</Text>\n<Text type=\"label\">Form label</Text>\n<Text type=\"supporting\">Helper text, timestamps, metadata.</Text>\n<Text type=\"code\">{'const x = 1;'}</Text>\n\n// Display without heading semantics (data callouts, decorative)\n<Text type=\"display-2\">$1.2M Revenue</Text>"}]},{"id":"custom-type-scale","title":"Custom type scale","content":[{"type":"prose","text":"Change the whole ramp with `base` and `ratio` in `defineTheme`; every font size and line height recomputes from them."},{"type":"code","lang":"tsx","label":"Customizing the type scale via defineTheme","code":"import {defineTheme} from '@astryxdesign/core/theme';\n\n// Adjust the entire ramp holistically with base and ratio\nconst editorialTheme = defineTheme({\n name: 'editorial',\n typography: {\n scale: { base: 16, ratio: 1.25 }, // airy / article feel\n body: { family: 'Geist', fallbacks: '-apple-system, sans-serif' },\n heading: { weight: 'bold' },\n code: { family: 'Geist Mono', fallbacks: '\"SF Mono\", monospace' },\n },\n});\n\nconst denseTheme = defineTheme({\n name: 'dense',\n typography: {\n scale: { base: 12, ratio: 1.125 }, // compact / data-dense UI\n },\n});"}]},{"id":"dynamic-type","title":"Following the reader's text size on iOS","content":[{"type":"prose","text":"On iPhone, readers pick a text size in Settings (Display & Text Size, then Larger Text), and native apps grow or shrink their text with it. Every theme does the same in Safari on iPhone, which exposes that choice through `font: -apple-system-body`: each font size follows the reader's choice on the curve of the iOS text style it plays, so body text scales like Body, `heading-1` like Title 1 and display text like Large Title, and every role keeps its order. A size the theme fixes at a length, such as a 12px supporting size, scales on the curve of the step it reads by default; a size in `em` or `%` follows its parent, and one that reads a variable follows that variable. At the default size every font size is the theme's own. The family, spacing, radius and the root font size never change, line heights keep their ratios, text inputs keep their 16px floor on iOS, and on Android the system font scale grows every font size through `env(preferred-text-scale)` where the browser reports it; browsers with neither see no change. There is nothing to turn on: no theme option, prop or document attribute."},{"type":"prose","text":"Fixed-height controls such as the text inputs keep their height, so their text can overflow at the accessibility sizes. A labelled `Button` grows with its label."}]}]}},"4a1d2b037d5489aab473f1b29ea136b2":{"docs":{"type":"generic","name":"tokens-data","title":"Data Visualization Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":20},"category":"foundations","description":"Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import dataVars from @astryxdesign/core/theme/dataTokens.stylex for CSS-capable code. Source compilation emits the complete 56-variable group when any member is retained and none for an unused graph. Prebuilt CSS consumers load @astryxdesign/core/astryx.css, which defines the complete group for the already-compiled dataVars entry.","sections":[{"title":"Data Visualization Tokens","content":[{"type":"prose","text":"Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import dataVars from @astryxdesign/core/theme/dataTokens.stylex for CSS-capable code. Source compilation emits the complete 56-variable group when any member is retained and none for an unused graph. Prebuilt CSS consumers load @astryxdesign/core/astryx.css, which defines the complete group for the already-compiled dataVars entry."},{"type":"table","headers":["Token","Core default (light)","Core default (dark)"],"rows":[["--color-data-categorical-blue","#0171E3","#0171E3"],["--color-data-categorical-orange","#EB6E00","#EB6E00"],["--color-data-categorical-purple","#6B1EFD","#6B1EFD"],["--color-data-categorical-green","#0B991F","#0B991F"],["--color-data-categorical-pink","#F351C0","#F351C0"],["--color-data-categorical-cyan","#0171A4","#0171A4"],["--color-data-categorical-red","#F5394F","#F5394F"],["--color-data-categorical-teal","#08A3A3","#08A3A3"],["--color-data-categorical-brown","#965E03","#965E03"],["--color-data-categorical-indigo","#6F8AFF","#6F8AFF"],["--color-data-neutral","#8494A3","#8C939B"],["--color-data-blue-5","#02165E","#02165E"],["--color-data-blue-4","#004CBC","#004CBC"],["--color-data-blue-3","#2694FE","#2694FE"],["--color-data-blue-2","#78BEFF","#78BEFF"],["--color-data-blue-1","#DBECFF","#DBECFF"],["--color-data-shamrock-5","#0B603D","#0B603D"],["--color-data-shamrock-4","#138546","#138546"],["--color-data-shamrock-3","#24BB5E","#24BB5E"],["--color-data-shamrock-2","#8EF7AA","#8EF7AA"],["--color-data-shamrock-1","#D6FEE4","#D6FEE4"],["--color-data-orange-5","#A13F04","#A13F04"],["--color-data-orange-4","#D66100","#D66100"],["--color-data-orange-3","#FD9537","#FD9537"],["--color-data-orange-2","#FDB876","#FDB876"],["--color-data-orange-1","#FFE6CF","#FFE6CF"],["--color-data-pink-5","#8E1073","#8E1073"],["--color-data-pink-4","#D123A1","#D123A1"],["--color-data-pink-3","#F989D3","#F989D3"],["--color-data-pink-2","#FEADE3","#FEADE3"],["--color-data-pink-1","#FCE3F4","#FCE3F4"],["--color-data-purple-5","#3E0697","#3E0697"],["--color-data-purple-4","#6B1EFD","#6B1EFD"],["--color-data-purple-3","#9081FF","#9081FF"],["--color-data-purple-2","#B3B0FE","#B3B0FE"],["--color-data-purple-1","#E8E8FB","#E8E8FB"],["--color-data-red-5","#9D0519","#9D0519"],["--color-data-red-4","#D31130","#D31130"],["--color-data-red-3","#FB7D87","#FB7D87"],["--color-data-red-2","#FFB2B8","#FFB2B8"],["--color-data-red-1","#FEE4E6","#FEE4E6"],["--color-data-teal-5","#08767D","#08767D"],["--color-data-teal-4","#0C9293","#0C9293"],["--color-data-teal-3","#0DB7AF","#0DB7AF"],["--color-data-teal-2","#6CE6D8","#6CE6D8"],["--color-data-teal-1","#D7FCF8","#D7FCF8"],["--color-data-yellow-5","#8A5001","#8A5001"],["--color-data-yellow-4","#D69804","#D69804"],["--color-data-yellow-3","#FBCE03","#FBCE03"],["--color-data-yellow-2","#FCEC85","#FCEC85"],["--color-data-yellow-1","#FDF6BA","#FDF6BA"],["--color-data-gray-5","#25363F","#333338"],["--color-data-gray-4","#5D6C7B","#666A72"],["--color-data-gray-3","#AFB9C4","#B2B8BE"],["--color-data-gray-2","#CCD3DB","#D0D3D6"],["--color-data-gray-1","#F1F4F7","#F2F4F6"]]}],"previewType":"swatch"}]}},"4a4d6a27360b71f3faf077c953a1efb1":{"docs":{"type":"generic","name":"scaffold","title":"Scaffold","placement":{"parent":"namespace:layout","slot":"guides","order":10},"category":"guide","description":"Pick the shell, budget each region, and choose navigation, before any content exists.","keywords":["shell","navigation","frame","region","width budget"],"sections":[{"id":"scaffold","title":"Scaffold","content":[{"type":"prose","text":"Pick the shell, budget each region, and choose navigation, before any content exists. Shell and Navigation cover each step; these rules hold for both."},{"type":"list","style":"do","items":["Decide the frame, region width budgets, and fill or capped before any content exists","State the reason for the navigation choice, or inherit the template pairing","Reserve raw px for structural widths; interior spacing uses tokens"]},{"type":"list","style":"dont","items":["Build content-first and wrap each section in a Card, producing a padded scroll column","Stretch prose, forms, or lists across a wide region instead of capping with contentWidth","SideNav when the nav is really filters or controls, or must hold wide elements like breadcrumbs","TopNav when top-slot ownership is unclear, or the hierarchy is deep or still growing","Both bars when the ecosystem layer is thin, so the second only wastes space","Deviate from the template navigation pairing without a stated reason"]}]},{"id":"shell","title":"Shell","content":[{"type":"prose","text":"Pick the shell and budget its regions before any content exists. Structural widths are the one place raw px belongs; everything inside them uses the spacing scale."},{"type":"list","style":"ordered","items":["Pick the frame: AppShell for nav apps, Layout with LayoutPanel in a start or end slot for multi-pane tools, or a plain content column for documents and forms","Give every fixed region a width budget, so no region has to negotiate for space at render time","Read the content to set fill or capped: tables, charts, and boards fill their region; prose, forms, and lists cap with Layout contentWidth so lines never over-stretch","Set each region container policy, rows or card grid, before writing content"]},{"type":"code","lang":"tsx","label":"A three-region tool frame","code":"// Recommended budgets: SideNav 240–280, icon rail 64–72,\n// side panel 340–420, filter rail 220–260.\n<AppShell sideNav={<SideNav>{/* nav items */}</SideNav>}>\n <Layout\n content={<LayoutContent>{/* table fills its region */}</LayoutContent>}\n end={<LayoutPanel width={380} hasDivider>{/* detail */}</LayoutPanel>}\n />\n</AppShell>\n\n// Capped instead: 640 suits text and forms, 960 mixed content.\n// Dividers stay full-bleed.\n<Layout\n contentWidth={640}\n content={<LayoutContent>{/* settings form */}</LayoutContent>}\n/>"},{"type":"prose","text":"Verify: every region has a width budget, a fill-or-capped decision, and a container policy written down before any content exists."}]},{"id":"navigation","title":"Navigation","content":[{"type":"prose","text":"When the frame leaves navigation open, default to SideNav: it absorbs destinations you have not planned yet. App type and destination count are guiding indicators, not determining rules."},{"type":"list","style":"unordered","items":["SideNav, the default: grouping needed, customizable nav, items with secondary actions, or nav that collapses. Trackers, consoles, and settings usually start here","TopNav: a shallow nav you expect to stay shallow, context that must stay visible, or a control- and filter-heavy page; add a TabList for a second level. Media libraries often sit here, over grid content","Both: a genuine suite, where TopNav carries ecosystem-wide concerns (context switcher, global search) and SideNav carries product nav","Neither: messaging and feeds use a column frame of rail, nav, stream, and panel"]},{"type":"code","lang":"tsx","label":"Navigation passed to AppShell","code":"// Default: product nav on the side.\n<AppShell sideNav={<SideNav>{/* items */}</SideNav>} />\n\n// Shallow, stable nav on a control-heavy page.\n<AppShell topNav={<TopNav>{/* items */}</TopNav>} />\n\n// Suite: ecosystem concerns on top, product nav on the side.\n<AppShell topNav={<TopNav />} sideNav={<SideNav />} />"},{"type":"prose","text":"Verify: you can state the reason in one sentence, and the choice still holds if the nav doubles in size. `{@command build \"<idea>\"}` names the template to start from; scaffold it and the pairing is already wired up."}]}]}},"4a4fa5eff9fc94321dffaaba6d9e1233":{"doc":{"type":"block","exampleFor":"ChatSendButton","name":"ChatSendButton — Custom Icon","displayName":"ChatSendButton — Custom Icon","description":"Send buttons with custom icons via sendIcon and stopIcon props. Use to match the personality of the chat experience: a paper airplane for messaging, sparkles for AI generation, or a check mark for confirmation flows.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatSendButton","Icon","Layout","Text"],"icons":{"CheckIcon":"check","PaperAirplaneIcon":"send","SparklesIcon":"sparkles","XCircleIcon":"error"}}},"4a66e3cac1847b64a746dcdf4e940efa":{"default":{"type":"icon-definition","name":"rotate","description":"Rotate an image, shape, or view.","words":["turn","spin","orientation"]}},"4a86deac29a3d4bcc2b5619c7edccab9":{"doc":{"type":"block","exampleFor":"FormLayout","name":"FormLayout — Nested Address Form","displayName":"FormLayout — Nested Address Form","description":"Address form mixing vertical and horizontal layouts for grouped fields","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["FormLayout","TextInput"]}},"4b7c48983c4bce4067dd2177c26f3ba3":{"docs":{"type":"namespace","name":"configuration","placement":{"parent":"namespace:building-blocks","slot":"guides","order":60},"title":"Configuration","summary":"Set how your integration behaves in an app: agent guidance, the command your users run, debug and gap reports, and more as it grows.","keywords":["configuration","agent guidance","cliCommand","debug","gap reports"],"slots":{"guides":{"title":"Configuration","accepts":{"kinds":["generic","namespace"]}}},"blocks":[{"type":"prose","text":"In global mode: installed for the computer, beside the global CLI, your package's manifest is read as it is in a project and applies in folders outside any project; peer ranges are checked against the global CLI's release. See {@link namespace:global} and {@link generic:global-integrations}."},{"type":"prose","text":"Beyond the things you ship, an integration can set how it behaves in an app: the guidance it gives the AI agents working there, the command its users run the CLI with, and the record it keeps of each CLI run. Open one below to set it up."}]}},"4b90d806b1bed43f211435c4ab4984d6":{"doc":{"type":"block","exampleFor":"AppShell","name":"AppShell","displayName":"App Shell","isReady":true,"aspectRatio":1.3333333333333333,"isShowcase":true,"description":"A basic app shell with content padding.","componentsUsed":["AppShell","SideNav","Heading","Text","VStack","NavIcon"],"icons":{"ChartBarIcon":"chart","CubeIcon":"package","DocumentTextIcon":"document","HomeIcon":"home","UsersIcon":"users"}}},"4bde1727a16dc883a23971482b7b239f":{"doc":{"type":"block","exampleFor":"MoreMenu","name":"MoreMenu — Default","displayName":"MoreMenu — Default","description":"Basic three-dot overflow menu with simple text-only action items.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MoreMenu"]}},"4be916b99490733d8133aa558e4b24e0":{"doc":{"type":"block","exampleFor":"Section","name":"Section — Variants","displayName":"Section — Variants","description":"All three background variants stacked: section (default surface), muted, and transparent. A quick visual reference for choosing the right variant.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Section","Layout","Text"]}},"4c306629d206deb59c1e3883b337920c":{"default":{"type":"icon-definition","name":"uppercase","description":"Make text all capital letters.","words":["caps","all caps","upper case"]}},"4c811add2bb7ad89f43a5acb283920ee":{"doc":{"type":"block","exampleFor":"MoreMenu","name":"MoreMenu — Bottom Sheet","displayName":"MoreMenu — Bottom Sheet","description":"A visible overflow trigger that opens actions in a BottomSheet. Use this presentation for short action sets on compact touch surfaces.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MoreMenu"],"icons":{"DocumentDuplicateIcon":"copy","PencilIcon":"edit","ShareIcon":"share","TrashIcon":"delete"}}},"4cdcd75b3364571a3ce4dc74d8b6480e":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList — Fill Layout","displayName":"TabList — Fill Layout","description":"Tabs that stretch to fill the available width with a bottom divider.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab"]}},"4d2e4bd115562344f5e7af7c30aca3bf":{"doc":{"type":"block","exampleFor":"Popover","name":"Popover — Confirm Action","displayName":"Popover — Confirm Action","description":"Inline confirmation popover for destructive actions with delete and cancel buttons.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Popover","Button","Layout","Text"]}},"4d4e3a8e7821c7f7fe229c646089b3a0":{"doc":{"type":"block","exampleFor":"Selector","name":"Selector","displayName":"Selector","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Selector"]}},"4d8456f6c27f1761ea7c1301eadb0be2":{"default":{"type":"icon-definition","name":"activity","description":"Activity or live status over time.","words":["pulse","live"]}},"4d8751af9725e61ba1d889e2012bbe49":{"doc":{"type":"block","exampleFor":"Badge","name":"Badge — Status","displayName":"Badge — Status","description":"Show the state of an item like Active, Pending, or Failed. Use in table rows, list items, or detail pages where users need to see status at a glance.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Badge","Layout","Text"]}},"4da8b727e1a4891349d9837e5627922a":{"doc":{"type":"block","exampleFor":"SegmentedControl","name":"SegmentedControl — Disabled Item","displayName":"SegmentedControl — Disabled Item","description":"Segmented control with an individually disabled option for unavailable choices.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SegmentedControl"]}},"4e17ba6eb4eeff8300787e66e01d87af":{"docs":{"type":"generic","name":"component-family","placement":{"parent":"namespace:describe-the-component","slot":"guides","order":30},"title":"Component family","category":"guide","description":"Adapt a single-component doc when one module exposes several public components or hooks that belong to one family.","sections":[{"id":"choose-the-family-shape","title":"Choose the family shape","content":[{"type":"prose","text":"Start with a complete single-component doc. Convert its top-level `props` into a `components` array only when one source module or component directory exposes several public components or hooks as one family. The family doc keeps the shared usage guidance; each array entry owns one public export."},{"type":"list","style":"unordered","items":["Put the primary or most-used export first.","Use a full entry when this file owns that export's description and signature.","Use `props` for a component entry. Use `params` and `returns` for a hook entry.","Do not add private implementation helpers or exports that people should not use directly."]},{"type":"prose","text":"Every field is in {@link schema:component-doc}."}]},{"id":"document-the-family-inline","title":"Document the family inline","content":[{"type":"code","lang":"javascript","label":"components/AcmeTabs.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */\nexport default {\n type: 'component',\n name: 'AcmeTabs',\n displayName: 'Acme Tabs',\n import: '@acme/astryx-widgets/components/AcmeTabs',\n usage: {\n description:\n 'Switches between related views without leaving the page.',\n },\n components: [\n {\n name: 'AcmeTabs',\n displayName: 'Acme Tabs',\n description: 'Owns selection and lays out the tab list and panels.',\n props: [\n {\n name: 'value',\n type: 'string',\n description: 'The selected tab value.',\n required: true,\n },\n ],\n },\n {\n name: 'AcmeTab',\n displayName: 'Acme Tab',\n description: 'Selects one view in Acme Tabs.',\n props: [\n {\n name: 'value',\n type: 'string',\n description: 'The value this tab selects.',\n required: true,\n },\n ],\n },\n ],\n};"},{"type":"prose","text":"The public module named by `import` must export every component or hook named by a full entry. Apps then list, search and open each component in the family by its own name. A full entry the module does not export is not listed, and `integration verify` does not report it: check the family with `{@command component --list}`. When `import` names output your pack lifecycle builds (such as `dist`), the members are listed once that output exists, and `integration verify` compares them as they are listed after the pack builds it."},{"type":"prose","text":"A member's source is the `.tsx` file in the family doc's folder, or below it, that declares it: the one the family's own file or the module `import` names reaches, else the one in that folder that declares the name, as when `import` names built output. A member that only a bundle or a file outside that folder declares is still listed, with no source for `--source` or `swizzle`. A member is not listed when a doc's file or a Core name your package replaces already has its name. A member that shares a name with Core opens with `--package`."}]},{"id":"give-a-member-its-own-file","title":"Give a member its own file","content":[{"type":"prose","text":"When one family member needs its own doc, replace its full entry with `{name: 'MemberName'}` and move the details into a sibling doc. The parent keeps the family relationship without copying the child's content. Continue with {@link generic:subcomponent}."}]}]}},"4e32b336794ad7844b26751cdcecb6d9":{"docs":{"type":"namespace","name":"commands","title":"Commands","summary":"Every command and subcommand: usage, options, examples, exit codes, and what it does outside a project.","keywords":["commands","usage","options","flags"],"placement":{"parent":"namespace:cli","slot":"reference","order":10},"slots":{"commands":{"title":"Commands","accepts":{"kinds":["command"]}}},"adopts":[{"source":{"group":"cli/commands","kinds":["command"]},"into":"commands"}],"blocks":[{"type":"prose","text":"In global mode: each command declares its behavior outside projects (`outsideProject`). Most answer like a new project; some write nothing and name the project they need; `doctor`, `init`, and `upgrade` behave differently. Commands with different behavior describe it in their `In global mode:` note, and CLI tests run each command in an empty folder against its declared value. Inside a project, the project's Astryx release runs every command, whichever astryx command you type. See {@link namespace:global}."}]}},"4e467caaf87d6f09b5bd9d7df6b9b356":{"doc":{"type":"block","name":"With subtitle and end content","displayName":"With subtitle and end content","description":"Add a subtitle under the title and put a status, such as a Badge, in endContent. The close button stays at the end of the row.","exampleFor":"DrawerHeader","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","DrawerHeader","Badge","Button","Layout","LayoutContent","Text"]}},"4e72d8887cc676436d8ec029ac929c88":{"doc":{"type":"block","exampleFor":"RadioList","name":"RadioList","displayName":"Radio List","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["RadioList"]}},"4e7868ff9f4ab0214d629be5b21378ff":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Floating","displayName":"Banner — Floating","description":"A floating banner raised with `elevation=\"med\"`. Banners are inline by default; raise one when it should read as an overlay above content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner"]}},"4e91dfdd34950082c63ad08742bed14e":{"doc":{"type":"page","name":"Checkout Wizard","displayName":"Checkout Wizard","description":"Multi-step checkout, cart, order, and payment wizard with a running summary that recalculates as answers change. It adapts to its host width, renders the summary first on narrow surfaces, validates every forward path, and completes locally without sending payment.","keywords":["checkout","cart","order","payment"],"isReady":true,"category":"Form - Checkout","icons":{"CreditCardIcon":"creditCard","LockClosedIcon":"lock","MapPinIcon":"location","ShoppingCartIcon":"cart","TruckIcon":"shipping"}}},"4e9446ea158fabc992b7332503118d35":{"doc":{"type":"block","exampleFor":"DateInput","name":"DateInput — Clearable","displayName":"DateInput — Clearable","description":"Date input with a clear button that resets the value. Use when the date field is optional and the user may need to undo their selection.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DateInput","Layout","Text"]}},"4ea4981e1a857268052f7d5a24d11ff5":{"docs":{"type":"generic","name":"tokens-color","title":"Color Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":10},"category":"foundations","description":"Semantic colors for consistent theming. All colors use light-dark() for automatic mode switching.","sections":[{"title":"Color Tokens","content":[{"type":"prose","text":"Semantic colors for consistent theming. All colors use light-dark() for automatic mode switching."},{"type":"prose","text":"Status roles: pick the token by the surface. `<status>` is info, success, warning, or error."},{"type":"table","headers":["Status role","Use it for","Pairs with"],"rows":[["--color-text-<status>","Status text on the page or a card (4.5:1 or more).","—"],["--color-icon-<status>","Status icons and marks on the page or a card, such as a StatusDot. Defaults to the text colour.","—"],["--color-border-<status>","Status borders on the page or a card, such as an invalid field. Defaults to the text colour.","—"],["--color-<status>","Strong status fill, such as a Badge.","--color-on-<status>"],["--color-on-<status>","Text and icons on the strong fill (4.5:1 or more).","--color-<status>"],["--color-<status>-muted","Pale status fill, such as a Banner.","--color-on-<status>-muted"],["--color-on-<status>-muted","Text and icons on the pale fill (4.5:1 or more).","--color-<status>-muted"]]},{"type":"table","headers":["Token","Core default (light)","Core default (dark)"],"rows":[["--color-accent","#0064E0","#0171E3"],["--color-accent-muted","#0082FB33","#0082FB3F"],["--color-on-accent","#FFFFFF","#FFFFFF"],["--color-neutral","rgba(5, 54, 89, 0.1)","rgba(223, 226, 229, 0.2)"],["--color-background-surface","#FFFFFF","#1F1F22"],["--color-background-body","#F1F4F7","#111112"],["--color-overlay","#01122866","#11111299"],["--color-overlay-hover","#0536590C","#FFFFFF0C"],["--color-overlay-pressed","#05365919","#FFFFFF19"],["--color-background-muted","#0536590C","#1111127F"],["--color-text-primary","#0A1317","#DFE2E5"],["--color-text-secondary","#4E606F","#AAAFB5"],["--color-text-disabled","#A4B0BC","#6F747C"],["--color-text-accent","#0064E0","#3E9EFB"],["--color-on-dark","#FFFFFF","#FFFFFF"],["--color-on-light","#000000","#000000"],["--color-icon-accent","#0064E0","#2694FE"],["--color-icon-primary","#0A1317","#DFE2E5"],["--color-icon-secondary","#4E606F","#AAAFB5"],["--color-icon-disabled","#A4B0BC","#6F747C"],["--color-background-card","#FFFFFF","#1F1F22"],["--color-background-popover","#FFFFFF","#28292C"],["--color-background-inverted","#0A1317","#FFFFFF"],["--color-background-error-inverted","#AA071E","#E3193B"],["--color-info","#0064E0","#0064E0"],["--color-info-muted","#0082FB33","#0082FB3F"],["--color-on-info","#FFFFFF","#FFFFFF"],["--color-success","#0D8626","#0D8626"],["--color-success-muted","#0B991F33","#0B991F3F"],["--color-on-success","#FFFFFF","#FFFFFF"],["--color-error","#E3193B","#F5394F"],["--color-error-muted","#E3193B33","#F5394F3F"],["--color-on-error","#FFFFFF","#0A1317"],["--color-warning","#E9AF08","#F2C00B"],["--color-warning-muted","#E2A40033","#E2A4003F"],["--color-on-warning","#0A1317","#0A1317"],["--color-text-info","var(--color-text-blue)","var(--color-text-blue)"],["--color-text-success","var(--color-text-green)","var(--color-text-green)"],["--color-text-warning","var(--color-text-yellow)","var(--color-text-yellow)"],["--color-text-error","var(--color-text-red)","var(--color-text-red)"],["--color-icon-info","var(--color-text-info)","var(--color-text-info)"],["--color-icon-success","var(--color-text-success)","var(--color-text-success)"],["--color-icon-warning","var(--color-text-warning)","var(--color-text-warning)"],["--color-icon-error","var(--color-text-error)","var(--color-text-error)"],["--color-border-info","var(--color-text-info)","var(--color-text-info)"],["--color-border-success","var(--color-text-success)","var(--color-text-success)"],["--color-border-warning","var(--color-text-warning)","var(--color-text-warning)"],["--color-border-error","var(--color-text-error)","var(--color-text-error)"],["--color-on-info-muted","var(--color-text-blue)","var(--color-text-blue)"],["--color-on-success-muted","var(--color-text-green)","var(--color-text-green)"],["--color-on-warning-muted","var(--color-text-yellow)","var(--color-text-yellow)"],["--color-on-error-muted","var(--color-text-red)","var(--color-text-red)"],["--color-border","#05365919","#F2F4F619"],["--color-border-emphasized","#CCD3DB","#494D53"],["--color-skeleton","#CCD3DB","#5A5E66"],["--color-track","#CCD3DB","#5A5E66"],["--color-shadow","rgba(5, 54, 89, 0.1)","rgba(0, 0, 0, 0.3)"],["--color-tint-hover","black","white"],["--color-background-blue","#0171E333","#0171E333"],["--color-border-blue","#0064E0","#2694FE"],["--color-icon-blue","#0064E0","#2694FE"],["--color-text-blue","#042F97","#AFD7FF"],["--color-background-cyan","#03A7D733","#03A7D733"],["--color-border-cyan","#089DD0","#0171A4"],["--color-icon-cyan","#00ACC1","#26C6DA"],["--color-text-cyan","#014975","#A1EEF9"],["--color-background-gray","#0A131733","#666A724C"],["--color-border-gray","#647685","#748695"],["--color-icon-gray","#4E606F","#AAAFB5"],["--color-text-gray","#0A1317","#E7EAED"],["--color-background-green","#24BB5E33","#24BB5E33"],["--color-border-green","#0D8626","#0B991F"],["--color-icon-green","#0D8626","#26A756"],["--color-text-green","#09441F","#A5F690"],["--color-background-orange","#F2790233","#F2790233"],["--color-border-orange","#EB6E00","#B34A01"],["--color-icon-orange","#E9690B","#FB8C00"],["--color-text-orange","#6B2203","#FDB876"],["--color-background-pink","#E638B333","#E638B333"],["--color-border-pink","#F351C0","#C02294"],["--color-icon-pink","#C2185B","#EC407A"],["--color-text-pink","#650053","#FEADE3"],["--color-background-purple","#7952FF33","#7952FF33"],["--color-border-purple","#9081FF","#7340FE"],["--color-icon-purple","#5B08D8","#7952FF"],["--color-text-purple","#3E0697","#B3B0FE"],["--color-background-red","#E3193B33","#E3193B33"],["--color-border-red","#E3193B","#F5394F"],["--color-icon-red","#D31130","#E3193B"],["--color-text-red","#7B0210","#FFB2B8"],["--color-background-teal","#0DB7AF33","#0DB7AF33"],["--color-border-teal","#08A3A3","#08767D"],["--color-icon-teal","#009688","#26A69A"],["--color-text-teal","#083943","#40DCCD"],["--color-background-yellow","#E2A40033","#E2A40033"],["--color-border-yellow","#C58600","#B47700"],["--color-icon-yellow","#FBC02D","#FFEE58"],["--color-text-yellow","#753F07","#FBCE03"]]}],"previewType":"swatch"}]}},"4ee8aa154b560212848d94fb0bb7a9ea":{"doc":{"type":"block","name":"Basic","displayName":"Basic","description":"Open a modal drawer from a single trigger. The scrim dims the page; Escape, a scrim click, or the header close button closes it, and focus returns to the trigger.","exampleFor":"Drawer","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","Button","Layout","LayoutContent","DrawerHeader","Text"]}},"4f05f9306b0f2439fdbcb76492202f97":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — States","displayName":"Tokenizer — States","description":"Tokenizer in disabled, error, warning, and success states. Use to communicate validation feedback or lock a selection from editing.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Tokenizer","Layout"]}},"4f7c27081953a61f10baa7da39a6285e":{"docs":{"type":"generic","name":"block-template","placement":{"parent":"namespace:document-the-template","slot":"guides","order":30},"title":"Block template","category":"guide","description":"Describe a smaller composition, choose its preview shape, and connect it to component examples only when that relationship is real.","sections":[{"id":"start-with-a-standalone-block","title":"Start with a standalone block","content":[{"type":"prose","text":"Most blocks stand alone. Start with this shape unless the block is specifically the example or showcase for one component."},{"type":"code","lang":"javascript","label":"templates/acme-stat-card.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').IntegrationTemplateDoc} */\nexport default {\n type: 'block',\n name: 'acme-stat-card',\n displayName: 'Acme Stat Card',\n description:\n 'A compact metric card with a current value, period delta, and supporting trend. KPI, scorecard, summary, or dashboard statistic.',\n isReady: false,\n aspectRatio: 4 / 3,\n componentsUsed: ['Card', 'HStack', 'Text', 'VStack'],\n};"},{"type":"prose","text":"Do not add `exampleFor` only because the block uses a component. `componentsUsed` records composition; `exampleFor` declares that one component owns the example."}]},{"id":"choose-the-component-relationship","title":"Choose the component relationship","content":[{"type":"prose","text":"Every field is in {@link schema:template-doc}."},{"type":"prose","text":"Keep one clear primary owner. Use the `also*` fields only for intentional secondary placements."},{"type":"code","lang":"javascript","label":"templates/acme-status-card-showcase.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').IntegrationTemplateDoc} */\nexport default {\n type: 'block',\n name: 'acme-status-card-showcase',\n displayName: 'Acme Status Card Showcase',\n description:\n 'An account-health summary that demonstrates status, trend, and action states for AcmeStatusCard.',\n isReady: true,\n exampleFor: 'AcmeStatusCard',\n isShowcase: true,\n alsoExampleFor: ['AcmeDashboard'],\n aspectRatio: 4 / 3,\n componentsUsed: ['AcmeStatusCard', 'Button', 'HStack', 'VStack'],\n};"},{"type":"prose","text":"Then check the package-scoped template list ({@link generic:template-doc-overview}) and confirm the entry carries the relationship you set. `{@command component}` does not show integration blocks, so the list is where to check."}]},{"id":"choose-a-useful-preview","title":"Choose a useful preview","content":[{"type":"prose","text":"Every field is in {@link schema:template-doc}."},{"type":"prose","text":"Set `aspectRatio` from the value for the closest shape below, render the block at that ratio, and adjust it until it neither clips nor leaves large empty space. These are starting points, not contract defaults."},{"type":"table","headers":["Block shape","Starting value"],"rows":[["Wide navigation, banner, toolbar, or tabs","`16 / 4`"],["Square button, badge, avatar, icon, spinner, or status","`1`"],["Tall navigation, calendar, list, or tree","`3 / 4`"],["Content card, dialog, table, or form group","`4 / 3`"]]},{"type":"prose","text":"`scale` affects only Astryx's own block previews. Integration blocks can leave it out."}]}]}},"4f93a4d8fc8dbe1d064d1e63ce162481":{"doc":{"type":"block","exampleFor":"Tooltip","name":"Tooltip — Inline Text","displayName":"Tooltip — Inline Text","description":"Tooltips on inline text terms for definitions.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Tooltip","Text"]}},"4fb6739037448a0625c4849aa8f0e902":{"docs":{"type":"generic","name":"single-component","placement":{"parent":"namespace:describe-the-component","slot":"guides","order":20},"title":"Single component","category":"guide","description":"Write the default component doc: explain when to use the component, document every public prop, and add focused examples.","sections":[{"id":"start-from-the-generated-doc","title":"Start from the generated doc","content":[{"type":"prose","text":"`integration add component` creates the normal doc for one public component. Keep the generated identity and import, then replace its sample text and props with the component's real public contract."},{"type":"code","lang":"javascript","label":"components/AcmeCarousel.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */\nexport default {\n type: 'component',\n name: 'AcmeCarousel',\n displayName: 'Acme Carousel',\n import: '@acme/astryx-widgets/components/AcmeCarousel',\n usage: {\n description:\n 'Cycles through slides one at a time. Use it for a small set of related cards.',\n },\n props: [\n {\n name: 'slides',\n type: 'ReactNode[]',\n description: 'The slides to show, in order.',\n required: true,\n },\n ],\n};"},{"type":"list","style":"unordered","items":["Keep `props` on the top-level doc. Private implementation helpers do not need entries.","Name the doc after the source file beside it, such as `AcmeCarousel.doc.mjs` beside `AcmeCarousel.tsx`, and change both in the same pull request.","If the module later exposes several related public exports, adapt this doc with {@link generic:component-family}."]},{"type":"prose","text":"Every field is in {@link schema:component-doc}."}]},{"id":"explain-when-to-use-it","title":"Explain when to use it","content":[{"type":"prose","text":"Write `usage.description` so a person or agent can decide whether this is the right component without opening its source. Say what it does, when to use it, and the most important boundary with a nearby alternative."},{"type":"code","lang":"javascript","code":"usage: {\n description:\n 'Cycles through slides one at a time. Use it for a small set of related cards. Use a static list when every item should stay visible.',\n bestPractices: [\n {guidance: true, description: 'Keep the slide order stable while someone interacts with the carousel.'},\n {guidance: false, description: 'Hide information that must remain visible for comparison.'},\n ],\n},"},{"type":"prose","text":"Set `keywords` to the words people search for: synonyms and the task the component does, such as `keywords: ['slider', 'slideshow', 'rotating cards']`. `{@command search}` ranks a match on a component's name or keywords above one in its description, so without keywords a search for the component's task can list Core components first. Check with the words a person would type:"},{"type":"code","lang":"bash","code":"{@command search \"rotating cards\" --type component}"}]},{"id":"document-every-public-prop","title":"Document every public prop","content":[{"type":"prose","text":"Copy the public prop names and types from the source. Explain the behavior a caller controls, not only the TypeScript type."},{"type":"code","lang":"javascript","code":"props: [\n {\n name: 'slides',\n type: 'ReactNode[]',\n description: 'The slides to show, in order.',\n required: true,\n },\n {\n name: 'interval',\n type: 'number',\n description: 'Milliseconds between automatic slide changes.',\n default: '5000',\n },\n],"},{"type":"list","style":"unordered","items":["Set `required: true` only when every caller must pass the prop.","Write `default` exactly as the value should appear in documentation.","Skip styling escape hatches such as `xstyle`, `className`, and `style`.","`{@command doctor integration components}` lists a documented prop the code lacks, a public prop the doc misses, and a wrong `required`. See {@link generic:check-the-props}."]}]},{"id":"add-focused-examples","title":"Add focused examples","content":[{"type":"prose","text":"Add short examples for important usage that the prop table does not make obvious. Each example should teach one complete pattern and use only public imports."},{"type":"code","lang":"javascript","code":"examples: [\n {\n label: 'Automatic rotation',\n code: '<AcmeCarousel slides={slides} interval={5000} />',\n },\n],"}]},{"id":"read-the-result","title":"Read the result","content":[{"type":"prose","text":"Read the component after every source or doc change. Confirm that its purpose, import, props, defaults, and examples match the source, then verify the packed package."},{"type":"code","lang":"bash","code":"{@command component AcmeCarousel}\n{@command doctor integration components}\n{@command integration verify}"}]}]}},"4fbbe862f40e91114da919358d849e6b":{"doc":{"type":"block","exampleFor":"Switch","name":"Switch — Disabled","displayName":"Switch — Disabled","description":"Disabled switch with label and description for gated features.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Switch","Center"]}},"5023ac3826e2e10eb9be23f53784c93e":{"doc":{"type":"block","exampleFor":"ChatSendButton","name":"ChatSendButton — In Composer","displayName":"ChatSendButton — In Composer","description":"Send button inside ChatComposer, where it reads state from context automatically. No wiring needed; the button enables when the input has content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatComposer","ChatSendButton","Layout"]}},"50d9d5c6878665ad47aff2102ec95a81":{"doc":{"type":"block","exampleFor":"BreadcrumbItem","name":"BreadcrumbItem — Basic","displayName":"BreadcrumbItem — Basic","description":"Breadcrumb links inside a Breadcrumbs trail. Ancestor pages get an href; mark the last item with isCurrent to render it as plain text for the current page.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Breadcrumbs","BreadcrumbItem"]}},"50df5d42c1a6fd9e113ded4c1b7c8dda":{"doc":{"type":"block","exampleFor":"Field","name":"Field","displayName":"Field","description":"A form field wrapping a text input with a label, description, and validation status.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Field","TextInput","Layout"]}},"5124679ccd524600bac7ec44cc8f47de":{"docs":{"type":"generic","name":"test-in-an-app","placement":{"parent":"namespace:ship","slot":"guides","order":10},"title":"Test an integration in an app","category":"guide","keywords":["test an integration locally","try an integration in an app"],"description":"Install your packed package in an app and run the commands its users will run.","sections":[{"id":"install-the-packed-package","title":"Install the packed package in an app","content":[{"type":"prose","text":"Pack the package beside its folder, so the next pack does not ship it, then install it in an app together with Core and the CLI. The app loads your package because it is a dependency."},{"type":"code","lang":"bash","code":"# In the package\n{@pm-only npm \"the tarball the registry receives\" pack --pack-destination ..}\n\n# In an app folder beside it\n{@pm install @astryxdesign/core @astryxdesign/cli ../acme-astryx-widgets-1.0.0.tgz}"},{"type":"list","style":"unordered","items":["Install the CLI in the app too: `astryx` runs the CLI from the app's `node_modules`.","The app holds a copy, not a link. After each change, pack again and run the same `{@pm install}`.","Reading your work inside the package shows your source. The app shows what npm would publish."]}]},{"id":"check-what-the-app-sees","title":"Check what the app sees","content":[{"type":"prose","text":"From the app folder, run the commands your users run. Each should show your contribution under your package name."},{"type":"code","lang":"bash","code":"{@command component AcmeCarousel}\n{@command template --list --package @acme/astryx-widgets}\n{@command theme list --package @acme/astryx-widgets}\n{@command docs acme}\n{@command search deploying --type doc}"},{"type":"table","headers":["Command","Look for"],"rows":[["`component AcmeCarousel`","`import {AcmeCarousel} from '@acme/astryx-widgets/components/AcmeCarousel';`"],["`template --list --package`","An `acme-dashboard` entry whose `package` is `@acme/astryx-widgets`"],["`theme list --package`","An `ocean` entry whose `package` is `@acme/astryx-widgets`"],["`docs acme`","Your section, with guides such as `deploying`"],["`search deploying --type doc`","`acme/deploying` as the first result"]]},{"type":"prose","text":"`--package` narrows `template --list` and `theme list` to one package. `component --list` ignores it and lists Core too, so look a component up by name. Last, import `AcmeCarousel` in the app's code and build the app, as your users will."}]},{"id":"run-doctor-in-the-app","title":"Run doctor in the app","content":[{"type":"prose","text":"`{@command doctor}` checks the whole app, including every package it loaded. `doctor integration validate` checks your package as the app installed it."},{"type":"code","lang":"bash","code":"{@command doctor}\n{@command doctor integration validate @acme/astryx-widgets}"},{"type":"code","lang":"text","code":"id: implicit-integrations\nstatus: [info]\nlabel: Implicitly linked integrations\nmessage: 1 integration loaded from installed dependencies with no astryx.config entry: @acme/astryx-widgets@1.0.0 from dependencies, contributing components, templates, themes, docs, codemods."},{"type":"list","style":"unordered","items":["The `implicit-integrations` row names each package the app loads with no config. `[info]` is expected.","The `docs-progressive-disclosure` row warns when one of your doc sections is over 32 KB. The `doctor integration` checks do not measure size.","`doctor integration validate @acme/astryx-widgets` prints `[ok] No integration issues found.` when the installed copy is sound."]}]}]}},"513af9d8b152df504ec7bf759779beee":{"docs":{"type":"generic","name":"tokens-radius","title":"Radius Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":80},"category":"foundations","description":"Numeric scale based on a 4dp base unit. Tokens scale with the theme's radius multiplier; --radius-none and --radius-full are fixed.","sections":[{"title":"Radius Tokens","content":[{"type":"prose","text":"Numeric scale based on a 4dp base unit. Tokens scale with the theme's radius multiplier; --radius-none and --radius-full are fixed."},{"type":"table","headers":["Token","Core default"],"rows":[["--radius-none","0px"],["--radius-inner","4px"],["--radius-element","8px"],["--radius-container","12px"],["--radius-page","28px"],["--radius-chat","28px"],["--radius-full","9999px"]]}],"previewType":"radius-box"}]}},"515e1ebc0adf8b069ca3209efc363d11":{"doc":{"type":"block","exampleFor":"ChatToolCalls","name":"ChatToolCalls","displayName":"Chat Tool Calls","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Chat"]}},"51e250dba240c477e896ac5527819de6":{"doc":{"type":"block","exampleFor":"ButtonGroup","name":"ButtonGroup — Basic","displayName":"ButtonGroup — Basic","description":"Three related actions joined into a single connected control. Provide a group label for accessibility and keep all buttons the same variant so they read as one unit.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ButtonGroup","Button"]}},"51feb2662c41381e4a40ec9651207b53":{"doc":{"type":"block","exampleFor":"ClickableCard","name":"ClickableCard","displayName":"Clickable Card","description":"A clickable card that navigates on click. Nested interactive elements work independently.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["ClickableCard","Layout","Text"]}},"52aec383f79569f50b7004cd1b7a1fbd":{"docs":{"type":"generic","name":"tailwind","title":"Tailwind","placement":{"parent":"namespace:styling-libraries","slot":"guides","order":20},"category":"guide","description":"The Tailwind v4 bridge, cascade layer order, and utility-class usage backed by system tokens.","keywords":["tailwind-theme.css","utility classes","preflight","existing Tailwind app","cascade layer order"],"sections":[{"title":"Tailwind","content":[{"type":"prose","text":"The Tailwind v4 bridge at `@astryxdesign/core/tailwind-theme.css` maps Tailwind theme variables to system CSS variables with `@theme reference inline`, so utility classes like `text-primary`, `bg-surface`, `border-border`, `rounded-lg`, and `shadow-md` stay in sync with the active theme without emitting competing runtime declarations."},{"type":"code","lang":"css","label":"globals.css","code":"@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;\n\n@import \"tailwindcss/theme.css\" layer(theme);\n@import \"tailwindcss/preflight.css\" layer(base);\n@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/theme-neutral/theme.css\";\n@import \"@astryxdesign/core/tailwind-theme.css\";\n@import \"tailwindcss/utilities.css\" layer(utilities);"},{"type":"prose","text":"Pre-declare every layer before any imports. This keeps reset lowest, Tailwind preflight above reset, component/theme styles in the middle, and Tailwind utilities last so utility classes on `className` can intentionally override component defaults."},{"type":"prose","text":"A layer's rank is set by the first stylesheet on the page that names it, so this order only holds when `globals.css` loads first. Make it the first import in the root layout or app entry, before any module that imports Astryx or theme CSS. That includes the `astryx-themes` module generated by `{@command theme add}` and any root component that imports a theme's `theme.css`. If a theme stylesheet loads first, Tailwind preflight overrides Astryx base styles and theme overrides lose. If `globals.css` cannot come first, move the `@layer` line into its own `layers.css` and import that first instead."},{"type":"code","lang":"tsx","label":"Root layout or app entry","code":"import './globals.css'; // first: declares the cascade-layer order\n\nimport {themes, defaultThemeSlug} from './astryx-themes';"},{"type":"code","lang":"tsx","label":"Tailwind classes backed by system tokens","code":"<section className=\"rounded-lg border border-border bg-surface p-4 text-primary shadow-md\">\n <Button label=\"Save\" variant=\"primary\" />\n</section>"},{"type":"prose","text":"The Tailwind bridge is the concrete example of the general interop pattern: expose another library's semantic API, but point the values at system token variables."}]},{"title":"Add Astryx to an app that already uses Tailwind","content":[{"type":"prose","text":"The recipe in the Tailwind section is a whole `globals.css` for a new app. An app that already uses Tailwind keeps its own file: its `@import \"tailwindcss\"`, its `@theme` mapping, and its `:root` variables stay as they are. Add one `@layer` line above the Tailwind import and the Astryx stylesheets below it."},{"type":"code","lang":"css","label":"globals.css (existing Tailwind app)","code":"@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;\n\n@import \"tailwindcss\"; /* the app's own entry, unchanged */\n@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/theme-neutral/theme.css\";\n\n/* The app's own @theme and :root rules stay below, unchanged. */"},{"type":"prose","text":"This recipe leaves out `tailwind-theme.css`. The bridge maps Tailwind theme names to system tokens, including Tailwind's own defaults such as `rounded-lg` and `shadow-md`, so in an existing app it changes what the app's own classes paint. Add it only when the app does not use the names it maps."},{"type":"prose","text":"Astryx's theme defines its own CSS custom properties (color, spacing, radius, shadow, font, motion and more), and {@link namespace:tokens} has the full list. An app token with one of those names collides in one of two ways. An app `@theme` key takes Astryx's value, because `astryx.css` sets the tokens on `:root` above Tailwind's `theme` layer: with `@theme { --spacing-4: 1.5rem }`, the app's `gap-4` stays 16px. Marking the block `@theme inline` keeps the app's value in its utilities. An app `:root` variable replaces Astryx's value, so Astryx's own components change: `:root { --spacing-4: 1.5rem }` widens Astryx's spacing step 4 from 16px to 24px. Where the root Theme component sets a token again, such as `--color-warning`, the app's own rules inside it read Astryx's value instead. Rename any app token that shares a name."},{"type":"prose","text":"Put the `@layer` line above the app's `@import \"tailwindcss\"`, never below it. A `@layer` statement orders only the layer names the page has not seen yet, and the Tailwind import names `theme`, `base`, `components`, and `utilities` as it loads. Below that import, the statement can only add `reset`, `astryx-base`, and `astryx-theme` after Tailwind's `utilities`. That inverts the cascade: the Astryx reset then outranks every utility class in the app, and, for example, removes the borders and padding the app's utilities give its controls. Nothing reports it: the build and the browser console stay clean, and the `@layer` line still looks right in the source, so only the rendered page shows the problem."},{"type":"prose","text":"The load-order rule from the Tailwind section still applies: `globals.css` must be the first stylesheet the page loads, so its `@layer` line names the layers first."}]}]}},"52b1871ed44be28086a5f17b01f145f0":{"doc":{"type":"block","exampleFor":"useIcon","name":"useIcon — Status Row","displayName":"useIcon — Status Row","description":"A custom status row that draws the semantic success, warning and error icons with useIcon. The same row renders under the current theme and under a Theme whose icons override those three, and its icons change with no change to the component.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Theme","Layout","Text"],"icons":{"CheckBadgeIcon":"success","ExclamationCircleIcon":"warning","NoSymbolIcon":"error"}}},"52dc4b3737399c61545fd19799879842":{"default":{"type":"icon-definition","name":"arrowRight","description":"Continue to the next step or page.","words":["next","continue","forward"]}},"53196dc4587e5dd20883d18a0e42f94f":{"doc":{"type":"page","name":"Project Status Dashboard","displayName":"Project Status Dashboard","description":"Status analytics mixing progress and time-axis shapes: a completion donut, a horizontal timeline of dated bars against a today marker, a per-owner table with progress and status, an at-risk list, and a burndown.","keywords":["project","program","milestone","roadmap","launch","delivery status","workstreams and milestones","gates","blockers","gantt","rollout","release planning","readiness","tracker"],"isReady":true,"category":"Dashboard - Project Status","icons":{"ArrowDownTrayIcon":"download","CheckCircleIcon":"success","ExclamationTriangleIcon":"warning","FlagIcon":"flag","StopIcon":"stop"}}},"532a70c5d392a711d194164cf80d7196":{"default":{"type":"icon-definition","name":"chevronRight","description":"Go forward, to the next item, or into a nested item.","words":["forward","next"],"builtIn":true}},"534d9ebfa4333a52c8dfbdd2bccc6e75":{"doc":{"type":"block","exampleFor":"CommandPaletteGroup","name":"CommandPaletteGroup — Basic","displayName":"CommandPaletteGroup — Basic","description":"Command palette items organized under group headings using the composed CommandPaletteGroup form. Use to separate related commands into labeled sections.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CommandPaletteGroup","CommandPaletteItem","CommandPaletteList"]}},"53a9197e6eb357744276ac6f8a5e80ef":{"doc":{"type":"block","exampleFor":"Timer","name":"Timer — Typography","displayName":"Timer — Typography","description":"Timer using its Timestamp-matched default typography and an emphasized override.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timer","Layout","Text"]}},"542fc4395d4e13b7e250bbb3d2cc1968":{"doc":{"type":"block","exampleFor":"TopNavMegaMenu","name":"TopNavMegaMenu — Basic","displayName":"TopNavMegaMenu — Basic","description":"A mega menu trigger inside a TopNav that opens a panel of rich link items. Use when a navigation section has multiple destinations worth describing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavHeading","TopNavItem","TopNavMegaMenu","TopNavMegaMenuItem"],"icons":{"BookOpenIcon":"book","RocketLaunchIcon":"rocket"}}},"5483d569483e732c43bfd87936adcf89":{"default":{"type":"icon-definition","name":"message","description":"A chat message or comment.","words":["chat","comment","conversation"]}},"54e8f4f0c4e84f09265d4fe2a5d253ff":{"doc":{"type":"block","exampleFor":"Card","name":"Card — Variants","displayName":"Card — Variants","description":"Default, muted, and color variants side by side. Use color variants to categorize cards visually, like team colors, project tags, or content types. Each color uses the corresponding background token from the theme, so they adapt to light and dark mode automatically.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Card","Layout","Text"]}},"55214c0bb9c1adf81dd70d6f54fc2dae":{"doc":{"type":"block","exampleFor":"StatusDot","name":"StatusDot — Status Indicators","displayName":"StatusDot — Status Indicators","description":"Labeled status dot list for presence indicators like online, away, and offline.","isReady":true,"aspectRatio":1.7777777777777777,"scale":1,"componentsUsed":["StatusDot","VStack","HStack","Text"]}},"5532d9e1d88e9af587a550da19dd9a81":{"doc":{"type":"block","exampleFor":"CheckboxListItem","name":"CheckboxListItem","displayName":"Checkbox List Item","description":"Checkbox list items with labels, descriptions, and different states including disabled.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxList","CheckboxListItem"]}},"5552baa4c6e2c3f61d295642c6a82588":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout — Full Bleed Content","displayName":"Layout — Full Bleed Content","description":"A layout where content extends edge-to-edge with zero padding, ideal for tables or images.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","LayoutHeader","LayoutContent","LayoutFooter","Card","Button","HStack","Section","Text","Heading"]}},"557d07412a4fe34d72123b0eb711f934":{"doc":{"type":"block","exampleFor":"RadioList","name":"RadioList — Pricing Tier","displayName":"RadioList — Pricing Tier","description":"Radio list with pricing info in end content for plan selection.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["RadioList","Text"]}},"557eac45ce333c7358737ff0132cf0d4":{"doc":{"type":"block","exampleFor":"Grid","name":"Grid — Column Spanning","displayName":"Grid — Column Spanning","description":"Grid with featured items spanning multiple columns and rows","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Grid","GridSpan","Card","VStack","Text"]}},"55912e3113e2cc2b3eaa4fe3e2b263c8":{"doc":{"type":"block","exampleFor":"ChatSendButton","name":"ChatSendButton","displayName":"Chat Send Button","description":"Ready, custom icon, and streaming states of the send button.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatSendButton","Icon","Layout"],"icons":{"SparklesIcon":"sparkles"}}},"55f7400374ca61df1f6f7ee799acd424":{"default":{"type":"icon-definition","name":"thumbsDown","description":"Give negative feedback.","words":["dislike","bad","hand thumb down"]}},"56b755fe94559cb8754f0e592a982b9b":{"default":{"type":"icon-definition","name":"globe","description":"The web, a language or the world.","words":["world","web","language","internet"]}},"56e8d4194d4837c81c47fadb1e6f6a46":{"default":{"type":"icon-definition","name":"bold","description":"Bold text.","words":["strong","text format"]}},"579002139af109a8066a838c91115028":{"doc":{"type":"block","exampleFor":"Markdown","name":"Markdown — Rich Content","displayName":"Markdown — Rich Content","description":"Markdown with headings, lists, code blocks, tables, blockquotes, and task lists","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Markdown"]}},"57ccddae6fa07994ee7262cea98600a2":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout — Sidebar Navigation","displayName":"Layout — Sidebar Navigation","description":"A settings page layout with a navigation sidebar panel, content area, header, and footer.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","LayoutHeader","LayoutContent","LayoutFooter","LayoutPanel","Card","Button","HStack","VStack","Text","Heading","List","ListItem"]}},"57dbe61a8347168d610dad2c41505e5f":{"doc":{"type":"page","name":"Order Detail","displayName":"Order Detail","description":"Single-record detail in two columns: a summary header with status and actions, a repeating line-item list, a totals block that sums it, and a chronological activity timeline in the rail. The shape for any record holding children plus a history: a customer order with shipping, an invoice, a transaction, or a job.","keywords":["order","invoice","transaction","job","record detail","summary header"],"isReady":true,"category":"Content - Order Detail","icons":{"ArrowLeftIcon":"arrowLeft","CalendarIcon":"calendar","FlagIcon":"flag","FunnelIcon":"funnel","HandThumbUpIcon":"thumbsUp","HeartIcon":"heart","PencilSquareIcon":"compose","ViewColumnsIcon":"viewColumns"}}},"57f365f5b269a3590a02d20ff7e0ab41":{"default":{"type":"icon-definition","name":"copy","description":"Copy to the clipboard.","words":["duplicate","clipboard","document duplicate"],"builtIn":true}},"58252069168875605c256c6bb70b6b5b":{"doc":{"type":"block","exampleFor":"Markdown","name":"Markdown","displayName":"Markdown","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"Rich markdown content with headings, lists, and formatting.","componentsUsed":["Markdown"]}},"5854395c4839d497ef3676962a36322e":{"default":{"type":"icon-definition","name":"apps","description":"Add or browse apps and widgets.","words":["grid","widgets","apps"]}},"58f422012b984936e400b08162fef7aa":{"doc":{"type":"block","exampleFor":"OverflowList","name":"OverflowList","displayName":"Overflow List","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A list of buttons that collapses overflowing items into a +N indicator.","componentsUsed":["OverflowList","Button"]}},"592a3a80bb59f136f6b97ad2c08ca1fe":{"doc":{"type":"block","exampleFor":"Pagination","name":"Pagination — Page Size Selector","displayName":"Pagination — Page Size Selector","description":"A transactions table with pagination and a page size dropdown at the bottom. Shows how pagination works as a footer below real content, with adjustable rows per page.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Pagination","Text","Layout","Table"]}},"59460481750407069e94bf177a628b8f":{"doc":{"type":"block","exampleFor":"Collapsible","name":"Collapsible — FAQ","displayName":"Collapsible — FAQ","registry":{"aliases":["collapsible/divided-accordion"]},"description":"FAQ built with hasDividers: row hairlines and density padding with no custom CSS. Questions set their own type — body at semibold, not the trigger's default 17px large — so a list of questions reads as rows rather than a stack of headings, and question and answer separate on weight and color instead of size.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Collapsible","CollapsibleGroup","Text","Link","Stack"]}},"5964485117b3ad6210ea783e6e590731":{"default":{"type":"icon-definition","name":"userAdd","description":"Invite or add a person.","words":["invite","add person","user plus"]}},"59847492009145d826070fd69f30275b":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput — Icon","displayName":"TextInput — Icon","description":"Inputs with a leading icon that hints at the expected content. Use when the icon helps users identify the field faster, like a lock for passwords or an envelope for email.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextInput","Layout"],"icons":{"EnvelopeIcon":"mail","LockClosedIcon":"lock","UserIcon":"user"}}},"5996a6a56cd84dddf1627a0d20acda7c":{"doc":{"type":"block","exampleFor":"TimeInput","name":"TimeInput — Increment","displayName":"TimeInput — Increment","description":"Time input with a custom step increment. Arrow keys jump by the specified interval (e.g. 15 minutes) for quick slot-based scheduling.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TimeInput","Layout"]}},"59ed89cd21e4c0ca859ad2c5e9e2431b":{"default":{"type":"theme","name":"y2k","displayName":"Y2K","description":"Hot pinks, lime greens, and Poppins. Bubbly, playful, and unmistakably retro.","maintained":false}},"59fc0df223bf5eeb0bdb108a97e64747":{"default":{"type":"theme","name":"matcha","displayName":"Matcha","description":"Earthy greens with a calm, organic feel. Naturalistic and grounded, great for wellness or content-first apps.","maintained":false}},"5a361a841569724e995541b482f039c5":{"doc":{"type":"block","exampleFor":"DropdownMenuItem","name":"DropdownMenuItem","displayName":"Dropdown Menu Item","description":"Dropdown menu with custom-rendered items using DropdownMenuItem for icons and descriptions.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","DropdownMenuItem"]}},"5b066ae2ca5cf94d4b37256d3f81863d":{"docs":{"type":"generic","name":"add-a-theme","placement":{"parent":"namespace:themes","slot":"guides","order":10},"title":"Add a theme","category":"guide","description":"Scaffold a theme in your package — blank, or forked from an existing theme.","sections":[{"id":"add-a-theme","title":"Add a theme","content":[{"type":"prose","text":"Run `integration add theme` with a lowercase kebab-case slug. It writes a blank theme — a `defineTheme` skeleton and its descriptor — into a folder named after the slug."},{"type":"code","lang":"bash","code":"{@command integration add theme ocean}"},{"type":"code","lang":"text","code":"theme contribution added\n\n[ok] ocean\n\nDeclare theme root ./themes in astryx.integration.mjs.\n\n- themes/ocean/oceanTheme.ts\n- themes/ocean/oceanTheme.doc.mjs\n- package.json\n- astryx.integration.mjs"},{"type":"prose","text":"`oceanTheme.ts` exports `oceanTheme`, a `defineTheme` source, and `oceanTheme.doc.mjs` is the descriptor that `theme list` reads. The command also declares `./themes/ocean` and `./themes/ocean.css` package exports. Every field is in {@link schema:theme-doc}."},{"type":"prose","text":"The source and built outputs ship in your package. Build the source with `theme build`, then run `integration verify` before publishing. An app runs `theme add` to record and import the built module and stylesheets; `theme eject` creates an independent source fork. See {@link generic:use-a-theme-in-an-app}."}]},{"id":"start-from-an-existing-theme","title":"Start from an existing theme","content":[{"type":"prose","text":"To begin from an existing theme instead of a blank one, pass `--from`. It copies that theme as your starting point to diverge from — a fork, with no link back."},{"type":"code","lang":"bash","code":"{@command integration add theme ocean --from neutral}"},{"type":"prose","text":"The copy keeps the packages the base theme uses, such as `lucide-react` for its icons: `--from` adds them to your `dependencies`, so an app that installs your package gets them too. Install your dependencies again before you build the theme."},{"type":"prose","text":"Use `--from` when you want to change a lot. For a small change that should stay linked to a base theme, use `extends` instead ({@link generic:define-the-theme})."}]},{"id":"ship-several-themes","title":"Ship several themes","content":[{"type":"prose","text":"A package can ship more than one theme. Run `integration add theme` once per slug; each theme gets its own folder and descriptor, and `theme list` shows them all."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: when users install your package for their computer, beside the global CLI, your themes are listed in folders outside any project, where `theme add` lists but writes nothing; inside a project, only if the project installs your package. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"5b1bcac2d5d6ce231b1c2ef34887b927":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Simple","displayName":"ChatComposer — Simple","description":"Minimal chat composer with a placeholder and submit handler. The simplest way to drop a message input into a page.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","Layout"]}},"5b360332f80cbe10252128dfaa4df613":{"doc":{"type":"block","exampleFor":"useLinkComponent","name":"useLinkComponent — Article Cards","displayName":"useLinkComponent — Article Cards","description":"A custom Article card renders its title link with the component useLinkComponent resolves: the as prop first, then the nearest LinkProvider, then a native anchor. Inside a LinkProvider wired to a client-side router, the title navigates without a page load and updates the router location. With as=\"a\" the title is a native anchor even inside the provider, and outside the provider it falls back to the next provider up or a native anchor.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["LinkProvider","Card","Layout","Text"]}},"5b824e124388d4c652d5607b84bed734":{"docs":{"type":"generic","name":"tokens-focus","title":"Focus Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":70},"category":"foundations","description":"The keyboard focus ring, shared by every component that draws one. Override these to restyle focus across the system.","sections":[{"title":"Focus Tokens","content":[{"type":"prose","text":"The keyboard focus ring, shared by every component that draws one. Override these to restyle focus across the system."},{"type":"table","headers":["Token","Core default"],"rows":[["--focus-outline-width","2px"],["--focus-outline-style","solid"],["--focus-outline-color","var(--color-accent)"],["--focus-outline-offset","3px"]]}]}]}},"5b915908e4c9826ef77d51d00d30a135":{"default":{"type":"icon-definition","name":"money","description":"Money, prices or payments.","words":["price","payment","cost","currency","currency dollar"]}},"5b9350ccaec70117b263b23db5f207b5":{"doc":{"type":"block","exampleFor":"useInputStatusIcon","name":"useInputStatusIcon — Coupon Code Status","displayName":"useInputStatusIcon — Coupon Code Status","description":"A custom bordered coupon-code input whose status affordance comes from useInputStatusIcon. A wrong code shows the error status and SAVE20 shows success. Switching the variant moves between a plain glyph with a message below (attached), no icon on the field (detached), and a focusable button whose tooltip keyboard and screen-reader users can reach, with its aria-describedby id returned by the hook (tooltip).","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Field","SegmentedControl","Text","Layout"]}},"5bc72c13f32ca9fcdd90d69d0d4a2be1":{"docs":{"type":"generic","name":"debug-and-gap-reports","placement":{"parent":"namespace:configuration","slot":"guides","order":20},"title":"Debug and gap reports","category":"guide","keywords":["gap report","debug handler"],"description":"Receive a record of each CLI run in apps that use your package, and handle the gap reports they send about it.","sections":[{"id":"record-runs-with-debug","title":"Record runs with debug","content":[{"type":"prose","text":"Export a `debug` function from `astryx.integration.mjs`; the CLI calls it once per command run in an app loading your package."},{"type":"code","lang":"js","code":"// astryx.integration.mjs\nimport {appendFileSync} from 'node:fs';\n\n/** @param {import('@astryxdesign/cli/authoring').DebugEvent} event */\nexport function debug(event) {\n if (event.outcome !== 'ok') {\n appendFileSync('acme-failed-runs.ndjson', JSON.stringify(event) + '\\n');\n }\n}\n\nexport default {\n components: './components',\n};"},{"type":"prose","text":"The event is a `DebugEvent` with `command`, `outcome`, `exitCode`, `durationMs`, `error`, and more, its values scrubbed (`redacted: true`). Every field is in {@link schema:debug-event}."},{"type":"prose","text":"Keep the function synchronous: the CLI calls it as the process exits and never waits for a promise. The app's own `debug` handler runs first, then yours. A handler that throws is skipped, and the command's output and exit code stay the same."},{"type":"prose","text":"An app records every command only when its `astryx.config` names `integrations` or `debug`, as listing your package does. Otherwise your handler runs only for commands loading the app's project, such as `component` and `docs`, never for `--version` or a mistyped command. In an app whose config names neither word, those commands also print a stderr warning."},{"type":"prose","text":"`debug` is a named export, not a manifest field, so an older CLI ignores it and loads the rest of your manifest."}]},{"id":"turn-off-debug-in-an-app","title":"Turn off debug in an app","content":[{"type":"prose","text":"An app can refuse every integration's `debug` handler and keep its own. It sets `inheritDebug` in its package.json:"},{"type":"code","lang":"json","code":"{\"astryx\": {\"inheritDebug\": false}}"},{"type":"prose","text":"Your handler then no longer runs in that app."}]},{"id":"handle-gap-reports","title":"Handle gap reports","content":[{"type":"prose","text":"Export a `gapReport` handler, and `{@command gap-report}` in an app sends it each gap report, such as a missing component or variant. The handler files the report and returns a receipt."},{"type":"code","lang":"js","code":"/** @type {import('@astryxdesign/cli/authoring').GapReportHandler} */\nexport const gapReport = {\n audience: 'public',\n async handle(report, {signal}) {\n if (report.target.package !== '@acme/astryx-widgets') return {status: 'skipped'};\n const body = JSON.stringify(report);\n const response = await fetch('https://tracker.example.com/issues', {method: 'POST', body, signal});\n const {url} = await response.json();\n return {status: 'filed', url};\n },\n};"},{"type":"prose","text":"Every handler in the app gets every report, so check `report.target.package` and skip reports about other packages."},{"type":"prose","text":"Every field is in {@link schema:gap-report-handler}."},{"type":"prose","text":"The CLI waits 30 seconds, then aborts `signal`. A throw, a timeout, or an invalid receipt fails your delivery, and the command exits 1; the other handlers still run. Like `debug`, `gapReport` is a named export that older CLIs ignore."}]},{"id":"ask-before-filing-in-public","title":"Ask before filing in public","content":[{"type":"prose","text":"Set `audience: 'public'` when your handler writes somewhere the public can read. The CLI runs it only when the caller passes `--confirm-public`; an `'internal'` handler always runs."},{"type":"code","lang":"bash","code":"{@command gap-report AcmeCarousel --category missing_variant --reason 'Need a vertical layout'}"},{"type":"code","lang":"text","code":"handlerType: integration\nhandler: @acme/astryx-widgets\naudience: public\nstatus: consent_required\nmessage: Rerun with --confirm-public to file this report."},{"type":"prose","text":"With `--confirm-public`, the same delivery reads `status: filed` and shows your `url`. The report goes to the package named by `--package`, else the package that owns the component, else Core."}]},{"id":"fall-back-to-issues-url","title":"Fall back to issuesUrl","content":[{"type":"prose","text":"With no `gapReport` handler in the app, the CLI routes the report to the target package's manifest `issuesUrl`."},{"type":"list","style":"unordered","items":["A GitHub issues URL, such as `https://github.com/acme/widgets/issues`, gets an issue filed with the GitHub CLI, `gh`, once the caller passes `--confirm-public`.","Any other URL comes back as a `routed_only` receipt for the caller to open.","With no `issuesUrl`, the command fails: `Package \"@acme/astryx-widgets\" provides neither a report handler nor an issues URL.`"]},{"type":"prose","text":"One handler anywhere in the app, from the app or from any package, turns the fallback off for every report. So does a listed package that fails to load: the CLI cannot tell whether it has a handler, so the report fails for that package instead of going to another tracker. See {@link command:gap-report}."}]},{"id":"choose-a-destination","title":"Let the person choose where a report goes","content":[{"type":"prose","text":"When an app loads packages naming their own `issuesUrl`, a report can go to the default (the handlers, or the fallback above) or to one of those packages. `{@command gap-report --list-categories}` and the receipt of a report filed without `--to` list every destination, with a line telling the agent to ask the person."},{"type":"list","style":"unordered","items":["An agent asks the person where to file. It never picks a package destination on its own.","`--to <package>` carries the person's choice: the report goes only to that package's `issuesUrl`, under the same `--confirm-public` rule, and no handler runs.","Without a choice, leave out `--to`; the report goes to the default.","A `--to` that names no destination fails before anything is sent and lists the destinations."]}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: when users install your package for their computer, beside the global CLI, its `debug` function receives runs in folders outside any project too; inside a project, only if the project installs it. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"5bee3ca0ffce6907bf04048bab2b51bc":{"default":{"type":"icon-definition","name":"lock","description":"Locked, private or secure.","words":["secure","private","locked"]}},"5c309eef4b5fec60339f71c4da7c698c":{"doc":{"type":"block","exampleFor":"ListItem","name":"List Item — Media","displayName":"List Item — Media","description":"List items with leading avatars and icons. Use startContent for compact visual identifiers that help users scan the collection.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["List","ListItem","Avatar","Badge","Icon"]}},"5ca64e18eb10b2d6e630119ba57ca659":{"default":{"type":"icon-definition","name":"announcement","description":"An announcement or broadcast.","words":["broadcast","news","megaphone"]}},"5ca96583f639aa3a8a969271ac7ca6f7":{"doc":{"type":"page","name":"Top Nav","displayName":"Top Nav","description":"Application frame with horizontal navigation only: a centered bar whose items open full-width mega-menu panels, over placeholder content that keeps the entire width.","keywords":["shell","chrome","layout frame","header","menu","topbar","navigation"],"isReady":true,"category":"Shell - Top Nav","icons":{"BoltIcon":"bolt","CloudIcon":"cloud","FaceSmileIcon":"emoji","FireIcon":"fire","GiftIcon":"gift","GlobeAltIcon":"globe","HomeModernIcon":"home","MagnifyingGlassIcon":"search","MoonIcon":"moon","ReceiptPercentIcon":"discount","ShoppingBagIcon":"shoppingBag","ShoppingCartIcon":"cart","SparklesIcon":"sparkles","StarIcon":"star","SunIcon":"sun","SwatchIcon":"swatch","TagIcon":"tag"}}},"5cddd029c99b6b4333f023a3c9092e81":{"doc":{"type":"block","exampleFor":"PowerSearch","name":"PowerSearch — Full Featured","displayName":"PowerSearch — Full Featured","description":"Power search with multiple field types: enum, multi-select, entity, and text filters.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["PowerSearch"]}},"5d550dc07a6e5bba5f9d5f9e13ebb11e":{"doc":{"type":"block","exampleFor":"ChatComposerInput","name":"ChatComposerInput — Multiple Triggers","displayName":"ChatComposerInput — Multiple Triggers","description":"Chat input with both @ mentions and / commands. Each trigger type renders tokens in a distinct color so users can tell them apart at a glance.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","ChatComposerInput","Typeahead","Layout","Text"]}},"5dadde72e0667b41c446c089c33e0660":{"doc":{"type":"page","name":"Theme Showcase","displayName":"Theme Showcase","description":"Multi-surface comparison shell: preview palettes, typography, icons and control states across a storefront, checkout, chat and inventory on one responsive canvas. A theme preview and design-system showcase, with an embeddable content view for an existing app shell.","category":"Shell - Top Nav","keywords":["theme","tokens","palette","typography","styling","design system preview"],"isReady":true,"isHiddenFromOverview":true,"icons":{"Banknote":"money","CreditCard":"creditCard","Download":"download","Folder":"folder","LayoutGrid":"apps","List":"list","Lock":"lock","MapPin":"location","Mic":"microphone","Plus":"add","Search":"search","ShoppingBag":"shoppingBag","Smartphone":"mobile","Tag":"tag","User":"user","Wallet":"wallet","X":"close"}}},"5e007fba5de2b665f111346cc22ad371":{"doc":{"type":"block","exampleFor":"PowerSearch","name":"PowerSearch — Preset Filters","displayName":"PowerSearch — Preset Filters","description":"Power search initialized with pre-set filter tokens for status and priority.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["PowerSearch"]}},"5e2c310e348a1047cce4f5fd083a5e51":{"doc":{"type":"block","exampleFor":"FormLayout","name":"FormLayout","displayName":"Form Layout","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A vertical form layout with text input fields.","componentsUsed":["FormLayout","TextInput"]}},"5e6ff8ccf14dc8689277da17f4fd8d69":{"default":{"type":"icon-definition","name":"bank","description":"A bank or other institution.","words":["institution","building library","finance"]}},"5e8b4339fd5e00b9d5bec214a7d3c796":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Inline","displayName":"Text — Inline","description":"Mixing body and code text inline within a single line using the default inline display mode.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Text"]}},"5e90ac309f7a1964184b06882eae642f":{"doc":{"type":"block","exampleFor":"Popover","alsoShowcaseFor":["usePopover"],"name":"Popover","displayName":"Popover","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Popover","Button","Layout","Text","Divider"]}},"5eddda5220ba7611870dad33a1244fde":{"doc":{"type":"block","exampleFor":"LayoutFooter","name":"LayoutFooter — Actions","displayName":"LayoutFooter — Actions","description":"A fixed footer with end-aligned action buttons below scrollable content. Use LayoutFooter inside Layout for persistent actions like Save and Cancel.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["LayoutFooter","Layout","LayoutContent","Center","Card","HStack","Button"]}},"5eee771bd2dc803854b9063977c53fa2":{"doc":{"type":"block","exampleFor":"ChatMessageBubble","name":"ChatMessageBubble — Density","displayName":"ChatMessageBubble — Density","description":"Compact, balanced, and spacious density modes side by side. Density controls bubble padding, corner radius, and spacing between grouped bubbles.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Chat","Text","Layout"]}},"5efc271e8cc540b10041024465dd1ded":{"doc":{"type":"block","exampleFor":"CommandPaletteFooter","name":"CommandPaletteFooter","displayName":"Command Palette Footer","description":"Command palette footer with custom tip content.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteFooter","Text"]}},"5f67b5f23d13ad86181c575f5752e1a2":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Dismiss","displayName":"Banner — Dismiss","description":"Let the user close a banner after reading it. Use for maintenance notices, feature tips, or any non-critical message the user can acknowledge.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner","Layout"]}},"5f80a19c1795fc2a349a4da9c485bbf6":{"doc":{"type":"page","name":"Funnel & Cohort Dashboard","displayName":"Funnel & Cohort Dashboard","description":"Analytics for sequence and retention questions, pairing two shapes a plain dashboard cannot hold: a staged funnel where each step reads as drop-off against the one before, and a two-axis cohort matrix rendered as a heatmap.","keywords":["conversion","drop-off","activation","churn","retention reporting","stages","segments"],"isReady":true,"category":"Dashboard - Funnel & Cohort","icons":{"ArrowDownIcon":"arrowDown","ArrowDownTrayIcon":"download","ArrowTrendingDownIcon":"trendDown","ArrowUpIcon":"arrowUp","StopIcon":"stop"}}},"5fcb4b37034473e29480ce8bd9b29a4b":{"doc":{"type":"block","exampleFor":"useContainerReveal","name":"useContainerReveal — Reveal-on-hover Row Actions","displayName":"useContainerReveal — Reveal-on-hover Row Actions","description":"File rows keep their edit/delete actions hidden at rest and reveal them on hover or keyboard focus via useContainerReveal; the actions stay mounted and in the tab order.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Item","Button","Icon","Card","Text","Layout"],"icons":{"PencilIcon":"edit","TrashIcon":"delete"}}},"5fe7fc55a4bc8420998a5da707b7cbaa":{"doc":{"type":"block","exampleFor":"LayoutFooter","name":"LayoutFooter","displayName":"Layout Footer","description":"LayoutFooter is a fixed footer slot within a Layout, pinned to the bottom for persistent actions like form buttons or navigation.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","LayoutFooter"]}},"601151dcdfcffc6c8962902eb4d0b95f":{"docs":{"type":"generic","name":"reference","placement":{"parent":"namespace:global","slot":"guides","order":11},"title":"Global mode reference","category":"guide","keywords":["reference","paths","folders","environment variables","env vars","XDG_CACHE_HOME","XDG_CONFIG_HOME","LOCALAPPDATA","APPDATA","meta.available","error codes","glossary","state.json","settings.json"],"description":"Every folder global mode uses on each system, the environment variables it reads, the JSON fields it adds, its error codes, and a short glossary.","sections":[{"id":"paths","title":"Folders and files","content":[{"type":"table","headers":["What","Linux","macOS","Windows"],"rows":[["Cache folder","`~/.cache/astryx` (or `$XDG_CACHE_HOME/astryx`)","`~/Library/Caches/astryx`","`%LOCALAPPDATA%\\astryx\\Cache`"],["Versions for projects","`<cache>/releases/<version>`","`<cache>/releases/<version>`","`<cache>\\releases\\<version>`"],["Settings folder","`~/.config/astryx` (or `$XDG_CONFIG_HOME/astryx`)","`~/Library/Application Support/astryx`","`%APPDATA%\\astryx`"],["Update checks and notices, and why the last notice or check did not happen (for `{@command doctor}` only)","`<settings>/state.json`","`<settings>/state.json`","`<settings>\\state.json`"],["Agent guide setting, and the links Astryx made","`<settings>/settings.json`","`<settings>/settings.json`","`<settings>\\settings.json`"],["Agent guide","`~/.agents/skills/astryx/SKILL.md`, linked from `~/.claude/skills/astryx` and others","the same","the same, under `%USERPROFILE%`"]]},{"type":"prose","text":"Every folder the agent guide is linked into: {@link generic:computer-agent-guide}."}]},{"id":"env","title":"Environment variables","content":[{"type":"table","headers":["Variable","Effect"],"rows":[["`CI`","Set to anything but empty, `0`, or `false`: no update check and no notice."],["`NO_UPDATE_NOTIFIER`","Set to anything: no update check and no notice."],["`XDG_CACHE_HOME`, `XDG_CONFIG_HOME`","On Linux, move the cache and settings folders; used only when absolute."],["`LOCALAPPDATA`, `APPDATA`","On Windows, the cache and settings folders; used only when absolute."]]},{"type":"prose","text":"Astryx reads no environment variable of its own. npm's own settings, such as its registry and proxy, apply to the versions it installs for projects."}]},{"id":"json","title":"JSON fields","content":[{"type":"list","style":"unordered","items":["`meta.answeredBy` on every successful `--json` result: `cli` (the version that answered), `core` (the Core it used, or `null`), and `copy`: `project` (the project's own CLI), `starting` (the astryx command you started, in a project with no CLI of its own), `matched` (the CLI version equal to the project's Core, when the project's own CLI cannot start), `carried` (outside a project), or `fallback` (that version could not be obtained, so the astryx command you started answered instead).","`meta.available` entries from `{@command discover}` with `source: \"installed for this computer\"`: an integration installed next to your global install that the project could add, with its install command in `install`."]}]},{"id":"errors","title":"Error codes","content":[{"type":"list","style":"unordered","items":["`ERR_VERSIONS_UNAVAILABLE`: nothing can answer, such as a command that needs Core outside a project that cannot install it. When only the matching version is missing, the run answers anyway, with a warning. {@link generic:problems}","`ERR_PROJECT_REQUIRED`: a command that only works in a project ran outside one. Commands released before global mode keep the codes they already used: `theme use`, `theme remove`, and `theme add <slug>` use `ERR_THEME_INVALID`, `integration add` uses `ERR_FILE_NOT_FOUND`, `swizzle` uses `ERR_CORE_NOT_FOUND`, and `upgrade` uses `ERR_VERSION_DETECT`."]}]},{"id":"changes","title":"What changes in global mode","content":[{"type":"list","style":"unordered","items":["Which version answers: in a project, the project's own CLI (with only Core, the astryx command you started); outside one, your global version. {@link generic:who-answers}","Commands that change a project write nothing outside one; `doctor`, `init`, and `theme add` do something else there. {@link namespace:commands}","Integrations installed globally work only outside projects. {@link generic:computer-integrations}","The programmatic API runs in your process with the package you import and never hands off to another version; with `cwd` outside a project, its functions answer as the commands do there. {@link namespace:api}"]}]},{"id":"glossary","title":"Glossary","content":[{"type":"list","style":"unordered","items":["**Global install**: the CLI installed for your computer with `npm i -g` or another package manager.","**The project's version**: the project's own CLI; it answers every command in that project. A project with only Core has none, so the astryx command you started answers.","**Cache**: the folder where Astryx keeps versions projects need but do not install."]}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works."}]}]}},"6016838f792b7ee3055daf832ae8e2c0":{"doc":{"type":"page","name":"Centered Hero","displayName":"Centered Hero","description":"Symmetrical centered stack (headline, short blurb, paired call-to-action buttons) resting on one wide full-bleed picture, with nothing on either flank competing.","keywords":["hero","banner","splash","landing image","marketing masthead"],"isReady":true,"category":"Gallery - Hero","icons":{"ArrowRightIcon":"arrowRight"}}},"6025380964bc11e238fc06db230555ac":{"doc":{"type":"block","exampleFor":"LinkProvider","name":"Link Provider — Custom Link Component","displayName":"Link Provider — Custom Link Component","description":"Routes every Astryx link through a custom component that intercepts the click, the hook frameworks like Next.js use for client-side navigation. Click the link to see the custom handler fire instead of a full-page load.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["LinkProvider","Link"]}},"6032db53e629cdd718f6b65a9f2208a7":{"doc":{"type":"block","exampleFor":"usePopover","name":"usePopover — Quick Actions","displayName":"usePopover — Quick Actions","description":"Custom quick-actions popover using usePopover for trigger refs, ARIA attributes, and focus trapping.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Popover","Button","Text","Layout","Center"]}},"60455a00dfa959ba8582d3e7f1aeb40b":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — User Card","displayName":"Avatar — User Card","description":"Place an avatar next to a name and role to create a user card row. Use for comment headers, contact lists, profile sections, or anywhere you need to identify a person at a glance.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout","Text"]}},"607e6ccebbd2dff06ef4aba368e7a140":{"docs":{"type":"generic","name":"css-and-stylex","title":"CSS & StyleX","placement":{"parent":"namespace:styling-libraries","slot":"guides","order":10},"category":"guide","description":"Core integration principle, plain CSS / CSS Modules, and StyleX typed-token imports.","sections":[{"title":"Core Principle","content":[{"type":"prose","text":"Keep the system as the source of truth for theme values. Components read design tokens from CSS custom properties such as `--color-text-primary`, `--color-background-surface`, `--spacing-4`, and `--radius-container`. Other styling libraries should map their own semantic tokens, utility names, or theme objects to those system CSS variables whenever possible."},{"type":"prose","text":"Use CSS variables for ordinary DOM styling because they inherit through the tree, follow `data-theme` color mode, respect nested `data-astryx-theme` scopes, and update when themes switch. Use token resolver APIs only for non-CSS consumers such as SVG attribute values, canvas, chart configuration, color calculations, or static config generation."},{"type":"prose","text":"For available token names and values, run {@link namespace:tokens}. Focused references are also available with {@link generic:color}, {@link generic:spacing}, {@link generic:shape}, {@link namespace:typography}, {@link generic:elevation}, and {@link generic:motion}."}]},{"title":"Choose an Integration Path","content":[{"type":"prose","text":"Choose the narrowest integration path that fits the styling library. Most DOM styling should stay on the CSS-variable path; JavaScript token resolution is for APIs that cannot consume CSS custom properties."},{"type":"table","headers":["Path","Use when","Value shape"],"rows":[["CSS variable aliases","The library ultimately writes CSS and accepts string values","`var(--color-text-primary)`"],["StyleX token imports","You are writing StyleX styles in application code","`colorVars['--color-text-primary']`"],["Tailwind bridge","You want utility classes backed by active system tokens","`@astryxdesign/core/tailwind-theme.css`"],["Design token resolver APIs","JavaScript needs token values for charts, canvas, SVG, or config objects","`resolveThemeToken(theme, '--color-data-categorical-blue', {mode})`"]]}]},{"title":"Best Practices","content":[{"type":"list","style":"do","items":["Map by semantic intent: text, surface, border, accent, status, radius, spacing, typography.","Let the system own color mode. The root Theme syncs `data-theme=\"light|dark\"` and `data-astryx-theme` to `<html>` for portals and first-level theme scope.","Prefer CSS variables for runtime theme switching and nested themes."]},{"type":"list","style":"dont","items":["Copy raw hex/px values into a second theme object when a `var(...)` reference would work.","Run a second unsynchronized dark-mode provider that disagrees with Theme.","Make another library's CSS variables the source of truth for the system. Some consumers need token values outside the DOM."]}]},{"title":"Plain CSS and CSS Modules","content":[{"type":"prose","text":"The simplest integration is direct CSS variable usage. CSS Modules scope class names, but system token variables are global/inherited values supplied by package CSS and the active theme."},{"type":"code","lang":"css","label":"Card.module.css","code":".card {\n background: var(--color-background-surface);\n color: var(--color-text-primary);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-container);\n padding: var(--spacing-4);\n}"},{"type":"prose","text":"Sass variables are compile-time only. They are useful for generating static CSS, but they do not update when the system switches theme or color mode. Use native CSS custom properties for themeable values."}]},{"title":"StyleX","content":[{"type":"prose","text":"For StyleX styles, prefer the typed token exports from `@astryxdesign/core/theme/tokens.stylex`. They provide autocomplete and catch token-name typos while still resolving through the same system CSS variables at runtime."},{"type":"code","lang":"tsx","label":"Typed token imports","code":"import * as stylex from '@stylexjs/stylex';\nimport {colorVars, spacingVars, radiusVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n panel: {\n backgroundColor: colorVars['--color-background-surface'],\n color: colorVars['--color-text-primary'],\n padding: spacingVars['--spacing-4'],\n borderRadius: radiusVars['--radius-container'],\n },\n});"},{"type":"prose","text":"Use `xstyle` for component overrides and `stylex.props()` for your own DOM nodes. Use `className` when integrating a non-StyleX styling library."}]}]}},"607f37474c4b5bcbaa567f7b4787f411":{"doc":{"type":"block","exampleFor":"useCombobox","name":"useCombobox — Assign To Field","displayName":"useCombobox — Assign To Field","description":"An \"Assign to\" TextInput and a list of Item rows, with the field, listbox and option props from useCombobox spread onto them: typing filters a list of teammates, ArrowUp and ArrowDown move the active option while focus stays in the input, Enter picks it and Escape closes the list.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","TextInput","Item","Text","Layout"]}},"609cf39d53ad206b84db62bb3ef5a13e":{"docs":{"type":"namespace","name":"document-the-template","placement":{"parent":"namespace:templates","slot":"build","order":20},"title":"Document the template","summary":"Write the doc that helps people and agents find, choose, and trust your template: its name, description, readiness, preview, and any Core replacement.","keywords":["template doc","template documentation","page template","block template"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"609d0f66040f18e7545d465ace3ffb9a":{"doc":{"type":"page","name":"Checkout Form","displayName":"Checkout Form","description":"Long sectioned form running beside a summary that stays visible while the fields scroll and recalculates as they change, ending on a terminal confirm of the total. Sections run contact, address, delivery choice, then card details.","keywords":["checkout","payment","billing","cart","buyer","purchase"],"isReady":true,"category":"Form - Checkout","icons":{"CheckCircleIcon":"success","LockClosedIcon":"lock","ShieldCheckIcon":"shield","TruckIcon":"shipping"}}},"60c69eaa1d68f4a9b3ab6eacdc027bab":{"doc":{"type":"block","exampleFor":"useLinkify","name":"useLinkify — Links in a Comment Thread","displayName":"useLinkify — Links in a Comment Thread","description":"Plain-text comments where useLinkify turns the URL and the email address into Links, and a custom pattern turns issue references like #123 into tracker links — the patterns option in action. The comment without matches stays plain text.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Link","Layout","Text"]}},"60efbaec7dd29bab5d1cc90b35c314b9":{"doc":{"type":"block","exampleFor":"Theme","name":"Theme — Nested Theme","displayName":"Theme — Nested Theme","description":"Nested Theme providers let a local region use a different theme without affecting the rest of the page.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Theme","Card","Button","Section","Layout","Text"]}},"60ff31a2049b3f01d2dac79941fd7231":{"doc":{"type":"block","exampleFor":"CommandPalette","name":"CommandPalette — Async Search","displayName":"CommandPalette — Async Search","description":"Server-side search with loading spinner and custom empty states.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteInput"]}},"610e4c355efe8926a2f27fae6c6b7689":{"doc":{"type":"block","exampleFor":"NumberInput","name":"NumberInput — Clearable","displayName":"NumberInput — Clearable","description":"Number input with a clear button, unit suffix, and min/max constraint","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["NumberInput","Center"]}},"61183be325c88ef2fe19d5e5c835cd72":{"doc":{"type":"block","exampleFor":"Blockquote","name":"Blockquote — Showcase","displayName":"Blockquote — Showcase","description":"Blockquote with and without citation. A quick visual reference for the blockquote component.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Blockquote","Layout"]}},"618320f70d1a2b11db57cdd625d6c6e9":{"docs":{"type":"generic","name":"other-libraries","title":"Other Libraries","placement":{"parent":"namespace:styling-libraries","slot":"guides","order":30},"category":"guide","description":"Panda, Chakra, MUI, Emotion, styled-components, Theme UI, UnoCSS, and the interop checklist.","keywords":["UnoCSS","semantic tokens","palette"],"sections":[{"id":"semantic-token-systems","title":"Panda, Chakra, and Other Semantic Token Systems","content":[{"type":"prose","text":"Libraries like Panda CSS and Chakra UI have first-class semantic token objects. Put system CSS variables at the leaves of those objects so product code can use the library's semantic names while the system still owns the values."},{"type":"code","lang":"ts","label":"Semantic token aliases","code":"semanticTokens: {\n colors: {\n text: {\n primary: {value: 'var(--color-text-primary)'},\n secondary: {value: 'var(--color-text-secondary)'},\n },\n background: {\n surface: {value: 'var(--color-background-surface)'},\n body: {value: 'var(--color-background-body)'},\n },\n border: {\n default: {value: 'var(--color-border)'},\n },\n },\n},\ntokens: {\n spacing: {\n 4: {value: 'var(--spacing-4)'},\n },\n radii: {\n container: {value: 'var(--radius-container)'},\n },\n}"},{"type":"code","lang":"tsx","label":"Panda-style usage","code":"<section\n className={css({\n bg: 'background.surface',\n color: 'text.primary',\n borderColor: 'border.default',\n p: '4',\n rounded: 'container',\n })}\n/>"},{"type":"prose","text":"If a semantic-token library needs to generate its own light/dark CSS from raw values, align its mode selector with Theme (`data-theme=\"light|dark\"`) and generate that adapter from system theme data. Otherwise it can drift from nested or runtime themes."}]},{"title":"MUI and Palette-Based Themes","content":[{"type":"prose","text":"`MUI` expects palette slots such as primary, background, text, and divider. Map those slots to system variables for ordinary component styling. Use raw values only when MUI or your code needs to parse colors for contrast, alpha, lighten, or darken calculations."},{"type":"code","lang":"ts","label":"MUI palette mapped to system vars","code":"const theme = createTheme({\n cssVariables: true,\n colorSchemes: {\n light: {\n palette: {\n primary: {main: 'var(--color-accent)'},\n background: {\n default: 'var(--color-background-body)',\n paper: 'var(--color-background-surface)',\n },\n text: {\n primary: 'var(--color-text-primary)',\n secondary: 'var(--color-text-secondary)',\n },\n divider: 'var(--color-border)',\n },\n },\n dark: {\n palette: {\n primary: {main: 'var(--color-accent)'},\n background: {\n default: 'var(--color-background-body)',\n paper: 'var(--color-background-surface)',\n },\n text: {\n primary: 'var(--color-text-primary)',\n secondary: 'var(--color-text-secondary)',\n },\n divider: 'var(--color-border)',\n },\n },\n },\n});"},{"type":"prose","text":"If MUI owns color mode in an app, generate the light and dark palette values from system theme data and keep Theme mode synchronized. If Theme owns color mode, keep both MUI schemes pointing at the same system CSS variables."}]},{"id":"css-in-js","title":"Emotion, styled-components, Theme UI, and Styled System","content":[{"type":"prose","text":"Runtime CSS-in-JS libraries such as `Emotion` and `styled-components` usually accept arbitrary theme objects. Keep those objects semantic, but store system CSS variable references as the values. This keeps generated classes stable while the system updates values through the CSS cascade."},{"type":"code","lang":"ts","label":"Generic CSS-in-JS theme object","code":"const appTheme = {\n colors: {\n textPrimary: 'var(--color-text-primary)',\n textSecondary: 'var(--color-text-secondary)',\n surface: 'var(--color-background-surface)',\n border: 'var(--color-border)',\n accent: 'var(--color-accent)',\n },\n spacing: {\n 4: 'var(--spacing-4)',\n },\n radius: {\n container: 'var(--radius-container)',\n },\n};"},{"type":"prose","text":"Avoid rebuilding CSS-in-JS theme objects with raw color values on every mode switch. CSS variables let the class names stay the same while the browser resolves the active values."}]},{"id":"unocss","title":"UnoCSS and Custom Utility Systems","content":[{"type":"prose","text":"Utility generators such as UnoCSS can put system variables in their theme config or shortcuts. Keep classes semantic (`bg-surface`, `text-primary`) and let the values point at system tokens."},{"type":"code","lang":"ts","label":"UnoCSS-style config","code":"export default defineConfig({\n theme: {\n colors: {\n surface: 'var(--color-background-surface)',\n primary: 'var(--color-text-primary)',\n border: 'var(--color-border)',\n accent: 'var(--color-accent)',\n },\n spacing: {\n 4: 'var(--spacing-4)',\n },\n },\n shortcuts: {\n 'astryx-card': 'bg-surface text-primary border border-border rounded-lg p-4',\n },\n});"},{"type":"prose","text":"Static utility extractors cannot see dynamically constructed class names. Prefer explicit class strings or the library's safelist/source-registration mechanism."}]},{"title":"Interop Checklist","content":[{"type":"list","style":"ordered","items":["Import the reset/base CSS and a theme CSS file early enough for first paint. For production SSR, prefer built themes from `{@command theme build}` or published `/built` theme imports plus `theme.css`.","Choose one owner for color mode. Theme uses `data-theme=\"light|dark\"` and `color-scheme` to resolve `light-dark()` tokens.","Map the external library's semantic layer to system variables by intent, not by exact naming. For example, MUI `background.paper` maps to `--color-background-surface`.","Use {@link namespace:tokens} and focused token docs when building mappings. Keep mappings small at first: text, surface/body/card/popover, border, accent, status, spacing, radius, typography, shadow.","Use token resolver APIs only for non-CSS APIs that need resolved values."]}]}]}},"61a53d66221f224f50293f8ba2057a2b":{"default":{"type":"icon-definition","name":"scale","description":"A balance scale: law, fairness, or weighing one option against another.","words":["balance","legal","justice","compare"]}},"61bb4b9c4571fdcd2643f0b00e7fe4ff":{"doc":{"type":"block","exampleFor":"Switch","name":"Switch — With Status","displayName":"Switch — With Status","description":"Switches with error, warning, and success validation states.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Switch","VStack","Center"]}},"61ec6866b5af2caa04c484895bd05e72":{"doc":{"type":"block","exampleFor":"Toolbar","name":"Toolbar — Three Slot","displayName":"Toolbar — Three Slot","description":"A toolbar with start, center, and end content using the three-column grid layout. Use when you need a centered title or heading with navigation and actions on either side.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toolbar","Button","Icon","Text","Card","Section"],"icons":{"ArrowLeftIcon":"arrowLeft"}}},"627b9d155e604abfc696024ad2131415":{"doc":{"type":"block","exampleFor":"SideNavCollapseButton","name":"SideNavCollapseButton — Basic","displayName":"SideNavCollapseButton — Basic","description":"Place a collapse button in the SideNav footer to let users toggle the rail between expanded and collapsed states. Disable the built-in button via collapsible={{hasButton: false}} when positioning it yourself.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["SideNav","SideNavCollapseButton","SideNavItem"]}},"6289baf60741e6a9d56603e9f4054c85":{"doc":{"type":"block","exampleFor":"ToggleButton","name":"ToggleButton","displayName":"Toggle Button","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Icon","Layout","ToggleButton"],"icons":{"BellIcon":"notification","BellSlashIcon":"notificationOff","BookmarkIcon":"bookmark","StarIcon":"star"}}},"62c1c92a7bec1c7d805f04d5e2856cb9":{"doc":{"type":"block","exampleFor":"ChatMessageBubble","name":"ChatMessageBubble","displayName":"Chat Message Bubble","description":"Grouped user bubbles with filled styling and a ghost-variant agent response, with timestamps and delivery status.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","ChatMessageBubble","ChatMessage","ChatMessageMetadata","Timestamp"]}},"62ed6b4961bbfc968adfefb01c60b74d":{"doc":{"type":"block","exampleFor":"Selector","name":"Selector — Validation States","displayName":"Selector — Validation States","description":"Selector showing error, warning, and success validation states.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Selector","Center","VStack"]}},"62ff78fa9192ab1ce7fd0ea71f4a28c1":{"docs":{"type":"generic","name":"subcomponent","placement":{"parent":"namespace:describe-the-component","slot":"guides","order":40},"title":"Subcomponent","category":"guide","description":"Move one member of a component family into its own sibling doc without duplicating it in the parent.","sections":[{"id":"choose-a-separate-doc","title":"Choose a separate doc","content":[{"type":"prose","text":"Start with a component family doc. Move one public member into a sibling doc when it has its own source and enough behavior, props, or usage guidance to maintain separately. The parent still lists the member, but only by name."},{"type":"list","style":"unordered","items":["Keep a small member inline when its whole contract stays clear in the family doc.","Use a sibling doc when the member needs focused search results, examples, usage guidance, or independent maintenance.","Give each member one documentation owner. Do not keep a full parent entry and a sibling doc for the same name."]}]},{"id":"reference-it-from-the-parent","title":"Reference it from the parent","content":[{"type":"code","lang":"javascript","label":"components/AcmeDialog.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */\nexport default {\n type: 'component',\n name: 'AcmeDialog',\n displayName: 'Acme Dialog',\n import: '@acme/astryx-widgets/components/AcmeDialog',\n usage: {description: 'Presents a focused task above the current page.'},\n components: [\n {\n name: 'AcmeDialog',\n displayName: 'Acme Dialog',\n description: 'Owns the modal surface and open state.',\n props: [],\n },\n {name: 'AcmeDialogHeader'},\n ],\n};"},{"type":"prose","text":"The name-only entry keeps `AcmeDialogHeader` in the family. Its description and props come only from the sibling file."}]},{"id":"write-the-subcomponent-doc","title":"Write the subcomponent doc","content":[{"type":"code","lang":"javascript","label":"components/AcmeDialogHeader.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */\nexport default {\n type: 'component',\n name: 'AcmeDialogHeader',\n displayName: 'Acme Dialog Header',\n import: '@acme/astryx-widgets/components/AcmeDialogHeader',\n subComponentOf: 'AcmeDialog',\n description: 'Labels an Acme Dialog and holds its close action.',\n props: [\n {\n name: 'title',\n type: 'string',\n description: 'The dialog title.',\n required: true,\n },\n ],\n};"},{"type":"prose","text":"Every field is in {@link schema:component-doc}."},{"type":"list","style":"unordered","items":["`subComponentOf` must exactly match the parent doc's `name`.","`description` explains this member's role in the family. `usage` is optional; add it when the member needs guidance beyond that sentence.","The CLI does not copy family fields such as `group`, `category`, or `keywords` from the parent to the child. Set any the child needs in its own doc."]}]}]}},"631ec651d9ee57b17f2a303c14f4886f":{"default":{"type":"icon-definition","name":"info","description":"Give more information or help.","words":["information","help","about","information circle"],"builtIn":true}},"63cfea82c199c729136d38b32ee111a3":{"doc":{"type":"block","exampleFor":"Button","name":"Button — End Slot","displayName":"Button — End Slot","description":"Buttons with a trailing badge showing a count or status. Use for notification counts, unread messages, or any button that needs a visual indicator.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Badge","Layout","Text"]}},"63f014ef7db85387a7c1b99cbeac9f77":{"docs":{"name":"elevation","title":"Elevation","category":"foundations","description":"Shadow tokens for visual elevation and inset state rings.","tokenCategory":"shadow","sections":[{"title":"Overview","category":"foundations","content":[{"type":"prose","text":"Elevation tokens create depth through box-shadow. Three levels (low, med, high) establish a visual hierarchy for floating elements. Inset shadows provide focus and selection rings for interactive components."}]},{"title":"Elevation Scale","category":"foundations","content":[{"type":"prose","text":"Each level adds stronger offset and spread. Shadow color adapts to dark mode automatically via light-dark()."},{"type":"token-ref","topic":"tokens","section":"Shadow Tokens"}]},{"title":"Choosing a level","category":"foundations","content":[{"type":"prose","text":"Pick the level by how far the surface sits from the page, not by how much shadow you want. Elevation encodes stacking order: a higher level means the surface is layered over more of the UI. Use exactly one level per surface, and only raise a surface above `none` when it actually sits above other content."},{"type":"table","headers":["Level","When to use","Examples"],"rows":[["none","The component is flat and embedded in the surface; it is part of the page, not layered above it. This is the default for every surface except ChatComposer.","A Card in a grid, an inline Banner, a standard Button"],["low","The component is in the normal page flow but should read as distinct from the background. Use for emphasis or to separate the component from the surface behind it; the component still sits on the page, it is not floating over other content.","A raised Card that needs emphasis, a ChatComposer"],["med","The component sits over other content on the same page; it floats above nearby elements but not the whole screen.","A Popover, a floating Banner, a floating action Button"],["high","The component is placed over the entire UI; it is the topmost layer and typically has a backdrop or takes focus from everything else.","A modal Dialog, a full-screen overlay surface"]]},{"type":"prose","text":"If two surfaces overlap, the one on top takes the higher level. If a surface does not overlap anything, it is `none` or `low`; never `med` or `high`."}]},{"title":"The elevation prop","category":"foundations","content":[{"type":"prose","text":"Configurable surfaces expose a single `elevation` prop instead of asking consumers to hand-write a box-shadow. It takes the graded enum `none | low | med | high`, narrowed per component to the steps that surface needs: Card, ClickableCard, SelectableCard, Button, IconButton, ButtonGroup, ToggleButton, and Banner expose the full scale, while ChatComposer exposes only `none | low`. `none` is a flat literal (`box-shadow: none`); the other levels map to the `--shadow-*` tokens above, so a surface stays theme-agnostic."},{"type":"prose","text":"Prop defaults preserve current appearance: every surface defaults to `none` except ChatComposer, which defaults to `low` to keep its raised look. Set `elevation=\"none\"` to flatten it; the flat composer draws a border with the same rest / hover / focus treatment as a text input."},{"type":"code","lang":"tsx","label":"Raising a surface with the elevation prop","code":"import {Plus} from 'lucide-react';\n\n// Flat by default; raise only when the surface needs to float.\n<Card elevation=\"low\">Raised card</Card>\n\n// A floating action button.\n<IconButton icon={<Icon icon={Plus} />} label=\"New\" variant=\"primary\" elevation=\"med\" />\n\n// Flatten the composer (defaults to 'low').\n<ChatComposer elevation=\"none\" onSubmit={handleSubmit} />"},{"type":"prose","text":"Always float; no prop: intrinsic overlays (Dialog, Popover, Tooltip, Toast, HoverCard, DropdownMenu, and the components that compose them) bake their elevation in and never expose the prop. Flow content (inputs, Text, layout) is never elevated; input fields use inset rings, which are a separate concept from elevation."}]},{"title":"Usage","category":"foundations","content":[{"type":"prose","text":"When building a custom surface, read elevation from the token scale rather than a hand-rolled shadow; the same tokens the elevation prop resolves to."},{"type":"code","lang":"tsx","label":"Applying elevation","code":"import {shadowVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n dropdown: {\n boxShadow: shadowVars['--shadow-med'],\n },\n dialog: {\n boxShadow: shadowVars['--shadow-high'],\n },\n inputFocused: {\n boxShadow: shadowVars['--shadow-inset-selected'],\n },\n});"}]},{"title":"Best Practices","category":"foundations","content":[{"type":"list","style":"do","items":["Reach for the `elevation` prop on a configurable surface before writing any custom shadow.","Choose the level by how far the surface sits from the page: `none` when flat/embedded, `low` when in-flow but distinct, `med` when over page content, `high` when over the whole UI. See \"Choosing a level\".","Use inset shadows for input focus/selection states; they compose better than outlines."]},{"type":"list","style":"dont","items":["Hand-write a `box-shadow` in app code; set the `elevation` prop or read `shadowVars` instead.","Raise a surface that does not sit above other content; a non-overlapping surface is `none` or `low`, never `med` or `high`.","Stack multiple elevation levels on the same element.","Use elevation shadows for decorative borders. Use --color-border tokens instead."]}]}]}},"6437a288cd48cae09f5cf204cd9ae095":{"doc":{"type":"block","exampleFor":"Step","name":"Step — Content Slot","displayName":"Step — Content Slot","description":"Children passed to a Step render below its description, indented to line up with the label rather than the indicator, and stay outside the clickable label area so buttons inside remain their own targets. In a full flow you gate the slot on the step being active. That is what turns a vertical stepper into an expanding one.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper","Step","TextInput","Button"]}},"644a99ae0f21092b62956758bbd53bfa":{"doc":{"type":"block","exampleFor":"Collapsible","name":"Collapsible — Controlled","displayName":"Collapsible — Controlled","description":"Manage the open section from parent state, so something other than a click can move it: a URL parameter, a form jumping to the step that failed validation, or the Previous/Next controls shown here. onChange hands back the whole open value.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Collapsible","CollapsibleGroup","Card","Text","Button","Stack"]}},"64a6364741079feb439031a2da953c67":{"doc":{"type":"block","exampleFor":"LayoutPanel","name":"LayoutPanel","displayName":"Layout Panel","description":"LayoutPanel is a sidebar slot within a Layout, used for navigation, detail views, or secondary content alongside the main content area.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","LayoutPanel"]}},"64c4e0b44c602535a26c39107a977530":{"default":{"type":"icon-definition","name":"arrowLeft","description":"Go back to the previous page.","words":["back","previous"]}},"64ca52c0add64294aef2e618745b36ba":{"doc":{"type":"block","exampleFor":"DropdownMenu","name":"DropdownMenu — Submenu","displayName":"DropdownMenu — Submenu","description":"Action menu with a nested submenu. Hover or Right arrow opens the flyout; Left arrow / Escape closes it. Use to group related destinations or secondary actions without crowding the top level.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","Layout","Text"]}},"64d0101bb9aa688fbdbd5c2f56f70f1e":{"doc":{"type":"block","exampleFor":"AvatarGroupOverflow","name":"AvatarGroupOverflow — Default Count","displayName":"Avatar Group Overflow — Default Count","description":"Use AvatarGroupOverflow without children to render the standard +N overflow count.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["AvatarGroupOverflow","AvatarGroup","Avatar","Layout","Text"]}},"654e7a1111c0efe81dfa222916b71202":{"default":{"type":"icon-definition","name":"expand","description":"Make something larger or full screen.","words":["maximize","fullscreen","enlarge","arrows pointing out"]}},"656e06cdb0a952dabe6e9ca8b28b764f":{"doc":{"type":"block","exampleFor":"ComplexSelector","name":"ComplexSelector — Deadline Picker","displayName":"Complex Selector — Deadline Picker","description":"A multi-step deadline field: pick a preset like Today or Next week, or switch to a custom date and time before applying. The popup stays open until the user commits, so the content owns the Apply action.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ComplexSelector","RadioList","DateInput","TimeInput","Button"]}},"65992a697a0f84e145cdaea0ad024d27":{"default":{"type":"icon-definition","name":"wallet","description":"A wallet, a balance, or stored payment methods.","words":["wallet","balance","billfold"]}},"6643b69efcbe424528b03976804620ce":{"doc":{"type":"block","exampleFor":"AppShell","name":"AppShell — Top Nav with Side Nav","displayName":"AppShell — Top Nav with Side Nav","description":"The most common layout with TopNav for app identity and SideNav for page-level navigation.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AppShell","TopNav","SideNav","Heading","Text","VStack","NavIcon"],"icons":{"ChartBarIcon":"chart","Cog6ToothIcon":"settings","CubeIcon":"package","FolderIcon":"folder","HomeIcon":"home","UsersIcon":"users"}}},"66c23abc7dc9787a3e6a6fc5263786c3":{"doc":{"type":"block","exampleFor":"LayoutContent","name":"LayoutContent — Basic","displayName":"LayoutContent — Basic","description":"A scrollable main content area below a fixed header. Use LayoutContent inside Layout to get automatic padding and scroll containment for the primary content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["LayoutContent","Layout","LayoutHeader","Center","Card","VStack","Heading","Text"]}},"671bb366e1c933d2c8f94b1843cf8722":{"doc":{"type":"block","exampleFor":"Selector","name":"Selector — Option descriptions","displayName":"Selector — Option descriptions","description":"Options carry a description, so the dropdown draws a two-line row. The closed trigger is sized by padding, so it is the size token for a one-line value and exactly one line taller for a two-line one; both on the 4px rhythm. An InputGroup pins the row, so the value folds back onto one line there.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Selector","SelectorOption","InputGroup","Button","Stack"],"icons":{"GlobeAltIcon":"globe","LockClosedIcon":"lock"}}},"6769cfc593ddffcc80a6eacd15257cd0":{"doc":{"type":"block","exampleFor":"Markdown","name":"Markdown — Cited Content","displayName":"Markdown — Cited Content","description":"Markdown with citation chips linked to external sources","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Markdown"]}},"678761ed3907e52ee951a6513c6cd669":{"doc":{"type":"block","exampleFor":"NavHeadingMenu","name":"NavHeadingMenu","displayName":"Nav Heading Menu","description":"NavHeadingMenu passed as the menu prop of SideNavHeading, letting the heading act as a product switcher popover trigger.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","SideNavHeading","NavHeadingMenu","NavHeadingMenuItem"]}},"67cc0d28944970817b10cd763e56a594":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav — With Logo","displayName":"TopNav — With Logo","description":"Navigation bar with a branded logo icon, heading link, nav items, and a profile action.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","NavIcon","Button"],"icons":{"CubeIcon":"package","UserCircleIcon":"userCircle"}}},"683f1a8888a6244d2730974783a19a43":{"default":{"type":"icon-definition","name":"wrench","description":"Open settings or configuration tools.","words":["tools","configure","fix"],"builtIn":true}},"686d3e7caf0b226cc23072fee255fdcd":{"doc":{"type":"block","exampleFor":"Icon","name":"Icon — Size Variants","displayName":"Icon — Size Variants","description":"All icon sizes from extra-small to large.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Icon","HStack","VStack","Text"]}},"686fd5c9a12942a1bec4426828c43284":{"doc":{"type":"block","exampleFor":"ChatDictationButton","name":"ChatDictationButton","displayName":"Chat Dictation Button","description":"Interactive dictation button connected to the SpeechRecognition API via useChatDictation. Click the mic to dictate into the composer.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatDictationButton","ChatComposer","ChatComposerInput"]}},"68e7598406fc53d94eb38d56c772b736":{"doc":{"type":"block","exampleFor":"Slider","name":"Slider — Range","displayName":"Slider — Range","description":"Range slider for selecting a value range like price bounds.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Slider"]}},"69534613e02c6afeda591c0b35f8ffe4":{"doc":{"type":"block","exampleFor":"Tooltip","name":"Tooltip","displayName":"Tooltip","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Tooltip","Button"]}},"69686ad04491f858db4bb453d52a85f9":{"doc":{"type":"block","exampleFor":"Token","name":"Token","displayName":"Token","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Icon","Layout","Token"],"icons":{"TagIcon":"tag"}}},"6979e95d427f561e6e96171f60cea6cb":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav — Centered Navigation","displayName":"TopNav — Centered Navigation","description":"Navigation layout with center-aligned nav items flanked by a logo heading and end actions.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","NavIcon","Button"],"icons":{"CubeIcon":"package","UserCircleIcon":"userCircle"}}},"69a4f7c589a14eb8f2bc275a83277c28":{"doc":{"type":"block","exampleFor":"CommandPaletteEmpty","name":"CommandPaletteEmpty","displayName":"Command Palette Empty","description":"Command palette empty state shown when no commands are available.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteEmpty","Text"]}},"6a26b22200c8b5396aa94d9c4bc2932e":{"doc":{"type":"block","exampleFor":"Field","name":"Field — Description","displayName":"Field — Description","description":"Fields with helper text below the label. Use descriptions to explain format requirements, constraints, or what happens with the data, like \"At least 8 characters\" or \"We will send a confirmation link\".","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextInput","Layout","Text"]}},"6a950c8ede9058e8217cea1ef6350bad":{"default":{"type":"icon-definition","name":"panelBottom","description":"Show or hide a panel at the bottom edge.","words":["bottom panel","toolbar","dock"]}},"6ac26dc4ab2d64ee11df85dca8efa7a3":{"doc":{"type":"block","exampleFor":"Toast","name":"Toast — Dismiss","displayName":"Toast — Dismiss","description":"Show a persistent toast and dismiss it programmatically using the function returned by useToast. Use for long-running operations that need manual cleanup.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toast","Button","Layout","Text"]}},"6aebfb05c8d08276b5b4b256d3d5ecac":{"doc":{"type":"block","exampleFor":"useLayer","name":"useLayer — Anchored Layer","displayName":"useLayer — Anchored Layer","description":"Low-level anchored overlay rendered with useLayer and a custom surface.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layer","Button","Card","Text","Layout","Center"]}},"6b292f6e1c68f32d47be56154a09eb46":{"doc":{"name":"Classic Gallery","displayName":"Classic Gallery","description":"Uniform grid of equal-ratio media tiles under a centered intro, with filter tabs that narrow the set in place. Regular rhythm, unlike the variable-height masonry variant.","keywords":["gallery","photos","images","pictures","portfolio index"],"type":"page","isReady":true,"category":"Gallery - Basic"}},"6b6a9215dea0cb0c5d15ffe1254c4edf":{"doc":{"type":"block","exampleFor":"DropdownMenu","name":"DropdownMenu — Sections","displayName":"DropdownMenu — Sections","description":"Menu items organized into titled sections for easy scanning. Use when you have 6+ actions that fall into distinct categories, like Create vs Manage.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","Layout","Text"]}},"6b8db77ebb4aa7d951b633fbea62215d":{"docs":{"name":"icons","title":"Icons","category":"foundations","description":"Semantic icon names available in the design system. These adapt to the active theme's icon registry.","sections":[{"title":"Available Names","category":"foundations","content":[{"type":"prose","text":"Components that accept an icon prop use IconType: either a semantic name string or a direct SVG component. The semantic names below are resolved through the global icon registry."},{"type":"table","headers":["Name","Usage"],"rows":[["close","Dismiss, close dialogs/panels"],["chevronDown","Dropdown triggers, expand/collapse"],["chevronLeft","Navigate back, previous"],["chevronRight","Navigate forward, next"],["chevronsLeft","Jump to first, skip to start"],["chevronsRight","Jump to last, skip to end"],["check","Checkbox checked, confirm"],["success","Success status indicator"],["error","Error status indicator"],["warning","Warning status indicator"],["info","Info status indicator, tooltips"],["calendar","Date pickers, scheduling"],["clock","Time pickers, timestamps"],["externalLink","Links opening in new tab"],["menu","Hamburger menu, navigation toggle"],["moreHorizontal","Overflow menu, additional actions"],["search","Search inputs, find"],["upload","Upload files or content"],["arrowUp","Sort ascending, move up"],["arrowDown","Sort descending, move down"],["arrowsUpDown","Sortable column indicator"],["funnel","Filter controls"],["eyeSlash","Hidden/visibility toggle"],["viewColumns","Column visibility settings"],["copy","Copy to clipboard"],["checkDouble","Copied confirmation"],["wrench","Settings, configuration"],["stop","Stop/cancel action"],["microphone","Voice input, audio recording"]]}]},{"title":"Custom Icons","category":"foundations","content":[{"type":"prose","text":"For icons not in the semantic list, pass an SVG component directly. Any ComponentType<SVGProps<SVGSVGElement>> works; Icon applies size and color styling automatically."},{"type":"code","lang":"tsx","label":"Using custom SVG components","code":"import { PhotoIcon } from '@heroicons/react/24/outline';\nimport { HeartIcon } from 'lucide-react';\n\n<Icon icon={PhotoIcon} size=\"lg\" />\n<Icon icon={HeartIcon} color=\"error\" />"}]},{"title":"Theme Overrides","category":"foundations","content":[{"type":"prose","text":"Themes can replace the default SVGs for any semantic name with the `icons` field in `defineTheme()`. This lets you swap the icon set (e.g. heroicons → lucide) without touching component code, and keeps lookup scoped to the active theme instead of mutating global defaults."},{"type":"code","lang":"tsx","label":"Theme-scoped icons","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {XMarkIcon, ChevronDownIcon} from '@heroicons/react/24/outline';\n\nexport const brandTheme = defineTheme({\n name: 'brand',\n icons: {\n close: <XMarkIcon />,\n chevronDown: <ChevronDownIcon />,\n },\n});"},{"type":"prose","text":"An entry can also be a function of the request, so the theme maps Icon's size to its icon library's own props or artwork. `Icon` calls it with `{size, variant}`, where `size` is the size it renders at (`xsm`, `sm`, `md`, or `lg`: an explicit `size`, else the owning component's default, else `md`). Reads that return one node — `getIcon()`, `useIcon()`, `getIconRegistry()`, and the theme's `icons` field — call it with `{size: 'md'}`. The same entry shape works in `registerIcons()`."},{"type":"code","lang":"tsx","label":"A size-aware icon entry","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {Info} from 'lucide-react';\n\nexport const brandTheme = defineTheme({\n name: 'brand',\n icons: {\n // A heavier stroke keeps the small size legible.\n info: ({size}) => <Info strokeWidth={size === 'sm' || size === 'xsm' ? 2.5 : 2} />,\n },\n});"},{"type":"prose","text":"Keep the function pure and synchronous: it computes its result from the request only, with no hooks, DOM or SVG measurement, browser globals, network access, mutable module state, or side effects. Its result is final. Returning `null` draws no glyph instead of falling back to a registered or built-in icon, while a `null` or `undefined` node entry still falls back. A child theme that sets an entry for a key replaces the inherited entry for that key."}]},{"title":"Icon Variants","category":"foundations","content":[{"type":"prose","text":"A theme lists the icon variant names it supports once, with `iconVariants` in `defineTheme()`. The list belongs to the whole theme, never to one icon, and Astryx defines no names of its own. Inside `defineTheme`, an entry function receives `variant` typed as the listed names, or `undefined`, so a misspelled name is a type error. An entry that receives `undefined` draws its normal artwork."},{"type":"code","lang":"tsx","label":"Listing variants and mapping them to artwork","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {InfoFilledIcon, InfoIcon} from './brand-icons';\n\nexport const brandTheme = defineTheme({\n name: 'brand',\n iconVariants: ['outline', 'filled'],\n icons: {\n info: ({size, variant}) =>\n variant === 'filled' ? <InfoFilledIcon /> : <InfoIcon bold={size === 'sm'} />,\n },\n});\n\nbrandTheme.iconVariants; // ['outline', 'filled']"},{"type":"prose","text":"A theme that `extends` another inherits its list unless it sets its own; a list it sets replaces the inherited one instead of merging with it."},{"type":"prose","text":"Request a variant with `Icon`'s `variant` prop. The entry receives it only when the active theme lists it; an entry the theme inherited also needs the theme that defined it to list it. Otherwise the entry receives `undefined` and draws its normal artwork, so an unlisted variant never breaks rendering. A `registerIcons()` entry receives the variants the active theme lists, and a node entry draws the same node for every variant. An icon component passed directly to `Icon` never receives `variant`, and `variant` is never written to the DOM: it selects artwork, so there is no theming selector for it."},{"type":"code","lang":"tsx","label":"Requesting a variant","code":"<Icon icon=\"info\" variant=\"filled\" /> // brandTheme: the filled artwork\n<Icon icon=\"info\" /> // the normal artwork"},{"type":"prose","text":"An application declares the variant names it uses by augmenting `IconVariantMap` from `@astryxdesign/core/Icon`. `IconVariant` is those names, and an entry passed to `registerIcons()` receives `variant` typed as `IconVariant`. `astryx theme build` writes this augmentation for a built theme's list."},{"type":"code","lang":"ts","label":"Declaring the variant names an application uses","code":"declare module '@astryxdesign/core/Icon' {\n interface IconVariantMap {\n outline: true;\n filled: true;\n }\n}"}]},{"title":"Component and Library Icons","category":"foundations","content":[{"type":"prose","text":"A glyph that belongs to one component or library gets a namespaced key (`numberInput:stepperDown`, `richtext:bold`) instead of a new semantic name. It resolves through the same registry and a theme overrides it the same way, but the shared IconName list stays reserved for glyphs the whole system uses, so adding one does not make every downstream icon registry grow a key."},{"type":"code","lang":"tsx","label":"Owning and theming a namespaced icon","code":"// The component renders it like any other name, keeping size and color.\n<Icon icon=\"numberInput:stepperDown\" size=\"xsm\" />\n\n// A theme maps it independently of the shared chevron.\nexport const brandTheme = defineTheme({\n name: 'brand',\n icons: {\n chevronDown: <ChevronDownIcon />,\n 'numberInput:stepperDown': <CaretDownFilledIcon />,\n },\n});"},{"type":"prose","text":"Outside core, pass a fallback to `getExtendedIcon(key, fallback)` so the glyph renders with no theme."}]},{"title":"Component Icon Slots","category":"foundations","content":[{"type":"prose","text":"A component icon slot names why an icon appears in one component, such as `code-block-copy` for CodeBlock's copy button. `defineTheme({componentIcons})` maps a slot to one of the shared icon names. A theme can then change the icon one component uses without changing that name's artwork everywhere; `icons` still chooses the artwork for each name. Each component's docs list its slots, their state, and their fallbacks (`astryx component CodeBlock`)."},{"type":"code","lang":"tsx","label":"Mapping a slot, with its state","code":"export const brandTheme = defineTheme({\n name: 'brand',\n componentIcons: {\n 'code-block-copy': ({copied}) => ({icon: copied ? 'checkDouble' : 'copy'}),\n },\n});"},{"type":"prose","text":"A slot value is a shared icon name, `null` to hide the icon, or a partial request of `icon`, `variant`, and `size`. A field the request leaves out keeps the component's own value. A slot with state also accepts a pure, synchronous function of that state that returns a request: returning `null` hides the icon, and returning `undefined` changes nothing. A request `size` changes only the icon, never the control around it. Icon content a component's caller passes wins over the slot."},{"type":"prose","text":"An unknown icon name, a variant the theme does not list, or a size other than `xsm`, `sm`, `md`, or `lg` is ignored for that field, with one development warning. A theme that extends another merges `componentIcons` by slot ({@link generic:author-a-theme}). `theme.componentIcons` reads back names, `null` values, and static requests, and leaves out the slots a function resolves."}]}]}},"6bc0cd3d19a2fcde016d2103e1138984":{"doc":{"type":"block","exampleFor":"Outline","name":"Outline — Controlled","displayName":"Outline — Controlled","description":"Drive the active section yourself with activeId and onActiveIdChange. Providing activeId disables the built-in scroll-spy so your own logic owns the highlight.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Outline","Layout","Text","Button"]}},"6c1b5be108466e974f0eae2800e4d402":{"default":{"type":"icon-definition","name":"alignCenter","description":"Center text or items.","words":["center align","centre","text align"]}},"6c3affe4eaf82b61cbf808588ad8a8eb":{"doc":{"type":"block","exampleFor":"ProgressBar","name":"ProgressBar — With Value Label","displayName":"ProgressBar — With Value Label","description":"Progress bar with its current percentage displayed.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ProgressBar","Center"]}},"6c849f7fc8b8f71a45c6d190bff4c03b":{"docs":{"type":"generic","name":"see-it-in-an-app","placement":{"parent":"namespace:components","slot":"guides","order":40},"title":"See it in an app","category":"guide","description":"Confirm that an app discovers the component, its package, its public import, and its documentation.","sections":[{"id":"read-the-installed-component","title":"Read the installed component","content":[{"type":"prose","text":"An app that installs your package sees the component beside Core components, with its package name and public import. The app needs no config."},{"type":"code","lang":"bash","code":"{@command component AcmeCarousel}\n{@command component --list}\n{@command search carousel}"},{"type":"code","lang":"text","code":"package: @acme/astryx-widgets\n\n# AcmeCarousel\n\nCycles through slides one at a time. Use it for a small set of related cards.\n\n**Import:** `import {AcmeCarousel} from '@acme/astryx-widgets/components/AcmeCarousel';`"},{"type":"prose","text":"`component --list` shows it as `import: @acme/astryx-widgets/components/AcmeCarousel [@acme/astryx-widgets]`. The same commands work in your package while you build it."}]},{"id":"test-the-packed-package","title":"Test the packed package","content":[{"type":"prose","text":"Install the packed package in a test app before publishing. Then run the same detail, list, and search commands there. See {@link generic:test-in-an-app}."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: to check your package in an app, install it in that app; a copy installed for your computer is not used inside a project. To check it outside projects, install it for your computer beside the CLI. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"6cc2a5f4f71ec1219c87765e244c0f14":{"doc":{"type":"block","exampleFor":"SegmentedControl","name":"SegmentedControl — Icon Only","displayName":"SegmentedControl — Icon Only","description":"Compact segmented control with hidden labels, showing only icons for space-constrained layouts.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SegmentedControl"]}},"6cdf2ffbaffb90f3c33fdd699163a6ea":{"doc":{"type":"block","exampleFor":"DropdownMenu","alsoExampleFor":["BottomSheet","useMediaQuery"],"name":"DropdownMenu — Adaptive presentation","displayName":"DropdownMenu — Adaptive presentation","description":"Chooses a bottom sheet for compact touch surfaces and an anchored popover otherwise. The media query is product policy, while DropdownMenu owns both presentations.","isReady":true,"aspectRatio":0.75,"componentsUsed":["DropdownMenu","Stack","Text","useMediaQuery"],"icons":{"ArchiveBoxIcon":"archive","DocumentDuplicateIcon":"copy","PencilIcon":"edit","ShareIcon":"share"}}},"6cec88fa0b6c43ee8e0dab2a2c8c2154":{"doc":{"type":"block","exampleFor":"MoreMenu","name":"MoreMenu","displayName":"More Menu","description":"A basic three-dot menu with simple action items.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["MoreMenu"]}},"6ceda7cb23dce28bc6174838b33d5930":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav — Enterprise Dashboard","displayName":"TopNav — Enterprise Dashboard","description":"Full-featured navigation bar with icon-labeled nav items, search, notifications, and a primary CTA.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","NavIcon","Button"],"icons":{"BellIcon":"notification","CubeIcon":"package","DocumentTextIcon":"document","HomeIcon":"home"}}},"6cf4fa934b197b70d0f902135ac47640":{"default":{"type":"icon-definition","name":"trendUp","description":"Show a value going up.","words":["increase","growth","up","arrow trending up","trending up"]}},"6d3d9882d33f24ed49006bf1a4a1e793":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — Max Entries","displayName":"Tokenizer — Max Entries","description":"Tokenizer with a maximum selection limit. The input hides automatically when the limit is reached, preventing further additions.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Tokenizer","Layout","Text"]}},"6d6df67b32c9a1de7333d71f1052ab54":{"doc":{"type":"block","exampleFor":"AspectRatio","name":"AspectRatio — 16:9 Widescreen Image","displayName":"AspectRatio — 16:9 Widescreen Image","description":"16:9 widescreen aspect ratio wrapping an image.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AspectRatio","Center"]}},"6d7b022e887bd44776d6f00a58320b41":{"doc":{"type":"block","exampleFor":"TopNavMegaMenuFeaturedCard","name":"TopNavMegaMenuFeaturedCard — Basic","displayName":"TopNavMegaMenuFeaturedCard — Basic","description":"A promotional card with a title, description, and call-to-action link. Pass it to the featured slot of a TopNavMegaMenu to highlight announcements.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNavMegaMenuFeaturedCard"]}},"6e3d32b9cac3a1a33696c7460e2aec36":{"doc":{"type":"block","exampleFor":"DropdownMenu","name":"DropdownMenu — Disabled","displayName":"DropdownMenu — Disabled","description":"Menu with selectively disabled items based on permissions. Use when some actions require higher privileges, like admin-only operations.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","Layout","Text"]}},"6e5268a593bb61a2e4cec34677a81d0c":{"doc":{"type":"block","exampleFor":"Tooltip","alsoExampleFor":["useTooltip"],"alsoShowcaseFor":["useTooltip"],"name":"Tooltip — Hook Usage","displayName":"Tooltip — Hook Usage","description":"Tooltip using the useTooltip hook for programmatic control.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Tooltip","Button","Center"]}},"6eadae2b39d594a011eec503b3d141ac":{"doc":{"type":"block","exampleFor":"Stack","name":"Stack — Directions","displayName":"Stack — Directions","description":"Badges arranged horizontally and vertically in side-by-side cards.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","Badge","Text"]}},"6eb700329ac443540dfa24a9f40265a7":{"doc":{"type":"block","exampleFor":"useAnnounce","name":"useAnnounce — Filter Result Count","displayName":"useAnnounce — Filter Result Count","description":"A product filter that announces its result count with useAnnounce: once typing pauses for 500 ms, a screen reader hears \"3 results\" or \"No results\". The count has its own hasReplace instance, as the hook's docs advise for a changing value.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","TextInput","List","Text","Layout"]}},"6f03e61c01d119d662fc40b514305a6e":{"doc":{"type":"block","exampleFor":"Outline","name":"Outline — Deep Nesting","displayName":"Outline — Deep Nesting","description":"Heading levels 1 through 4 map to progressively deeper indentation, so a long document with sub-sections stays scannable.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Outline"]}},"6f0ca3a7c4407e0d998aa3eb9b13d96b":{"default":{"type":"icon-definition","name":"tablet","description":"A tablet device, or a tablet-sized view.","words":["ipad","device","tablet view"]}},"6f2c29d3bb8e40c96e1ad4b0c8cc010b":{"docs":{"type":"generic","name":"typography-best-practices","title":"Best Practices","placement":{"parent":"namespace:typography","slot":"guides","order":30},"category":"foundations","description":"Do/don't rules for using the type scale, headings, display text, and semantic tokens.","keywords":["best practices","accessibility","heading levels","font-size"],"sections":[{"title":"Best Practices","content":[{"type":"list","style":"do","items":["Use Heading for document headings and Text for everything else; they apply the full type scale automatically.","Adjust typography holistically: change base and ratio in defineTheme to shift the entire ramp (e.g. { base: 16, ratio: 1.25 } for editorial, { base: 12, ratio: 1.125 } for dense UI).","Use display types with as=\"h1\" (or h2/h3) when display text is a page heading; this preserves accessibility while giving you display-level sizing. Or better, use `<Heading level={1} type=\"display-1\">` which handles both semantics and styling.","Let line-height snap to the 4px grid via the type scale; expandTypeScale computes leading automatically from base and ratio.","Use the supporting type for secondary information: timestamps, helper text, metadata, captions.","Use accessibilityLevel on Heading when the visual hierarchy doesn't match the document outline (e.g. sidebar or card headings)."]},{"type":"list","style":"dont","items":["Set font-size or line-height manually; use the semantic type scale tokens so the full ramp stays consistent and 4px-grid-aligned.","Skip heading levels (e.g. h1 to h3); screen readers rely on an unbroken hierarchy. Use accessibilityLevel to decouple visual from semantic level.","Use display types for body content or in-page sections; they're designed for hero/marketing/data-callout contexts only.","Override individual size tokens (--font-size-lg) to \"tweak\" a heading; adjust base/ratio instead so proportions remain coherent across the entire scale.","Use raw numeric font-weight values (400, 600); reference the semantic weight tokens so themes can remap them."]}]}]}},"6f494a375494b2fccecde0218c092ff3":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav — Mega Menu","displayName":"TopNav — Mega Menu","description":"Marketing-style navigation with a full-width mega menu featuring product items and a promotional featured card.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMegaMenu","NavIcon","Button"],"icons":{"BoltIcon":"bolt","ChartBarIcon":"chart","CodeBracketIcon":"code","CubeIcon":"package","GlobeAltIcon":"globe","ShieldCheckIcon":"shield"}}},"6f49be4da07918d139b99236ab6f17c0":{"default":{"type":"icon-definition","name":"cut","description":"Cut a selection so you can paste it somewhere else.","words":["scissors","cut out","clip"]}},"6fc079a8db4e10ee64610249b84cbf82":{"default":{"type":"icon-definition","name":"send","description":"Send a message.","words":["submit","post","paper airplane"]}},"6fde77d3f5c227a1559eb9784ec74c6d":{"doc":{"type":"block","exampleFor":"Slider","name":"Slider — Validation States","displayName":"Slider — Validation States","description":"Sliders with error, warning, and success validation states.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Slider","VStack","Center"]}},"6ff8ea6c395176dc02676baf01574eec":{"doc":{"type":"block","exampleFor":"OverflowList","name":"OverflowList — Dropdown Actions","displayName":"OverflowList — Dropdown Actions","description":"Action toolbar that collapses overflow buttons into a dropdown menu","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["OverflowList","Button","DropdownMenu","Card"]}},"7040192f9c3e19c62ca128e1357eb864":{"doc":{"type":"block","exampleFor":"Slider","name":"Slider — Formatted Value","displayName":"Slider — Formatted Value","description":"Slider with custom formatting showing temperature in Fahrenheit.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Slider"]}},"705fec3c75a158a8e181d2d9cd22bf1c":{"doc":{"type":"block","exampleFor":"GridSpan","name":"GridSpan — Columns","displayName":"GridSpan — Columns","description":"Grid items spanning two of three columns. Wrap a grid child in GridSpan to make it occupy multiple columns for asymmetric layouts.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["GridSpan","Grid","Card","Text"]}},"7064cb38e87da0e8ec01d63b300840bc":{"docs":{"type":"generic","name":"template-fonts","placement":{"parent":"namespace:template-assets","slot":"guides","order":30},"title":"Fonts","category":"guide","description":"Keep text in the app's typeface unless the template truly needs its own, and ship every font file it uses when it does.","sections":[{"id":"prefer-host-typography","title":"Prefer host typography","content":[{"type":"prose","text":"Use Astryx typography components and theme values unless the template must demonstrate a specific licensed typeface. A copied template should normally inherit the app typography instead of installing a new global font."},{"type":"list","style":"unordered","items":["Do not add a font only to make sample content look more polished.","Do not override the app body font from a template.","Use a custom face only for a real product or content requirement that the integration package owns."]}]},{"id":"package-a-required-font","title":"Package a required font","content":[{"type":"prose","text":"Keep the font files beside a package-owned stylesheet. The stylesheet can use relative `url()` paths because it stays in the package, and the template imports the stylesheet by its public path ({@link generic:template-styles})."},{"type":"code","lang":"css","label":"styles/acme-dashboard.css","code":"@font-face {\n font-family: 'Acme Sans';\n src: url('../assets/fonts/acme-sans-regular.woff2') format('woff2');\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n}\n\n.acme-dashboard-title {\n font-family: 'Acme Sans', sans-serif;\n}"},{"type":"list","style":"unordered","items":["Ship WOFF2 when it satisfies the supported browsers. Add another format only when those browsers require it.","Declare every weight and style the template uses. Do not make the browser synthesize bold or italic because a file is missing.","Use `font-display: swap` unless the product requirement and performance test justify another value.","Confirm that the font license permits redistribution in the integration package."]},{"type":"prose","text":"Exporting the stylesheet does not publish the font files it points to. Include the font directory in the package as well ({@link generic:export-template-assets})."}]},{"id":"check-fonts-in-the-app","title":"Check fonts in the app","content":[{"type":"prose","text":"When you test the template in an app ({@link generic:test-template-in-app}), also confirm the following."},{"type":"list","style":"unordered","items":["Every font request succeeds from the built asset path.","Computed styles show the requested family, weight, and style.","Text stays readable with the fallback stack when a font loads slowly or fails."]}]}]}},"70b0087a789077eeec4b7f6711b44b8a":{"default":{"type":"icon-definition","name":"contrast","description":"Contrast, or a two-tone effect on an image.","words":["duotone","two tone","half circle"]}},"70d834c5f549c584add9a9f40d41ca7d":{"doc":{"type":"block","exampleFor":"useStreamingText","name":"useStreamingText — Streaming Response","displayName":"useStreamingText — Streaming Response","description":"A chat-style reply card: while the response streams in bursts, useStreamingText reveals it steadily character by character; when streaming ends the full text snaps into place. Regenerate replays the stream.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Button","Card","Text","Layout"]}},"70f48a78623ac07d362a3d9c8b481038":{"doc":{"type":"block","exampleFor":"RadioList","name":"RadioList — Horizontal Layout","displayName":"RadioList — Horizontal Layout","description":"Radio list with horizontal orientation for compact selections.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["RadioList"]}},"71d112efb59a5746f61cbe4ea1568bcd":{"docs":{"type":"generic","name":"global-integrations","placement":{"parent":"namespace:authoring","slot":"guides","order":25},"title":"Make your integration work globally","category":"guide","keywords":["authoring","global integration","global mode","npm i -g","installed for this computer","outside a project","peer range","peerDependencies","cliCommand conflict","try it globally"],"description":"People can install your integration next to their global Astryx install, where it works in every folder outside a project; inside a project, only the project's own integrations work. A checklist, with the exact commands to try it.","sections":[{"id":"peer-range","title":"First: your peer ranges must include the global CLI's version","content":[{"type":"prose","text":"Your `@astryxdesign/core` (and, if you use it, `@astryxdesign/cli`) `peerDependencies` ranges must include the version of the CLI installed globally. If they do not, Astryx skips your package outside projects, and `{@command doctor}` warns and names the range."},{"type":"prose","text":"Inside a project that does not install your package, `{@command discover}` offers it, with the command that adds it to that project, once your peer range admits the project's release."}]},{"id":"where-it-works","title":"Where your integration works","content":[{"type":"list","style":"unordered","items":["Installed in an app: it works in that app, as always, whichever `astryx` the person runs, because the app's version of Astryx answers there.","Installed next to the global install (`{@pm install @astryxdesign/cli your-package --global}`), or in the same folder as the CLI by a tool that installs them together: it works in every folder outside a project. People and agents there see its components, templates, docs, themes, codemods, and discover source.","Installed only globally, inside an app that does not install it: it adds nothing there. When it supports the app's version and loads, `{@command discover}` lists it as one the app could add, with the app's install command.","Installed both ways: the app's copy is the one used in that app. In your own package folder, your working copy is used."]},{"type":"prose","text":"Astryx loads a global integration with the same loader and checks as an app's, so nothing extra goes in your manifest."}]},{"id":"checklist","title":"Checklist","content":[{"type":"list","style":"unordered","items":["Declare the `@astryxdesign/core` (and, if you use it, `@astryxdesign/cli`) `peerDependencies` range your package really supports. Outside a project, Astryx skips your package when that range leaves out the global version, and `{@command doctor}` says why: too narrow, and global users lose it after an upgrade; too wide, and it loads against a Core it may not build with.","Keep imports in your docs and templates to packages an app installs with yours, since outside a project there is no app to check them against.","If you set `cliCommand`, know that outside a project it starts every command Astryx prints, and that two global integrations naming different commands cancel out, falling back to `astryx` ({@link generic:cli-command}). Inside an app, only the app's integrations count.","Try it globally before you publish, with the steps below."]}]},{"id":"try-it","title":"Try it globally","content":[{"type":"prose","text":"Pack your package, install it next to a global CLI, and look at it from an empty folder:"},{"type":"code","lang":"bash","code":"{@pm-only npm \"the tarball the registry receives\" pack}\n{@pm install @astryxdesign/cli ./your-package-1.0.0.tgz --global}\nmkdir -p /tmp/try-global && cd /tmp/try-global\n{@command discover}\n{@command docs}\n{@command doctor}"},{"type":"list","style":"unordered","items":["`{@command discover}` lists your package as installed, with what it adds.","`{@command docs}` lists your topics, and `{@command search <one of your component names>}` finds them.","`{@command doctor}`'s `computer-integrations` check lists your package as used, with no warning.","In an app that does not install it, `{@command discover}` lists it as one the app could add, with the app's install command, and none of its components or docs show up."]},{"type":"prose","text":"Remove it again with `{@pm remove your-package --global}`."}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"How global mode works for the people who install your package: {@link namespace:global}. Their side of global integrations: {@link generic:computer-integrations}."}]}]}},"7214cd622c9e762abb0056b63c3c7fe2":{"doc":{"type":"block","exampleFor":"CheckboxList","name":"CheckboxList","displayName":"Checkbox List","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["CheckboxList"]}},"7242ba9ac0763474cd86dc97af52cb81":{"doc":{"type":"block","exampleFor":"ChatMessageMetadata","name":"ChatMessageMetadata — Footer Actions","displayName":"ChatMessageMetadata — Footer Actions","description":"Assistant message with footer actions: copy, retry, thumbs up/down, and model label. Use for AI responses that need feedback or utility controls.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatMessageMetadata","Timestamp","Button","Icon","Text","Layout"],"icons":{"ArrowPathIcon":"refresh","ClipboardDocumentIcon":"clipboard","HandThumbDownIcon":"thumbsDown","HandThumbUpIcon":"thumbsUp"}}},"72d7718786c5eb8e7dde316a29cee81d":{"default":{"type":"icon-definition","name":"moon","description":"Dark mode or night.","words":["dark mode","night"]}},"72feaa7ea1d236ab544ef0a394d1d392":{"doc":{"type":"block","exampleFor":"OverflowList","name":"OverflowList — Multi-row Tags","displayName":"OverflowList — Multi-row Tags","description":"Tags wrap onto up to two rows with maxRows, then collapse the rest into a count badge","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["OverflowList","Badge","Card"]}},"730b5073bb4fdca259322ccb2f7aa287":{"doc":{"type":"page","name":"Simple Table","displayName":"Simple Table","description":"Flat row collection where columns sort, rows select into a bulk-action toolbar, and each row carries an overflow menu. Sortable but ungrouped, with no detail pane, the baseline shape.","keywords":["table","list","rows","records","grid","spreadsheet","roster"],"isReady":false,"category":"Table - Basic","isHiddenFromOverview":true}},"7347b12bfea29589acba933b5656a391":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — Custom Content","displayName":"Stepper — Custom Content","description":"A vertical stepper where each step owns a slice of the page. The content slot takes any node (form fields, a summary panel, a banner), so a stepper is not limited to multi-step forms. Rendering the slot only for the active step is what makes the flow expand one step at a time.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper","TextInput","Button","Text","Card","Badge","Banner"]}},"734ff25394e7eeb9318a6a759ad19e16":{"doc":{"type":"block","exampleFor":"VStack","name":"VStack — Basic","displayName":"VStack — Basic","description":"A heading and paragraphs stacked vertically with a consistent gap. Use VStack whenever siblings should flow top to bottom with even spacing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["VStack","Text","Heading"]}},"7359ba0d559209ab9385c83ffb5b02f4":{"doc":{"type":"block","exampleFor":"useTableTreeData","alsoExampleFor":["useTableTreeState"],"alsoShowcaseFor":["useTableTreeState"],"name":"useTableTreeData: Tree Table","displayName":"useTableTreeData: Tree Table","description":"A file-tree table built from nested data. useTableTreeState flattens the tree into the visible rows and owns the expanded set; useTableTreeData draws the per-level indent and the expand/collapse chevron in the tree column. The two hooks are designed to work together, so this one example covers both. hasExpandAllControl adds the expand-all/collapse-all toggle to the tree column header. Collapsed branches are unmounted, not hidden.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"7394c77a1fa8a8d875db59fc5a219d1b":{"doc":{"type":"block","exampleFor":"ChatMessage","name":"ChatMessage — Ghost","displayName":"ChatMessage — Ghost","description":"Ghost variant for messages without visible bubble boundaries. Keeps padding for alignment but renders a transparent background, useful for AI-style responses.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","ChatMessage","ChatMessageBubble","ChatMessageMetadata","Timestamp","Text","Layout"]}},"73bf18a0eb11d3477e77077e9d7330d6":{"default":{"type":"icon-definition","name":"moreHorizontal","description":"Open more actions for an item.","words":["more","overflow","actions","ellipsis","ellipsis horizontal"],"builtIn":true}},"73f05720e06532cb97e2145a03ace207":{"docs":{"type":"generic","name":"upgrading","placement":{"parent":"namespace:ship","slot":"guides","order":50},"title":"Upgrading","category":"guide","keywords":["upgrade apps","release notes"],"description":"Update your package for each Astryx release, and help apps upgrade with it.","sections":[{"id":"update-for-a-new-astryx-release","title":"Update for a new Astryx release","content":[{"type":"prose","text":"When Astryx ships a release, bump your devDependencies, rerun the checks, widen your peer ranges, and ship a codemod for each change that breaks apps."},{"type":"code","lang":"bash","code":"# 1. Build and test against the new release\n{@pm install @astryxdesign/cli@latest @astryxdesign/core@latest --dev}\n# 2. Rerun the checks\n{@command doctor integration validate}\n{@command doctor integration docs}\n{@command integration verify}\n# 3. Admit the new Core once the checks pass\n{@pm-only npm \"edits package.json\" pkg set 'peerDependencies.@astryxdesign/core=^0.6.0 || ^0.7.0'}\n# 4. Migrate apps across a change that breaks them\n{@command integration add codemod rename-delay --to 0.7.0}"},{"type":"list","style":"unordered","items":["Run every check in {@link generic:checks}, not only the ones shown.","Codemod folders are named for Core versions: {@link generic:codemods}.","Release the result as a new version of your package; see {@link generic:publishing}."]}]},{"id":"upgrade-an-app","title":"Upgrade an app","content":[{"type":"prose","text":"After an app installs a new Core, `{@command upgrade}` runs the codemods for the versions it crossed. It is a dry run by default; `--apply` writes the changes."},{"type":"code","lang":"bash","code":"# Preview what would change; nothing is written\n{@command upgrade --from 0.6.3 --integration @acme/astryx-widgets}\n# Write the changes\n{@command upgrade --from 0.6.3 --integration @acme/astryx-widgets --apply}"},{"type":"code","lang":"text","code":"Integrations: @acme/astryx-widgets\n<n> codemods to run\nApplying integration codemods...\n Rename AcmeCarousel delay to interval (v0.7.0, @acme/astryx-widgets)\n[ok] [ok] src/Hero.tsx"},{"type":"list","style":"unordered","items":["`--from` is the `@astryxdesign/core` version the app had before, and the target is the installed Core.","`--integration` names your package. Without it, or an `integrations` entry in `astryx.config`, the upgrade skips your codemods, even when the app has your package installed.","`<n>` includes Core's codemods for the same versions, which run first.","Put this command in your release notes."]}]},{"id":"know-which-files-upgrades-skip","title":"Know which files upgrades skip","content":[{"type":"prose","text":"Upgrades never write files that the app marks as generated, vendored, or ignored. When such a file still needs a codemod change, the upgrade stops with `ERR_CODEMOD_PROTECTED` and exit code 1."},{"type":"list","style":"unordered","items":["Generated: an `@generated` comment at the top of the file, or `linguist-generated` in `.gitattributes`.","Vendored: `linguist-vendored` in `.gitattributes`.","Ignored: a match in `.gitignore` or `.hgignore`."]},{"type":"code","lang":"text","code":"! ! src/gen/Gen.tsx - protected by @generated in the leading comment block\nERR_CODEMOD_PROTECTED: 1 protected file still requires a codemod change:\n src/gen/Gen.tsx — @generated in the leading comment block\nUpgrade incomplete: protected changes remain"},{"type":"prose","text":"The upgrade still writes every other file. Its options and exit codes are in {@link command:upgrade}."}]}]}},"74717edabf25b8186ceed2ae5159e3bc":{"default":{"type":"icon-definition","name":"keyboard","description":"A keyboard or keyboard shortcuts.","words":["keyboard","shortcuts","hotkeys"]}},"74a9d71804a11d6af95deb2c67a51a84":{"doc":{"type":"page","name":"Form Wizard","displayName":"Form Wizard","description":"Linear multi-step form that moves through one panel at a time, with a horizontal progress track pinned above rather than running down a rail, so every step keeps the full content width for its fields. Only the current step renders, unlike an accordion where each section expands into one long scrolling form. Each advance is validated, and a step left broken stays flagged to jump back to.","keywords":["wizard","stepper","multi-step","onboarding","setup","signup","guided flow","step-by-step","workflow","review step","request flow"],"isReady":true,"category":"Form - Wizard"}},"74d24ddf3d8e167c9d67cb07118303a5":{"doc":{"type":"block","exampleFor":"Code","name":"Code — Text Sizes","displayName":"Code — Text Sizes","description":"Inline code rendered inside heading, body, supporting, and label text. Code automatically matches the font size of its parent text element.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Code","Text","Stack"]}},"74e3734b12a11f1dbd3190dd110a87dc":{"docs":{"name":"principles","title":"Principles","category":"guide","description":"Core design principles and rules for building with the design system.","sections":[{"title":"Design Philosophy","category":"guide","content":[{"type":"prose","text":"A design system that prioritizes consistency, adaptability, and developer experience. Every decision flows from a few core ideas:"},{"type":"list","style":"unordered","items":["Components over primitives: use components for everything they cover before reaching for raw HTML","Semantic tokens over hardcoded values: colors, spacing, and radii are named by purpose, not appearance","Theme-agnostic code: your app code never references specific colors or measurements, so themes and dark mode work automatically","Open internals: every primitive is exported and composable, so you can build on top of it without fighting it"]}]},{"title":"Rules","category":"guide","content":[{"type":"prose","text":"Eight rules that keep app code on-system."},{"type":"list","style":"ordered","items":["Use components for everything they cover","Page layout is frame-first: pick the shell and budget regions before writing content (see {@link namespace:layout})","Dense data renders as rows (Table, List/Item), edge-to-edge with dividers; Card is for widgets, galleries, and settings groups","StyleX or Tailwind for custom styling; both are first-class (see {@link namespace:styling})","Semantic tokens, not hardcoded values (see {@link namespace:tokens})","CSS custom properties for colors, not hex values","Form inputs are controlled (value + onChange)","Use useLinkComponent() for navigation so consumers can plug in their framework router via LinkProvider"]}]},{"title":"Styling Approach","category":"guide","content":[{"type":"prose","text":"The design system supports multiple styling approaches. Every component accepts an `xstyle` prop for StyleX style overrides via `stylex.create()`. For layout and wrapper styling outside of components, use StyleX or Tailwind utilities; both resolve to the same design tokens."},{"type":"prose","text":"See {@link namespace:styling} for the complete guide with examples."}]},{"title":"Anti-Patterns","category":"guide","content":[{"type":"prose","text":"Patterns that break theming, routing, or layout, and what to use instead."},{"type":"list","style":"dont","items":["Inline styles on raw elements. Use xstyle on components","Hardcoded colors (#fff). Use var(--color-*) or Tailwind semantic classes (text-primary, bg-surface)","Hardcoded spacing (16px). Use spacing tokens or Tailwind spacing utilities","Hardcoded <a> elements. Use useLinkComponent() so consumers can swap in their framework router via LinkProvider","Wrapping every list item or page section in a Card. Decide the frame first; dense data renders as rows (see {@link namespace:layout})","Badge as decoration. Reserve Badge for counts and enumerated states; use StatusDot or Token for status","Inventing props. Read component docs first"]}]},{"title":"Design Tokens","category":"guide","content":[{"type":"prose","text":"The design system provides semantic design tokens for spacing, color, radius, shadow, typography, and size. Tokens adapt to the active theme and color mode. Run {@link namespace:tokens} for the full reference with all values."}]}]}},"7547d8c44f755085abcbb767b85c34d8":{"doc":{"type":"block","exampleFor":"CodeBlock","name":"Code — Highlighted","displayName":"Code — Highlighted","description":"TypeScript code with specific lines highlighted to draw attention to a key section. Use highlightLines to call out new or important code in tutorials and changelogs.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CodeBlock"]}},"7566dad6300cec751a00bbe2ebd8074b":{"docs":{"type":"generic","name":"test-template-in-app","placement":{"parent":"namespace:package-and-test","slot":"guides","order":30},"title":"Test in an app","category":"guide","description":"Prove the template works the way apps use it: installed from the packed package, copied, built, and rendered.","sections":[{"id":"install-the-packed-package","title":"Install the packed package","content":[{"type":"prose","text":"Install the packed package in a clean app as described in {@link generic:test-in-an-app}. Also install every library the copied source imports, such as its icon library. Pack and reinstall after every change."}]},{"id":"copy-the-template","title":"Copy the template","content":[{"type":"code","lang":"bash","code":"# Confirm discovery and metadata\nastryx --json template --list --package @acme/astryx-widgets\n\n# Inspect source without writing\n{@command template acme-dashboard --package @acme/astryx-widgets}\n\n# Copy a page and a block to their real app locations\n{@command template acme-dashboard --package @acme/astryx-widgets src/app/acme-dashboard}\n{@command template acme-stat-card --package @acme/astryx-widgets src/components}"},{"type":"list","style":"unordered","items":["Confirm the copied files: `src/app/acme-dashboard/page.tsx` and `src/components/acme-stat-card.tsx`.","Inspect the copied source for placeholder substitutions and relative references.","Import the copied block into a real page. A file that is never imported has not been tested."]}]},{"id":"build-every-supported-app","title":"Build every supported app","content":[{"type":"prose","text":"Run the type check (`{@pm exec tsc --noEmit}`, or the app's own script) and the production build in every framework or bundler the integration supports. One toolchain passing does not prove another."},{"type":"code","lang":"bash","code":"{@pm exec tsc --noEmit}\n{@pm run build}"},{"type":"list","style":"unordered","items":["Every import resolves from the copied location.","Production builds keep required side-effect CSS.","No import bypasses `exports`, and no dependency resolves only through workspace hoisting."]}]},{"id":"render-the-behavior-matrix","title":"Render the behavior matrix","content":[{"type":"table","headers":["Dimension","Required checks"],"rows":[["Width","Wide and narrow; include the smallest supported viewport"],["Color","Every supported color mode and theme"],["Input","Keyboard and pointer for the primary task"],["Content","Realistic, empty, long, loading, and error states that the pattern supports"],["Assets","Successful CSS, font, icon, image, poster, and video requests"],["Runtime","No console error, hydration mismatch, or missing-provider failure"]]},{"type":"prose","text":"Check the rendered hierarchy, reading order, focus order, clipping, overflow, and fallback states. A screenshot of one default state is not a complete test."}]},{"id":"grade-the-result","title":"Grade the result","content":[{"type":"prose","text":"Grade the exact packed revision using the evidence from this test ({@link namespace:write-good-templates})."}]}]}},"75c09a15241b4c5fd00c3b89c5a6d066":{"default":{"type":"icon-definition","name":"stop","description":"Stop or cancel a running action.","words":["halt","end","cancel","square","circle stop"],"builtIn":true}},"75c15348822a9c38af4b7a6dd1891f71":{"docs":{"type":"namespace","name":"calendars","title":"Internationalization: calendars","summary":"Show dates in the Persian, Hebrew, Hijri, Buddhist, Japanese, Chinese, Dangi, and other calendars while values stay Gregorian ISO dates.","keywords":["calendar","calendar system","Persian","Jalali","Hebrew","Hijri","Islamic","Buddhist","Japanese era","lunisolar","chinese","dangi","Ethiopian","Ethiopic","Temporal","polyfill","u-ca"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}},"blocks":[{"type":"prose","text":"`Calendar`, DateInput, DateRangeInput, and DateTimeInput show the Gregorian calendar unless the application chooses another one. Values never change with the calendar: they stay Gregorian ISO dates. {@link generic:i18n-calendars} has the short version."}]}},"76dd2ae5ab8f3e7364a315445eed011a":{"doc":{"type":"block","exampleFor":"ScrollableArea","name":"ScrollableArea","displayName":"Scrollable Area","description":"A fixed-height file panel that scrolls on the block axis; the heading sits inside the viewport, so it scrolls away with the content.","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["ScrollableArea","Card","Grid"]}},"76eb39632e83672ddfc50caab100ec39":{"default":{"type":"icon-definition","name":"conversation","description":"A conversation between people.","words":["chat","discussion","thread","chat bubbles","messages square"]}},"76f2b2949e7a5d606d4142e3ef538d42":{"doc":{"type":"block","exampleFor":"ProgressBar","name":"ProgressBar — Semantic Variants","displayName":"ProgressBar — Semantic Variants","description":"All semantic color variants stacked vertically.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ProgressBar","Center","VStack"]}},"76feb1366a7b516fbda91ce31de6918a":{"default":{"type":"icon-definition","name":"funnel","description":"Filter a list.","words":["filter","refine"],"builtIn":true}},"7740a3aafb39fa30ca8284dc0ed574c2":{"doc":{"type":"block","exampleFor":"ListItem","name":"List Item — Metadata","displayName":"List Item — Metadata","description":"List items with end-aligned metadata. Use endContent for badges, counts, timestamps, and compact status details.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["List","ListItem","Badge","Icon","Text"]}},"77593c788b9c62e38e1a172b8284c86b":{"default":{"type":"icon-definition","name":"database","description":"A database or stored data.","words":["data","storage"]}},"77cff23fd60435c410cd6a0853de247b":{"doc":{"type":"block","exampleFor":"InternationalizationProvider","name":"Mirror the layout for right-to-left text","displayName":"Internationalization Provider — RTL Direction","registry":{"slug":"rtl-direction"},"description":"Toggle text direction with the `dir` prop and watch Astryx components mirror. Pagination flips its prev/next chevrons under RTL. The `dir` prop is passed to both `InternationalizationProvider` (so Astryx components pick it up) and the `VStack` (so the DOM subtree mirrors); both channels stay in sync with no extra wrapper.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["InternationalizationProvider","Pagination","SegmentedControl","Layout"]}},"77e104f928101638d5b30a4359700452":{"docs":{"name":"author-a-theme","title":"Author a theme","category":"guide","keywords":["defineTheme","create theme","custom theme","extends","component overrides","custom variants","adaptations","breakpoints","theme build","theme family","tokenVar","resolveThemeTokens","useTheme","palette","generate palette","seed colors","color ramp","icon registry"],"description":"Create, customize, and build a theme: defineTheme, palette generation, token overrides, component style overrides, custom variants, responsive adaptations, and production builds.","sections":[{"id":"creating-a-custom-theme","title":"Custom themes","content":[{"type":"prose","text":"Use an installed built theme as the base for ordinary customization. Import it into your source and pass it as `extends` to `defineTheme({extends: importedTheme, ...})`. Build the result, then add the local slug. Only eject when you need to own and maintain a full source fork."},{"type":"prose","text":"A local theme is a folder in `src/themes/<slug>/` holding a `<name>Theme.ts` source that exports `<name>Theme`, and a same-stem `<name>Theme.doc.mjs` descriptor that `theme add` reads. The stem must be a valid export name, so a hyphenated slug drops the hyphen: `brand-dark` lives in `src/themes/brand-dark/brandDarkTheme.ts` exporting `brandDarkTheme`, beside `brandDarkTheme.doc.mjs`. The descriptor's `name` is the folder's slug, and it must declare its type or `theme add` and `theme list` refuse it. {@command docs authoring theme-doc} lists every field."},{"type":"code","lang":"js","label":"src/themes/brand-dark/brandDarkTheme.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ThemeDoc} */\nexport default {\n type: 'theme',\n name: 'brand-dark',\n displayName: 'Brand Dark',\n description: 'The brand accent, tuned for dark mode.',\n maintained: false,\n};"},{"type":"code","lang":"bash","label":"Add to use, eject to fork","code":"{@command theme list}\n{@command theme add stone}\n{@command theme eject stone}\n{@command theme build src/themes/stone/stoneTheme.ts}\n{@command theme add stone}"},{"type":"prose","text":"For an annotated map of the whole surface (every defineTheme field, the token families, and the component override syntax, each with the CLI command that prints its reference), run `{@command theme template}`. It writes `theme.template.ts` into your project to read and copy from (`{@command init --features theme}` writes it as part of project setup)."},{"type":"prose","text":"To apply a theme you created, see {@link generic:use-a-theme}. To generate colors from seed values, see the Palette section below. Before you eject a package theme instead, see when that fits in {@link generic:use-a-theme}."}]},{"id":"palette","title":"Generate a palette","content":[{"type":"prose","text":"Name a few seed colors and generate every shade a theme needs, light and dark; {@link generic:generate-a-palette} explains what a palette holds."},{"type":"code","lang":"json","label":"Minimal palette config (palette.config.json)","code":"{\"families\": [{\"id\": \"ocean\", \"seed\": \"#0074e2\"}]}"},{"type":"code","lang":"bash","label":"Generate and preview","code":"# Print the palette without writing files\n{@command theme palette generate palette.config.json}\n\n# Write palette + receipt, and open a visual preview\n{@command theme palette generate palette.config.json} \\\n --out src/themes/ocean/tokens/ocean.palette.ts \\\n --preview preview.html"},{"type":"prose","text":"The command writes a `.ts` file exporting 21 shades (stops 0–100) for both light and dark, plus a `.receipt.json` to regenerate later. Point your theme's tokens at the palette, then run defineTheme (see below)."},{"type":"prose","text":"For the full palette config fields and CLI flags, run `{@command docs cli/commands/theme-palette-generate}`. For the integration-authoring walkthrough of connecting a palette to theme tokens, run `{@command docs authoring/building-blocks/themes/generate-a-palette}`."}]},{"title":"defineTheme","content":[{"type":"prose","text":"defineTheme creates a theme from explicit token overrides and optional scale configs. Existing themes may use `color` to expand an accent seed into neutral, surface, text, border, and related values; it is not an accent-only edit. Keep that configuration when preserving existing output. For new complete palettes, generate and review a committed palette module, then import its `palette` export and reference stable stops from semantic tokens. This keeps mapped roles coherent when the accepted palette is regenerated; generation itself does not rewrite the theme. Other scale configs generate typography, radius, and motion values from parameters. Explicit token overrides always take precedence over scale-generated values, token by token. When an existing `color` config is in use, overriding `--color-accent` in `tokens` re-points `--color-accent-muted`, `--color-text-accent`, and `--color-icon-accent`, but `--color-on-accent` stays baked from the `color.accent` seed. Prefer a `[light, dark]` tuple for `color.accent` over overriding `--color-accent` alone. localTokens accepts any valid CSS custom-property name; prefixes do not establish ownership."},{"type":"code","lang":"tsx","label":"defineTheme with generated palette references and non-color scale configs","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {palette} from './palette.generated';\n\nconst myTheme = defineTheme({\n name: 'my-theme',\n typography: {\n scale: { base: 14, ratio: 1.2 },\n body: { family: 'Inter', fallbacks: '-apple-system, sans-serif' },\n },\n radius: { base: 4, multiplier: 1 },\n motion: { fast: 175, medium: 410, ratio: 0.75 },\n tokens: {\n '--color-background-surface': [\n palette.neutral.light[100],\n palette.neutral.dark[15],\n ],\n },\n});"},{"type":"table","headers":["Config","Generates","Parameters"],"rows":[["color (existing themes)","--color-accent, --color-background-*, --color-text-*, --color-border, etc.","Supported broad scale: accent? (hex or [light, dark] tuple), neutralStyle? (warm|cool|neutral), contrast? (standard|high). Use theme palette generate for new complete palettes."],["typography.scale","--text-heading-*-size/weight/leading, --text-body-size/weight/leading","base (px), ratio"],["typography.body/heading/code","--font-family-body, --font-family-heading, --font-family-code","family, fallbacks?, url?, weight?"],["radius","--radius-inner, --radius-element, --radius-container, --radius-page, --radius-chat","base (px), multiplier (0–2)"],["motion","Every --duration-* token, --ease-entrance and --ease-move (tempo also times the touch springs)","tempo? (0.75–1.5), character? (crisp|standard|expressive); and/or a duration scale: fast (ms), medium (ms), ratio, slow?, easing?. The scale wins over tempo for the durations it sets, and explicit tokens win over both. Fixed whatever the knobs say: drags and momentum, rubber band, keyboard, press onset/cancel/flash, hover intent, gesture thresholds, Spinner/Skeleton loops, the 200 ms Reduce Motion cap. See {@link generic:motion}."]]},{"type":"prose","text":"For dark mode tuples in token values, see the Dark mode section of {@link generic:use-a-theme}."}]},{"title":"Extending a Theme","content":[{"type":"prose","text":"`extends` lets you derive a new theme from an existing one, inheriting its tokens, component overrides, icons, and fonts. Only specify what you want to change; everything else carries over from the base theme."},{"type":"code","lang":"tsx","label":"Extending the neutral theme","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {neutralTheme} from '@astryxdesign/theme-neutral';\nimport {myIcons} from './icons';\n\nconst brandTheme = defineTheme({\n name: 'brand',\n extends: neutralTheme,\n icons: myIcons,\n tokens: {\n '--color-accent': ['#7B61FF', '#9B85FF'],\n },\n});"},{"type":"table","headers":["Field","Merge behavior"],"rows":[["tokens","Base tokens are copied first, then child tokens override on top."],["components","Deep-merged: child component rules override matching keys from the base."],["icons","Shallow-merged: child icons override matching names from the base."],["iconVariants","Replaced, never merged: a child that sets iconVariants replaces the base list; a child that omits it inherits the list."],["componentIcons","Merged by slot: a child entry replaces the base entry for that slot whole; an omitted or undefined entry keeps the inherited one."],["indicators","Shallow-merged: child indicators override matching names from the base."],["onDark, onLight","Deep-merged per surface: the base's resolved surface first, then the child's overrides."],["motion","Field by field: the child's `fast`, `medium` and `ratio` regenerate the fast and medium duration tokens; `slow` and `easing` left unset keep the base theme's tokens, so an inherited slow band stays at the base's ratio. Each knob (`tempo`, `character`) the child leaves unset keeps the base's."],["typography, radius, color","Child config replaces base entirely (these are scale inputs, not additive)."],["adaptations","Width-breakpoint overrides merge by fixed name. Inherited ordered rules keep their relative order; child rules append and re-resolve against the child root axes."]]},{"type":"prose","text":"Inheritance is resolved when the theme is defined, so an extended theme is flat: `{@command theme build}` emits one self-contained stylesheet holding everything the child inherited, and the base theme's CSS does not need to be loaded next to it. A base that is not a theme (most often an import that missed) throws when `defineTheme` runs, rather than producing a theme that silently inherits nothing."},{"type":"prose","text":"For the integration-specific guidance on mapping a palette to tokens when extending, see `{@command docs authoring/building-blocks/themes/define-the-theme}`."}]},{"title":"Component Style Overrides","content":[{"type":"prose","text":"The `components` field in defineTheme uses semantic component keys and style keys, not raw CSS selectors. Use `base` for all instances, `variant:value` or `stateName` for specific props/states, and let the theme pipeline choose the underlying selector. For raw external CSS escape hatches, prefer the data-attribute selector surface documented in {@link generic:styling-advanced}."},{"type":"code","lang":"tsx","label":"Component overrides with standard CSS","code":"components: {\n card: {\n base: { borderRadius: '20px', padding: '24px' },\n },\n button: {\n base: {\n borderRadius: '9999px',\n textTransform: 'uppercase',\n '--button-focus-offset': '3px',\n },\n 'variant:ghost': { borderWidth: '2px', borderStyle: 'solid' },\n },\n}"},{"type":"prose","text":"Run `{@command theme targets}` for every themeable key in the system (`{@command theme targets <Name>}` to scope it, `--json` to lint a theme against it), and `{@command component <Name>}` for one component's theming targets, public CSS variables, and which standard CSS properties are supported."},{"type":"list","style":"do","items":["Write standard CSS properties (borderRadius, padding); the pipeline expands them into internal vars.","Set public CSS vars directly when no standard property equivalent exists."]},{"type":"list","style":"dont","items":["Set private CSS vars (prefixed --_) directly. Use standard CSS properties instead. `{@command theme build}` will error.","Set a public CSS var the component does not define. It compiles to CSS that never applies, and the build does not warn. Take the names from `{@command component <Name>}`."]}]},{"title":"Custom Variants","content":[{"type":"prose","text":"Themes can add new prop values to any component. Any `prop:value` key where the value isn't a built-in gets treated as a new variant. Use `{@command theme build}` to generate TypeScript augmentations for type safety."},{"type":"code","lang":"tsx","label":"Adding custom variants","code":"components: {\n button: {\n 'variant:secondary': { backgroundColor: 'rgba(0,0,0,0.06)' },\n 'variant:primary-muted': {\n backgroundColor: 'light-dark(#F2F4F6, #28292C)',\n color: 'var(--color-text-primary)',\n },\n },\n banner: {\n 'status:neutral': {\n backgroundColor: 'var(--color-background-muted)',\n color: 'var(--color-text-secondary)',\n },\n },\n}"},{"type":"code","lang":"tsx","label":"Using custom variants","code":"// TypeScript knows about 'primary-muted' after astryx theme build\n<Button variant=\"primary-muted\" label=\"Save draft\" />\n<Banner status=\"neutral\" title=\"Note\" />"},{"type":"prose","text":"Custom variants only work when the theme that defines them is active. The component's variant map is extended via module augmentation, with no changes to the component source needed."}]},{"title":"Theme Adaptations","content":[{"type":"prose","text":"Use `adaptations` for opt-in token, theme-local token, and component changes under viewport width, primary-pointer precision, contrast preference, or motion preference. Conditions in one `when` are ANDed. Rules are ordinary ordered objects, and later matching writes win."},{"type":"code","lang":"tsx","label":"Width and pointer adaptations","code":"const acmeTheme = defineTheme({\n name: 'acme',\n adaptations: {\n widthBreakpoints: {\n sm: 640, md: 768, lg: 1024, xl: 1280, '2xl': 1536,\n },\n rules: [\n {\n when: {width: {below: 'md'}},\n value: {tokens: {'--spacing-4': '12px'}},\n },\n {\n when: {pointer: 'coarse'},\n value: {tokens: {'--size-element-sm': '36px', '--size-element-md': '40px', '--size-element-lg': '44px'}},\n },\n ],\n },\n});"},{"type":"table","headers":["Condition","Values"],"rows":[["width.from / width.below","sm | md | lg | xl | 2xl"],["pointer","coarse | fine"],["contrast","more | less | no-preference"],["motion","reduce | no-preference"]]},{"type":"prose","text":"`widthBreakpoints` are fixed named start points. Defaults are 640 / 768 / 1024 / 1280 / 1536 CSS pixels. `from` includes its point; `below` excludes it. Breakpoint configuration alone emits no CSS."}]},{"id":"adaptation-rules","title":"Adaptation order and validation","content":[{"type":"prose","text":"Precedence follows rule order. Root theme values apply first, then every matching rule in declaration order. A later rule may deliberately restore a root value. `onDark` and `onLight` media-surface overrides apply after adaptations and win on the same leaf."},{"type":"prose","text":"`extends` preserves the base rule order and appends child rules. Inherited conditions use the child's effective breakpoint map. An empty child rule is a no-op, not a removal operator."},{"type":"prose","text":"A rule may replace a theme-local token only when the exact name is already enrolled by root `localTokens` or an enrolled base. Component writes in a rule are validated exactly like root `components`: same targets, axes, and value domains. The one addition is that a rule may not be the only place a custom value is enrolled: a value that is valid only because a theme enrolls it generates unconditional type augmentation, so declare it on the root theme first and let rules restyle it. Built-in values need no root declaration. When rules can match together, their ordered portable and local token writes are validated as one effective graph; any reachable cycle fails before CSS is emitted."},{"type":"prose","text":"Adaptations compile to CSS media queries with no resize listener or styling rerender. Runtime and `{@command theme build}` use the same compiler, but only a built theme is present at first paint in an SSR app."}]},{"id":"building-themes-for-production","title":"Build a theme","content":[{"type":"prose","text":"`{@command theme build}` compiles a defineTheme file into production-ready artifacts. Recommended for SSR apps (Next.js, Remix) where styles must be present on first paint."},{"type":"code","lang":"bash","label":"Build a theme","code":"{@command theme build ./src/themes/ocean.ts}"},{"type":"table","headers":["File","Description"],"rows":[["ocean.css","Pre-compiled CSS with token overrides, component overrides, and prose element styles in @scope rules"],["ocean.js","ES module exporting the theme object with `__built: true` and pre-resolved token values."],["ocean.d.ts","TypeScript declarations for the theme and icon registry exports"],["ocean.variants.d.ts","(Optional) Module augmentations for custom component prop values"]]},{"type":"prose","text":"The `__built: true` flag tells Theme to skip runtime `<style>` injection; the CSS file handles it. Load the generated CSS wherever you load the module."},{"type":"code","lang":"tsx","label":"Using a custom built theme","code":"import {Theme} from '@astryxdesign/core/theme';\nimport {oceanTheme} from './themes/ocean';\nimport './themes/ocean.css';\n\n<Theme theme={oceanTheme}>\n <App />\n</Theme>"},{"type":"prose","text":"After upgrading Astryx, rerun `{@command theme build}` for every custom prebuilt theme. Deploy the regenerated files together. The runtime intentionally trusts `__built: true` and will not repair stale CSS from an older build. The build also warns when the theme names font families it does not load. See {@link generic:font-setup} for the full recipe."},{"type":"prose","text":"For the runtime vs built tradeoff, see the Runtime vs Built section of {@link generic:use-a-theme}."}]},{"id":"icon-registry","title":"Built themes with an icon registry","content":[{"type":"prose","text":"`theme build` emits an icon import when it detects a named import used by the theme's `icons:` field. It does not compile that registry module. Move the registry to a separate module and use a named import."},{"type":"code","lang":"bash","label":"Compiling the icon registry sidecar","code":"# Emit the built theme\n{@command theme build ./src/themes/ocean.ts -o dist/theme.css --icons-specifier ./icons.mjs}\n\n# Compile the icon registry alongside it\nesbuild src/themes/icons.tsx --bundle --format=esm --outfile=dist/icons.mjs \\\n --external:react --external:lucide-react --jsx=automatic"},{"type":"prose","text":"In the example above, the generated theme imports `./icons.mjs` from `dist`. If the second command is skipped, `theme build` can still succeed, but loading or bundling the generated module fails because `dist/icons.mjs` is missing. `--icons-specifier` changes the emitted import; it does not create or verify the target file. Match the specifier to a module that resolves from the generated JS file."},{"type":"prose","text":"Without `--icons-specifier`, the detected source import specifier is emitted unchanged. In the default flow without `--out`, a bundler can resolve an extensionless `./icons` to the neighboring `icons.tsx` source, but Node ESM does not perform that lookup and reports `ERR_MODULE_NOT_FOUND`. Moving the output with `--out` also changes where relative imports resolve from."},{"type":"prose","text":"Keep `react` and the icon library external so the registry does not bundle its own copies of those dependencies."},{"type":"prose","text":"A registry entry can be a function of `{size, variant}`. The built theme keeps the function, so `Icon` asks it for the size and variant it renders, as the runtime theme does, including for entries inherited from a built or package theme. The built theme's `icons` field and the registry its module re-exports are React nodes, with each function read at size `md`. A function written in the theme file itself cannot be carried, so the build fails; move it into the registry module."},{"type":"prose","text":"A theme that lists `iconVariants` also writes an `IconVariantMap` augmentation into `<theme>.variants.d.ts`, so `Icon`'s `variant` accepts those names wherever the theme's types load. Its declaration carries the list too, so a theme that extends the built theme types `variant` in its icon entries by that list."},{"type":"prose","text":"A built theme keeps its `componentIcons`. Names, `null` values, and static requests are written into the module. A slot function stays a function: the module imports it from the module the theme source imports it from, so component slots resolve the same for the built theme as for the runtime theme. The built theme's `componentIcons` field leaves out slot functions, as the runtime theme's does. A slot function defined in the theme file fails the build: move it to its own module and import it. In `--family` output, a member supplies its own slot functions through a named import of its whole `componentIcons` map. The module keeps each slot import as the theme source spells it, and `--icons-specifier` does not change it, so with `--out` in another directory, make a module answer to that specifier from the output directory, as for the icon registry."}]},{"title":"Building a Theme Family","content":[{"type":"prose","text":"Use family mode when an app switches among one base theme and its selected descendants. The build writes one keyed CSS file containing every member, plus one keyed JavaScript module and one declaration file, beside the root source."},{"type":"code","lang":"bash","label":"Build one family","code":"{@command theme build} --family \\\n ./src/themes/ocean.mjs \\\n ./src/themes/ocean-calm.mjs \\\n ./src/themes/ocean-calm-deep.mjs \\\n --family-key ocean-family"},{"type":"prose","text":"The family stylesheet eagerly downloads every selected member so first paint is complete. Switching members changes only the theme identity; it does not add, remove, or reorder stylesheets."}]},{"title":"Token Utilities","content":[{"type":"prose","text":"Use `tokenVar()` when a non-StyleX styling library wants a CSS variable reference, and `resolveThemeTokens()` when JavaScript needs token values for a specific theme and mode without React context. Themes are registered by name when created with `defineTheme()`; call `registerTheme(theme)` for prebuilt or object-literal themes that need name-based SSR lookup."},{"type":"code","lang":"ts","label":"CSS var references for styling-library configs","code":"import {tokenVar, tokenVars} from '@astryxdesign/core/theme/tokens';\n\nconst pandaOrEmotionTheme = {\n colors: {\n text: tokenVar('--color-text-primary'),\n surface: tokenVars['--color-background-surface'],\n },\n};"},{"type":"code","lang":"ts","label":"Resolve token values without a hook","code":"import {resolveThemeTokens} from '@astryxdesign/core/theme/tokens';\nimport {neutralTheme} from '@astryxdesign/theme-neutral';\n\nconst lightTokens = resolveThemeTokens(neutralTheme, {mode: 'light'});\nconst chartTheme = {\n textColor: lightTokens['--color-text-primary'],\n seriesColor: lightTokens['--color-data-categorical-blue'],\n};"},{"type":"prose","text":"The `@astryxdesign/core/theme/tokens` subpath is server-safe and does not require React. The main `@astryxdesign/core/theme` barrel also re-exports these helpers for client code that already imports theme APIs."},{"type":"prose","text":"For styling library interop patterns, see {@link namespace:styling-libraries}."}]},{"title":"useTheme Hook","content":[{"type":"prose","text":"`useTheme()` reads the nearest Theme and effective color mode from React context. Prefer `dataVars` for CSS-capable SVG and DOM values. Use this hook for canvas, charts, maps, third-party configuration objects, or an SVG API that requires a concrete JavaScript color instead of a `var(...)` reference."},{"type":"code","lang":"tsx","label":"Access resolved token values in React","code":"import {useMemo} from 'react';\nimport {useTheme} from '@astryxdesign/core/theme';\n\nfunction ChartConfig() {\n const {mode, tokens} = useTheme();\n const options = useMemo(() => ({\n mode,\n textColor: tokens['--color-text-primary'],\n gridColor: tokens['--color-border'],\n seriesColor: tokens['--color-data-categorical-blue'],\n }), [mode, tokens]);\n return <Chart options={options} />;\n}"},{"type":"prose","text":"Prefer CSS variables for ordinary styling. See {@link generic:use-a-theme} for the provider setup, and {@link namespace:tokens} for the full token reference."}]}]}},"77fa597d532f1a4296b9ae7afb22def1":{"doc":{"type":"block","exampleFor":"Switch","name":"Switch — Settings Panel","displayName":"Switch — Settings Panel","description":"Settings panel with spread-spaced switches in a card.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Switch","Card","VStack","Center"]}},"780a0bd0dbcee9ae2e1ffe566a6dc09f":{"doc":{"type":"block","exampleFor":"createAnimator","name":"createAnimator — Playing cards in plain JavaScript","displayName":"createAnimator — Playing cards in plain JavaScript","description":"The playing card from the useAnimator example, built in plain JavaScript with createAnimator and pointer events: it follows a drag, springs back on a gentle release, flies off with momentum on a quick flick, and a button discards it from the keyboard. React only mounts it.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":[]}},"7845e7f5db4bdea5ef0d418af8ef519d":{"docs":{"type":"generic","name":"replace-a-core-template","placement":{"parent":"namespace:document-the-template","slot":"guides","order":40},"title":"Replace a Core template","category":"guide","description":"Use a template replacement only when an integration intentionally changes the default source returned for one Core template id.","sections":[{"id":"replace-only-on-purpose","title":"Replace only on purpose","content":[{"type":"prose","text":"Use with care: replace a Core template only when every app using this integration should receive your source for an existing Core id by default. An alternative, a product-specific variation, or a different kind of template gets its own id instead ({@link generic:start-a-template})."},{"type":"list","style":"unordered","items":["Sharing a Core id without `replaces` does not replace Core. It makes the bare id ambiguous, so `{@command template <id>}` fails until the app adds `--package`, and `doctor integration templates` reports an accidental collision.","A replacement can keep the Core id or use its own. `replaces` is what makes it the default."]}]},{"id":"declare-the-replacement","title":"Declare the replacement","content":[{"type":"prose","text":"Find the exact Core id and kind first."},{"type":"code","lang":"bash","code":"astryx --json template --list --package @astryxdesign/core"},{"type":"code","lang":"javascript","label":"templates/acme-app-shell.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').IntegrationTemplateDoc} */\nexport default {\n type: 'page',\n name: 'acme-app-shell',\n displayName: 'Acme App Shell',\n description:\n 'An Acme application shell with product navigation, account controls, and a responsive content region.',\n replaces: 'shell-side-nav',\n isReady: true,\n category: 'Shell - Left Sidebar',\n};"},{"type":"prose","text":"Every field is in {@link schema:template-doc}."},{"type":"prose","text":"Declare `replaces` on the template doc, never in `astryx.integration.mjs`."}]},{"id":"require-a-compatible-cli","title":"Require a compatible CLI","content":[{"type":"prose","text":"Declare the CLI floor that `integration verify` names as an optional peer ({@link generic:versioning})."},{"type":"code","lang":"json","label":"package.json","code":"{\n \"peerDependencies\": {\n \"@astryxdesign/cli\": \">=0.6.4\"\n },\n \"peerDependenciesMeta\": {\n \"@astryxdesign/cli\": {\n \"optional\": true\n }\n }\n}"},{"type":"prose","text":"`integration verify` reports `replaces_needs_cli` when that peer is missing or too old. Without it, published 0.6.3 and earlier drop that template and hide your doc topics."}]},{"id":"what-apps-receive","title":"What apps receive","content":[{"type":"code","lang":"bash","code":"# Receives the active replacement\n{@command template shell-side-nav src/app}\n\n# Receives the original Core template\n{@command template shell-side-nav --package @astryxdesign/core src/app}"},{"type":"prose","text":"When several integrations replace the same Core template, one wins:"},{"type":"list","style":"unordered","items":["An integration explicitly listed in `astryx.config.mjs` wins over one that is only installed and picked automatically.","When several explicitly configured integrations replace the same target, the one listed later wins and Astryx reports the ambiguity.","When no integration is configured explicitly, the package listed later in the app's package.json dependencies wins. Configure the intended integration explicitly instead of relying on that order."]}]},{"id":"check-the-replacement","title":"Check the replacement","content":[{"type":"code","lang":"bash","code":"{@command doctor integration templates}"},{"type":"table","headers":["Issue","Meaning"],"rows":[["`missing_template_replacement_target`","`replaces` does not name a Core template id."],["`invalid_template_replacement`","The replacement is unusable or its page/block kind differs from Core."],["`ambiguous_template_replacement`","One package declares two replacements for a target, or several active packages contend for it."]]},{"type":"prose","text":"Replacement resolution is safe by default. A missing source, invalid doc, missing target, wrong kind, or conflicting declaration never hands the Core id to a questionable replacement: Astryx reports the issue and keeps the Core template. Fix every issue before publishing."}]}]}},"78c87cc4cb79c652a3298d9fff3731e3":{"doc":{"type":"block","exampleFor":"Grid","name":"Grid","displayName":"Grid","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Card","Grid"]}},"78e9ee53c22dc0c8b2ba9ab1492096f1":{"doc":{"type":"block","exampleFor":"ComplexSelector","name":"ComplexSelector","displayName":"Complex Selector","description":"A two-axis picker: choose a fruit and a ripeness level from one control. ComplexSelector owns the trigger, popover, and focus restore while the custom grid owns its keyboard semantics.","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["ComplexSelector","Text"]}},"791774b38c467328ef63dfd863eef498":{"docs":{"type":"generic","name":"tokens-syntax","title":"Syntax Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":30},"category":"foundations","description":"Code highlighting colors used by CodeBlock. Each defaults to a palette token, so syntax colors follow the theme; defineTheme({syntax}) sets a syntax theme instead.","sections":[{"title":"Syntax Tokens","content":[{"type":"prose","text":"Code highlighting colors used by CodeBlock. Each defaults to a palette token, so syntax colors follow the theme; defineTheme({syntax}) sets a syntax theme instead."},{"type":"table","headers":["Token","Core default"],"rows":[["--color-syntax-keyword","var(--color-text-accent)"],["--color-syntax-string","var(--color-text-green)"],["--color-syntax-comment","var(--color-text-secondary)"],["--color-syntax-number","var(--color-text-orange)"],["--color-syntax-function","var(--color-text-blue)"],["--color-syntax-type","var(--color-text-purple)"],["--color-syntax-variable","var(--color-text-primary)"],["--color-syntax-operator","var(--color-text-cyan)"],["--color-syntax-constant","var(--color-text-orange)"],["--color-syntax-tag","var(--color-text-red)"],["--color-syntax-attribute","var(--color-text-teal)"],["--color-syntax-property","var(--color-text-cyan)"],["--color-syntax-punctuation","var(--color-text-secondary)"],["--color-syntax-background","var(--color-background-muted)"],["--color-syntax-added","color-mix(in srgb, var(--color-success-muted) 25%, transparent)"],["--color-syntax-removed","color-mix(in srgb, var(--color-error-muted) 25%, transparent)"],["--color-syntax-diff-header","var(--color-background-muted)"],["--color-syntax-added-marker","var(--color-text-green)"],["--color-syntax-removed-marker","var(--color-text-red)"]]}],"previewType":"swatch"}]}},"794dcb4612bcad7200ae9a000c40ea61":{"default":{"type":"icon-definition","name":"folder","description":"A folder or collection.","words":["directory","collection"]}},"7988110acef2eedad01e3dfadc5fd508":{"doc":{"type":"block","exampleFor":"Tab","name":"Tab","displayName":"Tab","description":"Tab is an individual tab item within a TabList, supporting labels, icons, selected icons, and end content slots.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TabList","Tab"]}},"79d4686fea051c6acdacf8b523da94aa":{"docs":{"type":"generic","name":"write-the-template-file","placement":{"parent":"namespace:build-the-template","slot":"guides","order":10},"title":"Write the template file","category":"guide","description":"Astryx copies just this one file into an app, so write it to work on its own there: where it lands, what it can import, and what it exports.","sections":[{"id":"know-what-gets-copied","title":"Know what gets copied","content":[{"type":"prose","text":"`{@command template}` copies exactly one source file. It does not copy sibling helpers, stylesheets, fonts, icons, images, or media. Plan for that before you add supporting files."},{"type":"table","headers":["Template","Directory target","Explicit file target"],"rows":[["Page","Writes `<target>/page.tsx`","Writes the exact file path"],["Block","Writes `<target>/<source-basename>.tsx`","Writes the exact file path"]]},{"type":"code","lang":"bash","code":"# Page: src/app/account/page.tsx\n{@command template acme-account src/app/account}\n\n# Block: src/features/account/acme-stat-card.tsx\n{@command template acme-stat-card src/features/account}\n\n# Exact destination for either kind\n{@command template acme-stat-card src/features/account/StatusCard.tsx}"},{"type":"prose","text":"Astryx refuses to replace an existing file unless the caller passes `--overwrite` or `-f`."}]},{"id":"keep-edited-code-in-one-file","title":"Keep edited code in one file","content":[{"type":"prose","text":"Put every helper that the app is expected to edit in the template source. Small local components, example data, constants, and event handlers can live above or below the default component in the same file."},{"type":"list","style":"unordered","items":["Inline a helper when it is part of the editable starting point.","Move a helper into the integration package only when it should stay package-owned and update with the package.","Do not import `./helper`, `./styles`, or any other sibling file.","Do not create routes, configuration, or extra files at runtime. Give the app one explicit source file to own."]}]},{"id":"use-imports-that-work","title":"Use imports that work in the app","content":[{"type":"prose","text":"After the copy, imports resolve from the app, not from the template directory. Every bare import must name a package the app installs, and every package path must be public."},{"type":"code","lang":"tsx","code":"import {Button} from '@astryxdesign/core/Button';\nimport {Card} from '@astryxdesign/core/Card';\nimport {HStack} from '@astryxdesign/core/HStack';\nimport {Text} from '@astryxdesign/core/Text';\nimport {VStack} from '@astryxdesign/core/VStack';\nimport {AcmeStatusCard} from '@acme/astryx-widgets/components/AcmeStatusCard';\n\nconst metrics = [\n {label: 'Healthy accounts', value: '1,248'},\n {label: 'Needs review', value: '37'},\n];\n\nfunction MetricRow({label, value}: {label: string; value: string}) {\n return (\n <HStack justify=\"between\">\n <Text>{label}</Text>\n <Text>{value}</Text>\n </HStack>\n );\n}\n\nexport default function AcmeAccountSummary() {\n return (\n <Card>\n <VStack gap={4}>\n <AcmeStatusCard />\n {metrics.map(metric => <MetricRow key={metric.label} {...metric} />)}\n <Button label=\"Review accounts\" />\n </VStack>\n </Card>\n );\n}"},{"type":"list","style":"unordered","items":["Import Astryx components from their public Core paths.","Import integration-owned components, helpers, icons, or styles only through paths the package exports ({@link generic:export-template-assets}).","Avoid adding another library when Astryx or platform APIs already provide the behavior."]}]},{"id":"export-one-component","title":"Export one component","content":[{"type":"prose","text":"The source must default-export one React component. Named helpers inside the file are fine."},{"type":"list","style":"unordered","items":["Add `use client` as the first statement only when hooks, event handlers, browser APIs, or a component passed as a prop, such as `icon={BellIcon}`, need a client boundary.","Keep a static template server-compatible when it needs no client behavior."]}]}]}},"7a51a33dd77fe33242d12121667d587e":{"default":{"type":"icon-definition","name":"click","description":"Click or select something on the screen.","words":["cursor","pointer","select"]}},"7a657c7ff94dd0fd47e8c4e470897b2d":{"doc":{"type":"page","name":"AI Chat Conversation","displayName":"AI Chat Conversation","description":"Transcript of alternating turns carrying mixed rich content inline (markdown, code blocks, collapsible tool-call output) beside a resizable artifact panel that holds generated output while the stream keeps scrolling.","keywords":["chat","conversation","assistant","messages","copilot thread","agent","session","composer","questions","answers with citations","reasoning trace","prompt playground"],"isReady":true,"category":"AI Chat - Conversation","icons":{"AtSymbolIcon":"mention","ChevronRightIcon":"chevronRight","ClipboardDocumentIcon":"clipboard","DocumentTextIcon":"document","PaperClipIcon":"attach","ShareIcon":"share","XMarkIcon":"close"}}},"7a72d85a998221bbdb1c725bb6711515":{"doc":{"type":"block","exampleFor":"FieldStatus","name":"FieldStatus — Basic","displayName":"FieldStatus — Basic","description":"Detached error and success messages for validation feedback. Use below checkboxes, switches, or custom controls where an attached status would overlap.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["FieldStatus","VStack"]}},"7b02e80ebee5c3e5d7bca03ffdf1f192":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput — Sizes","displayName":"TextInput — Sizes","description":"Small, medium, and large inputs side by side. Use small in dense UIs like table filters, medium for most forms, and large for prominent single-field pages.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextInput","Layout"]}},"7b82dac06b7148b08869246e15fc3545":{"doc":{"type":"block","exampleFor":"Theme","name":"Theme — Distinct Themes","displayName":"Theme — Distinct Themes","description":"Two visually distinct theme providers wrapping identical content to show how Theme changes the visual treatment of child components.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Theme","Card","Grid","Section","Layout","Text","Button","Badge"]}},"7bb9ab8ea8b3e10c4d9629320eddfcf9":{"doc":{"type":"block","exampleFor":"CheckboxInput","name":"CheckboxInput","displayName":"Checkbox Input","description":"Interactive checkboxes showing checked, unchecked, and indeterminate states with descriptions.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxInput","Layout"]}},"7bdd1839ada973a2bd78e015202aa32c":{"doc":{"type":"block","exampleFor":"Dialog","alsoExampleFor":["useImperativeDialog"],"name":"Dialog — Scrollable","displayName":"Dialog — Scrollable","description":"Constrains the dialog height and scrolls the body when content overflows. Use for terms and conditions, license agreements, changelogs, or any long-form content the user needs to review before accepting.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Dialog","Layout","Button","Text"]}},"7be7c8904cfaee802a4446543244c895":{"doc":{"type":"block","exampleFor":"Code","name":"Code — Inline","displayName":"Code — Inline","description":"Inline code references mixed within a paragraph of body text. Use Code to mark up function names, hooks, or API terms so they stand out from surrounding prose.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Code","Text"]}},"7bea96519edb9e9bbdabc36e1977cb8f":{"doc":{"type":"block","exampleFor":"Spinner","name":"Spinner — With Label","displayName":"Spinner — With Label","description":"Spinners with text and rich multi-line labels.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Spinner","Text"]}},"7bef87aada3b69fbf300e2425f7d24dc":{"doc":{"type":"block","exampleFor":"Token","name":"Token — Removable","displayName":"Token — Removable","description":"Tokens with a dismiss button for selections the user can undo. Use in multi-select fields, active filters, or any list of user-chosen items.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Token","Layout","Text"]}},"7cb4501c53f41b58929fc513ca93af1f":{"doc":{"type":"block","exampleFor":"VisuallyHidden","name":"VisuallyHidden","displayName":"VisuallyHidden","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["VisuallyHidden","IconButton","Card","HStack","VStack","Text","Icon"],"icons":{"ArrowDownTrayIcon":"download","ShareIcon":"share","SpeakerWaveIcon":"audio","TrashIcon":"delete"}}},"7cc751f8a94afcb53cf6b23c2ed20d04":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Types","displayName":"Text — Types","description":"All 5 semantic text types (body, large, label, supporting, code) with their default styling from the theme.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Text","Stack"]}},"7d00b638999cb64eae3d428ab9207865":{"doc":{"type":"block","exampleFor":"MoreMenu","name":"MoreMenu — With Dividers","displayName":"MoreMenu — With Dividers","description":"A three-dot menu with a divider separating destructive actions from safe ones.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MoreMenu"],"icons":{"DocumentDuplicateIcon":"copy","PencilIcon":"edit","TrashIcon":"delete"}}},"7d2bf796a4d9b13b05851c6efa35c03e":{"doc":{"type":"block","exampleFor":"Button","name":"Button — Variants","displayName":"Button — Variants","description":"All four button variants side by side: primary, secondary, ghost, and destructive. A quick visual reference for choosing the right variant.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Layout"]}},"7d390445bb08722b487d9c7ec19a44bf":{"doc":{"type":"block","exampleFor":"TextArea","name":"TextArea — Validation","displayName":"TextArea — Validation","description":"All three status variants (error, warning, and success) with status messages, plus error without a message. Use to show inline validation feedback as the user types.","isReady":true,"aspectRatio":0.75,"componentsUsed":["TextArea","Layout"]}},"7d3c3819efe12fdf191332ed50a5ef5f":{"doc":{"type":"block","exampleFor":"DateInput","name":"DateInput — Formats","displayName":"DateInput — Formats","description":"The format prop reuses Timestamp's format vocabulary to control how the committed value is displayed: date, date_long (default), date_weekday, and system_date, or a function for a fully custom string. Formatting applies only to the committed value, never to text the user is actively typing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DateInput","Layout","Text"]}},"7d73698f753564345e00a778d8ac91e9":{"doc":{"type":"page","name":"Collapsible Table","displayName":"Collapsible Table","description":"Several tables on one page, each in a collapsible card with its own columns — for groups that do not share a schema, where one table would stand full of empty cells. One time range drives them all, and rows expand into a history chart. Accounts, integrations, sections, sort, expand, or collapse.","isReady":true,"category":"Table - Grouped","icons":{"ArrowsRightLeftIcon":"transfer","BuildingLibraryIcon":"bank","CreditCardIcon":"creditCard","PresentationChartLineIcon":"activity"}}},"7db1a54e10eac881a952920bafa71dbe":{"doc":{"type":"block","exampleFor":"Breadcrumbs","name":"Breadcrumbs","displayName":"Breadcrumbs","description":"A breadcrumb trail showing page hierarchy with linked ancestors and a current page.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Breadcrumbs"]}},"7e329fc509965da728b6d630af3e32b2":{"doc":{"type":"page","name":"Work Item Detail","displayName":"Work Item Detail","description":"Single work-item detail in two columns: a title with a status selector, a description, a subtask checklist with progress, an attachments block, and a comment and activity feed in the main column, plus a property rail with assignee, dates, labels, and linked items. The shape for any tracked item with children, properties, and a comment history — a task, ticket, issue, story, bug, card, request, or work item.","keywords":["task","ticket","issue","story","bug","card","request","work item"],"isReady":true,"category":"Content - Work Item Detail","icons":{"ArrowLeftIcon":"arrowLeft","BellIcon":"notification","DocumentTextIcon":"document","EyeIcon":"eye","InformationCircleIcon":"info","LinkIcon":"link","PencilIcon":"edit","PhotoIcon":"image","ShareIcon":"share","TrashIcon":"delete","ViewColumnsIcon":"viewColumns"}}},"7e8f7549f83fada275db5aa86d877804":{"doc":{"type":"block","exampleFor":"HoverCard","name":"HoverCard — Profile Preview","displayName":"HoverCard — Profile Preview","description":"Shows a user profile summary on hover with name, role, and bio. Use on usernames, avatars, or mentions to let users preview a profile without navigating away.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["HoverCard","Button","Layout","Text"],"icons":{"CalendarIcon":"calendar"}}},"7ea093dd2d89455ad92dc1b79d5f221a":{"doc":{"type":"page","name":"AI Chat Landing","displayName":"AI Chat Landing","description":"Zero-state entry surface centered on a single composer with suggestion chips instead of history, sized for the moment before any content exists. The empty counterpart to a transcript.","keywords":["chat","conversation","assistant","prompt","messages launcher"],"isReady":true,"category":"AI Chat - Landing","icons":{"AtSymbolIcon":"mention","ClockIcon":"clock","CodeBracketIcon":"code","Cog6ToothIcon":"settings","LightBulbIcon":"lightbulb","LockClosedIcon":"lock","MagnifyingGlassIcon":"search","PencilSquareIcon":"compose","SparklesIcon":"sparkles"}}},"7f520385daca97cef2d5a33a97e03317":{"doc":{"type":"block","exampleFor":"ChatSystemMessage","name":"ChatSystemMessage — Icon","displayName":"ChatSystemMessage — Icon","description":"System messages with a leading icon that reinforces the message type. Use icons to help users scan and identify message categories at a glance.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Icon","Layout","Text"],"icons":{"LockClosedIcon":"lock","ShieldCheckIcon":"shield","SparklesIcon":"sparkles","UserPlusIcon":"userAdd"}}},"7faa430846bf8fd342b61259efd7a58d":{"doc":{"type":"block","exampleFor":"TypeaheadItem","name":"TypeaheadItem — Basic","displayName":"TypeaheadItem — Basic","description":"A typeahead whose results are rendered with TypeaheadItem, adding a secondary description below each label. Use inside renderItem to keep custom results visually consistent.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Typeahead","TypeaheadItem","Center"]}},"8021087e54ef50a76842cccfc5813f18":{"doc":{"type":"block","exampleFor":"CommandPalette","name":"CommandPalette","displayName":"Command Palette","description":"Basic command palette with static items and keyboard navigation.","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["CommandPalette"]}},"805a63092b59c693892872a730911ffe":{"default":{"type":"icon-definition","name":"emoji","description":"Add an emoji or a reaction.","words":["smile","reaction","face","face smile"]}},"80f2f8d57c5f5da315576502be3b02bf":{"default":{"type":"icon-definition","name":"refresh","description":"Reload or refresh data.","words":["reload","sync","retry","arrow path"]}},"811566260e007daf3931406a94556ff2":{"doc":{"type":"block","exampleFor":"Lightbox","name":"Lightbox","displayName":"Lightbox","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A fullscreen image viewer with caption.","componentsUsed":["Lightbox"]}},"817ef813998932eac333ad26905513a4":{"doc":{"type":"page","name":"Settings Form","displayName":"Settings Form","description":"Preferences as one continuously scrolling form, sections stacked in order with no navigation between them. The simplest settings shape: everything reachable by scrolling.","keywords":["settings","preferences","configuration","options","account"],"isReady":true,"category":"Settings - Form","icons":{"MagnifyingGlassIcon":"search"}}},"818b6a873128d8fb28765747d4eb2f6c":{"default":{"type":"icon-definition","name":"close","description":"Dismiss or close a dialog, panel, tag or banner.","words":["dismiss","cancel","remove","x","x mark"],"builtIn":true}},"81b04ff680749b8601aaf59275d05e23":{"doc":{"type":"block","exampleFor":"MediaTheme","name":"MediaTheme — Light Scrim","displayName":"MediaTheme — Light Scrim","description":"A light scrim over an image. Use MediaTheme mode=\"light\" so text and ghost buttons use dark-on-light tokens.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MediaTheme","AspectRatio","Button","Section","Layout","Text"]}},"81c26168698370e47a3a3bb456f2e109":{"doc":{"type":"block","exampleFor":"MultiSelector","name":"MultiSelector — Ghost Toolbar","displayName":"MultiSelector — Ghost Toolbar","description":"Borderless MultiSelector variant composed with ghost buttons in a toolbar.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MultiSelector","Button","HStack"]}},"81d20e429d5e874e282920483e106f69":{"default":{"type":"icon-definition","name":"search","description":"Search or find something.","words":["find","lookup","magnifier","magnifying glass"],"builtIn":true}},"81e9dd0b6a56475dbfffcb144e58241b":{"docs":{"type":"generic","name":"component-imports","placement":{"parent":"namespace:components","slot":"guides","order":30},"title":"Resolve the import","category":"guide","description":"Keep the component doc import and package exports map aligned, then verify the packed package.","sections":[{"id":"export-the-component","title":"Export the component","content":[{"type":"prose","text":"Apps copy the component doc's `import` field into their code, so that exact specifier must resolve from your packed package. `integration add` writes it together with an `exports` entry in package.json."},{"type":"code","lang":"json","label":"package.json","code":"\"exports\": {\n \"./components/AcmeCarousel\": \"./components/AcmeCarousel.tsx\"\n}"},{"type":"prose","text":"Add writes the entry only when package.json already has an `exports` map, so start every package with `\"exports\": {}`."},{"type":"prose","text":"A file does not have to be named after its component. When `Slides.tsx` exports `AcmeCarousel` and nothing named `Slides`, keep the doc beside it as `Slides.doc.mjs` and set its `name` to `AcmeCarousel`: apps list, search and open the component by that name, and `integration verify` checks that its import exports `AcmeCarousel`. A file that exports its own name keeps that name. A package that names its files in kebab case works the same way: `acme-gallery.doc.mjs` beside `acme-gallery.tsx` sets `name: 'AcmeGallery'`."},{"type":"prose","text":"The file name still opens the doc. A name that Core or another doc's file already has stays theirs, and so does a Core name your package replaces: with `Badge.doc.mjs` naming `AcmeBadge`, `{@command component Badge}` opens Core's `Badge`, and `--package` with your package name reaches yours."}]},{"id":"verify-the-packed-import","title":"Verify the packed import","content":[{"type":"prose","text":"`integration verify` unpacks the packed package into a temporary app, resolves each documented import, and checks that the module exports the documented component name. Its `--json` output names each failure by code."},{"type":"code","lang":"bash","code":"{@command integration verify}"},{"type":"list","style":"unordered","items":["`component_import_unresolvable` means the exports map has no entry for the documented import.","`component_export_missing` means the module does not export the documented name, or package.json has no exports map.","`typescript_extension_in_specifier` means the public import ends in `.ts` or `.tsx`."]},{"type":"prose","text":"To import from the package root, set `import: '@acme/astryx-widgets'` and re-export the component from the file that `exports[\".\"]` points to. See {@link command:integration verify}."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: outside a project, imports the CLI prints name packages installed for the computer, which a new app must install before it can build them; inside a project, only packages the project installs are printed. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"81ee0f8946b00af9b6e1530a0ea10dc0":{"doc":{"type":"page","name":"Card Grid","displayName":"Card Grid","description":"Searchable, browsable card grid with filter tabs and a real empty state: uniform tiles organized by topic, narrowing in place, with no detail surface behind them.","keywords":["catalog","index","directory","library","browse","gallery of entries","hub","landing","feed","tags","previews"],"isReady":true,"category":"Content - Card Grid","icons":{"MagnifyingGlassIcon":"search"}}},"844a526352e1955a5f067d16954f1467":{"docs":{"type":"generic","name":"checks","placement":{"parent":"namespace:ship","slot":"guides","order":20},"title":"Check an integration","category":"guide","keywords":["check before publishing","validate an integration"],"description":"Pick the check for each problem, learn what fails and what only warns, and run every check in CI.","sections":[{"id":"pick-a-check","title":"Pick a check","content":[{"type":"prose","text":"Run these in the package folder. The four `doctor integration` checks read your source, and `integration check` runs all four; `integration verify` checks the package npm would publish."},{"type":"table","headers":["Command","Proves","Exits 1 when","Only warns when"],"rows":[["`{@command doctor integration validate}`","The manifest loads, each root holds contributions the CLI can read, and each doc matches its authoring type. Notes list a malformed `cliCommand` (`invalid_cli_command`) and, for each topic, a command written with a package runner (`runner_command`), bare (`plain_command`) or for one package manager (`package_manager_command`), and a token that does not parse (`doc_token`; see {@link generic:doc-syntax}). Notes fail nothing by default; `integration check --strict --next` fails on the ones marked `next`, and the next minor release counts them","A declared root is missing (`missing_root`), a contribution does not load (`invalid_doc`, `invalid_component`, `invalid_theme`), or two templates in the package replace one Core id (`ambiguous_template_replacement`)","The manifest has a key this CLI does not know (`unknown_manifest_key`), or a doc field does not match the doc's authoring type: a field the type does not have, a missing required field, or a value outside the field's type. It also warns on what no reader can serve: a prop listed twice (`duplicate_prop`), a `propDescriptions` key that names no documented prop (`unknown_translated_prop`), a section with no content (`empty_section`), two sections of a topic with one key (`duplicate_section_key`), or a `.doc.zh.mjs` or `.doc.dense.mjs` overlay beside no topic file (`orphan_doc_overlay`). Since 0.7.3 it also lists, from source and without failing, what the package tells apps to import that they cannot: a component's import (the doc's `import`, or the one the CLI derives) or a template's public import whose subpath package.json `exports` does not declare (`component_import_not_exported`, `template_import_not_exported`) or that names another package (`component_import_other_package`); an example that imports an undeclared subpath (`example_import_not_exported`); a template that imports a path outside the templates root (`template_import_outside_root`) or a path its package or Core does not export (`template_private_import`). It lists the same way a component's import whose module does not export the component (`component_import_missing_name`), an example or a template that imports a name its package does not export (`example_import_missing_name`, `template_import_missing_name`), and a template source with no default export (`template_no_default_export`). Each is a note, printed with its fix, that fails `--strict` from the next minor; an import it cannot judge, such as an `exports` target not built yet or a deep path into a `dist/` not built yet, is listed under `publicImports` as not checked. It checks docs with your installed `typescript`, or, where that is missing or has no JavaScript compiler API (TypeScript 7), with an installed `@typescript/typescript6`; without either, it prints `[skip] Docs not type-checked`. With no `astryx.integration.mjs` it prints a hint and exits 0"],["`{@command doctor integration components}`","No component name clashes with a Core component, each `replaces` names one Core component, and each component doc's props match the component's TypeScript props","Core is not installed (`core_not_found`). In a package that declares the CLI range that turns replacement on, a `replaces` target is missing (`missing_component_replacement_target`) or invalid (`invalid_component_replacement`), or two components replace one Core component (`ambiguous_component_replacement`)","A name clashes with Core, a component sets `replaces` in a package without that range (`inactive_component_replacement`, plus any missing, invalid, or duplicate `replaces` reported as a warning), or a documented prop differs from the code: it is missing there (`not_in_code`), the doc omits a prop the package declares (`not_in_doc`), or its `required` (`required_mismatch`), type (`type_mismatch`), or literal `default` (`default_mismatch`) disagrees, or a `{@link}` in a component doc names no doc (`invalid_doc_graph`). It reads props with your installed `typescript`; without it, it prints `[skip] Props not compared`"],["`{@command doctor integration templates}`","Each `replaces` names a Core template of the same type","A `replaces` target is missing (`missing_template_replacement_target`) or of the other type (`invalid_template_replacement`), or two templates replace one id (`ambiguous_template_replacement`)","A template id matches a Core id without `replaces`"],["`{@command doctor integration docs}`","Your docs tree, every link, topic names against Core, passages two topics repeat word for word, padding phrases and low-density topics, and written pointers to docs","A topic takes a Core topic name without `replaces` or `extends`, a doc is invalid (`invalid_doc`), or a namespace or placement fails, which hides the doc (`invalid_doc_graph`)","A link names no doc (`invalid_doc_graph`), two topics repeat a passage word for word (`copied_passage`), prose pads with a listed phrase or falls under the density floor (`doc_fluff`), or prose, a description or summary, or the text of a component doc writes `{@command docs <name>}` where a link would be checked (`stray_doc_pointer`)"],["`{@command integration check}`","Everything the four `doctor integration` checks prove, in one command, for your build","Any of the four would exit 1 on its own. With `--strict`, also any warning, and any check that did not run, such as a package with no `astryx.integration.*`","Anything the four warn about, unless you pass `--strict`"],["`{@command integration verify}`","The packed package holds every file, shows the same contributions, resolves every public import, and declares the CLI it needs","Anything `validate` fails on, no manifest, a file left out of the `.tgz` file, an import that does not resolve, or a missing CLI peer","Anything `validate` warns about, or a component sets `replaces` and the package does not declare the CLI range that turns it on (`component_replaces_needs_cli`)"]]},{"type":"prose","text":"Pass a package name, such as `{@command doctor integration validate @acme/astryx-widgets}`, to check an installed copy from an app instead. To fix a props finding, see {@link generic:check-the-props}."}]},{"id":"run-every-check-in-ci","title":"Run every check in every build (required)","content":[{"type":"prose","text":"Every integration runs `integration check --strict` in its own build, so every build keeps your docs, types, and links in sync; this is required, not optional. The strict check fails on every copied passage the docs check lists ({@link generic:check-your-docs}). Run `integration verify` before you publish. Install devDependencies first, because the components check needs Core, and `tsc --noEmit` needs `typescript` and a `tsconfig.json`. In package.json:"},{"type":"code","lang":"json","code":"\"typecheck\": \"tsc --noEmit && astryx integration check --strict\""},{"type":"list","style":"unordered","items":["`integration check` runs `validate`, `components`, `templates`, and `docs` in that order, prints each result, then a summary, and exits 1 when any of them would.","`--strict` also exits 1 on any warning and on any check that did not run. Without it, warnings keep exit code 0: use that while you fix the warnings a package already has.","Its exit codes and JSON are a contract for your build: a new check, or a new failure code, joins only in a minor release that names it in the release notes. A patch can still ship a Core component, template, or CLI topic whose name conflicts with one of yours.","`integration verify` runs `validate` but none of the other three: a Core name clash, a `replaces` that names no Core template, a topic that takes a Core name, or a hidden guide still passes it. Run both before you publish: `astryx integration check --strict && astryx integration verify`.","Bare `{@command doctor}` in the package also warns about a doc section over 32 KB, which no check above measures."]}]},{"id":"what-integration-verify-does","title":"Verify the packed package","content":[{"type":"prose","text":"`integration verify` packs your package with npm, unpacks it into a temporary app, and checks that the app sees everything your source has. It publishes nothing and leaves no `.tgz` file or temporary folder behind."},{"type":"list","style":"ordered","items":["It runs `{@pm-only npm \"the tarball the registry receives\" pack}` the way `{@pm-only npm \"npm is the client the registry publishes from\" publish}` would, including your `prepack` script.","It checks that every contribution file is in the `.tgz` file. A root missing from `files` fails with `Add \"templates\" to \"files\" in package.json.`","It lists the components, templates, themes, docs, and codemods the temporary app sees, and compares them with your source.","It resolves each component's `import`, and each template's public import, the way Node does, and checks that the module exports the component under the name its doc documents, or a default export for a template. A type-only export does not count.","For each theme, it rebuilds the source, compares the built module and production CSS with the authored outputs, and proves the module, CSS, and optional font CSS exports resolve from the packed package.","It fails a package that needs an `@astryxdesign/cli` peer and lacks it: `>=0.6.6` for a template that sets `keywords`, and `>=0.6.4` for a template that sets `replaces`, a docs section, a placed guide, a doc section with an `id`, or a theme."]},{"type":"prose","text":"`integration pack --check`, the name this check had before published 0.6.5, still runs it and prints a note; it will be removed in a later release. The options and exit codes are in {@link command:integration verify}."}]}]}},"844d60d481931e743619c0ba1c43eb26":{"doc":{"type":"block","exampleFor":"VisuallyHidden","name":"VisuallyHidden — Live Region","displayName":"VisuallyHidden — Live Region","description":"A polite aria-live region announces visual-only state changes to assistive technology.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["VisuallyHidden","Button","HStack","VStack","Text"]}},"8464a4e14386f07ff6d56595b5de2606":{"doc":{"type":"block","exampleFor":"AspectRatio","name":"AspectRatio — Loading Skeleton","displayName":"AspectRatio — Loading Skeleton","description":"Aspect ratio container with a skeleton loading placeholder.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AspectRatio","Skeleton","Center"]}},"847cb5933e36ae023bba662af205ec3c":{"doc":{"type":"block","exampleFor":"DropdownMenuItem","name":"DropdownMenuItem — Basic","displayName":"DropdownMenuItem — Basic","description":"Dropdown menu items with labels and secondary descriptions. Use DropdownMenuItem to render custom menu entries with consistent styling.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","DropdownMenuItem"]}},"84e26d2af99adb1a6827034556464b44":{"doc":{"type":"block","exampleFor":"CommandPalette","name":"CommandPalette — Rich Items","displayName":"CommandPalette — Rich Items","description":"Custom item rendering with icons, keyboard shortcuts, and keyword search.","isReady":true,"aspectRatio":0.75,"componentsUsed":["CommandPalette","Text","Kbd"]}},"850b98af151b761fda8f12baedc2a333":{"doc":{"type":"block","exampleFor":"Item","name":"Item — Document Tabs","displayName":"Item — Document Tabs","description":"Single-row, horizontally scrollable document switcher with compact selected rows, leading file icons, instant reveal-on-hover close actions with reserved geometry, stable separators, and an add control outside the scroll area. Use for editor tabs, workspace tabs, open documents, files, canvases, or panels.","isReady":true,"aspectRatio":4,"componentsUsed":["Item","Divider","Icon","IconButton","Layout"],"icons":{"DocumentIcon":"file","PlusIcon":"add","XMarkIcon":"close"}}},"8520e46d43ccd04516b7621abae478c7":{"doc":{"type":"block","exampleFor":"Toolbar","name":"Toolbar — Tab Navigation","displayName":"Toolbar — Tab Navigation","description":"A toolbar with tabs in the start slot and an action button at the end. Use as a card or section header when content is split into tabs with a primary action alongside.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toolbar","TabList","Button","Icon","Card","Section"],"icons":{"PlusIcon":"add"}}},"853612d18f7daf4f40e63222f73376fd":{"default":{"type":"theme","name":"gothic","displayName":"Gothic","description":"Deep blue-grays and a signature display serif. Dramatic and editorial, for surfaces that want to be remembered.","maintained":false}},"857a60d2aa06d2d8696c430a49929851":{"doc":{"type":"block","exampleFor":"Token","name":"Token — Colors","displayName":"Token — Colors","description":"All 11 color variants in default and disabled states. Use color to categorize entities or convey status at a glance.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Token","Layout","Text"]}},"85c470179ed091a7785c1fb8503dd10b":{"doc":{"type":"block","exampleFor":"Timer","name":"Timer — Formats","displayName":"Timer — Formats","description":"Elapsed compact units and stopwatch clock notation shown from the same start time.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timer","Layout","Text"]}},"85eb2d7379b29991fb4cb054bb9cafe2":{"doc":{"type":"block","exampleFor":"useTableStickyColumns","name":"useTableStickyColumns — Pinned Columns","displayName":"useTableStickyColumns — Pinned Columns","description":"A Table using useTableStickyColumns to pin the Name column to the start edge and Status to the end edge. Scroll horizontally; pinned columns stay in view with a soft shadow over the scrolling content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"85f251adcd7ebb044b174bfc623188f8":{"doc":{"type":"block","exampleFor":"ContextMenu","name":"ContextMenu — Basic","displayName":"ContextMenu — Basic","description":"An adaptive context area: long-press opens a BottomSheet on compact touch screens, while right-click opens a cursor-positioned menu elsewhere.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ContextMenu"]}},"862318d6c0a6e37e7626de876bec09b3":{"doc":{"type":"block","exampleFor":"Divider","name":"Divider — Vertical","displayName":"Divider — Vertical","description":"Vertical dividers separating side-by-side metrics. Use between stat cards, toolbar groups, or any horizontal layout where you need a visual boundary between sections.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Divider","Card","Section","Layout","Text"]}},"864ee4b1097c436821427c974c0e42d8":{"doc":{"type":"block","exampleFor":"SideNav","name":"SideNav — Header with Menu","displayName":"SideNav — Header with Menu","description":"Side navigation with an account switcher dropdown in the header for multi-account apps.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","List","NavIcon"]}},"86855eebca697b98eb761a2d793429f1":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Truncation","displayName":"Text — Truncation","description":"Single-line and multi-line text truncation with ellipsis using maxLines in a width-constrained container.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Text"]}},"8699fd856f69a92a1f5cf685457b2b99":{"default":{"type":"icon-definition","name":"microphone","description":"Start voice input or audio recording.","words":["voice","audio","record","mic"],"builtIn":true}},"86a13570cc8fc824d60c86241ce4c070":{"docs":{"type":"namespace","name":"internationalization","title":"Internationalization","summary":"Set the active locale, load catalogs, coexist with your own i18n library, show other calendars, handle RTL, and test translations.","keywords":["i18n","internationalization","locale","translation","RTL","right-to-left","language","catalog"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"86ddc1d4e6c4a650c7c0d3c3998b95d4":{"docs":{"type":"generic","name":"non-css-processing","title":"Non-CSS Processing","placement":{"parent":"namespace:styling-libraries","slot":"guides","order":40},"category":"guide","description":"Resolve token values outside the DOM for charts, canvas, SVG, and config objects using resolveThemeTokens() and useTheme().","keywords":["resolveThemeTokens","resolveThemeToken","useTheme","chart","canvas","SVG","non-CSS"],"sections":[{"title":"Non-CSS Processing","content":[{"type":"prose","text":"Use `resolveThemeTokens()` or `resolveThemeToken()` when code outside React needs token values for a known theme and mode. Use `useTheme()` inside client components when the values should come from the nearest Theme and active mode."},{"type":"code","lang":"ts","label":"Resolve tokens without React context","code":"import {resolveThemeTokens} from '@astryxdesign/core/theme/tokens';\nimport {neutralTheme} from '@astryxdesign/theme-neutral/built';\n\nconst tokens = resolveThemeTokens(neutralTheme, {mode: 'light'});\n\nconst chartOptions = {\n textColor: tokens['--color-text-primary'],\n mutedTextColor: tokens['--color-text-secondary'],\n gridColor: tokens['--color-border'],\n seriesColors: [\n tokens['--color-data-categorical-blue'],\n tokens['--color-data-categorical-orange'],\n tokens['--color-data-categorical-purple'],\n ],\n};"},{"type":"code","lang":"tsx","label":"Resolve tokens from the nearest Theme","code":"'use client';\n\nimport {useMemo} from 'react';\nimport {useTheme} from '@astryxdesign/core/theme';\n\nfunction RevenueChart({data}: {data: Array<{x: string; y: number}>}) {\n const {mode, tokens} = useTheme();\n\n const chartOptions = useMemo(\n () => ({\n mode,\n textColor: tokens['--color-text-primary'],\n mutedTextColor: tokens['--color-text-secondary'],\n gridColor: tokens['--color-border'],\n seriesColors: [\n tokens['--color-data-categorical-blue'],\n tokens['--color-data-categorical-orange'],\n tokens['--color-data-categorical-purple'],\n ],\n }),\n [mode, tokens],\n );\n\n return <ThirdPartyChart data={data} options={chartOptions} />;\n}"}]},{"id":"non-css-best-practices","title":"Non-CSS Processing Best Practices","content":[{"type":"list","style":"do","items":["Use the returned `tokens` object as a memo dependency; it is stable until the active theme or mode changes.","Use data visualization tokens such as `--color-data-categorical-blue` for chart series instead of reusing arbitrary UI colors.","Prefer CSS variables for SVG elements when possible (`fill=\"var(--color-accent)\"`); use token resolver APIs when an API requires a string value in JavaScript."]},{"type":"list","style":"dont","items":["Use token resolver APIs for ordinary DOM styling. Use CSS variables, StyleX tokens, xstyle, or library aliases instead.","Assume the returned values reflect every CSS cascade override. They resolve tokens for the current theme and mode; local media-surface overrides and arbitrary CSS overrides may not be represented in the returned map."]}]}]}},"870e3359174eb1e965420b7316bd1e98":{"docs":{"type":"generic","name":"use-a-theme-in-an-app","placement":{"parent":"namespace:themes","slot":"guides","order":40},"title":"Use and extend the theme","category":"guide","description":"An app installs the integration and applies or extends your theme, the same as any theme.","sections":[{"id":"apply-the-theme","title":"Apply the theme","content":[{"type":"prose","text":"Install the integration, then run `theme add` with its slug and package. The command records the package owner and regenerates one app theme module that imports the built theme, production CSS, and optional font CSS. Use `theme eject` only to copy source into an independent local fork."},{"type":"code","lang":"bash","code":"{@pm install @acme/astryx-widgets}\n{@command theme add ocean --package @acme/astryx-widgets}"},{"type":"code","lang":"tsx","code":"import {Theme} from '@astryxdesign/core/theme';\nimport {themes, defaultThemeSlug} from './astryx-themes';\n\n<Theme theme={themes[defaultThemeSlug]}>\n <App />\n</Theme>"},{"type":"prose","text":"`theme list` shows the available, added, and default themes. Use `theme use <slug>` to change the default, `theme remove <slug>` to stop importing one, and `theme eject <slug>` only when the app needs an independent source fork. Applying a theme — `mode`, SSR, and the production build — works the same for every theme; see {@link generic:use-a-theme}."}]},{"id":"extend-the-theme","title":"Extend to customize","content":[{"type":"prose","text":"For ordinary customization, do not copy the package source. Import the built theme and derive a new one with `defineTheme({extends: importedTheme, ...})`, overriding only the tokens the app changes. Use `theme eject` only when the app must own an independent source fork. See {@link generic:define-the-theme}."},{"type":"code","lang":"ts","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {oceanTheme} from '@acme/astryx-widgets/themes/ocean';\n\nexport const productTheme = defineTheme({\n name: 'product',\n extends: oceanTheme,\n tokens: {'--color-accent': ['#0051a3', '#4aa3ff']},\n});"}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: install the theme package in each app that uses the theme; inside a project, the CLI ignores packages installed for the computer. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"8723522cf4b0c6395b9203e29f2b446f":{"docs":{"type":"generic","name":"computer-integrations","placement":{"parent":"namespace:global","slot":"guides","order":6},"title":"Integrations installed globally","category":"guide","keywords":["global integration","install an integration globally","npm i -g integration","integration outside a project","installed for this computer"],"description":"Integrations installed next to your global install work in folders outside any project. Inside a project, only the integrations the project installs work, and the others are listed as ones you could add.","sections":[{"id":"install","title":"Install one globally","content":[{"type":"prose","text":"Install the integration the same way you installed the CLI, so the two sit side by side:"},{"type":"code","lang":"bash","code":"{@pm install @astryxdesign/cli @acme/widgets --global}"},{"type":"prose","text":"A tool that installs the CLI together with integrations in one folder, and runs the CLI from there, counts the same way. `npx` and the cache of project versions never count."}]},{"id":"outside","title":"Outside a project, they work","content":[{"type":"prose","text":"In a folder outside any project, Astryx loads each integration installed next to your global install the way a project loads its own: its components, templates, docs, themes, and discover source show up, and a command name it declares starts the commands Astryx prints. One whose `@astryxdesign/core` or `@astryxdesign/cli` peer range leaves out your global version is skipped, and `{@command doctor}` says why."}]},{"id":"inside","title":"Inside a project, only the project's","content":[{"type":"prose","text":"A project's answers must match what it installs: a component from a package it does not install would not build. So inside a project, an integration installed only globally adds nothing. `{@command discover}` lists it among the packages the project could add, with the project's install command, when it supports the project's version and loads. When the project installs the same integration, the project's copy is the one used."}]},{"id":"check","title":"See which ones work","content":[{"type":"list","style":"unordered","items":["Outside a project, `{@command doctor}` lists the global integrations it uses and warns about each it skips.","Inside a project, `{@command doctor}` and `{@command discover}` list the ones the project could add."]}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works. Building an integration: {@link generic:global-integrations}."}]}]}},"87372789bd913c590c5a96d39adba6a3":{"doc":{"type":"block","exampleFor":"ContextMenu","name":"ContextMenu — Bottom Sheet","displayName":"ContextMenu — Bottom Sheet","description":"A ContextMenu using the explicit BottomSheet presentation. Long-press the target on touch devices or right-click it with a pointer. Keep a visible menu trigger for important mobile actions.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ContextMenu"],"icons":{"DocumentDuplicateIcon":"copy","PencilIcon":"edit","ShareIcon":"share","TrashIcon":"delete"}}},"8766878f98bb58f964b0727e4ce3607f":{"doc":{"type":"block","exampleFor":"useTableRowsVirtualization","name":"useTableRowsVirtualization - Fixed Height Rows","displayName":"useTableRowsVirtualization - Fixed Height Rows","description":"A Table with 1,000 product rows inside a 320px-tall parent, which bounds its scroll area. Give the Table's parent a height, fixed or relative, or a flex child, so windowing can bound the rows; with no height every row renders. Scroll vertically to mount the visible rows. The caller keeps all data and columns; this hook does not virtualize columns.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","VStack"]}},"878d5b7a11cd5aa4758777372ea50239":{"doc":{"type":"block","exampleFor":"NumberInput","name":"NumberInput","displayName":"Number Input","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A number input for quantity entry.","componentsUsed":["NumberInput"]}},"879101638ddffa28ad8a9db2bc4192d2":{"doc":{"type":"block","exampleFor":"AvatarStatusDot","name":"AvatarStatusDot","displayName":"Avatar Status Dot","description":"AvatarStatusDot renders a presence indicator on an Avatar, with variants for positive, neutral, and negative states. The dot size automatically coordinates with the Avatar size.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","AvatarStatusDot"]}},"87c9d0697336561661c3dbf6910765aa":{"default":{"type":"icon-definition","name":"gitBranch","description":"A branch of a code repository.","words":["branch","version control","repository"]}},"887bbbde2762a25a3a2dcf74f2b06f66":{"doc":{"type":"block","exampleFor":"Link","name":"Link — Inline Text","displayName":"Link — Inline Text","description":"A link embedded within a paragraph of body text.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Link","Text"]}},"88d6faf4320198eb07f4b298c2fd38d8":{"doc":{"type":"block","exampleFor":"useGridFocus","name":"useGridFocus — Color Swatch Grid","displayName":"useGridFocus — Color Swatch Grid","description":"A color swatch picker in rows of eight with one Tab stop. useGridFocus moves focus with the arrow keys, Home and End, and Ctrl+Home and Ctrl+End. Each swatch is a button, so Enter or a click picks it.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Text","Layout"]}},"88e905298c328001de2b624747fc6ec2":{"default":{"type":"icon-definition","name":"add","description":"Add or create a new item.","words":["create","new","plus"]}},"8922ecbe16ada8f7c68885b5dddc12e0":{"doc":{"type":"block","exampleFor":"MultiSelector","name":"MultiSelector — Column Visibility","displayName":"MultiSelector — Column Visibility","description":"Column visibility toggle with hidden label, search, select-all, and selection count.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MultiSelector","Center"]}},"892fba7981089a786524a82cf6c6714f":{"doc":{"type":"block","exampleFor":"LayoutContent","name":"LayoutContent","displayName":"Layout Content","description":"LayoutContent is the scrollable main content area within a Layout, providing automatic padding and scroll containment between the header and footer.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","LayoutContent"]}},"8956606919d9d55b77b362a3f7be811d":{"doc":{"type":"block","exampleFor":"Table","alsoExampleFor":["useTablePagination"],"alsoShowcaseFor":["useTablePagination"],"name":"Table — Paginated Data","displayName":"Table — Paginated Data","description":"Paginated data table navigating through a larger dataset page by page.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","Section"]}},"89a65d0a9f7e45b2f2df80a7f74a92a5":{"doc":{"type":"block","exampleFor":"Switch","name":"Switch — With Description","displayName":"Switch — With Description","description":"Toggle with a label and supporting description text.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Switch","Center"]}},"89bced3d5ef075a604424eca191d3013":{"doc":{"type":"block","exampleFor":"useTableSortableState","name":"useTableSortableState — Multi-Sort Orders","displayName":"useTableSortableState — Multi-Sort Orders","description":"Orders with no sort code of their own: useTableSortableState owns the sort state, returns the sorted orders, and hands useTableSortable a ready config. Click Customer, then Shift-click Total, to sort by customer and then by total within each customer. A line above the orders reads the current sort state from the hook.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Table","Layout","Text"]}},"8a190f80fac62f39d80eb1e9686fd0cc":{"docs":{"name":"theme","title":"Theming","category":"guide","keywords":["theme","theming","theme system","dark mode","defineTheme","provider"],"description":"How to use and create themes: see Use a theme for applying themes, and Author a theme for creating and customizing them.","sections":[{"id":"quick-start","title":"Wrap your app in a theme","content":[{"type":"prose","text":"Install a theme, import it with the CLI, and wire the generated module once. For the full guide — available themes, integration themes, dark mode, nested themes, and production builds — see {@link generic:use-a-theme}."},{"type":"code","lang":"tsx","label":"Wire the generated module once","code":"import {Theme} from '@astryxdesign/core/theme';\nimport {themes, defaultThemeSlug} from './astryx-themes';\n\nfunction App() {\n return (\n <Theme theme={themes[defaultThemeSlug]}>\n <YourApp />\n </Theme>\n );\n}"}]},{"id":"creating-a-custom-theme","title":"Create a custom theme","content":[{"type":"prose","text":"Use `defineTheme` with token overrides, scale configs, and component style overrides. For the full guide — palette generation, extending themes, adaptations, custom variants, and production builds — see {@link generic:author-a-theme}."},{"type":"code","lang":"bash","label":"Quick start","code":"{@command theme add stone} # use an existing theme\n{@command theme eject stone} # fork its source to customize\n{@command theme build src/themes/stone/stoneTheme.ts}"},{"type":"prose","text":"For a new coordinated color system, run `{@command theme palette generate palette.config.json --out palette.generated.ts}`. Review and commit the generated palette module and receipt, import its `palette` export, then reference stable stops from semantic tokens. Regenerating an accepted palette updates every mapped token that keeps those references; generation does not rewrite the theme."},{"type":"code","lang":"tsx","label":"Map semantic tokens to generated palette stops","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {palette} from './palette.generated';\n\nconst myTheme = defineTheme({\n name: 'my-theme',\n tokens: {\n '--color-background-surface': [\n palette.neutral.light[100],\n palette.neutral.dark[15],\n ],\n },\n});"}]},{"id":"icon-sizes","title":"Icon sizes","content":[{"type":"prose","text":"A theme sets the dimension of each Icon size in its stylesheet: `width` and `height` on `components.icon['size:sm']` (or `xsm`, `md`, `lg`) resize that size's glyph, for semantic icon names and SVG components passed to `Icon` alike. Give the dimension in `px` or `rem`: a semantic icon takes its font size from it, so an `em` value would also grow its box. A size the theme leaves alone stays 12, 16, 20, or 24px at a 16px root (`xsm`, `sm`, `md`, `lg`) and scales with the root font size; `rem` keeps that scaling. The four size names are fixed."},{"type":"code","lang":"tsx","label":"Set Icon size dimensions","code":"const brandTheme = defineTheme({\n name: 'brand',\n components: {\n icon: {\n 'size:sm': {width: '1.125rem', height: '1.125rem'},\n 'size:lg': {width: '1.75rem', height: '1.75rem'},\n },\n },\n});"}]},{"id":"light-dark-mode","title":"Dark mode","content":[{"type":"prose","text":"Light, dark, and system modes: {@link generic:use-a-theme}."},{"type":"code","lang":"tsx","label":"Light/dark tuple","code":"'--color-accent': ['#0064E0', '#2694FE'],\n// ^light ^dark"}]},{"title":"Integration themes","content":[{"type":"prose","text":"Install an integration and Astryx discovers its themes automatically. Import one with `{@command theme add <name> --package <integration>}`. Use `theme eject` only for an independent source fork. For the full walkthrough, see {@link generic:use-a-theme}."}]}]}},"8a4584db0f0092573669c458b4cfe4fe":{"default":{"type":"icon-definition","name":"chevronDown","description":"Open a dropdown or expand a section.","words":["expand","dropdown","caret"],"builtIn":true}},"8a832549161124d8b7ad4897486087ec":{"doc":{"type":"block","exampleFor":"Step","name":"Step","displayName":"Step","description":"A single Step, with every part it can render: the indicator, the label with its optional marker and trailing endContent, and the description beneath. A Step never sets its own completed/current state. It declares its index and derives the rest from the parent Stepper, so one Step in one Stepper is a complete example.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Stepper","Step","Text"]}},"8a8e34c6ddca6aa02b1d2426003cdd66":{"doc":{"type":"block","exampleFor":"Selector","name":"Selector — Grouped Sections","displayName":"Selector — Grouped Sections","description":"Selector with options grouped into labeled sections.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Selector","Center"]}},"8abf8fba1627f5ef58831fbcf5f73e1a":{"doc":{"type":"block","exampleFor":"Field","name":"Field — Validation States","displayName":"Field — Validation States","description":"All three validation states: error, warning, and success. Use error for invalid input, warning for potential issues like reserved names, and success to confirm valid entries like API keys.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TextInput","Layout"]}},"8ae34f857f307a76e07610410fde27c8":{"default":{"type":"icon-definition","name":"underline","description":"Underlined text.","words":["text format"]}},"8b0d0c3ee98a8e910308b5a4869e99d7":{"doc":{"type":"block","exampleFor":"Center","name":"Center — Vertical & Horizontal Center","displayName":"Center — Vertical & Horizontal Center","description":"An empty state with an icon, heading, and description centered both vertically and horizontally inside a card. This is the most common use of Center: placing content in the middle of a fixed-height area like a panel, card, or content region. The height prop defines the centering space.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Center","Card","Icon","Layout","Text"],"icons":{"InboxIcon":"inbox"}}},"8b2e4ac4ccd9e44a1c637e239e8d02c5":{"doc":{"type":"block","exampleFor":"Typeahead","name":"Typeahead","displayName":"Typeahead","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Typeahead"]}},"8bac673c2a6867d1954203cb05085828":{"default":{"type":"icon-definition","name":"chevronsLeft","description":"Jump to the first item or page.","words":["first","start","chevron double left"],"builtIn":true}},"8bb28cfb7433819a0841b094ce49c031":{"doc":{"type":"block","exampleFor":"FormLayout","name":"FormLayout — Horizontal","displayName":"FormLayout — Horizontal","description":"Two fields side by side for naturally paired inputs like first and last name","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["FormLayout","TextInput"]}},"8c18b7126f874b1b8a4fd2b930ee57c0":{"docs":{"type":"generic","name":"codemods","placement":{"parent":"namespace:building-blocks","slot":"guides","order":50},"title":"Codemods","category":"guide","keywords":["breaking change","migrate apps","integration codemod"],"description":"Ship codemods that `{@command upgrade}` runs to migrate app code, and know which of them an app runs.","sections":[{"id":"add-a-codemod","title":"Add a codemod","content":[{"type":"prose","text":"`integration add codemod` writes a codemod into a folder named after a version. Apps run it with `{@command upgrade}` to migrate their code."},{"type":"code","lang":"bash","code":"{@command integration add codemod rename-delay --to 0.7.0}"},{"type":"code","lang":"text","code":"codemods/\n 0.7.0/\n rename-delay.mjs # the codemod\n rename-delay.test.mjs # skipped: a test file\n __tests__/ # skipped: a test folder"},{"type":"prose","text":"The first add declares `codemods: './codemods'` in `astryx.integration.mjs`. The codemod's id is its path inside the version folder, without the extension: `rename-delay`. An id must be unique across all version folders in the package."},{"type":"prose","text":"The loader skips `*.test.*`, `*.spec.*`, and `*.fixture.*` files and everything under `__tests__/` or `__fixtures__/`, so tests can sit beside the codemod. The folder name decides when an app runs the codemod; see \"Choose when a codemod runs\"."}]},{"id":"write-the-transform","title":"Write the transform","content":[{"type":"prose","text":"A codemod default-exports a plain object with a `type`, a `title`, and a `transform` function. `transform` returns the new source, or `null` to leave the file as it is."},{"type":"code","lang":"js","code":"// codemods/0.7.0/rename-delay.mjs\n/** @type {import('@astryxdesign/cli/authoring').AstryxCodemod} */\nexport default {\n type: 'code',\n title: 'Rename AcmeCarousel delay to interval',\n description: 'Renames the delay prop on AcmeCarousel.',\n fileExtensions: ['.tsx', '.jsx'],\n transform(file, api) {\n const j = api.jscodeshift;\n const root = j(file.source);\n const props = root\n .find(j.JSXOpeningElement, {name: {name: 'AcmeCarousel'}})\n .find(j.JSXAttribute, {name: {name: 'delay'}});\n if (props.size() === 0) return null;\n props.forEach(path => {\n path.node.name.name = 'interval';\n });\n return root.toSource();\n },\n};"},{"type":"prose","text":"`type: 'code'` rewrites the app's source files that match `fileExtensions`. `type: 'config'` rewrites the app's `astryx.config` file instead, and runs before code codemods. `title` shows in the upgrade output, and `api.jscodeshift` is a jscodeshift instance for the file. Every field is in {@link schema:codemod}."}]},{"id":"which-codemods-run","title":"Choose when a codemod runs","content":[{"type":"prose","text":"Two rules decide whether an app's `{@command upgrade}` runs your codemods: the app's Core versions, and whether the app names your package."},{"type":"list","style":"ordered","items":["Version folders are matched against the app's `@astryxdesign/core` versions, not your package's version. `upgrade --from <version>` runs each folder above `--from`, up to and including the Core version installed in the app. With Core 0.7.0 installed, `--from 0.6.3` runs `0.7.0/`, and `--from 0.7.0` runs nothing. A folder named after your own release, such as `1.0.0/`, waits until the app has Core 1.0.0.","`upgrade` runs your codemods only when the app lists your package in `integrations` in its `astryx.config`, or passes `--integration @acme/astryx-widgets`. Having your package installed is not enough: the run then skips your codemods with no warning."]}]},{"id":"run-codemods-in-an-app","title":"Run codemods in an app","content":[{"type":"prose","text":"An app previews codemods with `{@command upgrade}` and writes the changes with `--apply`. Without `--apply`, nothing on disk changes."},{"type":"code","lang":"bash","code":"# Preview each codemod and the files it would change\n{@command upgrade --from 0.6.3 --integration @acme/astryx-widgets}\n# Write the changes\n{@command upgrade --from 0.6.3 --integration @acme/astryx-widgets --apply}"},{"type":"code","lang":"text","code":"Integrations: @acme/astryx-widgets\n<n> codemods to run (dry run)\nApplying integration codemods...\n Rename AcmeCarousel delay to interval (v0.7.0, @acme/astryx-widgets)\n! ~ src/Hero.tsx (would change)"},{"type":"prose","text":"`<n>` counts Core's codemods for the same versions too: they run first and print above `Integrations:`. To run only yours, as when you test it, add `--codemod rename-delay`."},{"type":"prose","text":"`--from` is the Core version the app had before it upgraded. The run scans `./src` unless the app passes `--path`, and it never writes a file the app marks as generated, vendored, or ignored; see {@link command:upgrade}. `upgrade --list` shows only Core codemods."},{"type":"prose","text":"An integration manifest has no `hooks` field. Commands that run after codemods, such as a formatter, are the app's to set, in `hooks.postCodemod` in its `astryx.config`."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: inside an app, `upgrade` runs with the release equal to the app's Core, whichever copy of the CLI the user starts, and only the codemods of integrations the app installs run. Outside a project, `upgrade` lists codemods and migrates nothing. See {@link namespace:global} and {@link command:upgrade}."}]}]}},"8c268a1e82e1f1cae2aaaac7e13a917a":{"docs":{"type":"generic","name":"doc-syntax","placement":{"parent":"namespace:docs","slot":"guides","order":15},"title":"Doc syntax","category":"guide","description":"The tokens a doc writes for links, Astryx commands and package-manager steps, which the CLI shows each reader in their own package manager.","keywords":["doc syntax","tokens","package manager","npm","pnpm","yarn","bun","install command","pm token","command token"],"sections":[{"id":"the-tokens","title":"The tokens","content":[{"type":"prose","text":"A doc never names a package manager or a runner: readers use npm, pnpm, Yarn or Bun, and run the CLI through their own. Write a token instead, and the CLI shows each reader the command they run. Tokens work in prose, list items, table cells and code blocks."},{"type":"table","headers":["Write","For","A pnpm reader sees"],"rows":[["`{@@link generic:deploying}`","another doc","the command that opens that doc"],["`{@@command docs theme}`","an Astryx command","`pnpm exec astryx docs theme`"],["`{@@pm install @acme/widgets --dev}`","a package-manager step","`pnpm add -D @acme/widgets`"],["`{@@pm-only npm \"why\" pkg set name=x}`","a step only one package manager can do","`npm pkg set name=x` (only with npm: why)"],["`{@@@pm install x}`","a token shown as written","`{@@pm install x}`"]]},{"type":"prose","text":"In prose a token prints as a code span; in a code span or code block it prints as the command alone. `--json` carries the same commands, a `{@@command}` token as the bare command that starts with astryx, which a reader that shows the doc prefixes itself."}]},{"id":"package-manager-steps","title":"Package-manager steps","content":[{"type":"prose","text":"A `{@@pm}` token is a verb, its names, and the flags it takes. Each row below runs the same way in every package manager; the CLI writes the reader's own."},{"type":"table","headers":["Token","npm","pnpm","Yarn","Bun"],"rows":[["`{@@pm install}`","`npm install`","`pnpm install`","`yarn install`","`bun install`"],["`{@@pm install x}`","`npm install x`","`pnpm add x`","`yarn add x`","`bun add x`"],["`{@@pm install x --dev}`","`npm install -D x`","`pnpm add -D x`","`yarn add -D x`","`bun add -d x`"],["`{@@pm install x --global}`","`npm install -g x`","`pnpm add -g x`","`yarn global add x` (Yarn 1); npm on Yarn 2 and newer","`bun add -g x`"],["`{@@pm remove x}`","`npm uninstall x`","`pnpm remove x`","`yarn remove x`","`bun remove x`"],["`{@@pm update x --latest}`","`npm install x@latest`","`pnpm update --latest x`","`yarn up x`","`bun update --latest x`"],["`{@@pm run build --watch}`","`npm run build -- --watch`","`pnpm run build --watch`","`yarn run build --watch`","`bun run build --watch`"],["`{@@pm exec tsc}`","`npx tsc`","`pnpm exec tsc`","`yarn run tsc`","`bunx tsc`"],["`{@@pm dlx @astryxdesign/cli init}`","`npx @astryxdesign/cli init`","`pnpm dlx @astryxdesign/cli init`","`yarn dlx …` (`npx` on Yarn 1)","`bunx @astryxdesign/cli init`"],["`{@@pm create vite}`","`npm create vite`","`pnpm create vite`","`yarn create vite`","`bun create vite`"]]},{"type":"list","style":"unordered","items":["Flags: `--dev` and `--exact` with `install`, `--global` with `install` and `remove`, `--latest` with `update`. `--exact` takes one version, never a range: only npm pins a range.","Everything after the name of a script (`run`), a binary (`exec`) or a package (`dlx`, `create`) is passed to it as written.","`{@@pm install x --global}` on pnpm needs `pnpm setup` once per computer."]}]},{"id":"one-package-manager","title":"A step only one package manager can do","content":[{"type":"prose","text":"Some commands exist in one package manager only, such as `npm pkg set` or `pnpm setup`. Write `{@@pm-only <manager> \"<reason>\" <command>}`: the manager is one of npm, pnpm, yarn, yarn-classic or bun, and the reason, in double quotes, is shown to readers beside the command. Use it only when no `{@@pm}` step does the same: doctor names a one-manager step that every package manager can run, with the `{@@pm}` token to write."}]},{"id":"what-doctor-checks","title":"What doctor checks","content":[{"type":"prose","text":"`doctor integration validate`, and so `integration check`, lists each of these as a note with its file, line and the token to write. A note fails nothing today; the next minor release turns them into warnings, so `integration check --strict --next` fails on them now. Run it to fix them ahead."},{"type":"table","headers":["Note","When"],"rows":[["`package_manager_command`","a code span or shell line written for one package manager, such as `npm install -D x`"],["`runner_command`","an Astryx command written with a runner, such as `pnpm exec astryx docs`"],["`plain_command`","an Astryx command written bare, where `{@@command docs}` checks that the command exists"],["`doc_token`","a token that does not parse, or a name that is not a doc token"]]},{"type":"prose","text":"In global mode: outside a project, a `{@@command}` token prints the way your global install prints every command, and a `{@@pm}` step prints for npm unless the CLI detects another package manager. In a project, the project's own runner and package manager decide. See {@link namespace:global}."}]}]}},"8c4569149631039ccd03a5612daf06e7":{"default":{"type":"icon-definition","name":"userRemove","description":"Remove a person from a group, chat, or team.","words":["remove person","user minus","kick"]}},"8ca4c8fbfd2cb7bba9097e4f6990fa2e":{"doc":{"type":"block","exampleFor":"Thumbnail","name":"Thumbnail","displayName":"Thumbnail","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"description":"A thumbnail with an image and label.","componentsUsed":["Thumbnail"]}},"8ce983c08d094ca0af6f405e9419e25d":{"docs":{"type":"generic","name":"uninstall","placement":{"parent":"namespace:global","slot":"guides","order":10},"title":"Uninstall and reset","category":"guide","keywords":["uninstall","remove","reset astryx","clear cache","delete cache","npm uninstall -g","remove agent guide","start over"],"description":"Remove your global install, the agent guide it keeps, and the folders it uses, or reset them to start over.","sections":[{"id":"agent-guide","title":"First, remove the agent guide","content":[{"type":"prose","text":"While the CLI is still installed, remove the agent guide from your home folder:"},{"type":"code","lang":"bash","code":"{@command init --user --remove-agents}"},{"type":"prose","text":"Or delete `~/.agents/skills/astryx` and the links to it listed in {@link generic:computer-agent-guide}."}]},{"id":"uninstall","title":"Uninstall","content":[{"type":"code","lang":"bash","code":"{@pm remove @astryxdesign/cli --global}\n# with Volta: volta uninstall @astryxdesign/cli"},{"type":"prose","text":"Projects are unaffected: each keeps the CLI it installs, if any."}]},{"id":"reset","title":"Reset","content":[{"type":"prose","text":"Delete either folder to reset it; Astryx recreates what it needs on the next run."},{"type":"table","headers":["Folder","Linux","macOS","Windows"],"rows":[["Cache: versions for projects, saved discover answers","`~/.cache/astryx`","`~/Library/Caches/astryx`","`%LOCALAPPDATA%\\astryx\\Cache`"],["Settings: update checks, the agent guide setting, and its links","`~/.config/astryx`","`~/Library/Application Support/astryx`","`%APPDATA%\\astryx`"]]},{"type":"prose","text":"On Linux, `XDG_CACHE_HOME` and `XDG_CONFIG_HOME` move them when set to absolute paths."}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works."}]}]}},"8d1861e19f93e84a449e20e07b7ede31":{"doc":{"type":"block","exampleFor":"Calendar","name":"Calendar — Single","displayName":"Calendar — Single","description":"Pick one date from a month grid. Use for appointment dates, due dates, or any field that needs a single date.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Calendar","Layout","Text"]}},"8d338ebd9ce65bf3785cdc39f6416c92":{"doc":{"type":"block","exampleFor":"MetadataList","name":"MetadataList — Collapsible","displayName":"MetadataList — Collapsible","description":"Metadata list with a show-more toggle after a set number of items.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MetadataList"]}},"8d5b3698cdaaaf8d358749172fb5d4f3":{"doc":{"type":"block","exampleFor":"HStack","name":"HStack","displayName":"H Stack","description":"Demonstrates HStack arranging items horizontally with different gaps and alignments.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","Badge","Text"]}},"8d630fd8db1cc743488769de9ee6769c":{"docs":{"type":"generic","name":"component-migration","title":"Component Migration","placement":{"parent":"namespace:migration","slot":"guides","order":20},"category":"guide","description":"Move the app frame first, map shadcn and Radix primitives to components, and wire up command palette, settings, and theme controls.","keywords":["Button","TextInput","CommandPalette"],"sections":[{"title":"Move the App Frame First","content":[{"type":"prose","text":"Start with AppShell so page migration happens inside the final navigation, spacing, surface, and responsive frame. This also exposes theme and color issues early because every route shares the same shell."},{"type":"table","headers":["Legacy surface","Component","Notes"],"rows":[["Header","TopNav","Use for product identity, global actions, account entry, and command/search trigger."],["Sidebar","SideNav","Use sections and nested nav items for route groups. Keep selection state driven by the router."],["Main page wrapper","AppShell + Layout","Let the shell own persistent structure; let route components own page content."],["Mobile drawer nav","MobileNav or AppShell mobile behavior","Verify focus, close behavior, and route changes on narrow viewports."],["Settings menu","Popover + Layout + Switch","Use as the home for theme mode and app preferences."]]}]},{"title":"Map shadcn and Radix Primitives","content":[{"type":"prose","text":"Do not wrap old shadcn components in design system styles. Replace the primitive with the component that owns the behavior, accessibility, state classes, and token usage."},{"type":"table","headers":["Existing primitive","Component","Migration note"],"rows":[["button / shadcn Button","Button or IconButton","Use Button for labeled commands and IconButton for icon-only toolbar actions."],["input","TextInput","Keep validation state in status props rather than ad hoc border classes."],["textarea","TextArea","Use when multiline editing is the primary action."],["switch","Switch","Use for persisted boolean settings, including theme mode when represented as a binary choice."],["checkbox","CheckboxInput or CheckboxList","Use list variants for grouped selection."],["radio group","RadioList","Use when one option must be selected from a visible set."],["select / combobox","Selector or Typeahead","Use Selector for bounded options and Typeahead for searchable async options."],["tabs used as page nav","TabList","Use route state or current page state as the source of truth."],["command dialog","CommandPalette","Keep app-specific search sources outside the shell and feed searchable items."],["dropdown action menu","DropdownMenu or MoreMenu","Use MoreMenu for compact overflow actions."],["alert / callout","Banner or Toast","Use Banner for page or section messages and Toast for transient feedback."],["dialog","Dialog or AlertDialog","Use AlertDialog for destructive confirmation and Dialog for task flows."],["card-like list row","ListItem","Prefer ListItem for selectable rows instead of styling Button as a row."]]}]},{"id":"command-palette","title":"Command Palette, Settings, and Theme","content":[{"type":"prose","text":"Move global search to CommandPalette once the shell exists. Treat the palette as a view over app commands: routes, contextual actions, create actions, filters, recent items, and entity results. Keep data normalization in app code so search sources always return arrays of searchable items."},{"type":"prose","text":"Put light and dark mode controls in the settings popover or account menu. The switch or selector should update the mode passed to Theme, not toggle isolated body classes."},{"type":"code","lang":"tsx","label":"Settings popover theme control","code":"function ThemeModeSwitch() {\n const {mode, setMode} = useSettings();\n const isDark = mode === 'dark';\n\n return (\n <Switch\n label=\"Dark mode\"\n description=\"Use the dark color theme\"\n value={isDark}\n onChange={next => setMode(next ? 'dark' : 'light')}\n />\n );\n}"}]}]}},"8de7f1b29d038fb41d7b3395df640b46":{"docs":{"type":"generic","name":"define-the-theme","placement":{"parent":"namespace:themes","slot":"guides","order":30},"title":"Define the theme","category":"guide","description":"Point theme tokens at the palette, keep light-dark() to colors, and avoid Core internals.","sections":[{"id":"map-the-palette-to-tokens","title":"Map the palette to tokens","content":[{"type":"prose","text":"A theme token is a named slot that Astryx components read for a value — `--color-accent` for the accent color, and so on. Components never read your palette directly; they read tokens. Defining a theme means pointing each token at a palette shade, so the components wear your colors."},{"type":"prose","text":"Import the palette in `oceanTheme.ts` and point your tokens at its stops. Each token takes a `[light, dark]` pair — the shade to use in light mode and the one in dark mode."},{"type":"code","lang":"ts","code":"// themes/ocean/oceanTheme.ts\nimport {defineTheme} from '@astryxdesign/core/theme';\nimport {palette} from './tokens/ocean.palette';\n\nconst {light, dark} = palette.ocean;\n\nexport const oceanTheme = defineTheme({\n name: 'ocean',\n tokens: {\n '--color-accent': [light['45'], dark['70']],\n },\n});"},{"type":"prose","text":"Local imports must stay inside the theme folder. One that leaves it, such as `../../shared/colors`, fails with `invalid_theme`, and every theme in the package disappears from `theme list`. `{@command theme template}` writes a file that explains every `defineTheme` field. For the full token set and component theming, read {@link generic:author-a-theme}."}]},{"id":"build-on-another-theme","title":"Build on another theme","content":[{"type":"prose","text":"To base a theme on an existing one, `extends` it: import the base theme and override only the tokens you change. Add the derived theme with `integration add theme ocean-contrast`, and import the base from its built package export, since local imports cannot leave the theme folder. The derived theme keeps a live link to the base and picks up its later changes when you rebuild it — unlike `--from`, which forks a copy ({@link generic:add-a-theme})."},{"type":"code","lang":"ts","code":"// themes/ocean-contrast/oceanContrastTheme.ts\nimport {defineTheme} from '@astryxdesign/core/theme';\nimport {oceanTheme} from '@acme/astryx-widgets/themes/ocean';\n\nexport const oceanContrastTheme = defineTheme({\n name: 'ocean-contrast',\n extends: oceanTheme,\n tokens: {\n '--color-accent': ['#0051a3', '#4aa3ff'],\n },\n});"}]},{"id":"keep-light-dark-to-colors","title":"Keep light-dark() to colors","content":[{"type":"prose","text":"Each `[light, dark]` pair compiles to a `light-dark()` value, which switches only colors. Give it colors. For a value that is not a plain color — a gradient — put `light-dark()` on each color stop, not around the whole value: `light-dark()` takes two colors, so wrapping whole gradients makes the value invalid where the token is used, and `theme build` does not warn."}]},{"id":"avoid-core-internals","title":"Do not set Core private variables","content":[{"type":"prose","text":"Core private variables start with `--_`, such as `--_field-radius`. They are internals and can change in any Core release, so `theme build` reports each one it finds as an `[error]`. Set the standard CSS property instead — `borderRadius`, `padding` — and let the build emit the internal variable where Core needs it."}]},{"id":"declare-the-peers","title":"Declare the peer dependencies","content":[{"type":"prose","text":"The theme imports `@astryxdesign/core/theme`, so declare Core as a peer dependency, with the range of Core versions you test the theme against — a range, not an exact version, so a Core patch release does not force a republish. `integration add theme` already declared the optional `@astryxdesign/cli` peer that reads themes:"},{"type":"code","lang":"json","code":"\"peerDependencies\": {\n \"@astryxdesign/core\": \"^0.7.0\",\n \"@astryxdesign/cli\": \">=0.6.4\"\n},\n\"peerDependenciesMeta\": {\n \"@astryxdesign/cli\": {\"optional\": true}\n}"}]}]}},"8df16ac2452a9bf1a0c828feef5e58a1":{"default":{"type":"icon-definition","name":"check","description":"Mark something done, selected or confirmed.","words":["done","tick","confirm","selected"],"builtIn":true}},"8dfc7347ea6901f2f137a6a707c3d9f4":{"docs":{"type":"generic","name":"render-pages","placement":{"parent":"namespace:experimental","slot":"guides","order":20},"stability":"experimental","title":"Pages as one HTML file","category":"guide","keywords":["render","static html","single file","artifact","share a page","snapshot","embed","sandboxed iframe","reverse"],"description":"Experimental. Render a page to one self-contained HTML file for sharing or embedding, and get the page back from it.","sections":[{"id":"experimental","title":"Experimental","content":[{"type":"prose","text":"This command is experimental, as everything under `astryx docs cli/experimental` is: its options, its output file and its JSON may still change. Nothing else in the CLI changes because it exists."}]},{"id":"make-a-file","title":"Make a file to share","content":[{"type":"prose","text":"Build the page with Astryx components as usual, then render it. The page module needs a default export; it renders on your machine with the React and Astryx packages your project installed. Outside a project (no Astryx Core or CLI installed or declared for the folder), it renders with the Astryx, React and StyleX that the CLI itself runs with, so a single page file renders anywhere, a React app included."},{"type":"code","lang":"bash","code":"astryx experimental render src/app/page.tsx --out page.html"},{"type":"prose","text":"The result is ONE file with nothing beside it: the markup, only the CSS rules the page uses (from Core and from any stylesheet it imports, such as a theme), the page’s own StyleX styles, and local images as data: URIs. It runs no script and loads nothing from the network, so it opens from disk, attaches to a message, and displays inside a sandboxed frame that blocks network and script. Colors follow the viewer’s light or dark setting, and a `data-theme` of `light` or `dark` on the root element picks one. The file also carries the source of the page and of every local module, stylesheet, JSON file and image it imports, so whoever you share it with can read that code; keep secrets out of what the page imports."},{"type":"prose","text":"What it cannot keep: anything that needs a browser while running. State, effects, click handlers and data loaded after the first paint are gone. Charts made with recharts are the exception: the render draws each chart and ResponsiveContainer a module of the page (not an installed package) imports from recharts by name (`import {LineChart} from 'recharts'`), inside the page, so a custom tick, label or shape sees the page's React context. A chart sized by its container scales to the width the page gives it, and its legend stays out of the picture: a horizontal legend takes its own row under it (above it when the legend asks for the top), and a vertical legend on one side sits beside it, on that side; in a chart of fixed size, a legend keeps the place its props give it. Charts show the data and props of the page's first render, before its effects run: when the page cannot be drawn again without a browser, or its effects change its charts or re-render the component that makes them, each chart is drawn by itself and its parts see React context defaults. A value a chart's parts read from a React context that an effect changes may still show its later value. A `chart-size` warning counts the charts the render cannot draw (one used through `import * as R`, say), and says when charts were drawn by themselves. Read browser-only values such as window inside an effect, or the render stops with ERR_RENDER_BROWSER_API."}]},{"id":"warnings","title":"Read the warnings","content":[{"type":"prose","text":"Each warning names something that may look different from what you meant, and what to change. The most common is a component that ignores its children: `<ListItem>Save</ListItem>` renders an empty row because ListItem takes `label=\"Save\"`. Others flag remote images (a sandboxed viewer cannot load them; save the image next to the page and import it), a `<script>`, `<link>` or `<iframe>` the page itself renders (the file promises to run and load nothing, so remove them), missing images, and output the page printed while rendering. A `node-crash` warning names a Node build that crashes in `Intl.Segmenter` (its version and path). The page rendered without it, so the output may differ slightly: initials and character counts (such as Avatar initials) can split a joined emoji, a flag, or a letter written with a separate accent mark. Names in ordinary composed letters (`José`, `Zoë`, `李小龙`) come out the same. Render with an official Node.js build to remove the difference."}]},{"id":"get-it-back","title":"Get the page back","content":[{"type":"code","lang":"bash","code":"astryx experimental render --reverse page.html --out page.tsx"},{"type":"prose","text":"Every rendered file carries its source, so this writes the page back byte for byte; edit it and render again. A file whose source block was removed but whose markup came from Astryx components is rebuilt from that markup instead: the components, their recorded props and the text come back, while styling, icons and behavior do not, so treat it as a starting point. HTML that was never an Astryx page is refused with ERR_RENDER_NOT_ASTRYX; describe the page to `astryx build` to start one."},{"type":"prose","text":"It writes the page, the modules, stylesheets and JSON files the page reaches through its own imports, and the images, fonts and media the render carried (however the page named them, as long as their bytes really are one): each goes where the page's relative imports find it from wherever you put the page, and a file the page imports through a path alias (`@/components/Header`) goes where your project's `tsconfig.json` or `jsconfig.json` alias points. Every file but the page goes inside the one new folder the restore creates (the topmost folder on the page's path that does not exist yet), never into a folder that already exists: a page that imports other files comes back into a new folder (`--out restored/app/page.tsx`), and a file it imports through a path alias comes back only when that alias points inside the new folder. Nor does it write a file that a test, story or benchmark runner would run by its default patterns (Jest, Vitest, Bun, AVA, Playwright, Storybook, Cypress and `node --test`: names such as `*.test.*`, `*.spec.*`, `*_test.*`, `*-test.*`, `*.bench.*`, `*.stories.*`, `*.cy.*`, and anything under `test/`, `tests/` or `__tests__/`), judged from the repository root (every folder above the file up to it), else the topmost folder with a package.json. Restored files are the sender's code: read them before you run or import them. Without `--out`, everything comes back into a new folder beside the HTML file, named after it (`page.html` comes back into `page-restored/`). A received file that carries anything else (a file the page never imports, a dotfile, `package.json`, a tool configuration, a path that leaves the folder) is refused with nothing written. A rendered file that lost its embedded source on the way (a sanitizer or an editor strips `<script>` blocks) and has no Astryx components to rebuild from is refused with `ERR_RENDER_SOURCE_DAMAGED`. An existing file is never replaced unless you pass `--overwrite`, and the refusal names every one; a generated, vendored or ignored file, and any path through a symbolic link, is not written even then. Add `--json` for the result as data: what was written, how big it is, and every warning."}]}]}},"8e1cfd689198a4805e0fbf47877d2932":{"doc":{"type":"block","exampleFor":"ChatComposerDrawer","name":"ChatComposerDrawer — Collapsible","displayName":"ChatComposerDrawer — Collapsible","description":"Drawer with many items and a collapse toggle. Pass count to enable the toggle; collapsed state shows a badge with the total count and a label.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Token","Layout"]}},"8e5a86ca2c341b6dcd346a43abbd49a0":{"doc":{"type":"block","exampleFor":"Selector","name":"Selector — Clearable","displayName":"Selector — Clearable","description":"Selector with a clear button to reset the selected value.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Selector","Center"]}},"8e6304d086d7c541cc24d30a6094e23c":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Validation","displayName":"ChatComposer — Validation","description":"Chat composer with error and warning status messages. Status can appear above or below the composer to surface validation or system feedback.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ChatComposer","Layout","Text"]}},"8e87f61b2702121c2a2134cbef6743e7":{"default":{"type":"icon-definition","name":"table","description":"A table or grid of data.","words":["grid","spreadsheet","rows"]}},"8ea276dde7f812aadf4921ecae71f3f8":{"doc":{"type":"block","exampleFor":"Popover","name":"Popover — Filter Panel","displayName":"Popover — Filter Panel","description":"Popover with checkbox filters and apply/reset actions.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Popover","Button","Layout","Text","CheckboxInput","Divider"]}},"8edc70ecae67db841d6385a3d937e27f":{"docs":{"type":"generic","name":"document-the-theme","placement":{"parent":"namespace:themes","slot":"guides","order":50},"title":"Document the theme","category":"guide","description":"Document a theme by extending the core theme topic, so an app reads it in {@link generic:theme}.","sections":[{"id":"extend-the-theme-topic","title":"Extend the core theme topic","content":[{"type":"prose","text":"Give your theme a doc topic that extends the core `theme` topic, so an app that lists your package sees your theme at the end of {@link generic:theme}. Add it with `extends: 'theme'` ({@link generic:extend-or-replace})."},{"type":"code","lang":"javascript","code":"// docs/ocean-theme.doc.mjs\n/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */\nexport default {\n type: 'generic',\n name: 'ocean-theme',\n extends: 'theme',\n title: 'Ocean theme',\n description: 'Use the Ocean theme from @acme/astryx-widgets.',\n sections: [\n {\n id: 'use-the-ocean-theme',\n title: 'Use the Ocean theme',\n content: [\n {\n type: 'prose',\n text: 'Install @acme/astryx-widgets, then run astryx theme add ocean --package @acme/astryx-widgets and apply it from the generated app theme module.',\n },\n ],\n },\n ],\n};"},{"type":"prose","text":"Keep the section short: how to install the package, run `theme add`, apply the generated module ({@link generic:use-a-theme-in-an-app}), and customize with `extends`. When the theme uses a custom font, name the families and the optional exported font stylesheet that `theme add` imports ({@link generic:fonts-and-assets}). Extend `theme` rather than a topic another package replaces, or an app that loads that package after yours drops your section."}]},{"id":"not-agent-guidance","title":"Not agent guidance","content":[{"type":"prose","text":"Do not put theme usage in `agentDocs`. Agent lines land in every app's agent file and are for guidance needed every session; a theme's install-and-use steps belong in a doc topic that people and agents read on demand. See {@link generic:agent-guidance}."}]}]}},"8edf4ea4f99604bf584cf0e17116bcf9":{"doc":{"type":"block","exampleFor":"ChatMessage","name":"ChatMessage — Avatar & Name","displayName":"ChatMessage — Avatar & Name","description":"Messages with avatars and sender names. Place the name on the bubble when using bubbles, or on the message wrapper for raw content.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","ChatMessage","ChatMessageBubble","ChatMessageMetadata","Avatar","Timestamp","Text","Layout"]}},"8eeee746a2be122c82ffc9d026f63e77":{"default":{"type":"icon-definition","name":"arrowsUpDown","description":"Show that a column can be sorted.","words":["sort","sortable","reorder","arrow up down"],"builtIn":true}},"8effcd4ebbb8f1d0989e5e2c1bb1e115":{"docs":{"type":"generic","name":"ci-and-containers","placement":{"parent":"namespace:global","slot":"guides","order":8},"title":"CI and containers","category":"guide","keywords":["ci","github actions","container","docker","read-only home","cache the release cache","agent machine","restart","ephemeral machine"],"description":"What Astryx does in CI and containers: no update checks or notices, the project's version as always, and how to cache versions or work with a read-only home folder.","sections":[{"id":"in-ci","title":"In CI","content":[{"type":"list","style":"unordered","items":["Most CI services set `CI=true`. When `CI` is set to anything but empty, `0`, or `false`, Astryx never checks for updates and never prints a notice; `CI=false`, `CI=0`, and an empty `CI` do not count. `NO_UPDATE_NOTIFIER`, set to anything, does the same anywhere.","Add `@astryxdesign/cli` to the project as a devDependency at the same version as `@astryxdesign/core`; then CI runs the version pinned in the repo, and nothing is fetched. A global install in a CI image also works: in a project, it runs the project's version.","Use `--json` for output a script reads; it never carries the answered-by line or a notice."]}]},{"id":"cache","title":"Cache project versions","content":[{"type":"prose","text":"When the project installs its own CLI and you install the project's dependencies first, there is nothing to cache. Astryx downloads into its cache only the CLI version a project whose own CLI cannot start needs, and, outside a project, the Core of a global install for commands that read components. In CI it downloads nothing in the background, so a global install in a CI image fetches that Core on its first component command. To skip those downloads on every run, cache this folder between runs:"},{"type":"table","headers":["Linux","macOS","Windows"],"rows":[["`~/.cache/astryx` (or `$XDG_CACHE_HOME/astryx`)","`~/Library/Caches/astryx`","`%LOCALAPPDATA%\\astryx\\Cache`"]]}]},{"id":"read-only","title":"Read-only home folders","content":[{"type":"prose","text":"When the cache cannot be written, a project whose own CLI cannot start is answered by the global install, with a warning naming the folder. Point `XDG_CACHE_HOME` at a writable absolute path, or reinstall the project's dependencies. The global install's daily check and agent guide are skipped quietly when they cannot be written."}]},{"id":"short-lived","title":"Machines that keep only the home folder","content":[{"type":"prose","text":"Some agent machines keep the home folder across restarts but not system folders. A global install there disappears on restart while the agent guide in the home folder stays, so agents are told to run a global astryx command that is gone; the guide says to run the command that installed the CLI, such as `{@pm install @astryxdesign/cli --global}`, when that command is not found, and `astryx doctor` names the same step. To keep the CLI across restarts, install it into a folder in your home and put its `bin` folder on your PATH, as for a permission error ({@link generic:install-once}), or run that command when the machine starts."}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works."}]}]}},"8f21371657c753b8d90eb55ff14dfc9e":{"default":{"type":"icon-definition","name":"save","description":"Save changes.","words":["floppy disk","floppy","keep","store"]}},"8f76cd58c69ffbc82ed2d3bb8da416f1":{"default":{"type":"icon-definition","name":"code","description":"Source code or a developer view.","words":["developer","brackets","source"]}},"8fa5899e46eb78cff6148f0a8a9dd5f9":{"doc":{"type":"block","exampleFor":"Citation","name":"Citation — Showcase","displayName":"Citation — Showcase","description":"All citation variants at a glance: label chips and numbered badges, with and without icons and links.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Citation","Layout","Text"]}},"900c6778c3e46c9c17d709a2910752d4":{"doc":{"type":"block","exampleFor":"useScrollableArea","name":"useScrollableArea — Activity Log Panel","displayName":"useScrollableArea — Activity Log Panel","description":"A fixed-height Activity log panel whose entries scroll up and down. useScrollableArea makes the panel a keyboard tab stop only when its entries overflow, reports which edges have more entries so a top or bottom shadow shows only there, and keeps a scroll that reaches the end from scrolling the page. Add entry flips the panel from not scrollable to scrollable.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","Text","Layout"]}},"90196e77dd5d3694a7cbee60b416d16f":{"doc":{"type":"block","exampleFor":"useTreeFocus","name":"useTreeFocus — Keyboard File Tree","displayName":"useTreeFocus — Keyboard File Tree","description":"A custom file tree built from plain rows with tree roles. useTreeFocus gives it the WAI-ARIA tree keyboard model: ArrowUp and ArrowDown move over the visible rows, ArrowRight opens a folder or moves into it, ArrowLeft closes it or moves to its parent, Home and End jump to the ends, a typed letter jumps to a matching name, Enter opens a file, and only one row is in the tab order.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Icon","Text","Layout"],"icons":{"ChevronDownIcon":"chevronDown","ChevronRightIcon":"chevronRight"}}},"90427f0ecc598d8b80561313f9db6ea0":{"default":{"type":"icon-definition","name":"externalLink","description":"Open a link in a new tab or another site.","words":["open","new tab","external","arrow top right on square","square arrow out up right"],"builtIn":true}},"904701186fe51dd5ae7de1fe7420b9d0":{"doc":{"type":"block","exampleFor":"List","name":"List — Ordered Steps","displayName":"List — Ordered Steps","description":"Numbered step-by-step instructions using decimal list markers.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["List"]}},"9066b9b13887569bc51a80ea019ad74c":{"doc":{"type":"block","exampleFor":"InfoTip","name":"InfoTip — Permission Notes","displayName":"Info Tip — Permission Notes","description":"Read-only settings whose labels carry an InfoTip that says who can change each value.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["InfoTip","HStack","VStack","Text"]}},"910a0cbaa7c91d0722b61e67bd5213a1":{"doc":{"type":"block","exampleFor":"EmptyState","name":"EmptyState","displayName":"Empty State","description":"A no-results empty state with an icon, descriptive message, and a call-to-action button.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["EmptyState","Button","Icon"],"icons":{"MagnifyingGlassIcon":"search"}}},"916f86e88ca6204df5ec27e368dc2f89":{"default":{"type":"icon-definition","name":"users","description":"A group of people or a team.","words":["team","group","people","members"]}},"9172bd8f7145341530732884adb00a82":{"doc":{"type":"block","exampleFor":"useInteractiveRole","name":"useInteractiveRole — One Tile, Four Roles","displayName":"useInteractiveRole — One Tile, Four Roles","description":"A polymorphic Tile used four ways: with an href it renders as a link, with an onClick as a button, with neither as plain content, and placed as a Popover trigger it becomes the trigger button through context — the resolution order in one place.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Popover","Card","Text","Layout","Link"]}},"91ae46cc965e714c4520cacf4834a204":{"doc":{"name":"Side Gallery","displayName":"Side Gallery","description":"Asymmetric split section: a copy column of headline, supporting text, and links held against a clustered image collage opposite. Deliberately off-balance, unlike the centered hero.","keywords":["feature banner","split section","marketing","gallery intro"],"type":"page","isReady":true,"category":"Gallery - Side"}},"91ca543f7e1d7d1e5d69f28e7cfa5796":{"default":{"type":"icon-definition","name":"alignMiddle","description":"Center items between the top and bottom edges.","words":["vertical center","middle align"]}},"92278f5155fc72ee3fec5599810982f5":{"docs":{"type":"generic","name":"verify-packed-template","placement":{"parent":"namespace:package-and-test","slot":"guides","order":20},"title":"Verify the packed package","category":"guide","description":"Catch missing files, exports, and CLI requirements before you publish, and know what still needs the app test.","sections":[{"id":"run-the-package-check","title":"Run the package check","content":[{"type":"code","lang":"bash","code":"{@command integration verify}"},{"type":"prose","text":"`integration verify` runs `{@pm-only npm \"the tarball the registry receives\" pack}`, including lifecycle scripts, unpacks the `.tgz` file into a temporary app without installing its dependencies, and checks the unpacked integration. It publishes nothing and removes the `.tgz` file and the temporary app."},{"type":"list","style":"ordered","items":["It validates the manifest, every template doc, its source file, and the templates directory.","It checks that the manifest and every template file are in the `.tgz` file.","It checks that each packed template keeps the same id, type, `name`, and `replaces` as your working copy. It does not compare template source or other doc fields.","It resolves each template through its public package path in the unpacked package.","It checks that the resolved template module has a default export.","It checks the CLI peer that features such as template replacement require."]},{"type":"prose","text":"Each failure prints a `[fail]` line with its message; add `--json` to see each issue code. {@link generic:troubleshooting} lists the common messages and their fixes. Fix every error, and review every warning before publishing."}]},{"id":"know-what-it-does-not-prove","title":"Know what it does not prove","content":[{"type":"prose","text":"`integration verify` checks the packed templates and their public entrypoints. It does not copy a template into an app or run a browser build, so it cannot show the following."},{"type":"list","style":"unordered","items":["Whether a relative helper or stylesheet survives the copy.","Whether the copied file type-checks in every supported app toolchain.","Whether package-owned CSS, fonts, icons, images, or media load in a browser.","Whether layout, color modes, keyboard and pointer input, and real content work.","Whether a template id collides with Core, or whether a `replaces` target exists. Run `{@command doctor integration templates}` for those.","How the template scores on quality."]}]}]}},"923de0d2c9aaf498efc762ed1f44eab5":{"default":{"type":"icon-definition","name":"cloud","description":"Cloud storage, a hosted service, or weather.","words":["storage","hosted","sync"]}},"927e580502462ce9986114d5e9ef30c8":{"doc":{"type":"block","exampleFor":"AppShell","name":"AppShell — Side Nav Only","displayName":"AppShell — Side Nav Only","description":"App shell with SideNav header providing app identity, no TopNav needed.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AppShell","SideNav","Heading","Text","VStack","NavIcon"],"icons":{"ChartBarIcon":"chart","Cog6ToothIcon":"settings","CubeIcon":"package","FolderIcon":"folder","HomeIcon":"home","UsersIcon":"users"}}},"92c4d15b9f6e11f948e15ebf1e4da86e":{"doc":{"type":"block","exampleFor":"Thumbnail","name":"Thumbnail — Gallery","displayName":"Thumbnail — Gallery","description":"A row of clickable thumbnails with labels that open a detail view. Use for image attachment lists where users need to preview and manage uploads.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Thumbnail","Layout","Text"]}},"92cb207263c2c3a94eb19922b0e6b2e5":{"docs":{"type":"generic","name":"tokens-and-setup","title":"Tokens & Setup","placement":{"parent":"namespace:styling","slot":"guides","order":30},"category":"guide","description":"Using design tokens in custom styles and configuring a StyleX compiler for swizzled components.","keywords":["StyleX setup","swizzle","webpack","Vite","Next.js"],"sections":[{"title":"Design Tokens","content":[{"type":"prose","text":"When writing custom styles, use design tokens instead of hardcoded values. Tokens are CSS custom properties that adapt to the active theme and color mode. The system provides tokens for spacing, color, radius, shadow, typography, and size."},{"type":"code","lang":"tsx","label":"Using tokens in stylex.create","code":"import * as stylex from '@stylexjs/stylex';\n\nconst styles = stylex.create({\n surface: {\n padding: 'var(--spacing-4)',\n borderRadius: 'var(--radius-container)',\n backgroundColor: 'var(--color-background-surface)',\n },\n});\n\n<Card xstyle={styles.surface} />"},{"type":"code","lang":"tsx","label":"Using typed token imports in stylex.create","code":"import {colorVars, spacingVars, radiusVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n highlight: {\n backgroundColor: colorVars['--color-accent-muted'],\n padding: spacingVars['--spacing-3'],\n borderRadius: radiusVars['--radius-element'],\n },\n});"},{"type":"prose","text":"Both approaches work: var() strings or typed imports from tokens.stylex. The typed imports give autocomplete and catch typos at build time."},{"type":"prose","text":"See {@link namespace:tokens} for the full token reference (all spacing, color, radius, shadow, and typography tokens with values). See {@link generic:author-a-theme} for how to override tokens via defineTheme."}]},{"id":"stylex-setup","title":"StyleX Build Setup (required for swizzled components)","content":[{"type":"prose","text":"Astryx components ship pre-compiled: `astryx.css` and each package's own stylesheet hold all of their styles, so consuming the published packages needs no StyleX setup. But `{@command swizzle <Component>}` copies the raw StyleX *source* into your app, and StyleX source requires a build-time StyleX compiler to produce atomic CSS. Without one, importing the component throws an error that starts `Unexpected 'stylex.create' call at runtime`, and the page does not render. If a swizzled component throws that error, the app is missing a StyleX compiler. The same applies if you author your own StyleX with `stylex.create()`."},{"type":"table","headers":["Bundler","StyleX plugin"],"rows":[["Webpack","@stylexjs/webpack-plugin"],["Vite / Rollup","@stylexjs/rollup-plugin (or a community Vite plugin)"],["Babel (any bundler)","@stylexjs/babel-plugin + @stylexjs/postcss-plugin"],["Next.js (App Router, SWC)","An SWC-based transform; see the Next.js note below"]]},{"type":"prose","text":"Next.js (App Router) is the sharp edge. StyleX's canonical compiler is a Babel plugin, but introducing a Babel config in Next.js disables the SWC compiler, and with it SWC-dependent features like `next/font`."},{"type":"prose","text":"The repo's `apps/example-nextjs-stylex` takes the Babel path (`next/babel`, `@stylexjs/babel-plugin`, `@stylexjs/postcss-plugin`). Babel turns off SWC, so that app does not use `next/font`. To keep `next/font`, use an SWC transform such as `@stylexswc/nextjs-plugin`."},{"type":"code","lang":"js","label":"next.config.mjs: SWC-based StyleX transform (keeps next/font working)","code":"import stylexPlugin from '@stylexswc/nextjs-plugin';\n\nexport default stylexPlugin({\n rsOptions: {\n // Resolve the Astryx token modules that swizzled source imports.\n aliases: {'@/*': ['./src/*']},\n unstable_moduleResolution: {type: 'commonJS'},\n },\n})({\n // your existing Next.js config\n});"},{"type":"list","style":"unordered","items":["Symptom of a missing compiler: importing a swizzled component throws an error that starts `Unexpected 'stylex.create' call at runtime`, and the page does not render.","A Babel config turns off SWC in Next.js; skip it if you need `next/font`.","Pure theming (defineTheme + astryx theme build) needs NO StyleX compiler; only swizzled/authored StyleX source does.","Keep loading `astryx.css` with a StyleX compiler in place. The compiler builds your own and swizzled source only; never add `node_modules/@astryxdesign` to its inputs."]}]}]}},"9311ff127522fd2adf769f264b5e462e":{"doc":{"type":"block","exampleFor":"ChatMessage","name":"ChatMessage","displayName":"Chat Message","description":"A user multi-bubble group with delivery status and an assistant ghost response with avatar, name, timestamp, and model info.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","ChatMessage","ChatMessageBubble","ChatMessageMetadata","Avatar","Timestamp","Text","Layout"]}},"93814220f9b6489941503bf58652130e":{"doc":{"type":"block","exampleFor":"usePanGesture","alsoExampleFor":["createPanGesture"],"name":"usePanGesture — A draggable box","displayName":"usePanGesture — A draggable box","description":"The smallest pan example, in two forms side by side: the usePanGesture hook and the createPanGesture factory. The factory takes any element, React or not. Each card names its API, follows a drag from a finger, a mouse or a pen, and springs back, with the same StyleX styles. A starting point for a draggable tile, a swipe or any drag-and-release gesture.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Center","HStack"]}},"93e6f0a34f90408e50c74073d8a21f6a":{"doc":{"type":"block","exampleFor":"Typeahead","name":"Typeahead — With Validation","displayName":"Typeahead — With Validation","description":"Typeahead with an error validation message.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Typeahead","Center"]}},"93f49707ea0acc7533b4fc5bc44dded1":{"doc":{"type":"block","name":"Slide in from the start edge","displayName":"Slide in from the start edge","description":"Set side=\"start\" to open from the inline start edge: left in LTR and right in RTL. The default end edge follows the inspector convention.","exampleFor":"Drawer","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Drawer","Button","Layout","LayoutContent","DrawerHeader","Text"]}},"94068cf30add555cdcc8cf9ed780d8df":{"doc":{"type":"block","exampleFor":"SideNavHeading","name":"SideNavHeading — Basic","displayName":"SideNavHeading — Basic","description":"A SideNav header with an app icon and a linked title. Pass it to the SideNav header prop to identify the product or workspace at the top of the navigation rail.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["SideNav","SideNavHeading"]}},"94402b4724176a538cdc89ef8a1114b0":{"doc":{"type":"block","exampleFor":"Heading","name":"Heading","displayName":"Heading","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Layout","Text"]}},"94b3134fbd1befb75a03e7a8c2091d54":{"default":{"type":"icon-definition","name":"gift","description":"A gift, gift card, or reward.","words":["present","reward","gift card"]}},"9536f1b91f7febb4d14add04e3f504b6":{"default":{"type":"icon-definition","name":"gridView","description":"Show items as a grid of tiles.","words":["grid","tiles","gallery view"]}},"956305289c1ed50149f2c6074a6a27a3":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — Status Dot","displayName":"Avatar — Status Dot","description":"Add a status dot to an avatar to show whether someone is online, away, or busy. Use in chat, messaging, or any UI where knowing availability matters.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout"]}},"9572d1b24c502514c029ba662e6814bd":{"default":{"type":"icon-definition","name":"mobile","description":"A phone, or the mobile layout of a page.","words":["phone","smartphone"]}},"959cadb5e09d0e347eae0aa6b9ec00d3":{"doc":{"type":"block","exampleFor":"BaseTypeahead","name":"BaseTypeahead — Custom Search Bar","displayName":"BaseTypeahead — Custom Search Bar","description":"BaseTypeahead embedded inside a custom-styled wrapper. The wrapper provides its own border and icon chrome; anchorRef positions the dropdown relative to it. Use this pattern when Typeahead's built-in field layout does not fit your composition.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["BaseTypeahead","Icon","Layout","Text"],"icons":{"MagnifyingGlassIcon":"search"}}},"9607629fc2093e828f11d6fe3db9c70d":{"default":{"type":"icon-definition","name":"play","description":"Play media or start something.","words":["start","run","video"]}},"962f200c5947cd94bce1d837426e2041":{"doc":{"type":"block","exampleFor":"CommandPaletteList","name":"CommandPaletteList — Item States","displayName":"CommandPaletteList — Item States","description":"Flat list showing the highlighted, selected, and disabled item states. Use CommandPaletteGroup to add section headings.","isReady":true,"isShowcase":false,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPaletteList","CommandPaletteItem"]}},"96b06e046664f56074a26675ec20b12a":{"doc":{"type":"block","exampleFor":"BottomSheet","name":"Bottom Sheet — Mobile keyboard","displayName":"Bottom Sheet — Mobile keyboard","description":"Uses a tall, scrollable form that keeps focused controls visible above the mobile keyboard.","isReady":true,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","Divider","Heading","Stack","Text","TextArea","TextInput"]}},"96b1834eb34ccdf492c25608f735f05a":{"default":{"type":"icon-definition","name":"list","description":"A list view.","words":["bullets","items","rows"]}},"96dafd114593e941608ee8236878d1cc":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — Horizontal Narrow Collapsed","displayName":"Stepper — Horizontal Narrow Collapsed","description":"A narrow horizontal stepper using horizontalOptions. At 320px wide, four steps fall below the 112px minimumStepWidth and collapse into a current-step summary with Previous and Next controls.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Stepper"]}},"972e94303cc3a8a61564b5b3b92db30e":{"doc":{"type":"block","exampleFor":"CommandPaletteItem","name":"CommandPaletteItem — Basic","displayName":"CommandPaletteItem — Basic","description":"Selectable command palette items inside a CommandPaletteList, including highlighted and disabled states. Use when composing a palette manually instead of a search source.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CommandPaletteItem","CommandPaletteList"]}},"9731ff5ec63cc73a39baa5f56eb2b19c":{"doc":{"type":"block","exampleFor":"SegmentedControl","name":"SegmentedControl — Fill Layout","displayName":"SegmentedControl — Fill Layout","description":"Segmented control that stretches segments equally to fill the available width, useful for fixed-width containers.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SegmentedControl"]}},"976576dfcd1c57e66e008f50a51aa959":{"doc":{"type":"block","exampleFor":"AvatarGroup","name":"AvatarGroup — Interactive","displayName":"Avatar Group — Interactive","description":"A facepile whose avatars link to profiles, with an overflow indicator that opens the full member list. The whole group is one Tab stop; arrow keys move between the avatars and the overflow button.","isReady":true,"isShowcase":false,"aspectRatio":1.7777777777777777,"componentsUsed":["AvatarGroup","Avatar","Layout","Text"]}},"9766326f2167920e6d43e68681ff8a70":{"doc":{"type":"block","exampleFor":"CollapsibleGroup","name":"CollapsibleGroup — Density","displayName":"CollapsibleGroup — Density","registry":{"aliases":["collapsible-group/accordion"]},"description":"density sets the block padding on every row in the group, so a list of sections can be tuned to the surface it sits on without touching the rows. compact for dense surfaces like sidebars and inspectors, balanced (the default) for page content, spacious for a short list that is the main thing on the page. It follows Table's scale and pairs with hasDividers, which turns it on at balanced.","isReady":true,"aspectRatio":0.75,"componentsUsed":["CollapsibleGroup","Collapsible","Text","Stack"]}},"977e97cfedbf67e1a946b822a2c3409c":{"doc":{"type":"block","exampleFor":"ChatComposerDrawer","name":"ChatComposerDrawer — Attachments","displayName":"ChatComposerDrawer — Attachments","description":"Drawer with two rows: a scrollable carousel of image thumbnails and a row of removable file tokens. Omit count to keep the drawer always expanded.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Token","Thumbnail","Carousel","Layout"]}},"97941e67aa1985aa8f306d117c6f723d":{"doc":{"type":"block","exampleFor":"ChatComposerInput","name":"ChatComposerInput","displayName":"Chat Composer Input","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["ChatComposer","ChatComposerInput","Layout"]}},"97be0857292b621c1bf0ff2111143232":{"doc":{"type":"block","exampleFor":"HoverCard","name":"HoverCard — Definition","displayName":"HoverCard — Definition","description":"Shows a term definition on hover within a paragraph. Use for technical terms, jargon, or concepts that some readers may not know, like a glossary built into the text.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["HoverCard","Layout","Text"]}},"983cfbf2746e2ae66c6bdbac8946bc6e":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp — Colors","displayName":"Timestamp — Colors","description":"Timestamp rendered in each available color variant: primary, secondary, disabled, and active.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timestamp","Stack","Text"]}},"9874e0e1cf58ee052378de0d5dd11325":{"doc":{"type":"block","exampleFor":"MetadataList","name":"MetadataList — Basic","displayName":"MetadataList — Basic","description":"Single-column key-value metadata list.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MetadataList"]}},"98a83af13741288b3f41c273bab96eee":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — Fallback Chain","displayName":"Avatar — Fallback Chain","description":"Demonstrates the avatar fallback chain: primary image, fallback image, initials, then default icon.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar"]}},"991f1e10416183d5f80881932d4b8248":{"doc":{"type":"block","exampleFor":"Pagination","name":"Pagination — With Table","displayName":"Pagination — With Table","description":"Pagination below a data table with client-side page slicing. Use the count variant with small size for dense data views where users need to see item ranges.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Pagination","Table","Layout"]}},"9931eea75db70e0afa859aad831bdccb":{"doc":{"type":"block","exampleFor":"Icon","name":"Icon","displayName":"Icon","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Icon"]}},"9934c05b0ef16d4101116439f9693332":{"doc":{"type":"page","name":"Filterable Table","displayName":"Filterable Table","description":"Flat row collection built around progressive filtering: a token bar that escalates into full query syntax, saved views that persist a filter set, column and grouping options, and a resizable detail pane.","keywords":["table","list","rows","records","grid","search","filtered dataset","searchable list","filters","faceted search","advanced search","results list","explorer","bulk actions","badges","detail drawer","csv export"],"isReady":true,"category":"Table - Filtering","icons":{"Bookmark":"bookmark","BookmarkPlus":"bookmarkAdd","Calendar":"calendar","ChevronDown":"chevronDown","CircleX":"error","Columns3":"viewColumns","GripVertical":"drag","Image":"image","Pencil":"edit","Pin":"pin","Plus":"add","Search":"search","SlidersHorizontal":"adjustments","Table":"table","Table2":"group","UserPlus":"userAdd","X":"close"}}},"99638df7d2c2601e478b7c6ab03e2b0d":{"default":{"type":"icon-definition","name":"menu","description":"Open the main navigation menu.","words":["hamburger","navigation","bars"],"builtIn":true}},"996e9f6bad5412b292fa1cf2bb6396e9":{"default":{"type":"icon-definition","name":"clock","description":"Pick or show a time.","words":["time","hour","recent"],"builtIn":true}},"99785526aec9be26efd51a130e7457e0":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout — Content Only","displayName":"Layout — Content Only","description":"A minimal layout with just a content area inside a card, without header or footer.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","LayoutContent","Card","VStack","Text","Heading"]}},"99f0475aae72c8c034950e111a368924":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList — With Overflow Menu","displayName":"TabList — With Overflow Menu","description":"Tab list with a dropdown menu for additional items that do not fit inline.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab","TabMenu"]}},"99f04f6630a022ff91790f06099aee5a":{"doc":{"type":"block","exampleFor":"BottomSheetSwitcher","alsoExampleFor":["BottomSheet"],"registry":{"slug":"default"},"name":"Bottom Sheet — Multi-step flow","displayName":"Bottom Sheet — Multi-step flow","description":"A three-step flow of standalone sheets of different heights, driven by one state value: moving on replaces the open step in place. This is the replacement for the deprecated BottomSheetSwitcher.","isReady":true,"isShowcase":true,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","CheckboxList","Divider","Heading","RadioList","Section","Stack","Text"]}},"9a3d9ec4647aa66302819ca0bb022108":{"doc":{"type":"block","exampleFor":"ChatMessageList","name":"ChatMessageList — Full Featured","displayName":"ChatMessageList — Full Featured","description":"Conversation showcasing system messages, multi-bubble grouping, markdown, code blocks, and metadata. Combines date dividers, ghost bubbles, grouped messages, and rich content in a single example.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Chat","ChatMessageList","Layout","Markdown","CodeBlock","Avatar","Timestamp","Token"]}},"9ac02ee132e0383eda85272e8cdd6e4b":{"doc":{"type":"block","exampleFor":"Item","name":"Item","displayName":"Item","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Item","Avatar","Badge","Icon","Text","Layout"],"icons":{"BellIcon":"notification","DocumentIcon":"file","UserIcon":"user"}}},"9b01908359c15c31cb9a3a6e996697c8":{"doc":{"type":"block","exampleFor":"useOverlay","name":"useOverlay — Product Quick View","displayName":"useOverlay — Product Quick View","description":"A product card that is its own overlay container: useOverlay returns the ref and props to spread on the Card and a bottom strip to render once over the image. Hovering the card, or moving keyboard focus into it, slides in a Quick view button along the bottom of the image, and leaving hides it again. The image is a link that the strip leaves clickable above it, and Tab lands on it first so the next Tab reaches Quick view.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Overlay","Card","AspectRatio","Button","Layout","Text"]}},"9b335c09dc384223651a6b0d1aed96b0":{"default":{"type":"icon-definition","name":"language","description":"Choose a language, or translate.","words":["translate","locale","i18n"]}},"9b38453feb0e3d0d7f77544b9b66bbfa":{"doc":{"type":"block","exampleFor":"OverflowList","name":"OverflowList — Capped Toolbar","displayName":"OverflowList — Capped Toolbar","description":"maxVisibleItems caps the row at three actions even when more would fit; the rest move to a dropdown","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["OverflowList","Button","DropdownMenu","Card","Center"]}},"9b4010c5c327a344cd54894b08b6fb7e":{"doc":{"type":"block","exampleFor":"ToggleButton","name":"ToggleButton — Color","displayName":"ToggleButton — Color","description":"Toggle buttons with colored icons in the pressed state. Shows accent-colored toolbar formatting and semantic reaction colors (yellow star, red heart, blue bookmark).","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ToggleButton","Layout","Text","Icon"],"icons":{"BellIcon":"notification","BoldIcon":"bold","BookmarkIcon":"bookmark","HeartIcon":"heart","ItalicIcon":"italic","LinkIcon":"link","StarIcon":"star","StrikethroughIcon":"strikethrough","UnderlineIcon":"underline"}}},"9b7a2c703279c511ae9e2d01309ceff8":{"doc":{"type":"block","exampleFor":"AspectRatio","name":"AspectRatio — Circle Image","displayName":"AspectRatio — Circle Image","description":"Circular container via shape=\"ellipse\" with ratio={1}, ideal for avatars and profile images.","isReady":true,"aspectRatio":1,"componentsUsed":["AspectRatio","Center"]}},"9baac81924a7cda5af89781f30564bda":{"doc":{"type":"block","exampleFor":"SideNav","name":"SideNav — Nested Items","displayName":"SideNav — Nested Items","description":"Side navigation with collapsible nested items for settings or hierarchical menus.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav"]}},"9c4b5b17a994483f21217492592dff8b":{"docs":{"type":"generic","name":"tokens-usage","title":"Usage in StyleX","placement":{"parent":"namespace:tokens","slot":"guides","order":160},"category":"foundations","description":"How to import and use token variables in StyleX styles.","sections":[{"title":"Usage in StyleX","content":[{"type":"code","lang":"tsx","label":"Using token imports","code":"import * as stylex from '@stylexjs/stylex';\nimport {colorVars, spacingVars, sizeVars, radiusVars} from '@astryxdesign/core/theme/tokens.stylex';\nimport {dataVars} from '@astryxdesign/core/theme/dataTokens.stylex';\n\nconst styles = stylex.create({\n card: {\n padding: spacingVars['--spacing-4'],\n backgroundColor: colorVars['--color-background-surface'],\n borderRadius: radiusVars['--radius-container'],\n },\n series: {\n color: dataVars['--color-data-categorical-blue'],\n },\n button: {\n height: sizeVars['--size-element-md'],\n },\n});"},{"type":"prose","text":"Use `dataVars` for StyleX, DOM styles, and SVG presentation attributes. Canvas and other APIs that require concrete mode-resolved values use `resolveThemeToken()` or `useTheme().token()` instead. Raw CSS may use the stable custom-property names only when compiled dataVars output is guaranteed or the declaration carries an explicit fallback. See {@link namespace:styling} for xstyle, className, and compound component patterns, and {@link generic:author-a-theme} for overriding tokens with defineTheme."}]}]}},"9c5b62ab8c0afa4b14a790d108e49ad7":{"doc":{"type":"block","exampleFor":"CodeBlock","name":"Code — Snippet","displayName":"Code — Snippet","description":"Short terminal commands with no header: the copy button sits in its own column beside the code, so a one-line command reads as a single row and a long line ends before the button instead of running under it. Use for install instructions or one-liner commands that readers will paste directly.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CodeBlock","Stack"]}},"9c7dbbc5622cbf7867133660ea4c1472":{"doc":{"type":"block","exampleFor":"Tab","name":"Tab — Selected Icon","displayName":"Tab — Selected Icon","description":"A tab that changes its icon when selected.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab"]}},"9cb51201cca133105ca68d1820a180ec":{"doc":{"type":"block","exampleFor":"Breadcrumbs","name":"Breadcrumbs — Separators","displayName":"Breadcrumbs — Separators","description":"Swap the default \"/\" for a different character like chevrons, arrows, or dots. Use when the visual style of the page calls for a different separator.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Breadcrumbs","Layout","Text"]}},"9d1642cbc8ee49d852b775e36b28c4c4":{"doc":{"type":"block","exampleFor":"Card","name":"Card — Elevations","displayName":"Card — Elevations","description":"The four elevation levels side by side. Cards are flat by default; raise a card with `elevation` only when it needs to float above surrounding content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Card","Layout","Text"]}},"9d581f4685268746acc417ed735d9873":{"doc":{"type":"block","exampleFor":"useCalendarNavigation","name":"useCalendarNavigation — Month Pager","displayName":"useCalendarNavigation — Month Pager","description":"A calendar month pager with previous/next navigation buttons, localized month-year label, and cross-month arrow key navigation using pendingFocus.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Button","Layout","Text"]}},"9d806f0767caabb4e23bcec507bc97ee":{"docs":{"type":"generic","name":"publishing","placement":{"parent":"namespace:ship","slot":"guides","order":40},"title":"Publish an integration","category":"guide","keywords":["publish an integration","npm publish","release"],"description":"Publish your package to npm under the right release tag, checking it before and after.","sections":[{"id":"check-before-you-publish","title":"Check before you publish","content":[{"type":"prose","text":"Publish only a package that passes every check, then preview the upload with `{@pm-only npm \"publishing goes through npm, which every Node install carries\" publish --dry-run}`. The dry run lists the files and the tag without uploading."},{"type":"code","lang":"bash","code":"{@command doctor integration validate} && {@command doctor integration components} && {@command doctor integration templates} && {@command doctor integration docs} && {@command integration verify}\n{@pm-only npm \"publishing goes through npm, which every Node install carries\" publish --dry-run --access public}"},{"type":"code","lang":"text","code":"npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access (dry-run)\n+ @acme/astryx-widgets@1.0.0"},{"type":"prose","text":"Set a new `version` for each release; {@link generic:versioning} covers what counts as breaking. What each check proves is in {@link generic:checks}."}]},{"id":"keep-private-files-out","title":"Keep private files out","content":[{"type":"prose","text":"With no `files` list, npm packs every file your ignore files do not exclude, including an old `.tgz` file or an `.env` file. List what ships instead."},{"type":"code","lang":"bash","code":"{@pm-only npm \"edits package.json\" pkg set 'files[]=components' 'files[]=templates' 'files[]=themes' 'files[]=docs' 'files[]=codemods' 'files[]=astryx.integration.mjs'}\n{@pm-only npm \"builds the tarball npm publishes\" pack --dry-run}"},{"type":"list","style":"unordered","items":["List only the roots you ship, and always `astryx.integration.mjs`. npm adds package.json, and a README and LICENSE when you have them.","Each later `integration add` appends its root to the list.","`integration verify` fails when a root is missing from the list, and names the root to add to `files` (the message is in {@link generic:troubleshooting})."]}]},{"id":"publish-to-npm","title":"Publish to npm","content":[{"type":"prose","text":"A scoped package is private by default, so publish it with `--access public`. Without `--tag`, npm tags the release `latest`, which is what `{@pm install @acme/astryx-widgets}` installs."},{"type":"code","lang":"bash","code":"# Publish a release\n{@pm-only npm \"publishing goes through npm, which every Node install carries\" publish --access public}\n\n# Or set the access once in package.json\n{@pm-only npm \"Yarn has no pkg command\" pkg set publishConfig.access=public}"},{"type":"prose","text":"To let apps try a release first, publish it under `next`, then point `latest` at it once ready."},{"type":"code","lang":"bash","code":"# Only apps that ask for next get it: npm install @acme/astryx-widgets@next\n{@pm-only npm \"publishing goes through npm, which every Node install carries\" publish --tag next}\n\n# Make that version the default\n{@pm-only npm \"dist-tags are set with npm, which every Node install carries\" dist-tag add @acme/astryx-widgets@1.1.0 latest}\n{@pm-only npm \"dist-tags are set with npm, which every Node install carries\" dist-tag ls @acme/astryx-widgets}"}]},{"id":"check-the-published-package","title":"Check the published package","content":[{"type":"prose","text":"Install the version you published in a clean app, and run the same commands you ran against the `.tgz` file."},{"type":"code","lang":"bash","code":"mkdir check-release && cd check-release\n{@pm-only npm \"npm, which every Node install carries, writes the package.json\" init -y}\n{@pm install @astryxdesign/core @astryxdesign/cli @acme/astryx-widgets@1.0.0}\n{@command component AcmeCarousel}\n{@command doctor integration validate @acme/astryx-widgets}"},{"type":"prose","text":"The full list of commands to run in an app is in {@link generic:test-in-an-app}. To help apps move to the new version, see {@link generic:upgrading}."}]}]}},"9d8ab956d39f02f054a9871381228223":{"doc":{"type":"page","name":"Contact Form","displayName":"Contact Form","description":"Flat single-column form mixing control types (text, pill toggles, dropdowns, long free-text) landing on one full-width submit. No steps, no branching, no summary rail.","keywords":["contact","lead capture","enquiry","survey","intake form","questionnaire","feedback","request","submission","entry","fields","upload"],"isReady":true,"category":"Form - Basic","icons":{"AdjustmentsHorizontalIcon":"adjustments","HandRaisedIcon":"raiseHand","RocketLaunchIcon":"rocket"}}},"9dfceef16d46779a4d0f1c300a0a3306":{"doc":{"type":"block","exampleFor":"Link","name":"Link — With Tooltips","displayName":"Link — With Tooltips","description":"Horizontal row of standalone links with descriptive hover tooltips.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Link","HStack"]}},"9e523f0a139225877f4fd021714508d7":{"doc":{"type":"block","exampleFor":"TreeList","name":"TreeList — Mailbox Tree","displayName":"TreeList — Mailbox Tree","description":"Email folder tree with unread badge counts.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TreeList","Badge"]}},"9eea6d83a8ff427a4c2a3e682bd6383f":{"default":{"type":"icon-definition","name":"fire","description":"Something popular, trending, or hot.","words":["trending","hot","popular","flame"]}},"9f2337ac9a3d8abea35bfe3e5faa2b64":{"doc":{"type":"block","exampleFor":"CommandPalette","name":"CommandPalette — Custom Footer","displayName":"CommandPalette — Custom Footer","description":"Command palette with a custom footer tip message.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteFooter","Text"]}},"9f3ac4df3e19a76228d31a6b5c43376e":{"doc":{"type":"block","exampleFor":"TopNavMegaMenuItem","name":"TopNavMegaMenuItem — Basic","displayName":"TopNavMegaMenuItem — Basic","description":"Rich link items with an icon, title, and description. Use inside the items slot of a TopNavMegaMenu to describe each destination.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNavMegaMenuItem","Grid"],"icons":{"BoltIcon":"bolt","CircleStackIcon":"database"}}},"9fb4a72859926a82b9dde15d1de1972e":{"doc":{"type":"block","exampleFor":"SyntaxTheme","name":"SyntaxTheme — Compact Preset","displayName":"SyntaxTheme — Compact Preset","description":"A concise code block rendered with the One Dark Pro syntax preset to show how SyntaxTheme changes highlighting colors without making the page long.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SyntaxTheme","CodeBlock","Layout","Text"]}},"9fb4d137ba9cbf828cbe2ee8b3aa1d09":{"default":{"type":"icon-definition","name":"notification","description":"Notifications or alerts.","words":["bell","alerts","notify"]}},"a0bcad27440c27a10e736c1cbbfe02fb":{"default":{"type":"icon-definition","name":"paintBrush","description":"Paint or style something, such as appearance settings.","words":["paint","brush","appearance"]}},"a0cec5a02dcd51c2ba9c3e1c296748e5":{"doc":{"type":"block","exampleFor":"ChatComposerDrawer","name":"ChatComposerDrawer — Feedback","displayName":"ChatComposerDrawer — Feedback","description":"Chat composer drawer with a feedback prompt and selectable lettered options. Use for user confirmation workflows that require explicit action before proceeding.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["ChatComposer","List","Badge","Text","Layout"]}},"a15afbc6a1928147aac92b14868be670":{"doc":{"type":"block","exampleFor":"Divider","name":"Divider — Variants","displayName":"Divider — Variants","description":"Horizontal dividers in subtle and strong variants, plus a labeled divider. A quick visual reference for separator styles.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Divider","Layout"]}},"a1ccb93bd2c7cd30ee9da36ed45ee505":{"default":{"type":"icon-definition","name":"arrowDown","description":"Sort descending or move down.","words":["descending","down","decrease"],"builtIn":true}},"a2176ec52b15586262dea0d32c3675a1":{"doc":{"type":"block","exampleFor":"IconButton","name":"IconButton","displayName":"Icon Button","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"An icon button with a wrench icon.","componentsUsed":["IconButton","Icon"]}},"a2361411c0953c7b64e10cfba68fb0e0":{"doc":{"type":"block","exampleFor":"PowerSearch","name":"PowerSearch — Content Search","displayName":"PowerSearch — Content Search","description":"Power search with contentSearchFieldKey so free-text input maps to a title field automatically.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["PowerSearch"]}},"a25c27639628e6f4b29d9a1135d89f5a":{"doc":{"type":"block","exampleFor":"useDirection","name":"useDirection — Hook Usage","displayName":"useDirection — Hook Usage","description":"Demonstrates reading ambient text direction during render to draw a direction-aware canvas sparkline whose time axis runs from the logical inline start edge.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["InternationalizationProvider","SegmentedControl","Layout"]}},"a26cf1322d5e011c66c387eb737a21cd":{"doc":{"type":"block","exampleFor":"Skeleton","name":"Skeleton — Table Rows","displayName":"Skeleton — Table Rows","description":"Table skeleton with staggered column widths.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Skeleton","HStack","VStack"]}},"a272074ae4180e6eaf53e312a39c4a77":{"doc":{"type":"block","exampleFor":"BottomSheet","name":"Bottom Sheet — Snap points","displayName":"Bottom Sheet — Snap points","description":"Drag-to-resize stops: a half-height working surface, and a peek that slides away and thins the scrim.","isReady":true,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","Divider","Heading","Icon","Item","Stack","Text"],"icons":{"ArrowLeftIcon":"arrowLeft","ArrowRightIcon":"arrowRight","ArrowUpIcon":"arrowUp","ArrowUturnLeftIcon":"undo","FlagIcon":"flag","MapPinIcon":"location"}}},"a29aaea2b73a12a6a3038cea1fbb475d":{"doc":{"type":"block","exampleFor":"BaseTypeahead","name":"BaseTypeahead — Menu","displayName":"BaseTypeahead — Menu","description":"A filter field built on BaseTypeahead's `menu`. The listbox role puts a heading and a key hint around the result list, and keeps every action a result. Picking a field switches the same menu to a dialog role that edits the value; `handleRef.open()` reopens it from a filter button, and Escape returns focus to that button.","isReady":true,"isShowcase":false,"aspectRatio":1.7777777777777777,"componentsUsed":["BaseTypeahead","Button","Icon","Layout","RadioList","Text"],"icons":{"FunnelIcon":"funnel"}}},"a2e4834792e936eb5f96ba4d735740bc":{"doc":{"type":"block","exampleFor":"Breadcrumbs","name":"Breadcrumbs — Menu item","displayName":"Breadcrumbs — Menu item","description":"Give a mid-trail crumb a `menu` prop to turn it into a menu trigger for switching between sibling destinations. It reuses the same item API as DropdownMenu, so an existing option array (or composed item children) drops in verbatim.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Breadcrumbs"]}},"a2f9f8998ad447b696acc32e10c1eb08":{"docs":{"type":"namespace","name":"themes","placement":{"parent":"namespace:building-blocks","slot":"guides","order":30},"title":"Themes","summary":"Author a theme in your integration; apps install, apply, and extend it like any theme.","keywords":["integration theme","ship a theme","define theme","theme palette","extend a theme"],"blocks":[{"type":"prose","text":"In global mode: outside projects, the theme list includes themes from integrations installed for the computer, and `theme add` there only shows them; inside a project, it lists only themes from integrations the project installs. See {@link namespace:global} and {@link generic:global-integrations}."},{"type":"prose","text":"A theme contribution has editable `defineTheme` source plus a built module and production CSS. `integration add theme` scaffolds the source and declares the package exports; `theme build` writes the built outputs. An app installs the package, runs `theme add`, applies the theme from its generated app module, and customizes it with `extends` instead of copying source."},{"type":"prose","text":"These guides cover the whole path: scaffold the source, generate its palette, define and build the theme, ship fonts and assets, run `integration verify`, and document how apps add and extend it. Applying a theme, including mode and SSR, works the same for every theme; see {@link generic:use-a-theme}."}],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"a2fe575c16ba5f94533d0ca4d86f956f":{"doc":{"type":"block","exampleFor":"CheckboxInput","name":"CheckboxInput — Status","displayName":"CheckboxInput — Status","description":"Checkboxes with error, warning, and success validation messages. Use the status prop to show feedback after form validation: errors block submission, warnings inform, and success confirms.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxInput","Layout"]}},"a37a80045d7eeb05008387ebbc544266":{"doc":{"type":"block","exampleFor":"ChatMessageBubble","name":"ChatMessageBubble — Grouping","displayName":"ChatMessageBubble — Grouping","description":"Multi-bubble messages using first, middle, and last group positions. Grouped bubbles tighten corner radius on the sender side for a continuous visual flow.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","Avatar","Timestamp","Text","Layout"]}},"a37e88048ade7e087e7928a5f5a3b6cc":{"doc":{"type":"block","exampleFor":"Icon","name":"Icon — Semantic Colors","displayName":"Icon — Semantic Colors","description":"All semantic icon color variants with labels.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Icon","HStack","VStack","Text"]}},"a388bed579b626e52821d24641f4bb70":{"doc":{"type":"block","exampleFor":"Calendar","name":"Calendar","displayName":"Calendar","description":"An interactive single-date calendar with a selected date. Click any day to change the selection.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["Calendar"]}},"a3f5a8e7a29cd363c4ff0b4a96f643fe":{"docs":{"type":"namespace","name":"cli","title":"Astryx CLI","summary":"Commands, programmatic APIs, and output contracts. Building an integration is under {@link namespace:authoring}.","keywords":["cli","commands","api","reference"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic","namespace"]}},"reference":{"title":"Reference","accepts":{"kinds":["namespace"]}}},"blocks":[{"type":"prose","text":"Use the CLI in any folder: install it once for your computer, and every project still gets the release that matches its Core. See {@link namespace:global}."}]}},"a4a4955941d7ac98a2b7e9aca7140993":{"default":{"type":"icon-definition","name":"error","description":"Show that something failed.","words":["failed","invalid","problem","x circle","circle x"],"builtIn":true}},"a4df8468de7f46a0ad2f75e2e7029c0b":{"default":{"type":"icon-definition","name":"flipHorizontal","description":"Mirror an image or shape left to right.","words":["mirror","flip","reflect"]}},"a56a3bb18bee61c3c58551f9fc2bb072":{"doc":{"type":"block","exampleFor":"ToggleButtonGroup","name":"ToggleButtonGroup","displayName":"Toggle Button Group","description":"ToggleButtonGroup manages a set of ToggleButtons with single-select or multi-select behavior for options like view modes or filters.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ToggleButton","ToggleButtonGroup"]}},"a5bcb6db0ddd8443132a6db4f0f4e0b4":{"default":{"type":"icon-definition","name":"bolt","description":"Speed, power or quick actions.","words":["fast","power","lightning"]}},"a5f32e27f4784e9cb413e4dc8d43252c":{"default":{"type":"icon-definition","name":"desktop","description":"A desktop computer, or the desktop layout of a page.","words":["computer","monitor","screen","computer desktop"]}},"a60cb35584f8e91ed56c98870e563905":{"docs":{"type":"namespace","name":"ship","placement":{"parent":"namespace:authoring","slot":"guides","order":30},"title":"Ship","summary":"Test, publish, and upgrade your package.","keywords":["authoring","ship","publish","release","upgrade"],"slots":{"guides":{"title":"Ship","accepts":{"kinds":["generic"]}}}}},"a640f2fd2f62d11f05c157ea0698133a":{"doc":{"type":"block","exampleFor":"Card","name":"Card — Simple","displayName":"Card — Simple","description":"A card with a heading and body text. Use for summaries, descriptions, or any grouped content that needs visual separation from the page. The card handles its own border, background, and padding; just pass your content as children. Set a width to constrain it, or leave it to fill the parent.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Card","Layout","Text"]}},"a6cae93579f06f3c4c9c18d3bbfb0ee8":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Word Break","displayName":"Text — Word Break","description":"Compares break-word and break-all word break modes on a long unbreakable string.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Text"]}},"a6cbda6ec085fe15bd1c98e615269105":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout — Content Width","displayName":"Layout — Content Width","description":"A layout using contentWidth to constrain and center content while keeping dividers full-bleed.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","LayoutHeader","LayoutContent","LayoutFooter","Button","HStack","VStack","Text","Heading"]}},"a6dfb57ab65689fee45da9c87ef46c4f":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList — With Actions","displayName":"TabList — With Actions","description":"Page header pattern with tabs on the left and action buttons pushed to the right. When hasDivider is true, match the Button size to the TabList size so the tabs and actions align to a shared baseline above the divider.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab","Button"]}},"a7179f9f94084b66e52d1f73db32b28f":{"doc":{"type":"block","exampleFor":"TreeList","name":"TreeList","displayName":"Tree List","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["TreeList"]}},"a8904af50957e68ef9f70e9f347fd3a0":{"doc":{"type":"block","exampleFor":"Carousel","name":"Carousel — Cards","displayName":"Carousel — Cards","description":"A horizontally scrollable row of cards with snap scrolling enabled. Use for feature grids, product lists, or any set of cards that overflows the available width. The carousel adds fade edges and navigation buttons automatically.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Carousel","Card","Layout","Text"]}},"a8af83bdbb963f74407425cf23b06ab5":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — Clear","displayName":"Tokenizer — Clear","description":"Tokenizer with a built-in clear-all button for bulk removal of all selected tokens. On touch screens, clear through the sheet's Clear all.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Tokenizer","Layout","Text"]}},"a8e76e8706ca82bf4975266a995a0a8d":{"doc":{"type":"block","exampleFor":"OverflowList","name":"OverflowList — Badge Tags","displayName":"OverflowList — Badge Tags","description":"Resizable row of badges that collapses into a count badge on overflow","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["OverflowList","Badge","Card"]}},"a917b510137b8e4cab01f9752e37ed6b":{"default":{"type":"icon-definition","name":"swatch","description":"Pick colors, a palette, or a theme.","words":["color","palette","theme"]}},"a92a75a9c29c88f8ff2fe92c7a365b09":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Full Width","displayName":"Banner — Full Width","description":"A full-width banner with no border radius for page-level notifications. Use at the top of a page for site-wide announcements or maintenance alerts.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner","Button","Layout"]}},"a9334aba23bc7110b3d416a1e8129a5e":{"doc":{"type":"block","exampleFor":"MobileNav","name":"MobileNav — Without Title","displayName":"MobileNav — Without Title","description":"Mobile navigation drawer without a title header","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MobileNav","SideNav","Button","Icon"],"icons":{"FolderIcon":"folder","HomeIcon":"home"}}},"a9c2929136aff646f2f7a852723ffde3":{"doc":{"type":"block","exampleFor":"TimeInput","name":"TimeInput — Formats","displayName":"TimeInput — Formats","description":"12-hour, 24-hour, and seconds formats side by side. Use 12h for US-centric UIs, 24h for international or technical contexts, and seconds for precise timing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TimeInput","Layout","Text"]}},"a9d2abb61a66a35db853098ccfd542ab":{"doc":{"type":"block","exampleFor":"useTableSelection","name":"Table: Floating Bulk Actions","displayName":"Table: Floating Bulk Actions","description":"The reusable TableSelectionToolbar inside a capped, self-contained scroll region for a long non-sticky table below metric cards. The caller-owned sticky placement keeps actions 16px from the example scrollport without moving the table when selection changes.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","TableSelectionToolbar","Button","ScrollableArea"]}},"aa04d9c9e5d59e12635365533e02915a":{"doc":{"type":"block","exampleFor":"CommandPalette","name":"CommandPalette — Grouped","displayName":"CommandPalette — Grouped","description":"Command palette with items grouped via auxiliaryData.group.","isReady":true,"aspectRatio":0.75,"componentsUsed":["CommandPalette"]}},"aa348742873a8c9508253bf519cd0403":{"doc":{"type":"block","exampleFor":"CodeBlock","name":"Code — Scrollable","displayName":"Code — Scrollable","description":"A long code block with a max height that enables vertical scrolling. Use maxHeight to keep the block from dominating the page when displaying large files.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CodeBlock"]}},"aa5cea0d6c7061c4ee919bf3f8d13073":{"docs":{"type":"generic","name":"migration-verification","title":"Verification","placement":{"parent":"namespace:migration","slot":"guides","order":30},"category":"guide","description":"Post-migration verification checklist and an AI migration prompt to paste into your coding tool.","keywords":["verification","checklist","AI prompt"],"sections":[{"title":"Verification Checklist","content":[{"type":"list","style":"unordered","items":["Run the app in light and dark mode and check that surfaces, borders, text, icons, hover states, focus rings, and status colors flow together.","Open the command palette from the shell, type into it, select items by keyboard, and confirm focus returns to the trigger.","Check the SideNav at collapsed, expanded, active, hover, nested, and mobile states.","Verify settings popovers and dialogs in jsdom and in a real browser because the native dialog and [`Popover`](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) APIs may need test shims.","Search for leftover hardcoded Tailwind colors, arbitrary hex values, and one-off hover colors after each route migration.","Run component tests, build, and at least one browser screenshot pass for each migrated route."]}]},{"title":"AI Migration Prompt","content":[{"type":"prose","text":"When using an AI coding agent, give it an explicit migration loop instead of asking for a full-app rewrite."},{"type":"code","lang":"text","label":"Paste this into your AI","code":"We are migrating this existing Tailwind/shadcn app to Astryx incrementally.\n\nFirst run:\n- astryx docs migration --dense\n- astryx docs theme --dense\n- astryx docs styling --dense\n- astryx template AppShellTopNavWithSideNav --skeleton\n\nThen migrate one route or shell surface at a time. Keep business logic and routing intact. Replace shadcn/Radix/Tailwind primitives with Astryx components, remove hardcoded colors, verify light and dark mode, and take screenshots before moving to the next surface."}]}]}},"ab19b3c1e92a809a96de26bd5ea60a4e":{"doc":{"type":"block","exampleFor":"ClickableCard","name":"ClickableCard — Elevated","displayName":"Clickable Card — Elevated","description":"A clickable card raised with `elevation=\"med\"` so the shadow signals the whole surface is interactive.","isReady":true,"aspectRatio":1,"componentsUsed":["ClickableCard","Layout","Text"]}},"ab2d96d86d1177baca76860f38b9ec4f":{"doc":{"type":"page","name":"Product Detail","displayName":"Product Detail","description":"Single-item detail pairing a media gallery with a selection column: variant swatches, a quantity stepper, primary and secondary commit actions, and collapsible specification sections below.","keywords":["product","listing","item","catalog entry","storefront detail"],"isReady":true,"category":"Content - Product Detail","icons":{"MinusIcon":"remove","PlusIcon":"add","StarIcon":"star"}}},"ab458a81ebd9f8aa342a238aec6db334":{"doc":{"type":"block","exampleFor":"Thumbnail","name":"Thumbnail — Disabled","displayName":"Thumbnail — Disabled","description":"Thumbnails in the disabled state with reduced opacity. The open and remove buttons stay focusable and announced as disabled, and call nothing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Thumbnail","Layout","Text"]}},"ab76b68d560c6d3dd797eabd8d1c379c":{"doc":{"type":"block","exampleFor":"CommandPaletteList","name":"CommandPaletteList","displayName":"Command Palette List","description":"Scrollable command palette list with grouped items, including a highlighted item, composed without a full CommandPalette.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPaletteList","CommandPaletteGroup","CommandPaletteItem"]}},"abf3bdb02385d4dab340179281c28d43":{"doc":{"type":"block","exampleFor":"List","name":"List","displayName":"List","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["List"]}},"ac0c9a922ba9ed1215a760aa3d35d0bb":{"doc":{"type":"block","exampleFor":"AvatarGroup","name":"Avatar — Group","displayName":"Avatar — Group","description":"Overlap multiple avatars in a row to represent a group of people. Use for team lists, PR reviewers, or participant counts where you want to show faces without taking up much space.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["AvatarGroup","Avatar","Layout","Text"]}},"ac27c2ee1fd2de493d331237bb7a0cb2":{"default":{"type":"icon-definition","name":"alignStart","description":"Align text or items to the start edge: the left in a left-to-right layout, the right in a right-to-left one.","words":["align start","left align","justify left","text align"]}},"ac8ce69fdbfd1d351e425a82b610bc3a":{"doc":{"type":"block","exampleFor":"MetadataList","name":"MetadataList","displayName":"Metadata List","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["MetadataList"]}},"acd60564c5499313b53fd5d265cd28fa":{"doc":{"type":"block","exampleFor":"Item","name":"Item — Basic","displayName":"Item — Basic","description":"A basic item with a label, supporting description, and end-aligned timestamp. Use this for simple rows that need consistent text alignment and spacing.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Item","Text","Layout"]}},"acf23445833db5de31a0b4dde7a1e8de":{"doc":{"type":"block","exampleFor":"Popover","name":"Popover — Keyboard Shortcuts","displayName":"Popover — Keyboard Shortcuts","description":"Popover displaying a list of keyboard shortcuts with key and description pairs.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Popover","Button","Layout","Text","Divider"]}},"acf59cb72f2ebc0b80716b3af2f32a17":{"default":{"type":"icon-definition","name":"location","description":"A place or address.","words":["place","address","map","map pin"]}},"ad0fa85357d738d3c04a0ebf915513eb":{"doc":{"type":"block","exampleFor":"LayoutHeader","name":"LayoutHeader","displayName":"Layout Header","description":"LayoutHeader is a fixed header slot within a Layout, pinned to the top for titles, navigation, and action buttons.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","LayoutHeader"]}},"ad1928d8efc56b4b70e4035d8c160e29":{"doc":{"type":"block","exampleFor":"Button","name":"Button — Icon","displayName":"Button — Icon","description":"Buttons with a leading icon that reinforces the label. Use when the icon helps the user identify the action faster, like a plus for \"New\" or a trash can for \"Delete\".","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Icon","Layout"],"icons":{"ArrowDownTrayIcon":"download","PencilSquareIcon":"compose","PlusIcon":"add","TrashIcon":"delete"}}},"ad2b90223e3c4f88dae701dbdcf5b367":{"doc":{"type":"block","exampleFor":"RadioList","name":"RadioList — With Validation","displayName":"RadioList — With Validation","description":"Required radio list with an error message when nothing is selected.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["RadioList"]}},"ad3148c077f6c799b502bad626a13a35":{"doc":{"type":"page","name":"Messaging Shell","displayName":"Messaging Shell","description":"Four-column nested navigation narrowing left to right (team workspace, channel list, message stream, thread panel) where each column scopes the next. Dense rows, zero cards.","keywords":["team messaging","chat","channels","threads","inbox","direct message","conversation workspace"],"isReady":false,"category":"Shell - Messaging","icons":{"BellIcon":"notification","BookmarkIcon":"bookmark","ChatBubbleLeftRightIcon":"conversation","Cog6ToothIcon":"settings","HashtagIcon":"tag","HomeIcon":"home","InboxIcon":"inbox","MagnifyingGlassIcon":"search","PencilSquareIcon":"compose","UserGroupIcon":"users","XMarkIcon":"close"}}},"ad4816441960a20d091eb2fdff2c863f":{"doc":{"type":"page","name":"Two-column Form","displayName":"Two-column Form","description":"Form split into two columns beneath a hero header: inputs on one flank, a persistent context panel opposite that stays put while the fields scroll. Flat, single submit, no steps.","keywords":["contact","lead capture","intake","request","enquiry form","configurator","generator","launcher","calculator","checklist","upload","live preview","side panel"],"isReady":true,"category":"Form - Two-column"}},"ad59801508a2f2bd0297b1c614421b26":{"doc":{"type":"page","name":"Inline Wizard","displayName":"Inline Wizard","description":"Accordion wizard stacking every step in one column: the active step expands in place while finished ones collapse to a single line carrying their result and a way back in. Steps that run themselves expand into a nested stepper that ticks check by check and halts the column where one fails. Best when later steps depend on what earlier ones decided.","isReady":true,"category":"Form - Wizard Inline","icons":{"BeakerIcon":"experiment","BoltIcon":"bolt","CpuChipIcon":"cpu","CubeIcon":"package"}}},"adf4f052d2673cb72a658400cdddf43e":{"default":{"type":"icon-definition","name":"textRegular","description":"Plain upright text, the regular style beside italic.","words":["regular","normal text","not italic"]}},"ae29a35ed2f09033c1a645ee242b6be5":{"doc":{"type":"block","exampleFor":"FileInput","name":"FileInput","displayName":"File Input","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["FileInput"]}},"ae5b8362937b75a4d8a3c77344d5d070":{"doc":{"type":"block","exampleFor":"Table","name":"Table — Striped Rows","displayName":"Table — Striped Rows","description":"Table with alternating row colors and hover highlighting for easy scanning.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"aea4616f14132e234ac8432cef747b3a":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp","displayName":"Timestamp","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Timestamp"]}},"aebdb66b504f75d2c2d3cd52689a4f3d":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Weight","displayName":"Text — Weight","description":"The 4 font weight variants (normal, medium, semibold, bold) applied to body text.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Text","Stack"]}},"af1c99d7f2345ee156cb1f0dc667debb":{"doc":{"type":"page","name":"Basic Login","displayName":"Basic Login","description":"Minimal centered credential form on a plain ground: two fields and a submit, nothing competing for attention. The least-chrome entry surface.","keywords":["login","sign in","signin","authentication","credentials","account access"],"isReady":true,"isHiddenFromOverview":true,"category":"Login - Basic","icons":{"CubeIcon":"package"}}},"af2371a5ca82834954a065edef380096":{"default":{"type":"icon-definition","name":"chevronUp","description":"Collapse a section or move up.","words":["collapse","up"]}},"af2b12af4a004222ac6ab85687d972fb":{"doc":{"type":"block","exampleFor":"DateRangeInput","name":"DateRangeInput — Validation","displayName":"DateRangeInput — Validation","description":"Date range input in all three status states: error, warning, and success. Use to surface booking conflicts, flag high-demand periods, or confirm an available range.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["DateRangeInput","Layout"]}},"af66d70d1d8bcc443f8312636909b32e":{"default":{"type":"icon-definition","name":"redo","description":"Redo the last change that was undone.","words":["again","repeat","arrow uturn right"]}},"afcbfbf505c52e8b3cc828003228ebba":{"docs":{"type":"namespace","name":"styling","title":"Styling components","summary":"Customize component appearance: xstyle, Tailwind, className, rest props, compound components, data attribute selectors, tokens, and StyleX setup.","keywords":["styling","xstyle","className","override","customize","css","StyleX","tokens"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"afe7b1cda73568ad3294c85e22d1a034":{"docs":{"type":"namespace","name":"docs","placement":{"parent":"namespace:building-blocks","slot":"guides","order":40},"title":"Docs","summary":"Write docs that ship with your package and that people and agents find by search or one level at a time.","keywords":["writing docs","doc topic","docs section","placement","links"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}},"blocks":[{"type":"prose","text":"In global mode: docs from an integration installed for the computer show up outside projects; inside a project, only docs from integrations the project installs. See {@link namespace:global} and {@link generic:global-integrations}."}]}},"b0035826eefbbb19b459679ce4ed2ae4":{"doc":{"type":"block","exampleFor":"TimeInput","name":"TimeInput — Constrained","displayName":"TimeInput — Constrained","description":"Time inputs with min/max constraints limiting selection to specific windows. Use to prevent out-of-bounds selections for appointments, reservations, or shift scheduling.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TimeInput","Layout"]}},"b00c5dca878c0483bf53c64748ba5b9e":{"default":{"type":"icon-definition","name":"text","description":"Text content, such as a text layer or a text field.","words":["type","typography","text layer"]}},"b0eac27742dcbcbe6423c0fa24a0df97":{"doc":{"type":"block","exampleFor":"Overlay","name":"Overlay — Bottom Strip","displayName":"Overlay — Bottom Strip","description":"Places compact supporting content in a bottom scrim strip without covering the entire image.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Overlay","AspectRatio","Badge","Layout","Text"]}},"b107a3d87da49b13d9e66fb37bcd9906":{"default":{"type":"icon-definition","name":"discount","description":"A discount, coupon, or percentage off.","words":["coupon","sale","percent","percent badge"]}},"b10883c657417adc3fa6f3c48163eff8":{"doc":{"type":"block","exampleFor":"TopNavMegaMenu","name":"TopNavMegaMenu","displayName":"Top Nav Mega Menu","description":"Demonstrates TopNavMegaMenu with items and a featured card in the mega menu panel.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMegaMenu","TopNavMegaMenuItem","TopNavMegaMenuFeaturedCard"],"icons":{"BookOpenIcon":"book","CodeBracketIcon":"code","MagnifyingGlassIcon":"search","RocketLaunchIcon":"rocket","ShieldCheckIcon":"shield"}}},"b16d5d338f8e5ef3b014a2290b3ccfc1":{"doc":{"type":"block","exampleFor":"HStack","name":"HStack — Basic","displayName":"HStack — Basic","description":"Items arranged in a horizontal row with a consistent gap and centered vertical alignment. Use HStack whenever siblings should sit side by side.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["HStack","Badge"]}},"b188491bc28bb79f107d27abc97d00cf":{"doc":{"type":"block","exampleFor":"AvatarGroupOverflow","name":"AvatarGroupOverflow — Custom Text","displayName":"Avatar Group Overflow — Custom Text","description":"Provide short custom children such as 12+ when the overflow count needs compact product-specific formatting.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["AvatarGroupOverflow","AvatarGroup","Avatar","Layout","Text"]}},"b253bd68ccfdffc054c1e960911faf66":{"doc":{"type":"block","exampleFor":"Heading","name":"Heading — Page Hierarchy","displayName":"Heading — Page Hierarchy","description":"Real-world page layout demonstrating heading levels h1 through h3 with supporting text","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Heading","Text"]}},"b28dfec477e9a06c16d0a2fab2ecc0b6":{"doc":{"type":"block","name":"DrawerHeader","displayName":"Drawer Header","description":"DrawerHeader provides a structured header for drawers with slots for title, subtitle, close button, and optional start or end content.","exampleFor":"DrawerHeader","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DrawerHeader","Layout","LayoutContent","Text"]}},"b28efae0720f5ec2a158e6df6c16285d":{"doc":{"type":"block","exampleFor":"Typeahead","name":"Typeahead — Search Field","displayName":"Typeahead — Search Field","description":"Search input with icon and suggestions on focus.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Typeahead","Center"],"icons":{"MagnifyingGlassIcon":"search"}}},"b2da22ec19a6c22c84c6b52512476f29":{"doc":{"type":"block","exampleFor":"Table","name":"Table — In Card","displayName":"Table — In Card","description":"Table composed inside a card with a heading, demonstrating container bleed alignment.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","Card","Layout","Text"]}},"b2f0a4b5607ad8d5095bdb8654042bda":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Heading Levels","displayName":"Text — Heading Levels","description":"All 6 heading levels (h1 through h6) rendered with Heading to show the full type scale.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Text","Stack"]}},"b31bc5449c3dd063e3a31c7e57354c79":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer","displayName":"Tokenizer","isReady":true,"aspectRatio":1.3333333333333333,"isShowcase":true,"description":"A tokenizer with preset tags and search source.","componentsUsed":["Tokenizer"]}},"b3433844e1dc8b4488b0452f36e274ac":{"doc":{"type":"block","exampleFor":"Kbd","name":"Kbd","displayName":"Kbd","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Kbd"]}},"b3b88828e10b01935f655b6a3ec53b36":{"default":{"type":"icon-definition","name":"raiseHand","description":"Raise a hand to ask or speak.","words":["hand","ask","hand raised"]}},"b3bb5f89a0779d5b481135d049a5b04a":{"doc":{"type":"block","exampleFor":"CommandPaletteInput","name":"CommandPaletteInput — With End Content","displayName":"CommandPaletteInput — With End Content","description":"Custom placeholder and a keyboard shortcut badge in the trailing slot via endContent.","isReady":true,"isShowcase":false,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteInput","Kbd"]}},"b3c2f475710c3e9a1540cf24c0215475":{"doc":{"type":"block","exampleFor":"useToast","name":"useToast — Settings Saved","displayName":"useToast — Settings Saved","description":"Shows a toast from the function useToast returns: a \"Settings saved\" confirmation with an Undo action, a uniqueID so pressing the button again replaces the toast instead of stacking another, and an error toast when the request fails.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Toast","Card","TextInput","Switch","Button","Layout"]}},"b3e4ccc5135147ab8a90a98a01e12ef0":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Statuses","displayName":"Banner — Statuses","description":"All 4 banner statuses: info, success, warning, and error. Use to show persistent messages like updates, confirmations, cautions, or problems at the top of a page or section.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner","Layout"]}},"b40ffb73644098b29e63146f33823680":{"doc":{"type":"block","exampleFor":"ProgressBar","name":"ProgressBar — Indeterminate","displayName":"ProgressBar — Indeterminate","description":"Indeterminate progress bar for operations with unknown duration.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ProgressBar","Center"]}},"b4b5ad086c503c374ee4b9e922679492":{"default":{"type":"icon-definition","name":"lightbulb","description":"An idea or tip.","words":["idea","tip","hint"]}},"b4d5b0fbad2e7a4c76a09d58d6f17ab2":{"docs":{"type":"namespace","name":"tokens","title":"All Tokens","summary":"Complete reference for color, data visualization, syntax, spacing, size, border, focus, radius, shadow, motion, and typography tokens.","keywords":["design tokens","css variables","custom properties"],"slots":{"guides":{"title":"Token Categories","accepts":{"kinds":["generic"]}}}}},"b4e95740e0b0481fd8ac3fcb11ac2d23":{"doc":{"type":"block","exampleFor":"CommandPalette","name":"CommandPalette — Picker Mode","displayName":"CommandPalette — Picker Mode","description":"Single-value picker with persistent selection and check indicator.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","Text","Icon"]}},"b53dc4864e6a7948699c0165a608c36d":{"doc":{"type":"block","exampleFor":"Pagination","name":"Pagination — Dots Carousel","displayName":"Pagination — Dots Carousel","description":"A review carousel using dot pagination to step through testimonial cards. Use the dots variant for carousels, galleries, and any paged content where the total is small and visible position matters more than a page number.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Pagination","Card","Text","Layout","Icon","Avatar"],"icons":{"StarIcon":"star"}}},"b54650d7bfb34486964a75ff9e8cc5f1":{"default":{"type":"icon-definition","name":"bug","description":"A bug or issue.","words":["issue","defect","error"]}},"b57e460cbff3dd1e1b7d0f9509b6250b":{"doc":{"type":"block","exampleFor":"VisuallyHidden","name":"VisuallyHidden — Structural Heading","displayName":"VisuallyHidden — Structural Heading","description":"Give a visually implicit section an accessible name so screen-reader users can navigate to it.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["VisuallyHidden","Card","HStack","VStack","Text","Badge"]}},"b5a467ce7807d1cadb7f6c9d0e0b79e8":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput","displayName":"Text Input","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["TextInput"]}},"b5fc163cff026bf37e2c48e60eac4ebf":{"doc":{"type":"block","exampleFor":"Calendar","name":"Calendar — Constraints","displayName":"Calendar — Constraints","description":"Limit which dates can be selected using min/max bounds and custom rules like weekdays only. Use for scheduling UIs where certain dates are unavailable.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Calendar","Layout","Text"]}},"b64374aef3f106da31d744d1a53aa430":{"doc":{"type":"block","exampleFor":"Grid","name":"Grid — Responsive Auto-Fit","displayName":"Grid — Responsive Auto-Fit","description":"Responsive grid where cards stretch to fill remaining space","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Grid","Card","Layout","Resizable","VStack","Text"]}},"b64fed664f6ce4ba927adaa880d50cd1":{"doc":{"type":"block","exampleFor":"DialogHeader","name":"DialogHeader","displayName":"Dialog Header","description":"DialogHeader provides a structured header for dialogs with slots for title, subtitle, close button, and optional start or end content.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Dialog","DialogHeader"]}},"b6981c0e76cfbcb8440df62cd85dbe10":{"docs":{"type":"generic","name":"tokens-font-weight","title":"Font Weight Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":140},"category":"foundations","description":"Font weight values for body, emphasis, and headings.","sections":[{"title":"Font Weight Tokens","content":[{"type":"prose","text":"Font weight values for body, emphasis, and headings."},{"type":"table","headers":["Token","Core default"],"rows":[["--font-weight-normal","400"],["--font-weight-medium","500"],["--font-weight-semibold","600"],["--font-weight-bold","700"]]}],"previewType":"font-sample"}]}},"b70f188a67b293df1c8fb1efec4129da":{"doc":{"type":"block","exampleFor":"CommandPaletteItem","name":"CommandPaletteItem","displayName":"Command Palette Item","description":"An inline command palette whose items pair each command label with its keyboard shortcut through renderItem.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteItem","Kbd","Text"]}},"b730e477b3b828ec9b821558f105fc60":{"doc":{"type":"block","exampleFor":"Spinner","name":"Spinner","displayName":"Spinner","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A large spinner indicator.","componentsUsed":["Spinner"]}},"b7985ff0e5b49d84c5bb2711ad07abe2":{"doc":{"type":"block","exampleFor":"Outline","name":"Outline","displayName":"Outline","description":"A document outline with the active section highlighted by the sliding indicator track.","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Outline"]}},"b7bb34d3a64e01768d887dc08cd94ad0":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput — Types","displayName":"TextInput — Types","description":"Text, password, and email types plus field-level features: tooltip, required, optional, description, disabled, and loading.","isReady":true,"aspectRatio":1,"componentsUsed":["TextInput","Layout"]}},"b7c21e3459c133da77e9950736f47065":{"default":{"type":"icon-definition","name":"angle","description":"An angle, such as the rotation of an item.","words":["rotation","degrees","triangle"]}},"b7e339aba4d5ebd7bc66aa97040ab8fb":{"default":{"type":"theme","name":"stone","displayName":"Stone","description":"Warm stone and slate, earthy and understated, with just enough character to feel handcrafted.","maintained":false}},"b7e90e197df0675f0a486303ca057cc2":{"doc":{"type":"block","exampleFor":"TreeList","name":"TreeList — Interactive Settings","displayName":"TreeList — Interactive Settings","description":"Settings tree with clickable items and a documentation link.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TreeList","Icon"],"icons":{"ChevronRightIcon":"chevronRight","Cog6ToothIcon":"settings"}}},"b80e0daaea84e45ad484e1609a4b6a35":{"doc":{"type":"block","exampleFor":"AvatarGroup","name":"AvatarGroup","displayName":"Avatar Group","description":"Overlapping avatar rows with a sliced visible set and a server-side overflow count. Shows team members in a compact facepile layout.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["AvatarGroup","Avatar","Layout","Text"]}},"b841243d0e09c5a6ec93bce49f0a05cd":{"docs":{"type":"generic","name":"add-a-component","placement":{"parent":"namespace:components","slot":"guides","order":10},"title":"Add a component","category":"guide","description":"Choose a stable component name and generate its source, doc, package export, and integration entry.","sections":[{"id":"pick-a-component-name","title":"Pick a component name","content":[{"type":"prose","text":"Choose a unique PascalCase name, such as `AcmeCarousel`. The name is the component's public export and CLI identity, so keep it stable. Use `displayName` when you only want to change the label people read."},{"type":"list","style":"unordered","items":["Prefer a name that describes the component's purpose in your product.","Avoid a Core component name unless you are deliberately replacing that component.","If replacement is truly required, read {@link generic:replace-a-core-component}."]}]},{"id":"run-the-add-command","title":"Run the add command","content":[{"type":"prose","text":"Run `integration add component` in your package with the name. It writes the component, its doc file, and the public import apps use."},{"type":"code","lang":"bash","code":"{@command integration add component AcmeCarousel}"},{"type":"code","lang":"text","code":"component contribution added\n\n[ok] AcmeCarousel\n\nDeclare component root ./components in astryx.integration.mjs.\n\n- components/AcmeCarousel.doc.mjs\n- components/AcmeCarousel.tsx\n- package.json\n- astryx.integration.mjs"},{"type":"prose","text":"`integration add` starts with one source export and one single-component `.doc.mjs`. Keep that shape for one public component. If the source exposes a family, choose the correct shape in {@link namespace:describe-the-component}."},{"type":"prose","text":"Add never overwrites a file, and `--dry-run` shows what it would write. Component commands read Core, so install `@astryxdesign/core` in the package first ({@link generic:quick-start})."}]},{"id":"document-an-existing-component","title":"Document a component you already have","content":[{"type":"prose","text":"To document a component your package already has, write its doc beside the source file and name the doc after that file, such as `acme-gallery.doc.mjs` beside `acme-gallery.tsx`. Set `name` to the export apps import, such as `name: 'AcmeGallery'`, and keep both files inside the components root that `astryx.integration.mjs` declares. The file does not have to be named after the component; {@link generic:component-imports} shows how apps then find it."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: when users install your package for their computer, beside the global CLI, your components show up in folders outside any project; inside a project, only if the project installs your package. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"b87dee1e4424ba55df353d4a973fe516":{"doc":{"type":"block","exampleFor":"useScrollLock","name":"useScrollLock — Full-screen Mobile Menu","displayName":"useScrollLock — Full-screen Mobile Menu","description":"A custom full-screen menu opened from a Menu button. useScrollLock pins the page behind it while it is open, so the page does not scroll or shift sideways, and closing the menu returns the reader to the same scroll position.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Button","Link","Layout"]}},"b896ffeeaf079cd22ef9828357c10629":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput — States","displayName":"TextInput — States","description":"Error, warning, and success validation states with status messages. Use to show users what went wrong and how to fix it.","isReady":true,"aspectRatio":0.85,"componentsUsed":["TextInput","Layout"]}},"b8fd1bb0bc79f958347d46b19ce92c13":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp — Auto","displayName":"Timestamp — Auto","description":"Auto format that shows relative time for recent dates and switches to the full date for older ones. The default choice for most use cases.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timestamp","Layout","Text"]}},"b90d82b4299aa5e6f724bdc5e4510ef8":{"doc":{"type":"block","exampleFor":"useCollator","name":"useCollator — Locale-aware Name Sort","displayName":"useCollator — Locale-aware Name Sort","description":"A list of names sorted with the compare function from useCollator: accented and lowercase names land where a reader expects, and switching the provider locale to Swedish moves Å and Ö after Z.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["InternationalizationProvider","Card","SegmentedControl","List","Layout"]}},"b9a80a826cd98402a3f316a63b715ad6":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — Indicator Modes","displayName":"Stepper — Indicator Modes","description":"The indicator prop side by side: none (the bar and label carry the progress on their own), auto (check when done, ring when current, number ahead), always-number, and a custom icon per step.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper","Text","Icon"]}},"b9ac4e482cbb9e4880301dfdaf538d8d":{"doc":{"type":"block","exampleFor":"Card","name":"Card","displayName":"Card","description":"A card with a heading and body text showing the default container style.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["Card","Layout","Text"]}},"b9b210a6fbcc2bf380bf37b366cf08a6":{"docs":{"type":"generic","name":"tokens-shadow","title":"Shadow Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":90},"category":"foundations","description":"Elevation shadows (low to med to high) and inset shadows for input state rings.","sections":[{"title":"Shadow Tokens","content":[{"type":"prose","text":"Elevation shadows (low to med to high) and inset shadows for input state rings."},{"type":"table","headers":["Token","Core default"],"rows":[["--shadow-low","0px 1px 1px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 8px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))"],["--shadow-med","0px 1px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))"],["--shadow-high","0px 2px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 8px 24px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3))"],["--shadow-inset-hover","inset 0px 0px 0px 2px light-dark(rgba(5, 54, 89, 0.15), rgba(223, 226, 229, 0.2))"],["--shadow-inset-selected","inset 0px 0px 0px 2px rgba(1, 113, 227, 0.5)"],["--shadow-inset-success","inset 0px 0px 0px 2px rgba(38, 167, 86, 0.3)"],["--shadow-inset-warning","inset 0px 0px 0px 2px rgba(226, 164, 0, 0.3)"],["--shadow-inset-error","inset 0px 0px 0px 2px rgba(227, 25, 59, 0.3)"]]}],"previewType":"shadow-box"}]}},"b9d5e0da84a5046d3377e32f2419090e":{"docs":{"type":"generic","name":"sections-and-placement","placement":{"parent":"namespace:docs","slot":"guides","order":20},"title":"Sections and placement","category":"guide","description":"Give your package its own docs section and place guides in it.","sections":[{"id":"add-a-docs-section","title":"Add a docs section","content":[{"type":"prose","text":"Give your package its own section in the docs tree with `integration add doc <name> --parent <section>`. The first run also writes the section's namespace doc."},{"type":"code","lang":"bash","code":"{@command integration add doc deploying --parent acme}\n# Open your section\n{@command docs acme}"},{"type":"code","lang":"javascript","label":"docs/acme.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */\nexport default {\n type: 'namespace',\n name: 'acme',\n title: 'Acme',\n summary: 'Guides for Acme.',\n slots: {\n guides: {title: 'Guides', accepts: {kinds: ['generic']}},\n },\n};"},{"type":"list","style":"unordered","items":["Edit its `title` and `summary`: readers see them in the docs list and at the top of your section.","The guide, `docs/deploying.doc.mjs`, gets `placement: {parent: 'namespace:acme', slot: 'guides'}`. Later runs with `--parent acme` reuse the namespace doc.","`package.json` gets the optional peer `\"@astryxdesign/cli\": \">=0.6.4\"`, because an older CLI does not read sections; see {@link generic:versioning}."]}]},{"id":"place-a-doc","title":"Place a doc","content":[{"type":"prose","text":"A guide names its one home with `placement`: a namespace of your package, a slot in it, and an `order`. Its route is the section name, then the guide name."},{"type":"code","lang":"javascript","code":"placement: {parent: 'namespace:acme', slot: 'guides', order: 10}, // route: acme/deploying"},{"type":"list","style":"unordered","items":["Every field is in {@link schema:authored-doc-graph-fields}.","A placed guide opens only by its route, `acme/deploying`. Its bare name no longer opens it."]},{"type":"code","lang":"bash","code":"{@command docs acme/deploying}"}]},{"id":"fix-a-failed-placement","title":"Fix a failed placement","content":[{"type":"prose","text":"A failed `placement` hides the doc: it gets no route and does not show in the docs list. `doctor integration docs` fails with `invalid_doc_graph` and names what to fix."},{"type":"code","lang":"bash","code":"{@command doctor integration docs}"},{"type":"code","lang":"text","code":"severity: [fail]\ncode: invalid_doc_graph\nmessage: @acme/astryx-widgets/deploying.doc.mjs: placement.parent \"namespace:cli\" names no namespace; @acme/astryx-widgets declares \"acme\"."},{"type":"list","style":"unordered","items":["A `parent` your package does not ship, such as `namespace:cli`, \"names no namespace\".","A `slot` the namespace does not declare \"is not a slot of namespace\"; the message lists the declared slots.","The check exits 1; see {@link generic:check-your-docs}."]}]}]}},"ba160c6f25310460e1130b668e935a26":{"doc":{"type":"block","exampleFor":"SelectorOption","name":"SelectorOption","displayName":"Selector Option","description":"Selector with custom-rendered options using SelectorOption for icons and descriptions.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Selector","SelectorOption"],"icons":{"UserIcon":"user"}}},"ba1b462388e878d026d97d02d43524e3":{"default":{"type":"icon-definition","name":"star","description":"Favorite or rate something.","words":["favorite","rating"]}},"ba9cac0f1a271e35effff87b717130f2":{"doc":{"type":"block","exampleFor":"InfoTip","name":"InfoTip — Metric Definitions","displayName":"Info Tip — Metric Definitions","description":"A row of metrics, each label followed by an InfoTip that defines how the value is counted.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["InfoTip","HStack","VStack","Text"]}},"baf1e26ddc2f7821a2f82d5f9e6f4225":{"doc":{"type":"block","exampleFor":"Dialog","alsoExampleFor":["useImperativeDialog"],"alsoShowcaseFor":["useImperativeDialog"],"name":"Dialog — Confirmation","displayName":"Dialog — Confirmation","description":"Asks the user to confirm a destructive action before it happens. Use before deleting projects, removing team members, revoking API keys, or any irreversible operation.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Dialog","Layout","Button","Text"]}},"bb445a2d142e708fabbdae4c60ed6838":{"docs":{"type":"namespace","name":"api","title":"API","summary":"The programmatic API: functions, the JSON output envelope, error codes, and response types.","keywords":["api","functions","schemas","enums","json"],"placement":{"parent":"namespace:cli","slot":"reference","order":20},"slots":{"kinds":{"title":"Reference","accepts":{"kinds":["namespace"]}}},"blocks":[{"type":"prose","text":"To run the whole CLI from your own command-line tool, with its arguments, folder, and command name, use the host entry: {@link generic:host-entry}."}],"adopts":[{"source":{"group":"cli/api","kinds":["function","schema","enum"]},"into":"kinds","groupBy":"kind"}]}},"bb84b1f90f7e3ba77e498e813f59b0a4":{"doc":{"type":"block","exampleFor":"List","name":"List — Basic","displayName":"List — Basic","description":"Simple list with labels and descriptions for settings-style layouts.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["List"]}},"bbb882e6226d7f2b7f4b9ff1578c14c9":{"doc":{"type":"block","exampleFor":"DialogHeader","name":"DialogHeader — Basic","displayName":"DialogHeader — Basic","description":"A DialogHeader with a title, subtitle, and close button, placed in the header slot of a Dialog Layout. Pass onOpenChange to render the close button.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Dialog","DialogHeader","Layout","LayoutContent","Text"]}},"bc1e53459d7985dae2f943d1e97e2c52":{"doc":{"type":"block","exampleFor":"Badge","name":"Badge — Counts","displayName":"Badge — Counts","description":"Show a number inside a badge for notification counts, unread messages, or task totals. Use next to icons, nav items, or list labels.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Badge","Layout","Text"]}},"bc2a09b0ffd82b4459fc852a54483735":{"doc":{"type":"page","name":"Settings Dialog","displayName":"Settings Dialog","description":"Preferences inside a modal container with searchable section navigation, so configuration happens without leaving whatever is underneath. Grouped toggles, live preview of appearance choices, rebindable shortcuts.","keywords":["settings","preferences","configuration","options","modal dialog"],"isReady":true,"category":"Settings - Dialog","icons":{"ArrowDownOnSquareIcon":"save","ArrowDownTrayIcon":"download","ArrowUturnLeftIcon":"undo","AtSymbolIcon":"mention","Bars3BottomLeftIcon":"panelLeft","Bars3Icon":"menu","BeakerIcon":"experiment","BellIcon":"notification","BriefcaseIcon":"work","CalendarDaysIcon":"calendar","ChatBubbleLeftRightIcon":"conversation","ChevronRightIcon":"chevronRight","ClockIcon":"clock","CodeBracketIcon":"code","Cog6ToothIcon":"settings","CommandLineIcon":"keyboard","ComputerDesktopIcon":"desktop","CreditCardIcon":"creditCard","CubeIcon":"package","DevicePhoneMobileIcon":"mobile","DocumentMagnifyingGlassIcon":"documentSearch","DocumentTextIcon":"document","EnvelopeIcon":"mail","EyeIcon":"eye","FingerPrintIcon":"fingerprint","FolderIcon":"folder","GlobeAltIcon":"globe","HandRaisedIcon":"raiseHand","KeyIcon":"key","LanguageIcon":"language","LinkIcon":"link","LockClosedIcon":"lock","MagnifyingGlassIcon":"search","MapPinIcon":"location","MoonIcon":"moon","PaintBrushIcon":"paintBrush","PencilSquareIcon":"compose","PuzzlePieceIcon":"integration","QuestionMarkCircleIcon":"info","ReceiptPercentIcon":"discount","ShieldCheckIcon":"shield","SignalIcon":"activity","SparklesIcon":"sparkles","SpeakerWaveIcon":"audio","SunIcon":"sun","SwatchIcon":"swatch","TagIcon":"tag","TrashIcon":"delete","UserCircleIcon":"userCircle","UserIcon":"user","UsersIcon":"users"}}},"bc4ce678c2a1f7ed4d7682a112d33d1b":{"doc":{"type":"block","exampleFor":"ChatSystemMessage","name":"ChatSystemMessage — Variants","displayName":"ChatSystemMessage — Variants","description":"Default and divider variants side by side. Use default for inline status updates and divider for date separators or section breaks.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Layout","Text"]}},"bcb455ed13ff12ac2e8b95f8dad87d72":{"doc":{"type":"block","exampleFor":"ToggleButton","name":"ToggleButton — Icon Swap","displayName":"ToggleButton — Icon Swap","description":"Icon-only toggle buttons that swap between outline and solid icons when pressed. Use for actions like favorite, bookmark, or mute where the icon itself communicates the state.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ToggleButton","Layout","Text","Icon"],"icons":{"BellIcon":"notification","BellSlashIcon":"notificationOff","BookmarkIcon":"bookmark","StarIcon":"star"}}},"bcf796c67044bc4dcf100cf01c8537c2":{"default":{"type":"icon-definition","name":"experiment","description":"An experiment, test, or lab feature.","words":["lab","test","beta","test tube"]}},"bd2757e15828184c00755dc2f8362f15":{"doc":{"type":"block","exampleFor":"useTableSelection","name":"Table: Bulk Actions","displayName":"Table: Bulk Actions","description":"Controlled row selection with the reusable TableSelectionToolbar rendered in flow above the table. Product actions occupy the logical start; synchronized selection count and complete clear action occupy the logical end.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","TableSelectionToolbar","Button"]}},"bd6a64a5708164862f6a0b2cae5b6446":{"doc":{"type":"block","exampleFor":"TopNavHeading","name":"TopNavHeading — Basic","displayName":"TopNavHeading — Basic","description":"A product heading with a logo inside a TopNav, linked to the home page. Use as the leading brand element of a top navigation bar.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavHeading","NavIcon","Icon"]}},"bda2e9e0794856d56a53c47a37227d33":{"doc":{"type":"block","exampleFor":"Collapsible","alsoShowcaseFor":["useCollapsible"],"name":"Collapsible","displayName":"Collapsible","description":"An accordion group with three collapsible sections in single mode: opening one closes the others.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Collapsible","CollapsibleGroup","Text","Card","Stack"]}},"bdae87ff705d496746558dac5bbbc1ac":{"doc":{"type":"block","exampleFor":"TimeInput","name":"TimeInput","displayName":"Time Input","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"description":"A time input that uses the browser/OS picker on touch by default and Astryx typed entry on fine pointers.","componentsUsed":["TimeInput"]}},"bdb25689f426c40ec55a2730d9652e12":{"doc":{"type":"block","exampleFor":"usePanGesture","name":"usePanGesture — A playing card (advanced)","displayName":"usePanGesture — A playing card (advanced)","description":"An advanced usePanGesture example: a playing card follows a drag, settles back on a gentle release and flies off on a quick flick, while a Discard button deals the next card from the keyboard and announces it. Drag, settle and throw are StyleX styles driven by React state. A pattern for swipe-to-dismiss, card decks and flick gestures.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Button","Card","Center","Text","VStack"]}},"be8cdcefc749af89ca016dd4329ffb52":{"docs":{"type":"namespace","name":"package-and-test","placement":{"parent":"namespace:build-the-template","slot":"guides","order":30},"title":"Package and test","summary":"Publish a package that works the first time: include everything the template needs, check the package before you publish, and try the template in a real app.","keywords":["template export","package template","integration verify","test template"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"beb78dc4cad65c8973f75b597694035a":{"doc":{"type":"block","exampleFor":"TextInput","name":"TextInput — Status variant","displayName":"TextInput — Status variant","description":"The statusVariant prop controls whether the status message is attached to the bordered input (default, overlapping directly below) or detached from it (floating below as a separate element with spacing).","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextInput","Layout","Text"]}},"beed016f85a9c23f66233f00e3bd7e32":{"doc":{"type":"block","exampleFor":"ChatSystemMessage","name":"ChatSystemMessage","displayName":"Chat System Message","description":"System messages for date dividers, status updates, and informational notices. Shows both default and divider variants in a realistic conversation flow.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat"]}},"c014515e81b5eba17e298c4df7ada85f":{"doc":{"type":"block","exampleFor":"FieldLabel","name":"FieldLabel","displayName":"Field Label","description":"Standalone field labels demonstrating required, optional, tooltip, and icon variations.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Field","FieldLabel"]}},"c0c5615e9e628156bc00f3d9980ae9e3":{"doc":{"type":"block","exampleFor":"useTableColumnSettingsState","name":"useTableColumnSettingsState — Column Visibility Picker","displayName":"useTableColumnSettingsState — Column Visibility Picker","description":"A Table toolbar with a Columns menu of checkboxes: toggling Email updates active columns, Reset restores defaults, and the config is passed directly to useTableColumnSettings.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","CheckboxInput","Popover","Table","Layout"]}},"c0d4c80d5aeb5a96f1c93e0486abc63b":{"doc":{"type":"block","exampleFor":"IconButton","name":"IconButton — Loading State","displayName":"IconButton — Loading State","description":"Icon buttons that show a loading spinner on click for async feedback","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["IconButton","Icon","HStack"]}},"c14028593b009af21eb1a4518c0228d5":{"doc":{"type":"block","exampleFor":"AspectRatio","name":"AspectRatio — Image Gallery","displayName":"AspectRatio — Image Gallery","description":"Grid of images with consistent 4:3 aspect ratios.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AspectRatio","Grid"]}},"c186f6304676e7f1af911b5a4cb8d227":{"docs":{"type":"generic","name":"problems","placement":{"parent":"namespace:global","slot":"guides","order":9},"title":"Troubleshooting global mode","category":"guide","keywords":["troubleshooting","error","not working","command not found","ERR_VERSIONS_UNAVAILABLE","ERR_PROJECT_REQUIRED","proxy","registry","corepack","windows","PATH","wrong astryx","fallback","could not get Astryx"],"description":"Every line Astryx prints in global mode, what it means, and what to do. Plus the install problems package managers cause: permissions, PATH, Corepack, and Windows.","sections":[{"id":"answered-by","title":"\"astryx: answered by …\"","content":[{"type":"code","lang":"text","code":"astryx: answered by CLI 0.7.2 with Core 0.7.2, outside a project"},{"type":"prose","text":"Information, not an error: it names the version that answered and why. It prints in text mode only, never with `--json`. The other forms: {@link generic:who-answers}."}]},{"id":"installing","title":"\"installing CLI release … into the per-user cache\"","content":[{"type":"code","lang":"text","code":"astryx: installing CLI release 0.6.8 into the per-user cache (once)...\nastryx: waiting for another run to finish installing CLI release 0.6.8..."},{"type":"prose","text":"The project's own CLI cannot start, so Astryx is installing the CLI version equal to its Core into its cache once. The second line means another run is installing it; this one waits, up to 15 minutes. To avoid the wait, install the project's dependencies."}]},{"id":"notices","title":"\"A new release of Astryx is available\"","content":[{"type":"code","lang":"text","code":"A new release of Astryx is available: 0.7.2 → 0.7.3\nTo upgrade, run: npm i -g @astryxdesign/cli@latest\nTo upgrade, install Node >=22 (this computer runs Node 20.11.0), then run: npm i -g @astryxdesign/cli@latest"},{"type":"prose","text":"A newer version is out; run the command shown. When the newest version needs a newer Node, the second line names it first. To stop notices, set `NO_UPDATE_NOTIFIER`: {@link generic:updates}."}]},{"id":"old-astryx","title":"\"The astryx command on this computer runs CLI …\"","content":[{"type":"code","lang":"text","code":"The astryx command on this computer runs CLI 0.6.4, which answers every folder itself.\nTo upgrade, run: npm i -g @astryxdesign/cli@latest"},{"type":"prose","text":"The first astryx command on your PATH is a version from before global mode, so it ignores your projects' versions. Run the command shown, or remove that install. `{@command doctor}` lists every astryx command on your PATH in its `cli-on-path` check."}]},{"id":"fallback","title":"\"could not get Astryx … to match this project's Core\"","content":[{"type":"code","lang":"text","code":"astryx: could not get Astryx 0.6.8 to match this project's Core (the registry could not be reached); answering with CLI 0.7.2 instead\nastryx: could not get Astryx 0.6.8 to match this project's Core (the registry does not have it); answering with CLI 0.7.2 instead\nastryx: could not get Astryx 0.6.8 to match this project's Core (the release cache /home/me/.cache/astryx/releases cannot be written (EACCES)); answering with CLI 0.7.2 instead"},{"type":"prose","text":"The project's own CLI cannot start, so Astryx needs the CLI version equal to its Core, and could not get it, so the command still runs: the astryx command you started answers, as before global mode. Its answers may not match the project's Core until you fix the cause. With `--json`, `meta.answeredBy.copy` is `fallback`. Astryx waits 2 minutes before trying the download again, and 10 minutes after a second failure in a row; reinstalling the project's dependencies fixes the project's own CLI."},{"type":"list","style":"unordered","items":["The registry could not be reached: you are offline, or a proxy blocks it. Astryx installs with npm, so set npm's `proxy`, `https-proxy`, or `registry` in your `.npmrc`, or add the CLI to the project and install its dependencies.","The registry does not have it: a private registry without the Astryx packages. Point npm's registry for `@astryxdesign` at one that has them.","The cache cannot be written: a read-only home folder, as in some containers. Point `XDG_CACHE_HOME` at a writable folder: {@link generic:ci-and-containers}."]}]},{"id":"not-global","title":"A global install that gets no update notice or agent guide","content":[{"type":"prose","text":"Astryx treats a copy as installed for your computer only when your package manager's own settings name its folder: npm's global prefix, Bun's `BUN_INSTALL`, Yarn's `global-folder`, pnpm's `PNPM_HOME`, or their defaults. A folder chosen only with a one-off flag, such as `{@pm-only yarn-classic \"uses the Yarn 1 global folder\" global add --global-folder ~/mine}`, is not in any setting, so Astryx treats that copy like a project's: no daily update check and no agent guide. Save the folder in your settings so Astryx knows it is a global install:"},{"type":"code","lang":"bash","code":"{@pm-only yarn-classic \"uses the Yarn 1 global folder\" config set global-folder ~/mine} # writes ~/.yarnrc\nexport BUN_INSTALL=~/mybun # in your shell profile, for Bun"}]},{"id":"core-offline","title":"\"Core … could not be installed\" outside a project","content":[{"type":"prose","text":"Outside a project, commands that read components (`component`, `search`, `template`, `build`, and the like) use your global version's Core. It ships beside the CLI only for some installs; otherwise your global install downloads it once into its cache in the background after a command you run online (on Windows, the first component command downloads it), and a component command before that, offline, fails with `ERR_VERSIONS_UNAVAILABLE`. Reinstalling the CLI does not help: run any command once online, and component reads work offline from then on. In CI nothing downloads in the background, so the first component command there needs the registry. The global-mode pages ({@link namespace:global}) read offline either way."},{"type":"prose","text":"In a project with nothing installed yet, such as a fresh clone, the same commands use that Core too, and offline the error reads `This project has no Core installed, and Core <version> could not be downloaded`: install the project's dependencies (`{@pm install}`, or your package manager's), and the project's own Core answers from then on."}]},{"id":"unavailable","title":"ERR_VERSIONS_UNAVAILABLE","content":[{"type":"prose","text":"A run fails with `ERR_VERSIONS_UNAVAILABLE` only when nothing can answer: a command that needs Core outside a project cannot install it, or a version you requested exactly cannot be found."}]},{"id":"needs-a-project","title":"Commands that need a project","content":[{"type":"code","lang":"text","code":"Error: No package.json found. Run this command inside an app project.\nError: No package.json found. Run this command inside an integration package.\nError: Could not find @astryxdesign/core package. Make sure you are inside the design system monorepo or have @astryxdesign/core installed.\nError: Could not find installed @astryxdesign/core (or legacy @xds/core). This folder is outside a project; upgrade migrates the code of an app project that installs @astryxdesign/core."},{"type":"prose","text":"Commands that change an app or a package, such as `theme use`, `integration add`, `swizzle`, and `upgrade`, write nothing outside a project and say what they need. Run them in that project. Each command's doc says what it does outside a project ({@link namespace:commands}); a newer command that refuses uses `ERR_PROJECT_REQUIRED`."}]},{"id":"install-problems","title":"Install problems","content":[{"type":"list","style":"unordered","items":["`npm i -g` fails with `EACCES` (permission denied): do not use `sudo`. Use a Node version manager, or give npm a global folder you own: `{@pm-only npm \"moves the npm global folder\" config set prefix ~/.npm-global}`, then add `~/.npm-global/bin` to your PATH.","`astryx: command not found` after installing: your package manager's global bin folder is not on your PATH. `{@pm-only npm \"prints the npm global folder\" prefix -g}` shows npm's (its `bin` folder on macOS and Linux); `{@pm-only pnpm \"sets up the pnpm global folder\" setup}` adds pnpm's.","`pnpm add -g` stops with `ERR_PNPM_NO_GLOBAL_BIN_DIR`, often with Corepack: run `{@pm-only pnpm \"sets up the pnpm global folder\" setup}`, open a new terminal, and try again. Yarn 2 and later have no `yarn global`; use `npm i -g` instead.","Windows: npm puts `astryx.cmd` in `%APPDATA%\\npm`, which must be on your PATH. If PowerShell says running scripts is disabled, run `astryx.cmd`, or allow scripts for your user with `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned`.","Two installs, and the wrong one runs: `{@command doctor}` outside a project lists every astryx command on your PATH, in the order your shell tries them."]}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works."}]}]}},"c1b13574353ab63fe2d0bdb2c5a403d2":{"doc":{"type":"page","name":"Page Editor","displayName":"Page Editor","description":"Three-pane authoring workspace: a source palette on one flank, a live canvas in the middle, and an inspector that retargets to whatever is selected. Drag and drop to reorder, edit to see it render immediately.","keywords":["builder","composer","drag and drop","page builder","wysiwyg editor"],"isReady":true,"category":"Tools - Page Editor","icons":{"AdjustmentsHorizontalIcon":"adjustments","BanknotesIcon":"money","ChatBubbleLeftIcon":"message","ChevronDownIcon":"chevronDown","ChevronUpIcon":"chevronUp","ComputerDesktopIcon":"desktop","CursorArrowRaysIcon":"click","DevicePhoneMobileIcon":"mobile","DeviceTabletIcon":"tablet","DocumentTextIcon":"document","EllipsisHorizontalIcon":"moreHorizontal","EyeIcon":"eye","LockClosedIcon":"lock","MegaphoneIcon":"announcement","PhotoIcon":"image","PlayCircleIcon":"play","PlusCircleIcon":"add","ShoppingBagIcon":"shoppingBag","ShoppingCartIcon":"cart","SparklesIcon":"sparkles","Squares2X2Icon":"gridView","TrashIcon":"delete","ViewColumnsIcon":"viewColumns","XMarkIcon":"close"}}},"c1d05c6ce41c99147ae8ed5d2d483f1b":{"doc":{"type":"block","exampleFor":"useTableColumnResize","name":"useTableColumnResize — Draggable Columns","displayName":"useTableColumnResize — Draggable Columns","description":"A Table using useTableColumnResize. Drag the right edge of any column header to resize; widths are committed on release. The last proportional column flexes to fill remaining space.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"c221cc8b51112600f454813537e866d7":{"docs":{"type":"namespace","name":"components","placement":{"parent":"namespace:building-blocks","slot":"guides","order":10},"title":"Components","summary":"Add components to an integration, document their public contract, and make them work in every app that installs the package.","keywords":["integration component","ship a component","component docs"],"slots":{"guides":{"title":"Components","accepts":{"kinds":["generic","namespace"]}}},"blocks":[{"type":"prose","text":"In global mode: components from an integration installed for the computer show up outside projects; inside a project, only components from integrations the project installs. See {@link namespace:global} and {@link generic:global-integrations}."}]}},"c294543ab312852eea4e2724b430a69c":{"doc":{"type":"block","exampleFor":"CheckboxList","name":"CheckboxList — With End Content","displayName":"CheckboxList — With End Content","description":"Badges in the trailing slot show contextual info, like a price or status, next to each option without cluttering the label, so users can compare choices at a glance.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxList","Badge"]}},"c2bb9a91abbf2209267f1541be02715f":{"doc":{"type":"page","name":"Gallery Hero","displayName":"Gallery Hero","description":"Centered stack (headline, short blurb, call-to-action buttons) resolving into a multi-image photo grid rather than one wide full-bleed picture, so the imagery reads as a set.","keywords":["hero","banner","splash","landing image","masthead","gallery intro"],"isReady":true,"category":"Gallery - Hero","icons":{"ArrowRightIcon":"arrowRight"}}},"c2f8b9c017738550aeaf6f57df351602":{"doc":{"type":"block","exampleFor":"Thumbnail","name":"Thumbnail — Removable","displayName":"Thumbnail — Removable","description":"Thumbnails with a remove button overlay. The close button uses APCA luminance detection to stay visible on both dark and light images.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Thumbnail","Layout","Text"]}},"c3045073e22d9082fd994a03713b6738":{"docs":{"type":"generic","name":"updates","placement":{"parent":"namespace:global","slot":"guides","order":4},"title":"Updates and notices","category":"guide","keywords":["update","upgrade","upgrade astryx","update notice","new release","new version","NO_UPDATE_NOTIFIER","latest"],"description":"Your global install checks for a newer version once a day and prints a two-line notice after a command succeeds. It never upgrades itself or a project.","sections":[{"id":"notice","title":"The notice","content":[{"type":"prose","text":"Once a day, never in your first day, your global install checks the registry's `latest` version in the background, without slowing the command. When a newer one exists, a command that succeeds prints two lines on standard error, at most once a day:"},{"type":"code","lang":"text","code":"A new release of Astryx is available: 0.7.2 → 0.7.3\nTo upgrade, run: npm i -g @astryxdesign/cli@latest"},{"type":"list","style":"unordered","items":["The command is the one for the package manager that installed your global install: `npm i -g`, `pnpm add -g`, `yarn global add`, `bun add -g`, or `volta install`. A global folder moved with the package manager's own setting (`BUN_INSTALL`, Yarn's `global-folder`, `PNPM_HOME`, or npm's prefix) counts while that setting names it; an app's own copy never runs the update check.","When the newest version needs a newer Node than your computer runs, the second line says which Node to install first.","Inside a project, the notice is about the project's version, and names the project's install and `upgrade` commands. The install command always adds the CLI next to Core, so a project that installed only Core gets its own CLI too, as recommended."]}]},{"id":"project-notice","title":"In a project","content":[{"type":"code","lang":"text","code":"A new release of Astryx is available: 0.7.1 → 0.7.3\nTo upgrade, run: pnpm add @astryxdesign/core@0.7.3 @astryxdesign/cli@0.7.3, then pnpm exec astryx upgrade --from 0.7.1 --apply"}]},{"id":"turn-off","title":"Turn it off","content":[{"type":"prose","text":"No notice prints with `--json`, after a failed command, when the `CI` environment variable is set, or when `NO_UPDATE_NOTIFIER` is set; with either variable set, the CLI does not check the registry either. Unlike some CLIs, a notice prints even when standard error is not a terminal, because agents run the CLI without one."},{"type":"prose","text":"`{@command doctor}` shows the same thing at any time, in its `newest-release` check, along with why the last notice did not print, if one did not. When the last check ran, and when each notice printed, are kept in `state.json` in the settings folder ({@link generic:reference})."}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works. Upgrading a project: {@link command:upgrade}."}]}]}},"c324944af77ffee7e39ae32198752a88":{"doc":{"type":"block","exampleFor":"ChatLayout","name":"ChatLayout — Panel View","displayName":"ChatLayout — Panel View","description":"Narrow sidebar chat in a constrained container that triggers compact density. Use for side panels, drawers, or embedded chat widgets where horizontal space is limited.","isReady":true,"aspectRatio":1,"componentsUsed":["Chat","Markdown"]}},"c36822bf17372571cac8df173953f61f":{"default":{"type":"icon-definition","name":"inbox","description":"An inbox of incoming items.","words":["incoming","tray"]}},"c38096bd35927818c98d3c4e7b32e1b5":{"doc":{"type":"block","exampleFor":"Token","name":"Token — Icon","displayName":"Token — Icon","description":"Tokens with a leading icon that identifies the entity type. Use when the icon helps users recognize the token category faster, like a user icon for people or a tag icon for labels.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Token","Icon","Layout","Text"],"icons":{"ShieldCheckIcon":"shield","StarIcon":"star","TagIcon":"tag","UserIcon":"user"}}},"c3d0fffb566035de9084a97234653464":{"doc":{"type":"block","exampleFor":"Icon","name":"Icon — Non-Semantic Colors","displayName":"Icon — Non-Semantic Colors","description":"Non-semantic color palette for icons.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Icon","HStack","VStack","Text"]}},"c3e58403793f26a63493a2698f2c1172":{"doc":{"type":"block","exampleFor":"ToggleButtonGroup","name":"ToggleButtonGroup — Vertical","displayName":"ToggleButtonGroup — Vertical","description":"A vertically stacked ToggleButtonGroup using the vertical orientation, shown with both single-select and multi-select behavior, ideal for sidebar-style option lists and vertical toolbars.","isReady":true,"aspectRatio":0.75,"componentsUsed":["ToggleButton","ToggleButtonGroup","Layout","Text"]}},"c3e9d68b6cd97e095aecbb72e9992eb0":{"doc":{"type":"block","exampleFor":"ChatComposer","name":"ChatComposer — Streaming","displayName":"ChatComposer — Streaming","description":"Chat composer with streaming state and a stop button. Use when the assistant is generating a response and the user can cancel.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","Layout","Text"]}},"c3f7d617e1e86468dba0d097a1b4c608":{"default":{"type":"icon-definition","name":"chevronLeft","description":"Go back or to the previous item.","words":["back","previous"],"builtIn":true}},"c40308bb8e7fc087182702a22c0879de":{"doc":{"type":"block","exampleFor":"TypeaheadItem","name":"TypeaheadItem","displayName":"Typeahead Item","description":"Typeahead with custom item rendering using TypeaheadItem for avatars and descriptions.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Typeahead","TypeaheadItem"]}},"c437945c26bec49b8c930f9ab1e1052f":{"doc":{"type":"block","exampleFor":"usePowerSearchConfig","name":"usePowerSearchConfig — Filtered Directory Table","displayName":"usePowerSearchConfig — Filtered Directory Table","description":"A people directory with a PowerSearch bar over a Table: typed field definitions feed usePowerSearchConfig, returning the search config and an applyFilters helper that updates Table rows.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["PowerSearch","Table","Layout"]}},"c4797e9522da4113a08d957c17a18629":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout","displayName":"Layout","isReady":true,"aspectRatio":1.3333333333333333,"isShowcase":true,"componentsUsed":["Badge","Button","Layout","List","Text"]}},"c4bf07689d678fa53e9ea6d4c6fdfddf":{"default":{"type":"icon-definition","name":"alignTop","description":"Align items to the top edge.","words":["top align","align start vertical"]}},"c502b8e6ef7729af18984a1fa4000edd":{"doc":{"type":"block","exampleFor":"ToggleButton","name":"ToggleButton — States","displayName":"ToggleButton — States","description":"Default, pressed, disabled, and loading states of a standalone toggle button. Shows how visual treatment changes across states.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ToggleButton","Layout","Text","Icon"],"icons":{"StarIcon":"star"}}},"c584a4c76fb3fb074a42e15454145ec4":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav — Multiple Dropdowns","displayName":"TopNav — Multiple Dropdowns","description":"Navigation bar with multiple hover-triggered dropdown menus that auto-close when switching between them.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMenu"],"icons":{"ChartBarIcon":"chart","CubeIcon":"package","ShieldCheckIcon":"shield"}}},"c5b6acb33e6dd87b6e0a80c8c2c5a96b":{"doc":{"type":"block","exampleFor":"Collapsible","name":"Collapsible — With Dividers","displayName":"Collapsible — With Dividers","description":"A flat list on the page background with hand-placed Dividers, for detail panels and sidebars where cards would add too much weight. Rows, so the triggers step down to body-semibold and a supporting metadata line sits under each answer.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Collapsible","Divider","Text","Stack"]}},"c60328aba9c22deb42d1dd45d7776a2d":{"default":{"type":"icon-definition","name":"paddingHorizontal","description":"Space on the left and right sides inside an item.","words":["horizontal padding","inline padding"]}},"c63cf160428a7c7cc23532d948556bdd":{"doc":{"type":"page","name":"Kanban Board","displayName":"Kanban Board","description":"Horizontal lanes of draggable cards where the column itself is the status, so drag and drop between lanes is the state change. Fixed columns, variable-height cards.","keywords":["kanban","board","swimlane","sprint","backlog","tasks","pipeline"],"isReady":true,"category":"Tools - Kanban Board","icons":{"ArrowPathIcon":"refresh","ArrowsUpDownIcon":"arrowsUpDown","CheckCircleIcon":"success","ClipboardDocumentCheckIcon":"clipboard","FunnelIcon":"funnel","InboxIcon":"inbox","InformationCircleIcon":"info","MagnifyingGlassIcon":"search","PlusIcon":"add"}}},"c674ede192abc96847f0cbb4d39a575d":{"default":{"type":"icon-definition","name":"textCase","description":"Change the letter case of text, such as upper or lower case.","words":["uppercase","lowercase","capitalize","case","case sensitive"]}},"c6c9ab2caf8c029f92a852d5a0269a9d":{"docs":{"type":"generic","name":"check-the-props","placement":{"parent":"namespace:describe-the-component","slot":"guides","order":50},"title":"Check the props table","category":"guide","keywords":["props table","documented props","prop drift","props not compared"],"description":"Compare each props table with the component's TypeScript props, then fix the doc or the code.","sections":[{"id":"run-the-props-check","title":"Run the props check","content":[{"type":"prose","text":"`doctor integration components` compares every props table in your component docs, hidden docs and every family entry included, with the props the component's TypeScript declares. Run it in your package after you change a component or its doc."},{"type":"code","lang":"bash","code":"{@command doctor integration components}"},{"type":"code","lang":"text","code":"severity: [warn]\ncomponent: AcmeCarousel\nprop: loop\nkind: not_in_code\nmessage: \"loop\" is documented, but AcmeCarousel's props have no \"loop\".\ndoc: components/AcmeCarousel.doc.mjs\nsource: components/AcmeCarousel.tsx\ndocType: boolean\n\n1 prop(s) differ between the docs and the code in 1 of 1 component(s) compared (TypeScript 6.0.3). These are warnings: update the doc, or the code if the doc is right."},{"type":"list","style":"unordered","items":["A doc's own `props` describe the export its `name` names. In a family doc, each entry describes its own export. A hook entry documents parameters and returns, so it is not compared.","It reads props with the `typescript` your package installs, and reads your package's `tsconfig.json` the way `tsc -p` does. It finds TypeScript the way the docs check does, TypeScript 7 included ({@link generic:check-your-docs}). Without a usable one it prints `[skip] Props not compared` and the reason.","Findings are warnings and leave the exit code at 0. Read them before you publish. With `--json`, they are in `data.propDrift.findings`."]}]},{"id":"fix-each-finding","title":"Fix each finding","content":[{"type":"prose","text":"Each finding's `kind` says what differs. Fix the doc, or the code if the doc is right."},{"type":"table","headers":["Kind","Means","Fix"],"rows":[["`not_in_code`","The doc lists a prop the component's props do not have","Remove it from the doc, or add it to the code. A name an index signature takes, such as `data-*`, counts as present"],["`not_in_doc`","Your package declares a prop the doc does not list, or builds one with a mapped type, such as `Partial<Record<'sm' | 'md', string>>`","Document it. Props from React, the DOM, or another package are never asked for, and neither are props whose keys another package defines (`keyof CSSProperties`, behind an alias or not), `className`, `style`, `xstyle`, `data-testid`, `ref`, `key`, or a prop whose JSDoc has `@internal`. A deprecated prop is still a prop: document it until you remove it. A prop a mapped type builds from keys the check cannot trace (a template literal, say) is listed under `[info] Props not checked for a doc entry` instead"],["`required_mismatch`","`required` disagrees with the code","Set `required: true` exactly when every caller must pass the prop. One your `defaultProps` fills counts as optional, as it is to JSX callers, and so does one only some members of a union require, since a caller can leave it out: say in its description which variants need it. An entry that names several props (`value / onChange`) makes the same claim about each: give them separate entries when they differ"],["`type_mismatch`","The documented `type` differs from the code's, where both read exactly","Copy the type from the source, or fix the code. The next section says which types are judged"],["`default_mismatch`","The documented `default` differs from the literal default the component writes in its props destructuring, such as `size = 'md'`","Copy the default from the source, quoted as code: `default: \"'md'\"`. Quotes and spacing are ignored, and a default that is not a literal on either side (a constant, a call, prose) is not compared"]]}]},{"id":"write-types-the-check-can-judge","title":"Write types the check can judge","content":[{"type":"prose","text":"For a prop your package declares, the check also compares the documented `type`, but only where both sides read exactly. It never guesses, so a type it cannot judge is listed, not reported. It needs TypeScript 4.8 or later: with an older one it prints `[skip] Prop types not judged` and judges none."},{"type":"code","lang":"text","code":"severity: [warn]\ncomponent: AcmeCarousel\nprop: interval\nkind: type_mismatch\nmessage: \"interval\" is documented as string, but the code declares number.\ndoc: components/AcmeCarousel.doc.mjs\nsource: components/AcmeCarousel.tsx\ndocType: string\ncodeType: number"},{"type":"list","style":"unordered","items":["Write the type as the source writes it, such as `ReactNode[]` or `(index: number) => void`. Parameter names, member order, quotes and whitespace may differ. Text that writes `readonly` must match exactly, parameter names included; only whitespace may differ. `React.X` names React's own `X` where the prop is declared, so it matches a bare `X` only where that name is React's: `React.KeyboardEvent` is not the DOM's `KeyboardEvent`.","Name a type as the file that declares the prop names it, so an import renamed there (`Item as BaseItem`) is written as that file writes it. A field (`cfg.level`) takes its prop's file, even when the field's own type is declared in another file.","A type written another way is judged only when both sides are built from exact parts: primitives such as `string` and `number`, string, number and boolean literals, string enum members, arrays and unions of these, and type names that stand for them. Union members may come in any order, and a member another covers adds nothing, as TypeScript passes it there: `undefined` beside `void`, or `string[]` beside `(string | number)[]`.","A mutable array type matches a readonly one, because callers can pass it. A readonly one documented for a mutable array is a mismatch.","When a prop's variants give a field different types, as `{value: string} | {value: number}` does, document every variant's type (`string | number`). The types of only some variants are listed: the prop's variants give this field different types. With more than six variant types, any other type is listed too.","To name an alias and show its values, write `AcmeSize = 'sm' | 'md'` or `AcmeSize ('sm' | 'md')`. Both parts must match.","An optional prop's `undefined` is set aside on both sides. With `exactOptionalPropertyTypes`, the doc shows `undefined` exactly when the code declares it.","Anything else, such as an object, a tuple, a generic with arguments, `keyof`, an intersection, or a mapped or conditional type written another way, is not compared."]},{"type":"prose","text":"The check prints how many documented types it judged, then lists the rest by reason: not a form the check judges exactly, a field the prop's variants give different types, a standard prop, or a prop declared outside the package. With `--json`, they are in `data.propDrift.typesNotCompared`."},{"type":"code","lang":"text","code":"[info] Documented prop types judged: 2; not compared: 0. A type is judged when the doc writes it the same as the source (exactly, if it contains `readonly`), or when both are primitives, literals, arrays and unions of those, or names for them."}]},{"id":"when-a-component-is-not-compared","title":"When a component is not compared","content":[{"type":"prose","text":"When the check cannot read a component's props exactly, it lists the component under `[info] Props not compared`, with the reason, instead of reporting findings that might be wrong."},{"type":"code","lang":"text","code":"[info] Props not compared for 1 documented component(s):\n\ncomponent: AcmeCarousel\ndoc: components/AcmeCarousel.doc.mjs\nreason: AcmeCarousel depends on `@acme/motion` (imported in AcmeCarousel.tsx), which the compiler could not resolve, usually a dependency that is not installed. Install the package's dependencies and run this check again"},{"type":"table","headers":["Reason","Fix"],"rows":[["It depends on a package or file the compiler could not resolve","Install the package's dependencies, then run the check again"],["It depends on a type the compiler can't work out","Make the types compile with `{@pm exec tsc --noEmit}`, then run the check again"],["The package's TypeScript config has an error","Fix `tsconfig.json` until `{@pm exec tsc -p .}` reads it"],["Its props are typed `any`","Give the component a props type"],["Some prop names come from a type parameter","Nothing to fix: a component that renders an element the caller picks takes props known only where it is used"],["The file has no export named by the doc's `name`","Change `name` or the export so they agree"]]}]}]}},"c7105cf55a0ef6bc6b5acc2a0e3e2d4d":{"doc":{"type":"block","exampleFor":"SyntaxTheme","name":"SyntaxTheme — Dark Preset","displayName":"SyntaxTheme — Dark Preset","description":"Wrap a code block in SyntaxTheme to apply a dark syntax preset such as Dracula.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SyntaxTheme","CodeBlock"]}},"c743f1fe08f9aa374d6400973bb8ecae":{"doc":{"type":"block","exampleFor":"ChatComposerInput","name":"ChatComposerInput — Slash Commands","displayName":"ChatComposerInput — Slash Commands","description":"Chat input with a / trigger for command selection. Use for AI assistants or bots that support structured commands.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","ChatComposerInput","Typeahead","Layout"]}},"c750615fe1ef72bd28a6bc63d63b9a6f":{"docs":{"type":"generic","name":"who-answers","placement":{"parent":"namespace:global","slot":"guides","order":3},"title":"Which version runs, and why","category":"guide","keywords":["which release","wrong version","different version","answered by","answeredBy","hand-off","handed over","project version"],"description":"Inside a project, the project's own CLI answers, whichever astryx command you start; in a project with only Core, the astryx command you started answers. Outside a project, your global install answers. How to see which one did.","sections":[{"id":"in-a-project","title":"In a project, the project's version","content":[{"type":"list","style":"unordered","items":["The project installs the CLI, as recommended: that CLI answers, whatever its version, as it always has. When you type the global astryx command instead, it passes the run to the project's CLI, with the same arguments, input, output, and exit status, so either command gives the same answer.","The project installs only Core, or nothing is installed yet, as in a fresh clone: the astryx command you started answers, as it always has. When its version differs from the project's Core, a hint after the command, once a day, names the command that adds the CLI at Core's version.","The project's CLI is installed but cannot start: the CLI version equal to the project's Core answers instead (from the installed Core, else the lockfile, else the newest one the declared range allows), installed once into a cache."]},{"type":"prose","text":"Components come from `@astryxdesign/core`, and templates, docs, and agent guides come from the CLI. In a project, that Core is the one the project installs, so component commands work offline once the project's dependencies are installed. Outside a project, or in a project with nothing installed yet (a fresh clone), they use the answering version's own Core, from beside the CLI or the cache; when that Core cannot be downloaded, the error says to install the project's dependencies. When the project's CLI and Core are different versions, `{@command doctor}` warns and prints the command that brings them to one version."}]},{"id":"outside","title":"Outside a project, your global install","content":[{"type":"prose","text":"In a folder that belongs to no project, your global install answers as a brand-new project on its version would, so you and your agents can read every component and doc. It never installs a newer version by itself."},{"type":"prose","text":"A few commands work on your computer rather than a folder, such as `{@command init --user}`: your global install answers them in any folder."}]},{"id":"see-it","title":"See which version answered","content":[{"type":"prose","text":"In a project with only Core, the hint looks like this, after the command, at most once a day per project:"},{"type":"code","lang":"text","code":"astryx: this project has no Astryx CLI installed; answered by CLI 0.7.2 while its Core is 0.6.8. To match, run: npm install @astryxdesign/cli@0.6.8"},{"type":"prose","text":"Otherwise, in text mode, one line on standard error names the version, unless the project's own CLI answered directly:"},{"type":"code","lang":"text","code":"astryx: answered by this project's CLI 0.6.8, handed over from CLI 0.7.2\nastryx: answered by CLI 0.6.8 with Core 0.6.8, the release that matches this project's Core\nastryx: answered by CLI 0.7.2 with Core 0.7.2, outside a project\nastryx: answered by CLI 0.7.2 with Core 0.7.2, for this computer"},{"type":"prose","text":"With `--json` nothing extra prints; every result carries `meta.answeredBy` instead ({@link generic:reference}):"},{"type":"code","lang":"json","code":"{\"meta\": {\"answeredBy\": {\"cli\": \"0.7.2\", \"core\": \"0.6.8\", \"copy\": \"starting\"}}}"}]},{"id":"printed-commands","title":"Commands Astryx prints","content":[{"type":"prose","text":"Commands the CLI prints for you to run start with a name that reaches the same version: the project's runner (such as `pnpm exec astryx`) in a project, `astryx` outside a project when your global install answered, and otherwise the CLI pinned to the version, such as `{@pm dlx @astryxdesign/cli@0.6.8}`. An integration can name its own command: {@link generic:cli-command}."}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works. To check your computer, run `{@command doctor}` outside any project ({@link command:doctor}). Monorepos: {@link generic:monorepos}."}]}]}},"c7544f318e7263c9460b4de43104a853":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Colors","displayName":"Text — Colors","description":"All text color options (primary, secondary, disabled, placeholder, active) applied to body text to show their intended use.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Text","Stack"]}},"c778fa4e76b201a19c9d0a897a20f474":{"doc":{"type":"block","exampleFor":"SelectorOption","name":"SelectorOption — Basic","displayName":"SelectorOption — Basic","description":"A selector whose options are rendered with SelectorOption, adding a secondary description below each label. Use inside renderOption for consistent custom option styling.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Selector","SelectorOption"]}},"c795d7e85a71a8653588fd9cd01ea165":{"doc":{"type":"block","exampleFor":"ContextMenu","name":"ContextMenu","displayName":"Context Menu","description":"An adaptive context area that supports long-press on compact touch screens and right-click elsewhere.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["ContextMenu"]}},"c798285ef5fdfee3192fc718dba06529":{"doc":{"type":"block","exampleFor":"TextArea","name":"TextArea — Icon","displayName":"TextArea — Icon","description":"Textareas with a leading icon that hints at the expected content, like a chat bubble for messages or a pencil for notes.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextArea"],"icons":{"PencilSquareIcon":"compose"}}},"c7bb546bba5dab830852b032e1bd9b19":{"docs":{"name":"motion","title":"Motion","category":"foundations","description":"Duration and easing tokens for animations and transitions.","tokenCategory":"duration","sections":[{"title":"Overview","category":"foundations","content":[{"type":"prose","text":"Motion serves two purposes: it makes interfaces easier to understand, and it makes them more pleasant to use. A panel animating open helps the eye track what changed and where new content sits in the layout. These moments reduce cognitive load and make the interface feel responsive."},{"type":"prose","text":"At the same time, well-tuned motion gives an application a sense of craft and polish that users notice, even if they can't name it."},{"type":"prose","text":"The design system provides duration and easing tokens that keep these moments consistent across your application."}]},{"title":"Duration","category":"foundations","content":[{"type":"prose","text":"Nine duration tokens in fast, medium, and slow bands, and `--duration-exit`, the standard dismissal duration, which follows `--duration-fast`."},{"type":"token-ref","topic":"tokens","section":"Duration Tokens"}]},{"title":"Easing","category":"foundations","content":[{"type":"prose","text":"Four easing curves. `--ease-standard` decelerates, for state changes. `--ease-entrance` is for things arriving and `--ease-move` for things moving on screen; a theme's `character` sets both, and at `standard` they equal `--ease-standard`. `--ease-exit` accelerates, for things leaving: it moves off from rest and leaves fast, so the travel stays visible for the whole duration, and it is the same at every `character`."},{"type":"token-ref","topic":"tokens","section":"Easing Tokens"}]},{"title":"Where Motion Helps","category":"foundations","content":[{"type":"prose","text":"Some parts of the interface benefit from animation. Panels, dialogs, and collapsible sections are disorienting when they appear instantly, so animation gives the eye something to follow. Toasts and notifications need just enough entrance to be noticed without startling. State changes like a switch flipping or a selection highlighting feel more intentional with a brief transition."},{"type":"prose","text":"The common thread is that these are moments where the user needs to understand what happened."}]},{"title":"Where Motion Hurts","category":"foundations","content":[{"type":"prose","text":"Table row hovers. List item highlights. Anything the user does dozens of times per minute. Adding perceptible duration to these interactions makes the interface feel like it's catching up to the cursor. Keep these fast enough that the user never notices a delay."},{"type":"prose","text":"Animations that block interaction are worse. If a user has to wait for a panel to finish sliding before they can click something inside it, the animation has become an obstacle. Motion should never stand between the user and their next action."}]},{"title":"Movement Principles","category":"foundations","content":[{"type":"list","style":"unordered","items":["Not everything needs an animated exit. Elements the user is moving away from, such as tooltips, hover cards, and dropdown menus, can disappear instantly. The user has already shifted their attention. Animate the exit only when it helps orient the user, like a panel closing or a dialog dismissing to reveal what's underneath.","When you do animate exit, match the entrance. A panel that slides in from the right should slide back out to the right.","Direction should match the action. Navigating deeper into content should feel like moving forward. Going back should feel like returning. This keeps the user oriented in the structure of the application.","Contextual UI should feel connected to its trigger. A dropdown should expand from the button that opened it. A popover should appear near the element it describes. This doesn't apply to global UI like command palettes or toasts, which have their own fixed positions."]}]},{"title":"Respecting User Preferences","category":"foundations","content":[{"type":"prose","text":"Some users experience motion sensitivity; animation that feels polished to one person can cause discomfort for another. When the OS reduced-motion setting is on, Astryx components change at once under a mouse or trackpad, and under a finger they cross-fade instead of moving: opacity only, in 200 ms or less. A value that changes in place, such as a progress fill, takes its new value at once under any pointer. Do the same in your own animations with `@media (prefers-reduced-motion: reduce)`, adding `(pointer: coarse)` for the touch cross-fade."}]},{"id":"usage","title":"Animate with motion tokens","category":"foundations","content":[{"type":"prose","text":"Set transition durations and easing from the motion tokens, so a theme that retunes motion retunes your animations too. Ease something arriving on `--ease-entrance` and something moving on screen on `--ease-move`, so it follows the theme's `character`, and something leaving on `--ease-exit`, which stays the same at every `character`."},{"type":"code","lang":"tsx","label":"Applying motion tokens","code":"import {durationVars, easeVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n fadeIn: {\n transitionProperty: 'opacity',\n transitionDuration: durationVars['--duration-fast'],\n transitionTimingFunction: easeVars['--ease-standard'],\n },\n slideUp: {\n transitionProperty: 'transform, opacity',\n transitionDuration: durationVars['--duration-medium'],\n transitionTimingFunction: easeVars['--ease-entrance'],\n },\n});"}]},{"id":"theme-motion","title":"Tune motion from the theme","category":"foundations","content":[{"type":"prose","text":"A theme sets how motion feels with two knobs in `defineTheme`'s `motion`. They drive the CSS motion tokens, and `tempo` also times the springs of touch motion; those springs don't follow `character` yet. Every theme follows each person's Reduce Motion setting; no theme loosens it."},{"type":"list","style":"unordered","items":["`tempo` scales every motion duration: 1 is Astryx's own, 0.75 the quickest and 1.5 the slowest (values outside are clamped).","`character` sets how lively motion is: `'crisp'` decelerates without overshoot, `'standard'` is Astryx's own, and `'expressive'` overshoots slightly on entrances and moves. Exits and fades never overshoot."]},{"type":"code","lang":"ts","label":"A quicker, crisper theme","code":"export const brandTheme = defineTheme({\n name: 'brand',\n motion: {tempo: 0.85, character: 'crisp'},\n});"},{"type":"prose","text":"Some motion never follows the knobs, because it tracks a finger or the system: finger tracking, momentum and the rubber band, the on-screen keyboard, the press model's onset delay, cancel distance and tap flash (its release fade follows tempo), hover-intent delays, gesture thresholds, the loops of busy indicators such as Spinner and Skeleton, and the 200 ms Reduce Motion cross-fade."},{"type":"prose","text":"Precedence, lowest to highest: the knobs, then a duration scale (`fast`, `medium`, `slow`, `ratio`) for the durations it sets, then explicit `tokens`. A theme with no `motion` renders exactly as before."}]},{"title":"Best Practices","category":"foundations","content":[{"type":"list","style":"do","items":["Animate transitions that involve spatial change: panels opening, content expanding, elements entering the screen.","Use fast tokens for small, frequent interactions. Use medium tokens for larger transitions that rearrange the layout.","Honor reduced motion preferences at the OS level."]},{"type":"list","style":"dont","items":["Let hover states or high-frequency interactions feel like they're lagging behind the user.","Let animation delay when a user can interact with new content. The transition should complete before (or not block) the next action.","Move elements in ways that contradict where they came from or where they're going."]}]}]}},"c8cf576fa5c0d2e4128febbdff0d5757":{"doc":{"type":"block","exampleFor":"Button","name":"Button — Sizes","displayName":"Button — Sizes","description":"Small, medium, and large buttons side by side. Use small in dense UIs like toolbars, medium for most cases, and large for prominent CTAs.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Layout","Text"]}},"c90025b5cb30e183a2f0be5a578c5a16":{"doc":{"type":"block","exampleFor":"IconButton","name":"IconButton — Floating","displayName":"IconButton — Floating","description":"A floating action button (FAB). The most common floating-button shape is icon-only. Raised here with `elevation=\"high\"`.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["IconButton","Icon","Layout","Text"],"icons":{"PlusIcon":"add"}}},"c99e7c8b831c6af33c10125ed1703b80":{"doc":{"type":"block","exampleFor":"usePressFeedback","name":"usePressFeedback — Pressable Card","displayName":"usePressFeedback — Pressable Card","description":"A Card made pressable with usePressFeedback: its marker and the interactionOverlayStyles backgroundImage overlay go straight on the Card, so a press darkens the card the way every Astryx pressable does; focusOutlineStyles.focusVisible gives it the shared Astryx focus ring for keyboard focus; and a click, Enter or Space flips it.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card"]}},"c99f0e840b298e25b2c0c3bf9aba0870":{"docs":{"type":"generic","name":"migration-setup","title":"Setup","placement":{"parent":"namespace:migration","slot":"guides","order":10},"category":"guide","description":"Install the theme, wire CSS layers, audit resets, and run the foundation smoke test before migrating any surface.","keywords":["setup","theme","reset","smoke test","layer audit","cascade layers","Tailwind coexistence"],"sections":[{"title":"Overview","content":[{"type":"prose","text":"Treat migration as a product-shell and workflow migration, not a global class replacement. Start by putting the app inside Theme and AppShell, then move one route or surface at a time to design system primitives while keeping existing data, routing, and business logic intact."},{"type":"prose","text":"Tailwind can coexist during migration. Use it for legacy wrappers and local layout while replacing interactive controls, navigation, command surfaces, forms, alerts, dialogs, and settings UI with components."}]},{"title":"Recommended Order","content":[{"type":"list","style":"ordered","items":["Install the packages and run `{@command init}` for agent docs, then add the reset, `astryx.css`, and theme CSS imports (see Theme and CSS Setup below).","Wrap the app root with Theme and choose the initial light, dark, or system mode behavior.","Make Tailwind and design system CSS layer order explicit before replacing components.","Render the foundation smoke test page and confirm primitives keep their padding before migrating any surface.","Move the persistent frame first: AppShell, TopNav, SideNav, page content, and mobile navigation. See {@link generic:component-migration}.","Replace shared primitives: Button, IconButton, TextInput, NumberInput, Switch, CheckboxInput, RadioList, Selector, TabList, Dialog, AlertDialog, Banner, Toast, Badge, Card, Table, and ListItem. See {@link generic:component-migration}.","Replace global workflows: command palette, settings popover, theme toggle, search, filters, create flows, and destructive confirmation dialogs.","Remove legacy Tailwind classes from each completed surface, keeping only token-backed layout utilities or local wrappers that still need to be migrated.","Verify both light and dark modes, keyboard navigation, responsive layout, and empty/error/loading states before moving to the next route. See {@link generic:migration-verification}."]}]},{"title":"CLI Workflow","content":[{"type":"prose","text":"Use the CLI as the migration checklist. Read the docs for the pattern you are about to touch, inspect a matching template skeleton, then read the exact component docs before editing."},{"type":"code","lang":"bash","label":"Migration-oriented CLI pass","code":"{@command docs migration}\n{@command docs theme}\n{@command docs styling}\n{@command template --list --type block}\n{@command template AppShellTopNavWithSideNav --skeleton}\n{@command template PopoverSettingsPanel --skeleton}\n{@command component AppShell}\n{@command component SideNav}\n{@command component TopNav}\n{@command component CommandPalette}\n{@command component Button}\n{@command component TextInput}"},{"type":"prose","text":"For a shorter read to paste into an AI coding tool, see {@link generic:working-with-ai}. Use `--json` when building automated migration reports."},{"type":"code","lang":"bash","label":"Short and JSON modes","code":"{@command docs migration --full --detail brief}\n{@command component Button --json}"}]},{"title":"Theme and CSS Setup","content":[{"type":"prose","text":"Mount Theme at the app root so every migrated component reads the same token set. Keep the mode in application state if users can switch between light and dark themes."},{"type":"code","lang":"tsx","label":"Root provider with explicit mode","code":"import {Theme} from '@astryxdesign/core/theme';\nimport {neutralTheme} from '@astryxdesign/theme-neutral/built';\nimport {useState} from 'react';\nimport '@astryxdesign/theme-neutral/theme.css';\n\nexport function AppRoot({children}: {children: React.ReactNode}) {\n const [mode, setMode] = useState<'system' | 'light' | 'dark'>('system');\n\n return (\n <Theme theme={neutralTheme} mode={mode}>\n <SettingsContext.Provider value={{mode, setMode}}>\n {children}\n </SettingsContext.Provider>\n </Theme>\n );\n}"},{"type":"prose","text":"When Tailwind remains in the app, declare layer order once in the global CSS file. Load the Astryx reset and theme CSS before Tailwind utilities so migrated components keep design system defaults while legacy utility classes still work. On Tailwind v4, use the imports and layer order in {@link generic:tailwind}."},{"type":"prose","text":"Import the global CSS file first in the root layout or app entry, before anything that imports Astryx or theme CSS, including the `astryx-themes` module and a root component like the `AppRoot` above. Why the order matters, and what to do when it cannot come first, is in {@link generic:tailwind}."},{"type":"code","lang":"tsx","label":"Root layout or app entry","code":"import './globals.css'; // first: declares the cascade-layer order\n\nimport {AppRoot} from './AppRoot';"},{"type":"prose","text":"On Tailwind v3 there is no preflight.css to import, so wrap the @tailwind base directive in a named layer instead. Keep utilities unlayered so existing app utility classes still win everywhere. Put the `@layer` order line in its own `layers.css` and import it first, before `globals.css`: Next.js (webpack or Turbopack) and other bundlers that hoist CSS imports move the imported files above an inline `@layer` line, so the order would arrive too late."},{"type":"code","lang":"css","label":"layers.css (imported first)","code":"@layer reset, tw-preflight, astryx-base, astryx-theme;"},{"type":"code","lang":"css","label":"globals.css (Tailwind v3 coexistence)","code":"@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/theme-neutral/theme.css\";\n\n@layer tw-preflight {\n @tailwind base; /* layered: astryx-theme now wins over preflight */\n}\n@tailwind components;\n@tailwind utilities; /* unlayered: legacy utility classes keep winning */"},{"type":"code","lang":"tsx","label":"Root layout or app entry (Tailwind v3)","code":"import './layers.css'; // first: declares the cascade-layer order\nimport './globals.css';\n\nimport {AppRoot} from './AppRoot';"}]},{"id":"cascade-layer-safety","title":"Why resets break cascade layers","content":[{"type":"prose","text":"In a stylesheet with no layers at all, a zero-specificity reset like `* { padding: 0 }` loses to any class selector, so most developers treat resets as harmless. Layers change the rules twice: unlayered styles beat every named layer, and a later layer beats an earlier one, both regardless of specificity. The same reset therefore wins against every component style either by staying unlayered or by landing in a layer declared after astryx-base. Same CSS, opposite outcome, and no error or warning when it happens."},{"type":"prose","text":"This is the most common way an adoption breaks, through one of two @import mechanisms. A top-level @import without the layer() keyword keeps the legacy reset unlayered, where it overrides every design system layer. And an @import nested inside a file that was itself imported into a layer inherits that surrounding layer, so a reset can silently land in a consumer layer above astryx-base. Either way the fix is the same: import the legacy reset into the lowest layer explicitly."},{"type":"code","lang":"css","label":"Legacy reset, explicitly layered","code":"/* was: @import \"./legacy-reset.css\"; (unlayered: beats every layer) */\n@import \"./legacy-reset.css\" layer(reset);"},{"type":"prose","text":"Before building screens, check every stylesheet against the cascade layer audit below."}]},{"id":"layer-audit","title":"Cascade layer audit","content":[{"type":"prose","text":"Audit the layers around the design system with this checklist before building screens."},{"type":"list","style":"unordered","items":["Declare the canonical @layer order once, before any @import. With Next.js (webpack or Turbopack) and other bundlers that hoist CSS imports, the order declaration must live in its own CSS file imported first, such as layers.css, because the bundler hoists @import content above the inline CSS that follows it.","Audit every pre-existing global or reset stylesheet and assign each one to a layer deliberately. Top-level imports without layer() stay unlayered and beat every layer; imports nested inside a layered file inherit that layer.","Remove or demote the app legacy reset. The design system ships its own :where() reset in the lowest layer, so any app reset belongs in that same reset layer and never in a layer above astryx-base.","Layer Tailwind preflight. On Tailwind v4, import preflight.css with layer(base). On Tailwind v3, wrap the @tailwind base directive in a named layer (see the snippet in Theme and CSS Setup). Unlayered preflight overrides theme CSS silently.","Set moduleResolution to bundler or node16 and newer so subpath imports like @astryxdesign/core/reset.css resolve.","Theme with defineTheme and the accent family API instead of hand-writing individual color tokens. Derived tokens like --color-on-accent are generated from the accent scale automatically; hand-writing only --color-accent leaves --color-on-accent at its stale white default with no contrast guarantee against the new accent.","Run the foundation smoke test below and view a few components in both light and dark mode before migrating any route."]},{"type":"prose","text":"One more mental model shift: a className or utility class you write on a component still reaches the DOM either way, but whether it overrides the component is a layer question, not a source order question. Keep app utilities in the utilities layer so they keep winning."}]},{"title":"Foundation Smoke Test","content":[{"type":"prose","text":"A broken layer order fails silently and identically on every page, so catch it before feature work instead of after N migrated screens. Render one throwaway page with a few primitives as the first migration step."},{"type":"code","lang":"tsx","label":"Foundation check page","code":"import {useState} from 'react';\nimport {Button} from '@astryxdesign/core/Button';\nimport {Card} from '@astryxdesign/core/Card';\nimport {Table} from '@astryxdesign/core/Table';\nimport {TextInput} from '@astryxdesign/core/TextInput';\nimport {VStack} from '@astryxdesign/core/VStack';\n\nexport default function FoundationCheck() {\n const [email, setEmail] = useState('');\n\n return (\n <div data-foundation-check>\n <VStack gap={4}>\n <Button label=\"Primary action\" variant=\"primary\" />\n <TextInput\n label=\"Email\"\n placeholder=\"you@example.com\"\n value={email}\n onChange={setEmail}\n />\n <Card>One card with default padding</Card>\n <Table\n data={[{name: 'Foundation', status: 'ok'}]}\n columns={[\n {key: 'name', header: 'Name'},\n {key: 'status', header: 'Status'},\n ]}\n />\n </VStack>\n </div>\n );\n}"},{"type":"prose","text":"If the button renders with visible padding, a filled primary background, and the input and card have borders and internal spacing, the foundation is sound. For an assertion that can run in any test runner or a dev-only effect, check that a primitive keeps non-zero padding:"},{"type":"code","lang":"ts","label":"Foundation assertion","code":"const button = document.querySelector<HTMLButtonElement>(\n '[data-foundation-check] button',\n);\nif (!button) {\n throw new Error('Foundation check page did not render a button.');\n}\nif (getComputedStyle(button).paddingInline === '0px') {\n throw new Error(\n 'Foundation broken: an unlayered reset or a later cascade layer is ' +\n 'overriding component styles. Check that no app reset sits outside ' +\n 'the reset layer.',\n );\n}"},{"type":"prose","text":"When this fails, the fix is almost always in the layer order: find the stylesheet that zeroes padding, and move it into the reset layer or delete it."}]}]}},"c9a637ad3e30c2fb5729b08a3e0de076":{"doc":{"type":"block","exampleFor":"NumberInput","name":"NumberInput — With Units","displayName":"NumberInput — With Units","description":"Number input with a percentage unit suffix and valid range","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["NumberInput","Center"]}},"c9c93634a38b98639ea53bb4e86cac2f":{"docs":{"type":"generic","name":"layout-spacing","title":"Layout spacing","placement":{"parent":"namespace:layout","slot":"guides","order":40},"category":"guide","description":"Hold one content line per region, then tune gaps and density.","keywords":["alignment","content line","rhythm","gap","density","padding","inset","compact","spacious","FormLayout"],"sections":[{"id":"spacing","title":"Spacing","content":[{"type":"prose","text":"Hold one content line per region, then tune gaps and density. Alignment, Rhythm, and Density and size each build on these rules."},{"type":"list","style":"do","items":["Let the container own padding; children zero their own margins","Hold one content line per region: text on the line, hover backgrounds bleed to the edge","Hold one padding token across a region header, body, and footer","Contrast tight and generous gaps so grouping reads without borders","One control size per row; match density to use frequency"]},{"type":"list","style":"dont","items":["Double padding: a component indented past its Section heading (keep one inset owner)","Raw px for interior spacing; tokens only, px is for structural widths","One repeated gap everywhere, which flattens grouping","Mixed control sizes in a single row"]}]},{"id":"alignment","title":"Alignment","content":[{"type":"prose","text":"The container owns padding and child gaps; children zero their margins, and interior spacing is always a token. Pick one content line per region and hold it constant, not the padding: `container_inset = content_line - component_intrinsic_inset`."},{"type":"list","style":"unordered","items":["Text and Heading carry no inset, so the container takes the full padding","List, Tab, Menu, and nav items carry a small inset, so the container gives up its padding and the component owns the line","Table cells carry a larger inset, so the container gives up its padding and the cell owns the line"]},{"type":"code","lang":"tsx","label":"One content line, two inset owners","code":"// Target content line = 16px.\n// Heading has 0 inset, so the Section takes the full padding.\n<Section padding={4}><Heading level={3}>Members</Heading></Section>\n\n// List has ~8px built in, Table cells 12–16px, so the Section\n// gives up its padding and the component owns the inset.\n<Section padding={0}><List>{/* items */}</List></Section>"},{"type":"prose","text":"Verify: draw one vertical line down the left of the region. Every label touches it; only hover and selected backgrounds cross it."}]},{"id":"rhythm","title":"Rhythm","content":[{"type":"prose","text":"Grouping comes from contrast between tight and generous gaps, not one repeated value. If every gap is the same step, proximity does no work."},{"type":"list","style":"unordered","items":["Tight gaps bind: the smallest steps, used inside an item or field","Generous gaps separate: several steps up, used between sections","Reach for the in-between steps to tune cadence, rather than rounding everything to the same two values"]},{"type":"code","lang":"tsx","label":"Tight inside, generous between","code":"// Tight binds at gap={1}–{2}, generous separates at gap={4}–{6}.\n// In-between steps tune cadence: gap={3} = 12px, gap={5} = 20px.\n<VStack gap={6}>\n <VStack gap={1}>\n <Text weight=\"semibold\">Retention</Text>\n <Text color=\"secondary\">Logs are kept for 30 days</Text>\n </VStack>\n <VStack gap={1}>{/* next label and value */}</VStack>\n</VStack>"},{"type":"prose","text":"Verify: with every border removed, you can still name the groups from spacing alone. If you cannot, the intervals are too uniform. Form fields are the exception: FormLayout owns their spacing."}]},{"id":"density","title":"Density and size","content":[{"type":"prose","text":"Match density to how often a region is used, and give every control in a row the same size so heights share a baseline."},{"type":"list","style":"unordered","items":["Compact: high-volume regions scanned fast, like logs, monitors, and large datasets","Balanced: most Table and List surfaces","Spacious: low-frequency or high-stakes rows, like settings or a short selection list"]},{"type":"code","lang":"tsx","label":"Density paired with control size","code":"// Pair density with one control size: compact with sm,\n// balanced with sm or md, spacious with md or lg.\n<Table data={rows} columns={columns} density=\"compact\" hasHover />\n<Button label=\"Retry\" size=\"sm\" variant=\"ghost\" />"},{"type":"prose","text":"Verify: every interactive element in a row shares one size, and that size is paired with the density of the region it sits in."}]}]}},"c9fbfe0a751b13a0eccead606db0e23c":{"docs":{"name":"styling-overview","title":"Styling overview","category":"guide","description":"How to set up CSS — exact imports for three paths: plain, Tailwind, and StyleX for your own code — plus the stylesheet each Astryx package ships.","keywords":["styling","CSS","setup","imports","StyleX","Tailwind","astryx.css","globals.css"],"sections":[{"id":"pick-a-path","title":"Pick a path","content":[{"type":"table","headers":["Path","Good for","Build step?"],"rows":[["Plain CSS","Most apps. Style with className, xstyle, or any CSS library.","None."],["Tailwind","Apps on Tailwind v4. A CSS bridge maps utility classes to design tokens.","None beyond Tailwind's own."],["StyleX for your own code","Your own `stylex.create()` styles and swizzled (ejected) components. Astryx itself stays prebuilt.","Yes — a StyleX plugin for your own code."]]},{"type":"prose","text":"All three load the same prebuilt Astryx stylesheets, resolve to the same design tokens, and support theming and dark mode. None of them compiles Astryx package source. You can mix them in one app."}]},{"id":"plain","title":"Plain CSS","content":[{"type":"code","lang":"bash","label":"Install","code":"{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral}"},{"type":"code","lang":"css","label":"globals.css","code":"@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/theme-neutral/theme.css\";"},{"type":"prose","text":"Done. Components work out of the box — style them with `className`, `xstyle`, or `style`. Swap `theme-neutral` for any theme package (`{@command theme list}` shows what's available)."}]},{"id":"tailwind","title":"Tailwind","content":[{"type":"code","lang":"bash","label":"Install","code":"{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral}"},{"type":"code","lang":"css","label":"globals.css","code":"@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;\n\n@import \"tailwindcss/theme.css\" layer(theme);\n@import \"tailwindcss/preflight.css\" layer(base);\n@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/theme-neutral/theme.css\";\n@import \"@astryxdesign/core/tailwind-theme.css\";\n@import \"tailwindcss/utilities.css\" layer(utilities);"},{"type":"prose","text":"The `@layer` declaration is critical — without it, component styles outrank Tailwind utilities and `className` overrides stop working. The bridge (`tailwind-theme.css`) maps classes like `text-primary`, `bg-surface`, and `rounded-lg` to design tokens with no JS."},{"type":"prose","text":"A project with Tailwind already set up needs a smaller change, which {@link generic:tailwind} shows. For Tailwind v3, see the layer workaround in {@link generic:migration-setup}."}]},{"id":"stylex-own-code","title":"StyleX for your own code","content":[{"type":"prose","text":"Only needed when you write your own StyleX (`stylex.create()`) or swizzle a component (`{@command swizzle <Component>}`), which copies its StyleX source into your app. The plain path already supports `xstyle` overrides — this path is for your own StyleX code. Some built-in page templates also use StyleX for layout; if you scaffold one and see \"Unexpected stylex.create call at runtime\", add the compiler plugin for your bundler below."},{"type":"code","lang":"bash","label":"Install","code":"{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral}"},{"type":"code","lang":"css","label":"globals.css","code":"@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/theme-neutral/theme.css\";"},{"type":"prose","text":"Keep `astryx.css`: Astryx component styles always come from the prebuilt stylesheets. Point the StyleX compiler at your own source only, never at `node_modules/@astryxdesign`. Add the plugin for your bundler:"},{"type":"table","headers":["Bundler","Plugin"],"rows":[["Webpack","@stylexjs/webpack-plugin"],["Vite / Rollup","@stylexjs/rollup-plugin"],["Babel (any)","@stylexjs/babel-plugin + @stylexjs/postcss-plugin"],["Next.js (keep next/font)","@stylexswc/nextjs-plugin"]]},{"type":"prose","text":"If a swizzled component fails at runtime with a `stylex.create` error, the app is missing a StyleX compiler: see the StyleX Build Setup section of {@link generic:tokens-and-setup}."},{"type":"prose","text":"`{@command swizzle <Component>}` writes an `astryx-swizzle.json` marker into an output folder it owns (one the copy creates, an empty one, or one it marked before); every module under that folder then compiles as Astryx source, so keep copies in a folder of their own, such as the default `components/astryx`. For a folder that already holds other files it writes no marker and says how to add one by hand. With `@astryxdesign/build`'s Babel, PostCSS and Vite integrations, or `withAstryx()` under webpack, a copy under that folder compiles into `astryx-base`, below `astryx-theme`, so theme component overrides reach it as they reach the package component. Under Turbopack, and with the stock StyleX plugins above, a copy's rules land in your own styles, above `astryx-theme`, and theme component overrides do not reach it."}]},{"id":"other-packages","title":"Other Astryx packages","content":[{"type":"prose","text":"Every Astryx package whose components carry styles ships its own prebuilt stylesheet. Import it after `astryx.css` for each package you use. All of them place their rules in the same `astryx-base` layer, so your theme overrides win over every package."},{"type":"code","lang":"css","label":"globals.css","code":"@import \"@astryxdesign/core/reset.css\";\n@import \"@astryxdesign/core/astryx.css\";\n@import \"@astryxdesign/richtext/richtext.css\"; /* Rich Text */\n@import \"@astryxdesign/lab/lab.css\"; /* Lab */\n@import \"@astryxdesign/charts/charts.css\"; /* Charts */\n@import \"@astryxdesign/theme-neutral/theme.css\";"},{"type":"table","headers":["Package","Stylesheet"],"rows":[["@astryxdesign/core","@astryxdesign/core/astryx.css"],["@astryxdesign/richtext","@astryxdesign/richtext/richtext.css"],["@astryxdesign/lab","@astryxdesign/lab/lab.css"],["@astryxdesign/charts","@astryxdesign/charts/charts.css"]]}]},{"id":"what-each-file-does","title":"What each import does","content":[{"type":"table","headers":["Import","Layer","Purpose"],"rows":[["reset.css","reset","Cross-browser reset (box-sizing, margins, color-scheme). Zero specificity via :where()."],["astryx.css","astryx-base","Prebuilt component styles. Required on every path."],["richtext.css, lab.css, charts.css","astryx-base","Prebuilt styles for each other Astryx package you use. Load after astryx.css."],["theme.css","astryx-theme","Design tokens (colors, spacing, radius, typography) as CSS custom properties. Swap the package for a different theme."],["tailwind-theme.css","—","Tailwind v4 bridge. Maps utility classes to design tokens. Pure CSS, no JS. Tailwind path only."]]}]},{"id":"further-reading","title":"Further reading","content":[{"type":"list","style":"unordered","items":["{@link namespace:styling} — xstyle, className, data-attribute selectors, design tokens in code.","{@link namespace:styling-libraries} — Tailwind bridge details, Panda, Chakra, MUI, CSS Modules, and non-CSS token resolution.","{@link generic:use-a-theme} — applying themes, dark mode, nested themes. {@link generic:author-a-theme} — defineTheme, overrides, production builds.","{@link namespace:migration} — cascade layer audit, Tailwind v3 coexistence, and foundation smoke test."]}]}]}},"cabdf8a0807cd72b207392b597eedc95":{"docs":{"type":"generic","name":"add-a-topic","placement":{"parent":"namespace:docs","slot":"guides","order":10},"title":"Add a topic","category":"guide","keywords":["add a doc","integration docs","write docs"],"description":"Add a doc topic to your package and write its sections.","sections":[{"id":"add-a-topic-with-the-cli","title":"Add a topic with the CLI","content":[{"type":"prose","text":"Run `integration add doc` in your package to add a topic. It writes the topic file and declares the `docs` root in `astryx.integration.mjs`."},{"type":"code","lang":"bash","code":"{@command integration add doc deploying}\n# Read it the way an app will\n{@command docs deploying}"},{"type":"code","lang":"text","code":"doc contribution added\n\n[ok] deploying\n\nDeclare doc root ./docs in astryx.integration.mjs.\n\n- docs/deploying.doc.mjs\n- astryx.integration.mjs"},{"type":"list","style":"unordered","items":["Name the topic in lowercase kebab-case, such as `deploying`. Readers type the name as a command argument, so it holds only letters, digits, `_`, and `-`.","Keep the name stable: readers and links find the topic by it.","Pick a name `{@command docs}` does not already list: no Core topic, and no section such as `tokens` or `layout`. To take over or add to a Core topic, see {@link generic:extend-or-replace}."]}]},{"id":"write-the-sections","title":"Write the sections","content":[{"type":"prose","text":"A topic is a plain object with `type: 'generic'`, a `name`, a `title`, a one-sentence `description`, and `sections`. Each section has a `title` and a list of `content` blocks."},{"type":"code","lang":"javascript","label":"docs/deploying.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */\nexport default {\n type: 'generic',\n name: 'deploying',\n title: 'Deploying',\n description: 'Ship an app built with Acme widgets.',\n sections: [{\n id: 'build-before-you-ship',\n title: 'Build before you ship',\n content: [\n {type: 'prose', text: 'Build the app, then upload the `dist` folder.'},\n {type: 'code', lang: 'bash', code: '{@@pm run build}'},\n {type: 'list', style: 'unordered', items: ['Keep `dist` out of git.']},\n {type: 'table', headers: ['Variable', 'Value'], rows: [['`NODE_ENV`', '`production`']]},\n ],\n }],\n};"},{"type":"prose","text":"The sample sets a section `id`, so `package.json` needs the CLI peer `\"@astryxdesign/cli\": \">=0.6.4\"`. Published 0.6.3 and earlier reject `id` and hide every doc topic your package ships, and `integration verify` fails without that peer; see {@link generic:versioning}."},{"type":"list","style":"unordered","items":["Replace the `Overview` placeholder `integration add` writes.","Every field is in {@link schema:reference-doc}."]}]},{"id":"write-commands-without-a-runner","title":"Write commands for every reader","content":[{"type":"prose","text":"Write an Astryx command as `{@@command doctor}` and a package-manager step as `{@@pm install @acme/widgets}`, never with a runner such as npx or pnpm exec, or a package manager's own command, in front. The CLI shows each one with the command the reader runs: `pnpm exec astryx doctor` or `yarn astryx doctor`, `pnpm add @acme/widgets` or `npm install @acme/widgets`, or the `cliCommand` an integration sets. {@link generic:doc-syntax} lists every token. A command written bare, the word astryx and a command, is shown the same way. `doctor integration validate` (and so `integration check`) names each command written another way, with the token that replaces it; {@link generic:doc-syntax} lists what it checks. An install step, which runs before the CLI is installed, is `{@@pm dlx @astryxdesign/cli init}`."},{"type":"code","lang":"javascript","label":"docs/deploying.doc.mjs","code":"{type: 'prose', text: 'Check the app with {@@command doctor} before you ship.'},\n{type: 'code', lang: 'bash', code: '{@@command doctor}'},"},{"type":"code","lang":"text","label":"Read in an app whose integration sets cliCommand: 'acme astryx'","code":"Check the app with `acme astryx doctor` before you ship.\n\n```bash\nacme astryx doctor\n```"},{"type":"list","style":"unordered","items":["The CLI prefixes an inline code span that starts with the word astryx, a command at the start of a line, or after `&&`, `||`, `;` or `|`, in a `bash`, `sh`, `shell`, `zsh`, `console`, `text` or `markdown` code block or one with no language, and a table cell that holds only a command.","Code in other languages, such as a `js` example, and the word astryx in plain prose stay as written.","`--json` returns the doc as written, so a reader that shows it prefixes the commands itself."]}]},{"id":"pick-the-doc-kind","title":"Pick the doc kind","content":[{"type":"prose","text":"Every doc is a `.doc.mjs` file whose `type` says what it describes. `integration add` writes the right `type` and file for each kind."},{"type":"table","headers":["You document","`type`","File that `integration add` writes"],"rows":[["A guide or topic","`'generic'`","`docs/deploying.doc.mjs`"],["Your package's docs section","`'namespace'`","`docs/acme.doc.mjs`"],["A component","`'component'`","`components/AcmeCarousel.doc.mjs`, beside `AcmeCarousel.tsx`"],["A template","`'page'` or `'block'`","`templates/acme-dashboard.doc.mjs`, beside `acme-dashboard.tsx`"],["A theme","`'theme'`","`themes/ocean/oceanTheme.doc.mjs`, beside `oceanTheme.ts`"]]},{"type":"prose","text":"Only guides, topics, and your docs section go in the `docs` root. The others have their own guides: {@link namespace:components}, {@link namespace:templates}, and {@link namespace:themes}."}]},{"id":"keep-topics-in-the-docs-root","title":"Keep topics in the docs root","content":[{"type":"prose","text":"The `docs` field in `astryx.integration.mjs` names the folder that holds your topics. The CLI reads every `.doc.mjs` file under it, in subfolders too."},{"type":"code","lang":"javascript","label":"astryx.integration.mjs","code":"export default {\n docs: './docs'\n};"},{"type":"list","style":"unordered","items":["Readers open a topic by its `name`, not its file name. Name the file after the doc, `<name>.doc.mjs`, so each one is easy to find.","A topic with no `placement` is a flat topic: the docs list shows it under Topics, and readers open it by its name.","For a section of your own in the docs tree, see {@link generic:sections-and-placement}."]}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: when users install your package for their computer, beside the global CLI, your doc topics show up in folders outside any project; inside a project, only if the project installs your package. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"cb060bf0cf6595f1602373625873b2d3":{"doc":{"type":"block","exampleFor":"TopNavItem","name":"TopNavItem","displayName":"Top Nav Item","description":"Demonstrates TopNavItem with selected, icon, disabled, and default states.","isReady":true,"isShowcase":true,"aspectRatio":3,"componentsUsed":["TopNav","TopNavItem"]}},"cb749447d32cb783fc9332991288856f":{"doc":{"type":"block","exampleFor":"Card","name":"Card — Layout","displayName":"Card — Layout","description":"A card with a structured header, content area, and footer with action buttons. Use for forms, dialogs, or settings panels that need clear sections. Pair Card with Layout to get automatic dividers between header, content, and footer. The footer aligns actions to the right by default.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Card","Layout","Button","Text"]}},"cba190db65470b036536bd3d91d0a24b":{"docs":{"type":"generic","name":"responsive","title":"Responsive","placement":{"parent":"namespace:layout","slot":"guides","order":50},"category":"guide","description":"Decide what each region does as width changes: divide, reveal, resize, or swap.","keywords":["breakpoints","useMediaQuery","Dialog","BottomSheet","contract","Grid","columns","minWidth"],"sections":[{"id":"breakpoints","title":"Breakpoints","content":[{"type":"prose","text":"Decide what each region does as width changes. Write the responsive contract down for every region before you call the layout done."},{"type":"list","style":"do","items":["Write the contract down for every region before you call the layout done","Decide per region whether it is revealed, resized, or swapped at each width","Drop a region rather than let it compete for width it does not have"]},{"type":"list","style":"dont","items":["Hold three regions at a width where none of them has usable space","Shrink every region uniformly instead of swapping or dropping one","Wire a breakpoint in CSS that the contract comment never mentions"]}]},{"id":"responsive-contract","title":"Responsive contract","content":[{"type":"prose","text":"Lock what each region does as width changes, and pair every line of the contract with the prop or hook that enforces it."},{"type":"list","style":"unordered","items":["Divide: how many regions survive at each width","Reveal: which regions earn their width only when there is room, and open on demand below that","Resize: content flexes while fixed regions hold their budgets, and text stays capped by contentWidth so line length holds","Swap: navigation becomes MobileNav at the AppShell mobileNav breakpoint; the side panel becomes a Dialog or BottomSheet, driven by useMediaQuery"]},{"type":"code","lang":"tsx","label":"Contract wired to props","code":"// Recommended thresholds: 3 regions above 1024, 2 from 768,\n// 1 below. Text reads best at 40–60 characters per line.\n// >1024 SideNav 256 | content | side panel 380\n// <=1024 panel moves to a Dialog (useMediaQuery)\n// <=768 nav collapses to MobileNav (mobileNav \"md\")\nconst isNarrow = useMediaQuery('(max-width: 1024px)');\n\n<AppShell sideNav={<SideNav />} mobileNav={{breakpoint: 'md'}}>\n <Layout\n content={<LayoutContent>{/* rows */}</LayoutContent>}\n end={isNarrow ? undefined : <LayoutPanel width={380} hasDivider />}\n />\n</AppShell>"},{"type":"prose","text":"Verify: every contract line names a mechanism, so the comment cannot drift from the behavior."}]},{"id":"columns-that-reflow","title":"Columns that reflow","content":[{"type":"prose","text":"For columns that reflow on small screens, use `Grid columns={{minWidth, max}}`. A numeric `columns` is exactly N columns at every width and never reflows: `columns={4}` on a 390px phone renders four tracks under 100px wide, and the row overflows the page as soon as their content cannot shrink to fit. `{minWidth: 240, max: 4}` renders at most four columns, each at least 240px, and drops to one full-width column when the container is narrow; `max` is what lets that last column shrink to the container, and `gap` counts toward the room the columns need."},{"type":"code","lang":"tsx","label":"Reflowing stat row versus a fixed week row","code":"// Reflows: 4 columns on desktop, 3 in a 768px-wide grid, 1 on a phone.\n<Grid columns={{minWidth: 240, max: 4}} gap={3}>\n {stats.map(stat => <StatCard key={stat.id} {...stat} />)}\n</Grid>\n\n// Fixed: exactly 7 columns at every width (a number never reflows).\n<Grid columns={7} gap={1}>\n {days.map(day => <DayCell key={day} day={day} />)}\n</Grid>"},{"type":"list","style":"unordered","items":["`{minWidth}` alone: as many columns as fit at the floor, no cap; a container narrower than `minWidth` overflows, so add `max` for anything that reaches a phone","`{minWidth, repeat: 'fit'}`: empty tracks collapse so present items stretch","A numeric `GridSpan` wider than the grid's current columns adds implicit columns to the whole grid; items placed before and after the span flow into them, and `columns='full'` then covers only the explicit columns. In a reflowing grid keep spans within the smallest count it can reach, or use `'full'`, which adds none","Styling that changes the room columns have to fit changes the count a reflowing shape reaches: a `columnGap` or `gap` step, inline padding on the grid, or `grid-auto-flow: column` through `xstyle`, which places items into extra implicit columns. A `className` rule replaces the computed track list only when it wins the cascade against the generated styles; prefer `xstyle` for overrides"]}]}]}},"cbb868906b8a13b22fea06fd607effe4":{"docs":{"type":"generic","name":"tokens-ease","title":"Easing Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":110},"category":"foundations","description":"Easing curves for animations and transitions. Of a theme's two `motion` knobs, `character` sets `--ease-entrance` and `--ease-move`: `crisp` decelerates without overshoot, `expressive` overshoots slightly, and at `standard` both equal `--ease-standard`; `--ease-exit` keeps its own curve at every character. `tempo` leaves curves alone. A duration scale's own fields win over the knobs, and explicit `tokens` win over everything. No curve here shapes motion that follows a finger or the system (dragging, momentum, the rubber band, the on-screen keyboard), and the press's clocks, hover-intent delays and gesture thresholds keep their timing whatever the character.","sections":[{"title":"Easing Tokens","content":[{"type":"prose","text":"Easing curves for animations and transitions. Of a theme's two `motion` knobs, `character` sets `--ease-entrance` and `--ease-move`: `crisp` decelerates without overshoot, `expressive` overshoots slightly, and at `standard` both equal `--ease-standard`; `--ease-exit` keeps its own curve at every character. `tempo` leaves curves alone. A duration scale's own fields win over the knobs, and explicit `tokens` win over everything. No curve here shapes motion that follows a finger or the system (dragging, momentum, the rubber band, the on-screen keyboard), and the press's clocks, hover-intent delays and gesture thresholds keep their timing whatever the character."},{"type":"table","headers":["Token","Core default"],"rows":[["--ease-standard","cubic-bezier(0.24, 1, 0.4, 1)"],["--ease-entrance","cubic-bezier(0.24, 1, 0.4, 1)"],["--ease-move","cubic-bezier(0.24, 1, 0.4, 1)"],["--ease-exit","cubic-bezier(0.3, 0, 0.6, 0.6)"]]}],"previewType":"easing-curve"}]}},"cbc7506b01aebda23a8a1f562e373ba4":{"docs":{"type":"generic","name":"versioning","placement":{"parent":"namespace:ship","slot":"guides","order":30},"title":"Versioning","category":"guide","keywords":["peer dependency","semver","cli version"],"description":"Version your package, declare its peers, and keep apps on older CLIs working.","sections":[{"id":"pick-a-version","title":"Pick a version","content":[{"type":"prose","text":"Version your package with semver: a major version for a breaking change, a minor version for a new feature, and a patch for a fix."},{"type":"code","lang":"bash","code":"# 1.0.0 -> 2.0.0: a breaking change\n{@pm-only npm \"npm, which every Node install carries, sets the version\" version major}\n# 1.0.0 -> 1.1.0: a new feature\n{@pm-only npm \"npm, which every Node install carries, sets the version\" version minor}\n# 1.0.0 -> 1.0.1: a fix\n{@pm-only npm \"npm, which every Node install carries, sets the version\" version patch}"},{"type":"list","style":"unordered","items":["Before 1.0.0, npm treats each minor version as breaking: an app that asks for `^0.6.0` never gets `0.7.0`. Bump the minor version for a breaking change, and the patch for anything else.","Ship a codemod with each breaking change so apps can migrate; see {@link generic:codemods}."]}]},{"id":"know-what-breaks-apps","title":"Know what breaks apps","content":[{"type":"prose","text":"A breaking change stops code, commands, or links that worked in an app from working after the upgrade. For an integration, these names are part of its API."},{"type":"table","headers":["You change or remove","What stops working in the app"],"rows":[["A component name, such as `AcmeCarousel`","Imports, and `{@command component AcmeCarousel}`"],["A template id, such as `acme-dashboard`","`{@command template acme-dashboard}`"],["A theme slug, such as `ocean`","`{@command theme add ocean}`"],["A topic name or route, such as `acme/deploying`","Reads of the old name, and links to it from other docs"],["A component's `import` path","Imports written from the old path"],["An `exports` entry","Imports of that path, which fail with `ERR_PACKAGE_PATH_NOT_EXPORTED`"],["A prop","Code that passes it"]]},{"type":"prose","text":"List each breaking change in your release notes, with the codemod that migrates it. Any changelog tool works. If `package.json` has a `files` allowlist, add `CHANGELOG.md` to it so npm packs it."}]},{"id":"declare-peer-ranges","title":"Declare peer ranges","content":[{"type":"prose","text":"Declare the Astryx packages that your code imports as peer dependencies, in `peerDependencies`, so the app installs one copy of each. Keep each range as wide as your tests prove."},{"type":"table","headers":["Peer","Declare it when","Range"],"rows":[["`@astryxdesign/core`","Your code imports Core, as a theme does with `@astryxdesign/core/theme`","The Core versions you test, such as `^0.6.0`"],["`@astryxdesign/theme-*`","Your code imports that theme package","The versions you test"],["`@astryxdesign/cli`","You ship a docs section, a placed guide, a template that sets `replaces` or `keywords`, a component that sets `replaces`, a doc section with an `id`, or a theme","`>=0.6.6` when you ship a template that sets `keywords`, `>=0.6.7` when a component sets `replaces`, otherwise `>=0.6.4`. Optional in `peerDependenciesMeta`"]]},{"type":"code","lang":"json","code":"{\n \"peerDependencies\": {\n \"@astryxdesign/core\": \"^0.6.0\",\n \"@astryxdesign/cli\": \">=0.6.4\"\n },\n \"peerDependenciesMeta\": {\n \"@astryxdesign/cli\": {\"optional\": true}\n }\n}"},{"type":"prose","text":"`integration verify` fails a package that needs the CLI peer and lacks it, or whose range admits a stable CLI too old for what it ships. `integration add doc --parent` and `integration add theme` write the peer for you."},{"type":"prose","text":"When the CLI is outside that range, `doctor integration validate` and `integration check` list a `cli_peer_version` note naming your package. A note fails nothing, `--strict` included, and `integration verify` does not report it. Below the range the note gives the commands that install a newer Core and CLI together, as dev dependencies in your own package folder, and then run `upgrade --apply`. Above it, in an app the note asks for a release of your package that supports that CLI, and in your own package folder it asks you to test your package with that CLI and widen the range."}]},{"id":"support-older-clis","title":"Support older CLIs","content":[{"type":"prose","text":"An app may run an older CLI than the one you build with. A CLI reads what it knows and skips the rest, but some newer files make an older CLI hide your docs."},{"type":"list","style":"unordered","items":["An unknown field in `astryx.integration.mjs` is ignored with an `unknown_manifest_key` warning, and the rest of the manifest still loads.","A named export that the CLI does not know is ignored with no warning, so `debug` and `gapReport` are safe to add.","Published 0.6.3 and earlier print each `{@link ...}` as written.","Published 0.6.3 and earlier reject a template that sets `replaces` or `keywords`, drop that template, and hide every doc topic your package ships. Published 0.6.4 and 0.6.5 still drop a template that sets `keywords`.","Published 0.6.3 and earlier cannot read a docs section, a section `id`, or a theme folder that `integration add theme` writes. They can then hide every doc topic your package ships.","Published 0.6.2 and 0.6.3 still load your components, but published 0.6.0 and 0.6.1 cannot read the component docs that `integration add component` writes: `component AcmeCarousel` fails there.","An app on an older CLI lists a component whose doc names another export of its file under the file name, and lists no family members, so `component AcmeCarousel` fails there."]},{"type":"prose","text":"`integration verify` requires the CLI peer for a docs section, a placed guide, a template `replaces` or `keywords`, a doc section with an `id`, and a theme. A CLI too old for one of them cannot read it, and when it hides your topics, `docs` gives no warning."}]},{"id":"codemods-and-versions","title":"Name codemod folders after Core versions","content":[{"type":"prose","text":"Name each codemod folder after the Core version whose upgrade should run it, not after your package's version. Which folders an app runs, and when, is in \"Choose when a codemod runs\" in {@link generic:codemods}."}]}]}},"cc6b5340c9df0aa573e55e8fa0ee2740":{"doc":{"type":"block","exampleFor":"AspectRatio","name":"AspectRatio — Square Image","displayName":"AspectRatio — Square Image","description":"1:1 square aspect ratio, ideal for avatars and Instagram-style images.","isReady":true,"aspectRatio":1,"componentsUsed":["AspectRatio","Center"]}},"cc6dd794bf021319dfda2914e9cec112":{"doc":{"type":"block","exampleFor":"Kbd","name":"Kbd — Inline Instructions","displayName":"Kbd — Inline Instructions","description":"Keyboard shortcuts rendered inline within instructional text","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Kbd","VStack","Text"]}},"cca351c053f9abb9a0fcefb06866a991":{"doc":{"type":"block","exampleFor":"Layout","name":"Layout — Dual Panel","displayName":"Layout — Dual Panel","description":"A file browser style layout with start panel for folders, main content for files, and end panel for details.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Layout","LayoutHeader","LayoutContent","LayoutPanel","Card","VStack","Text","Heading","List","ListItem"]}},"cccaa7ba42a9e1c3e916d6dc63d6dfc2":{"docs":{"name":"working-with-ai","title":"Working with AI","category":"guide","description":"How to set up AI coding tools to generate correct component code.","keywords":["claude","cursor","codex","copilot","agents","mcp"],"sections":[{"title":"Overview","content":[{"type":"prose","text":"The design system is built to be AI-friendly: consistent naming, predictable prop patterns, and a CLI that feeds structured documentation directly into AI context windows. But models still need the right context to avoid falling back to generic React patterns or inventing props."},{"type":"prose","text":"The CLI includes a built-in agent docs system that generates context files for your AI tool of choice. One command sets up everything your AI needs to write correct component code."}]},{"id":"quick-start","title":"Set up agent docs","content":[{"type":"prose","text":"Tell your AI to install the CLI and set itself up:"},{"type":"code","lang":"text","label":"Paste this into your AI","code":"Install @astryxdesign/cli and run `astryx init --features agents` to set up your Astryx context. Read the generated file."},{"type":"prose","text":"That's it. The `init --features agents` command generates everything your AI needs (component index, behavioral rules, CLI reference, and package guidance from configured integrations) from the installed project. After a dependency bump, `{@command upgrade --from <old version>}` reports a stale block and adding `--apply` refreshes it."},{"type":"prose","text":"By default this writes the instructions to `AGENTS.md` (the tool-agnostic standard most agents read), in the project root: the nearest folder whose `package.json` declares an Astryx package, else the nearest with any `package.json`. The search stops at the repository root. In the home folder, or in a settings folder in it outside a project, init writes no agent docs: every folder of the home folder whose name starts with a dot (`~/.claude`, `~/.gemini`, `~/.codex`) is a settings folder, and such a folder itself never counts as a project, even with a `package.json`; a project below it with its own `package.json`, such as an agent worktree, is set up normally. Claude Code skips `AGENTS.md` when the project has a `CLAUDE.md` or `.claude/CLAUDE.md`, so init also writes them to that file, even when it imports `AGENTS.md`: Claude Code does not follow that import in a session started in a subfolder. When both files exist, root `CLAUDE.md` gets the copy and a copy in `.claude/CLAUDE.md` is removed, unless the project ignores `CLAUDE.md`, in which case a `.claude/CLAUDE.md` the project commits keeps a copy. Gemini CLI reads only `GEMINI.md`, so init adds a one-line import of `AGENTS.md` there, unless `GEMINI.md` already imports it. `upgrade` keeps the copies in sync. The block between the Astryx markers belongs to Astryx: init and `upgrade` write, refresh, and remove it whatever the project's ignore rules or generated markers say, and never change the text around it. To target a specific tool's file instead:"},{"type":"code","lang":"bash","label":"Manual options","code":"{@command init --features agents --agent claude} # CLAUDE.md if present, else .claude/CLAUDE.md\n{@command init --features agents --agent cursor} # .cursorrules if present, else AGENTS.md\n{@command init --features agents --agent codex} # AGENTS.md (Copilot, Codex, etc.)\n{@command init --features agents --agent hermes} # .hermes.md or HERMES.md if present, else AGENTS.md\n{@command init --features agents --agent muse} # AGENTS.md (Muse)\n{@command init --features agents --agent all} # every agent file present except GEMINI.md, else AGENTS.md and .claude/CLAUDE.md"},{"type":"prose","text":"With `--agent all`, `GEMINI.md` keeps its one-line import of `AGENTS.md`. With `--agent claude` or `--agent all`, as by default, when `CLAUDE.md` gets the instructions, `.claude/CLAUDE.md` gets none and a copy already there is removed, unless the project ignores `CLAUDE.md`: a fresh clone does not have it, so a `.claude/CLAUDE.md` the project commits gets a copy too, with `--agent claude` and `--agent all` alike. `init --remove-agents` removes them at the project root and in the folder it runs in."},{"type":"prose","text":"For agents that work outside any one project, your global install keeps one short Astryx skill, `~/.agents/skills/astryx/SKILL.md`, linked into the skill folders agent tools read, such as `~/.claude/skills/astryx`. It tells agents Astryx is there and when to use it; `{@command init --user}` writes it now or, with `--remove-agents`, turns it off. Inside a project, agents follow that project's own agent docs. See {@link generic:computer-agent-guide}."}]},{"title":"What Gets Generated","content":[{"type":"prose","text":"The generated context teaches your AI a 3-step workflow before writing any UI code:"},{"type":"list","style":"ordered","items":["`{@command build \"<idea>\"}`: get the page template to start from (always one: the closest match, or the app shell), two other templates, and the blocks and components for the parts it lacks","`{@command template <name> <path>}`: scaffold that template into the project, keep its frame and spacing, and replace its content","`{@command component <Name>}`: read props and examples for every component used"]},{"type":"prose","text":"It also includes rules that prevent common mistakes (start every page from a template, no raw divs, no style={{}}, use tokens not magic values), a CLI quick reference, and package-labeled integration guidance when a configured manifest declares `agentDocs`. After setup, you shouldn't need to manually correct your AI on these conventions; the agent docs handle it at the system level."}]},{"title":"Cursor Setup","content":[{"type":"prose","text":"Cursor reads project rules from `.cursor/rules/`. To keep the Astryx context in a rule of its own, write it there. Give a path relative to the project root, such as `.cursor/rules/astryx.mdc`; an absolute path is refused."},{"type":"code","lang":"bash","label":"Install as a Cursor project rule","code":"{@command init --features agents --agent-docs-path .cursor/rules/astryx.mdc}"},{"type":"prose","text":"Rerunning the same command rewrites only the Astryx block, so frontmatter you add above it (such as `alwaysApply: true`) stays."}]},{"title":"Checking Your Setup","content":[{"type":"prose","text":"Paste this into your AI before writing any component code. If your AI can't answer these questions, it'll know to install the agent docs first."},{"type":"code","lang":"text","label":"Paste this into your AI","code":"Before writing any Astryx code, check your knowledge:\n\n1. What is the correct import path for Button?\n2. How do you make a Dialog non-dismissible?\n3. What prop does Selector use for its items?\n\nIf you don't know all three, run `astryx init --features agents` to generate agent docs, then read the generated file."}]},{"title":"The astryx Pattern","content":[{"type":"prose","text":"AI agents frequently invoke the CLI with incorrect paths (e.g. node_modules/@astryxdesign/cli/bin/docs.mjs instead of astryx.mjs), leading to silent failures. Adding an npm script alias with the correct path eliminates this entirely."},{"type":"code","lang":"json","label":"package.json","code":"\"scripts\": {\n \"astryx\": \"node node_modules/@astryxdesign/cli/clients/cli/bin/astryx.mjs\"\n}"},{"type":"prose","text":"With this alias, agents run `npm run astryx -- component --list` instead of guessing the binary path. The `--` separator is standard npm convention for passing flags to scripts."},{"type":"code","lang":"bash","label":"Reliable CLI invocation","code":"npm run astryx -- component --list\nnpm run astryx -- component Dialog --dense\nnpm run astryx -- docs styling --full --detail brief\nnpm run astryx -- docs tokens --dense"}]},{"id":"the-dense-flag","title":"Shorter output: --detail and --dense","content":[{"type":"prose","text":"For a shorter read, add `--detail brief` (one line per section) or `--detail compact`. `--dense` swaps in a shorter text where a doc ships one. Use them when pasting CLI output into a web-based AI tool like ChatGPT or Claude."},{"type":"code","lang":"bash","label":"Short output for pasting into AI conversations","code":"{@command docs styling --full --detail brief}\n{@command component Dialog --detail compact}\n{@command docs principles --dense}"}]},{"title":"MCP Server","content":[{"type":"prose","text":"Astryx ships a Model Context Protocol (MCP) server that any MCP-compatible AI tool can connect to. Instead of manually pasting CLI output, the AI can query the Astryx design system directly, searching for components, reading full documentation, and pulling code examples on demand."},{"type":"prose","text":"The MCP server exposes two tools: search(query) for discovering components, doc topics, and templates; and get(name) for retrieving full documentation with props, usage, and examples."},{"type":"prose","text":"Add the server to your MCP config file. The entry is a remote HTTP server, and the exact shape differs per client, so use the snippet for the tool you run. An entry with an unrecognized transport is skipped with a warning rather than an error, which reads as a server that connects but exposes no tools."},{"type":"code","lang":"json","label":"Claude Code (.mcp.json)","code":"{\n \"mcpServers\": {\n \"astryx\": {\n \"type\": \"http\",\n \"url\": \"https://astryx.atmeta.com/mcp\"\n }\n }\n}"},{"type":"prose","text":"Claude Code can also write that entry from the terminal:"},{"type":"code","lang":"bash","code":"claude mcp add --transport http astryx https://astryx.atmeta.com/mcp"},{"type":"code","lang":"json","label":"Cline (cline_mcp_settings.json) - type is streamableHttp","code":"{\n \"mcpServers\": {\n \"astryx\": {\n \"type\": \"streamableHttp\",\n \"url\": \"https://astryx.atmeta.com/mcp\"\n }\n }\n}"},{"type":"code","lang":"json","label":"Cursor (.cursor/mcp.json) - remote servers take no type field","code":"{\n \"mcpServers\": {\n \"astryx\": {\n \"url\": \"https://astryx.atmeta.com/mcp\"\n }\n }\n}"},{"type":"prose","text":"Claude Desktop is the exception: claude_desktop_config.json holds local stdio servers, so a remote server is added through Settings, then Connectors, then Add custom connector, pasting the URL above."},{"type":"prose","text":"Once connected, your AI tool can search for components by natural language (e.g. \"dropdown menu\", \"success message\") and retrieve full documentation without any manual CLI invocation. The server uses the same keyword index from component docs, so search quality improves automatically as component documentation is updated."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: your global install keeps one Astryx skill in your home folder, linked into the folders agent tools read, so agents outside any project know Astryx is there; inside a project, its own agent docs come first. See {@link namespace:global} and {@link generic:computer-agent-guide}."}]}]}},"ccd7dbdd22b7a6a4fe066e0769d657d9":{"doc":{"type":"block","exampleFor":"ResizeHandle","alsoExampleFor":["useResizable"],"name":"Resizable — Collapsible with snap points","displayName":"Resizable — Collapsible with snap points","description":"A collapsible sidebar with snap points, driven by useResizable. Dragging snaps to preset widths, dragging past the minimum collapses the panel, and the expand method restores it programmatically.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Resizable","ResizeHandle","Layout","LayoutPanel","LayoutContent","Card","VStack","Button","Text"]}},"ccf7c5797039270fa7c84e1b32cb2218":{"doc":{"type":"block","exampleFor":"Toolbar","name":"Toolbar — Bulk Actions","displayName":"Toolbar — Bulk Actions","description":"A compact toolbar with the muted variant for showing bulk selection actions. Use when the user selects multiple items in a list or table and needs quick access to batch operations.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toolbar","Button","Icon","Badge","Table"],"icons":{"ArchiveBoxIcon":"archive","TrashIcon":"delete"}}},"cd29205cffd7f6bf2bb0dd63c56cd69f":{"doc":{"type":"block","exampleFor":"ButtonGroup","name":"ButtonGroup","displayName":"Button Group","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Button","ButtonGroup","Icon","IconButton","Layout"],"icons":{"ChevronDownIcon":"chevronDown","ClipboardDocumentIcon":"copy","ClipboardIcon":"clipboard","ScissorsIcon":"cut"}}},"cd4daff69ae2046922adfc5663cd7c55":{"docs":{"type":"generic","name":"i18n-rtl-and-testing","title":"RTL & Testing","placement":{"parent":"namespace:internationalization","slot":"guides","order":30},"category":"guide","description":"Text direction (RTL), pseudo-locale testing, and contributor guidance for developers and translators.","keywords":["dir","pseudo locale","testing","Crowdin","logical properties"],"sections":[{"title":"Text direction (RTL)","content":[{"type":"prose","text":"Astryx tracks text direction (`'ltr'` or `'rtl'`) alongside the locale. By default the direction is derived from the `locale` you pass to `<InternationalizationProvider>` via [`Intl.Locale.getTextInfo()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo), so RTL locales such as Arabic (`ar`), Hebrew (`he`), Farsi (`fa`), and Urdu (`ur`) resolve to `'rtl'` automatically."},{"type":"prose","text":"You don't wire anything per component. Once the direction is set, astryx components mirror on their own: layout and spacing flip via CSS logical properties, directional icons (chevrons, carets) flip in place, keyboard arrow keys swap left/right, and overlays position on the correct side. Set the direction once and the whole component tree follows."},{"type":"code","lang":"tsx","label":"Direction derived from locale","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\n\n// direction resolves to 'rtl' automatically from the Arabic locale\n<InternationalizationProvider locale=\"ar\">\n <App />\n</InternationalizationProvider>;"},{"type":"prose","text":"Pass the optional `dir` prop to force a direction. This overrides the locale-derived default; useful for RTL layout testing under an English catalog, or to skip derivation when you already know the direction."},{"type":"code","lang":"tsx","label":"Explicit direction override","code":"// force RTL layout while keeping English strings\n<InternationalizationProvider locale=\"en\" dir=\"rtl\">\n <App />\n</InternationalizationProvider>;"},{"type":"prose","text":"There's one more step: tell the browser about the direction too. Add a `dir` attribute to your page; usually on the `<html>` tag. This is what makes text align to the correct side, punctuation and mixed-language text flow correctly, and layouts mirror. The provider handles astryx components; the `dir` attribute handles everything else on the page."},{"type":"prose","text":"Astryx doesn't set `dir` for you; you set it, alongside the same direction you pass to the provider. If your app is server-rendered (like Next.js), the `getLocaleDirection()` helper computes the direction from a locale so you can set it while the page renders:"},{"type":"code","lang":"tsx","label":"Set <html dir> in a Next.js root layout","code":"import {getLocaleDirection} from '@astryxdesign/core/i18n';\n\nexport default function RootLayout({children, params}) {\n const {locale} = params;\n return (\n <html lang={locale} dir={getLocaleDirection(locale)}>\n <body>{children}</body>\n </html>\n );\n}"},{"type":"prose","text":"In a plain client app, set the same attribute on `<html>` whenever the locale changes. (`getLocaleDirection()` safely returns `'ltr'` for anything it doesn't recognize, so you can call it with any locale string.)"},{"type":"prose","text":"To make just one part of a left-to-right page right-to-left; say an Arabic quote or a comment thread; wrap that part in its own `<InternationalizationProvider dir=\"rtl\">` and add `dir=\"rtl\"` to the element around it. Pop-up overlays; menus, dialogs, popovers, tooltips; opened from inside that region mirror too: they position with logical CSS anchor placement, so they land on the correct side and inherit the region's direction automatically."}]},{"title":"Testing your translations","content":[{"type":"prose","text":"Astryx generates a `pseudo` locale that wraps every string in `⟦…⟧` and replaces letters with accented look-alikes. Turn it on in development to catch hardcoded astryx strings and layout issues caused by longer text."},{"type":"code","lang":"tsx","label":"Turn on pseudo-localization","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\nimport pseudo from '@astryxdesign/core/locales/pseudo.generated.js';\n\n<InternationalizationProvider locale=\"pseudo\" messages={{pseudo}}>\n <App />\n</InternationalizationProvider>;"}]},{"title":"For contributors","content":[{"type":"heading","level":3,"text":"Developers"},{"type":"prose","text":"Astryx component authors read strings with `useTranslator()` rather than hardcoding user-facing text."},{"type":"code","lang":"tsx","label":"Read an astryx string","code":"import {useTranslator} from '@astryxdesign/core/i18n';\n\nfunction SaveButton() {\n const t = useTranslator();\n return <button>{t('@astryx.actions.save')}</button>;\n}"},{"type":"prose","text":"Astryx's own strings live in `packages/core/locales/en.json`. New user-facing strings must go through `useTranslator`; this is enforced by the `@astryx/no-hardcoded-i18n-string` ESLint rule. See the AI contribution guide for the alias-and-resolve pattern used when adding new keys."},{"type":"prose","text":"When you author a component that needs to respond to direction, resolve it from the DOM, not from a render-time JavaScript read, and reach for the lightest tool that works. In priority order:"},{"type":"heading","level":4,"text":"1. CSS logical properties first"},{"type":"prose","text":"Use `insetInlineStart`, `paddingInlineEnd`, `marginInline`, and friends instead of physical `left`/`right`. Most mirroring needs nothing more; the browser flips it from the ambient `dir`. The `@astryx/no-physical-properties` ESLint rule enforces this."},{"type":"heading","level":4,"text":"2. Directional icons: mirror with CSS, not a name-swap"},{"type":"prose","text":"Render one fixed glyph and wrap it in the shared `rtlStyles.mirror` (a `scaleX(-1)` that only applies under `[dir=\"rtl\"]`). It flips from the ancestor `dir` through the cascade, so it works on the server with no hydration flash. Do not pick `chevronLeft` vs `chevronRight` in JS. This is how Pagination, Calendar, and Carousel handle their chevrons."},{"type":"code","lang":"tsx","label":"Mirror a directional icon with CSS","code":"import * as stylex from '@stylexjs/stylex';\nimport {rtlStyles} from '@astryxdesign/core';\n\nfunction NextButton() {\n // One glyph; CSS flips it under RTL. No direction read.\n return (\n <span {...stylex.props(rtlStyles.mirror)}>\n <Icon icon=\"chevronRight\" />\n </span>\n );\n}"},{"type":"heading","level":4,"text":"3. Behavioral logic: read the DOM lazily, on the event"},{"type":"prose","text":"For things CSS can't express; keyboard arrow-key mapping, drag/scroll math; read direction at interaction time with `isRtlElement(el)` (a `getComputedStyle().direction` check), never during render. The focus primitives (`useListFocus`, `useGridFocus`, `useTreeFocus`) already auto-detect direction from their container, so arrow keys flip for free; don't pass a direction flag to them."},{"type":"heading","level":4,"text":"4. useDirection() context: the last resort"},{"type":"prose","text":"Reach for it only when you genuinely need the direction value during render and none of the above fit. It's SSR-safe and returns `'ltr'` outside a provider (matching `useTranslator`'s silent fallback), but it's the one path that can mismatch on hydration if the provider's `direction` disagrees with `<html dir>`; so prefer the options above, which resolve purely from the DOM. As of the CSS-mirror migration, no astryx component reads direction from context at render time."},{"type":"heading","level":3,"text":"Translators"},{"type":"prose","text":"Crowdin is the preferred way to contribute; [join a language](https://crowdin.com/project/astryx), translate strings in the web UI, and your work syncs back to the repo without opening a PR. Direct PRs against `packages/core/locales/*.json` also work if you prefer that flow."}]}]}},"cd6480988f8c414646119df0618cbc5c":{"doc":{"type":"block","exampleFor":"Button","name":"Button — Floating","displayName":"Button — Floating","description":"A floating action button raised with `elevation=\"med\"`. Use elevation for buttons that hover above content, like a FAB.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Icon","Layout","Text"],"icons":{"PlusIcon":"add"}}},"cda2093a76e8988acddac50ec0254fa1":{"default":{"type":"icon-definition","name":"audio","description":"Sound or volume.","words":["sound","volume","speaker","speaker wave"]}},"cdacd5ac82660a3de8262bdbc195bcb1":{"doc":{"type":"block","exampleFor":"ChatMessageBubble","name":"ChatMessageBubble — Metadata","displayName":"ChatMessageBubble — Metadata","description":"Bubbles with name and metadata slots aligned to bubble padding. Put name on the first bubble and metadata on the last bubble in a message.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Avatar","Timestamp","Text","Button","Icon","Layout"]}},"cdc26ac092ad44756880ec52d7fcde73":{"doc":{"type":"block","exampleFor":"InternationalizationProvider","name":"Show Calendar and DateInput in another calendar","displayName":"Internationalization Provider — Calendar","registry":{"slug":"calendar"},"description":"Set the `calendar` prop and the `Calendar` and `DateInput` inside the provider show that calendar system. The value stays a Gregorian ISO date. Japanese and Buddhist dates work in every browser; calendars such as Persian or Hebrew also need `Temporal` or a polyfill.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["InternationalizationProvider","Calendar","DateInput","SegmentedControl","Layout","Text"]}},"ce1f1df6b6aa795d329a75431ecaf48a":{"default":{"type":"icon-definition","name":"integration","description":"A connected app, plugin, or extension.","words":["plugin","extension","add-on","connected app"]}},"ce2915cc9a38d76773a8d71300aa4043":{"default":{"type":"icon-definition","name":"compose","description":"Write something new, such as a message or post.","words":["write","new message","draft","square pen","pencil square"]}},"ce821303cd0c320fb787456f08bf57c1":{"doc":{"type":"block","exampleFor":"Blockquote","name":"Blockquote — Testimonials","displayName":"Blockquote — Testimonials","description":"Multiple quotes arranged in a card grid for a testimonials section. Combine with Card and Grid to create social-proof layouts.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Blockquote","Card","Grid","GridSpan"]}},"cebdb076901e28491ba098a891989348":{"doc":{"type":"block","exampleFor":"DateTimeInput","name":"DateTimeInput","displayName":"Date Time Input","description":"A combined date and time picker. Desktop opens a calendar popover with a time input; touch devices open a Date/Time bottom sheet.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["DateTimeInput","Layout"]}},"ced11dde3901552b22940ae75c593d2f":{"docs":{"type":"generic","name":"fonts-and-assets","placement":{"parent":"namespace:themes","slot":"guides","order":35},"title":"Fonts and assets","category":"guide","description":"Name the fonts in the theme, then export an optional font stylesheet that `theme add` imports with the built theme.","sections":[{"id":"name-the-font","title":"Name the font","content":[{"type":"prose","text":"A theme names its typefaces in `typography`: `body`, `heading`, and `code`, each with a `family` and `fallbacks`. These set the `--font-family-*` tokens every component reads. Always give real `fallbacks` so text stays readable before the font loads, or if it never does. `heading` inherits `family` and `fallbacks` from `body` when you omit them."},{"type":"code","lang":"ts","code":"// themes/ocean/oceanTheme.ts\nexport const oceanTheme = defineTheme({\n name: 'ocean',\n typography: {\n body: {family: 'Acme Sans', fallbacks: 'system-ui, sans-serif'},\n code: {family: 'Acme Mono', fallbacks: 'ui-monospace, monospace'},\n },\n // ...your tokens\n});"},{"type":"prose","text":"The full type scale and font roles are in {@link generic:author-a-theme}."}]},{"id":"ship-the-font-loader","title":"Ship the font loader","content":[{"type":"prose","text":"Naming a family does not load it. When the theme uses non-system fonts, add `<slug>.fonts.css` beside the built module and production CSS, then export it as `./themes/<slug>.fonts.css`. `theme add` imports that stylesheet with the built theme."},{"type":"code","lang":"json","code":"\"exports\": {\n \"./themes/ocean\": \"./themes/ocean/ocean.js\",\n \"./themes/ocean.css\": \"./themes/ocean/ocean.css\",\n \"./themes/ocean.fonts.css\": \"./themes/ocean/ocean.fonts.css\"\n}"},{"type":"prose","text":"The stylesheet can contain self-hosted `@font-face` rules or import a hosted stylesheet. A hosted `@import` is simple, but it delays loading compared with a preconnected `<link>`; choose that trade-off deliberately. Doctor warns when it cannot prove the loader — a hosted `@import`, or no font stylesheet while the app loads the family itself — but the warning does not fail the app."},{"type":"code","lang":"css","code":"/* themes/ocean/ocean.fonts.css */\n@font-face {\n font-family: 'Acme Sans';\n src: url('./fonts/acme-sans.woff2') format('woff2');\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n unicode-range: U+0000-00FF, U+0131, U+0152-0153;\n}"},{"type":"list","style":"unordered","items":["Load every weight and style the theme uses. Do not let the browser synthesize bold or italic.","Include self-hosted font files and their licenses in the packed package.","Keep CSS and font assets side-effectful so a bundler does not remove the loader.","Run `integration verify`; it fails when an exported font stylesheet cannot resolve, but it does not check the font files the stylesheet names."]}]},{"id":"verify-in-an-app","title":"Verify in an app","content":[{"type":"prose","text":"Before publishing, run `integration verify`. Then install the package in a clean app, run `theme add`, apply the generated theme, and open it in a browser. The source, packed exports, and applied result form one chain; check the last step too."},{"type":"list","style":"unordered","items":["Text renders in the named families at every weight and style — the italic face resolves, not a synthesized slant.","Every font request succeeds; nothing silently falls back to a system font.","Color pairs still meet contrast in both light and dark mode."]}]}]}},"cfc4425e505fde02b990539edadfc3ae":{"doc":{"type":"block","exampleFor":"AppShell","name":"AppShell — Top Nav Only","displayName":"AppShell — Top Nav Only","description":"Simple layout with TopNav and no side navigation, suitable for landing pages.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AppShell","TopNav","Heading","Text","VStack","NavIcon"],"icons":{"CubeIcon":"package"}}},"cfd9d0e517134efeab56bcda2bf88ab4":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar","displayName":"Avatar","description":"Avatars at every size with an image, initials fallback, and a status dot. A quick visual reference for choosing the right size.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout"]}},"d022fba62265d0391bf621b0109cd093":{"doc":{"type":"block","exampleFor":"StatusDot","name":"StatusDot — Pulsing","displayName":"StatusDot — Pulsing","description":"Animated pulsing dots for live, processing, and error states.","isReady":true,"aspectRatio":1.7777777777777777,"scale":1,"componentsUsed":["StatusDot","HStack"]}},"d08eb959df6c155e46b6a0cbd7ddba36":{"doc":{"type":"block","exampleFor":"AlertDialog","alsoExampleFor":["useImperativeAlertDialog"],"alsoShowcaseFor":["useImperativeAlertDialog"],"name":"AlertDialog — Delete","displayName":"AlertDialog — Delete","description":"A delete button that asks the user to confirm before deleting.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AlertDialog"]}},"d0a47fa650e2dc1369716026aee7bffb":{"doc":{"type":"block","exampleFor":"SideNavHeading","name":"SideNavHeading","displayName":"Side Nav Heading","description":"Demonstrates SideNavHeading with an app name, logo icon, superheading, and subheading.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","SideNavHeading"]}},"d119af2e34a1b91e97a4e24546f3d468":{"doc":{"type":"block","exampleFor":"ClickableCard","name":"ClickableCardWithNestedButton","displayName":"Clickable Card — Nested Button","description":"A product card that navigates on click but has an independent \"Add to cart\" button inside.","isReady":true,"aspectRatio":1,"componentsUsed":["ClickableCard","Button","Layout","Text"]}},"d1584495923d2db0ce618c9608725827":{"doc":{"type":"block","exampleFor":"ChatMessageMetadata","name":"ChatMessageMetadata — Status","displayName":"ChatMessageMetadata — Status","description":"All 5 delivery statuses (sending, sent, delivered, read, and error), each with a timestamp. Use to show message delivery progress or surface failures.","isReady":true,"aspectRatio":1,"componentsUsed":["Chat","ChatMessageMetadata","Timestamp"]}},"d173fb3a19eee452fb2381b89e88e586":{"doc":{"type":"block","exampleFor":"Skeleton","name":"Skeleton — Card Loading","displayName":"Skeleton — Card Loading","description":"Card skeleton with avatar, name, and content lines.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Skeleton","Card","HStack","VStack"]}},"d1778876bbf51d6a169982654739180a":{"doc":{"type":"block","exampleFor":"MetadataListItem","name":"MetadataListItem","displayName":"Metadata List Item","description":"Metadata list items displaying labeled values in various formats including text, badges, and links.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MetadataList","MetadataListItem"]}},"d1b3b9ba0346014ba7107207077cff00":{"doc":{"type":"block","exampleFor":"ScrollableArea","name":"ScrollableArea — Inline Rail","displayName":"Scrollable Area — Inline Rail","description":"axis=\"inline\" scrolls the same cards sideways; isFullBleed lets the rail run to the panel edges while the content padding keeps the first card aligned with the heading.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ScrollableArea","Card","Link"]}},"d1c9ca7cfaeb2ad5150d01098506aaa1":{"doc":{"type":"block","exampleFor":"Typeahead","name":"Typeahead — Limited Results","displayName":"Typeahead — Limited Results","description":"Typeahead with a capped dropdown showing at most three results.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Typeahead","Center"]}},"d248f37d39c8d744451dca30caa97176":{"doc":{"type":"block","exampleFor":"Skeleton","name":"Skeleton — Staggered List","displayName":"Skeleton — Staggered List","description":"Staggered skeleton lines with varying widths.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Skeleton","VStack"]}},"d26349ac59630a2cf9656d00f550498e":{"doc":{"type":"block","exampleFor":"ChatToolCalls","name":"ChatToolCalls — Expandable","displayName":"ChatToolCalls — Expandable","description":"Tool calls with expandable result details showing diffs and command output in code blocks. Click a row to reveal its result.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatToolCalls","CodeBlock"]}},"d2e06bcf4ff73d95c47e388dd1403b48":{"doc":{"type":"block","exampleFor":"FileInput","name":"FileInput — Basic","displayName":"FileInput — Basic","description":"A controlled single-file upload with accepted types, a size limit, and helper text. Use for standard document upload fields in forms.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["FileInput"]}},"d2e56547bac3803773dd82a6c2201076":{"doc":{"type":"block","exampleFor":"RadioList","name":"RadioList — With Descriptions","displayName":"RadioList — With Descriptions","description":"Radio list with descriptions on the group and each item.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["RadioList"]}},"d38a4b690f1ff2b1257342d07e6cefec":{"doc":{"type":"block","exampleFor":"ChatComposerInput","name":"ChatComposerInput — Disabled","displayName":"ChatComposerInput — Disabled","description":"Composer in a disabled state. Use when the input should be visible but not interactive, such as during streaming or when a prerequisite is unmet.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatComposer","ChatComposerInput","Layout"]}},"d3ceb299132972d6b56e20da48b62b8e":{"doc":{"type":"block","exampleFor":"useKeyboardHint","name":"useKeyboardHint — Arrow-key Hint","displayName":"useKeyboardHint — Arrow-key Hint","description":"A custom five-star rating with one Tab stop calls useKeyboardHint directly: tabbing into it shows a \"← → to navigate\" hint, the first arrow press dismisses it, and tabbing back in does not show it again.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Icon","Card","Layout"],"icons":{"StarIcon":"star"}}},"d3f3984916ce99248fee93fd85814ecf":{"docs":{"type":"namespace","name":"template-assets","placement":{"parent":"namespace:build-the-template","slot":"guides","order":20},"title":"Assets","summary":"Make sure the template's styles, fonts, icons, images, and video still show up after an app copies it.","blocks":[{"type":"prose","text":"The copied file does not bring sibling assets with it ({@link generic:write-the-template-file}). Give every asset exactly one owner:"},{"type":"table","headers":["Owner","Use when","How the copied source reaches it"],"rows":[["Copied source","The value is small, editable, and belongs to the starting point","Keep it in the `.tsx` file"],["Integration package","The asset should stay centrally maintained with the package","Import a stable public package path"],["App","The app must provide product-specific content or branding","Use an explicit placeholder or app public URL and say what to replace"]]},{"type":"prose","text":"Do not make a template look self-contained while it relies on an undocumented package file or app convention."}],"keywords":["template assets","template styles","template fonts","template icons","template images"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"d43940f0055ca59c82b97f4e2a50e23e":{"doc":{"type":"block","exampleFor":"Markdown","name":"Markdown — Compact AI Response","displayName":"Markdown — Compact AI Response","description":"Compact markdown styled for AI responses with shifted heading levels","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Markdown"]}},"d474f14b8a03529bc4466b7981a3090a":{"doc":{"type":"block","exampleFor":"EmptyState","name":"EmptyState — Actions","displayName":"EmptyState — Actions","description":"Full empty state with icon, message, and action buttons. Use when a search returns no results, a filter clears all items, or a list has been emptied. The buttons give the user a way forward: go back, clear filters, or try a different query.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["EmptyState","Button","Icon"],"icons":{"MagnifyingGlassIcon":"search"}}},"d47ada3b59df32a8bbb07f96afcb5beb":{"doc":{"type":"block","exampleFor":"useDragToSnapPoints","name":"useDragToSnapPoints — Playing card on three places","displayName":"useDragToSnapPoints — Playing card on three places","description":"A playing card that a sideways drag moves between three places: a slow release settles on the nearest, a quick flick carries to the next, and a release moving back returns where it started. Buttons settle it from the keyboard, and the new place is announced. Built only on the public useDragToSnapPoints hook.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","Layout","Text","VisuallyHidden","useDragToSnapPoints"]}},"d4e5526b5ae60203f3bf691e7e82ab19":{"doc":{"type":"block","exampleFor":"ToggleButtonGroup","name":"ToggleButton — Group","displayName":"ToggleButton — Group","description":"Toggle button groups in single-select and multi-select modes. Single selection acts as a view mode switcher; multiple selection forms a formatting toolbar.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ToggleButton","ToggleButtonGroup","Layout","Text","Icon"],"icons":{"BoldIcon":"bold","ItalicIcon":"italic","ListBulletIcon":"list","Squares2X2Icon":"gridView","StrikethroughIcon":"strikethrough","TableCellsIcon":"table","UnderlineIcon":"underline"}}},"d4f953dcc3e388ffb9f90829471515a2":{"doc":{"type":"block","exampleFor":"Table","alsoExampleFor":["useTableSelection","useTableSelectionState"],"alsoShowcaseFor":["useTableSelection","useTableSelectionState"],"name":"Table — Row Selection","displayName":"Table — Row Selection","description":"Table with row selection checkboxes and a select-all header checkbox.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"d51a8383c61350d4e09a2b4868cf90e4":{"doc":{"type":"page","name":"Canvas Editor","displayName":"Canvas Editor","description":"Layered artboard workspace: document tabs over a layer rail, a fixed-size frame you zoom on a muted backdrop, and an inspector of position, type, and filter fields that retargets to the selected layer. Objects hold a coordinate rather than reflowing, so moving one never moves another.","keywords":["design tool","artboard","poster","graphic","image","slide editor"],"isReady":true,"category":"Tools - Canvas Editor","icons":{"Aperture":"photoEffect","ArrowDownToLine":"alignBottom","ArrowUpToLine":"alignTop","Baseline":"textRegular","CaseLower":"lowercase","CaseSensitive":"textCase","CaseUpper":"uppercase","Contrast":"contrast","Download":"download","File":"file","FlipHorizontal2":"flipHorizontal","FlipVertical2":"flipVertical","FoldVertical":"alignMiddle","Frame":"frame","Grip":"drag","Group":"group","Image":"image","Italic":"italic","Lock":"lock","LockOpen":"unlock","Menu":"menu","Minus":"remove","PanelBottom":"panelBottom","PanelLeft":"panelLeft","PanelLeftRightDashed":"paddingHorizontal","PanelRight":"panelRight","PanelTopBottomDashed":"paddingVertical","Plus":"add","Redo2":"redo","RotateCcw":"rotateCounterclockwise","RotateCw":"rotate","Scan":"cornerRadius","SquareRoundCorner":"radiusPerCorner","SquareSquare":"paddingPerSide","Strikethrough":"strikethrough","TextAlignCenter":"alignCenter","TextAlignEnd":"alignEnd","TextAlignJustify":"alignJustify","TextAlignStart":"alignStart","TriangleRight":"angle","Type":"text","Underline":"underline","Undo2":"undo","X":"close"}}},"d57af60b18407e50deb44f347ec6b006":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList","displayName":"Tab List","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["TabList"]}},"d5807fcb7c9c73d3cb5ada42e4941c88":{"doc":{"type":"block","exampleFor":"Item","name":"Item — Start Content","displayName":"Item — Start Content","description":"Items with leading avatars and icons in the startContent slot. Keep start content small so the row stays compact and easy to scan.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Item","Avatar","Badge","Icon","Text","Layout"]}},"d59f9b9b0c45ee9e3f61c8a95ea27f36":{"doc":{"type":"block","exampleFor":"ChatComposerDrawer","name":"ChatComposerDrawer","displayName":"Chat Composer Drawer","description":"Composer drawer with file tokens, a collapsible toggle, and header actions. Use as a starting point for any chat composer with attachments.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Token","Icon","Button","Layout"],"icons":{"PaperClipIcon":"attach"}}},"d5e85022d04e4f56a33a6883043b2539":{"doc":{"type":"block","exampleFor":"SideNavSection","name":"SideNavSection","displayName":"Side Nav Section","description":"Demonstrates SideNavSection with titled groups of navigation items.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SideNav","SideNavSection","SideNavItem"]}},"d63c65d9bd4bae393d0416ea14d71d50":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — Interactive","displayName":"Avatar — Interactive","description":"Make an avatar interactive by passing `href` to render it as a link or `onClick` to render it as a button. Both forms are focusable and show a focus-visible ring for keyboard users. Use for profile links, mention pop-ups, or any avatar people can act on.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout","Text"]}},"d655fafafe96c94d651119b0685aea01":{"doc":{"type":"page","name":"Portfolio Dashboard","displayName":"Portfolio Dashboard","description":"Analytics for a value-over-time question: balance and change tiles above a stacked area chart of composition through time, closing on a ranked table of the largest contributors.","keywords":["portfolio","holdings","positions","returns","allocation","investments","performance reporting"],"isReady":true,"category":"Dashboard - Portfolio","icons":{"ArrowDownIcon":"arrowDown","ArrowUpIcon":"arrowUp"}}},"d6591eb7f919097037eeef30232358cb":{"doc":{"type":"block","exampleFor":"Breadcrumbs","name":"Breadcrumbs — Variants","displayName":"Breadcrumbs — Variants","description":"Compare the default and supporting variants side by side. Use the supporting variant in dense UIs like admin panels where the breadcrumb should be subtle.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Breadcrumbs","Layout","Text"]}},"d69fa0d504ff1cd0c9ac878fd33cdff9":{"docs":{"type":"generic","name":"i18n-calendars","title":"Other calendars","placement":{"parent":"namespace:internationalization","slot":"guides","order":25},"category":"guide","description":"Show dates in the Persian, Hebrew, Hijri, Buddhist, Japanese, and other calendars while values stay Gregorian ISO dates.","sections":[{"title":"Show dates in another calendar","content":[{"type":"prose","text":"Set `calendar` on `<InternationalizationProvider>` for a subtree, or on `Calendar` itself; without it, `Calendar` is Gregorian. Values stay Gregorian ISO dates (`YYYY-MM-DD`) in every calendar."},{"type":"code","lang":"tsx","label":"Persian dates in a Persian interface","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\nimport {Calendar} from '@astryxdesign/core/Calendar';\n\n<InternationalizationProvider locale=\"fa-IR\" calendar=\"persian\">\n {/* shows Aban 1405; value and onChange stay '2026-10-30' */}\n <Calendar value={date} onChange={setDate} />\n</InternationalizationProvider>;"},{"type":"prose","text":"Most calendars need the runtime's `Temporal`. Safari and older runtimes lack it: load `temporal-polyfill/full/global` there, on the server and in the browser. Without it, those calendars show Gregorian dates. See {@link namespace:calendars} for the supported calendars, server rendering, and the lunisolar calendars."}]}]}},"d6a9abea913215e693e2ecb46242b1a0":{"docs":{"type":"namespace","name":"help","placement":{"parent":"namespace:authoring","slot":"guides","order":40},"title":"Help","summary":"Find a CLI message and how to fix it.","keywords":["authoring","help","troubleshooting","error"],"slots":{"guides":{"title":"Help","accepts":{"kinds":["generic"]}}}}},"d704594e3ae622fcf1376360e80873e2":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — On-Track Horizontal","displayName":"Stepper — On-Track Horizontal","description":"The on-track layout in horizontal orientation: instead of sitting beside the label, each indicator is slotted into the connector itself, so the numbered nodes read as beads on one continuous line. Labels center under their node.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Stepper"]}},"d70d0b54bd4843ff699966f478f259c2":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — Checkout Progress","displayName":"Stepper — Checkout Progress","description":"The default stepper: a horizontal track where every step owns an equal segment of the progress bar above its label. The default auto indicator resolves itself per step: a check once the step is done, a ring on the current step, a number for the ones still ahead. Click any step to jump.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Stepper"]}},"d77af9eac7635e60eea408a3d4998cb4":{"doc":{"type":"block","exampleFor":"ChatMessageBubble","name":"ChatMessageBubble — Custom Content","displayName":"ChatMessageBubble — Custom Content","description":"Custom in-message content aligned to the bubble text column. An artifact card is wrapped in a ghost bubble with width=\"100%\", so its left edge matches the bubble text and it spans the full message column instead of the default bubble width cap; the timestamp rides the bubble metadata slot.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Chat","ChatMessage","ChatMessageBubble","ChatMessageMetadata","ClickableCard","Text","Timestamp"]}},"d7832fbb79503da826f94b63609e4383":{"docs":{"name":"spacing","title":"Spacing","category":"foundations","description":"Spacing scale tokens for padding, gap, and margin: the rhythmic foundation of design system layouts.","keywords":["padding","margin","gap"],"tokenCategory":"spacing","sections":[{"title":"Overview","category":"foundations","content":[{"type":"prose","text":"The design system uses a 4px base-unit spacing scale, written in rem so gaps and padding grow with the reader's browser font size the way text does: each step is 0.25rem, which is 4px at the default 16px root. Component gap props accept step values that map to these tokens. The scale provides fine-grained control at the small end (2px, 4px, 6px) and consistent rhythm at larger sizes (multiples of 4px)."}]},{"title":"Scale","category":"foundations","content":[{"type":"prose","text":"Fifteen spacing tokens, from 0 to 3rem (0px to 48px at the default 16px root)."},{"type":"token-ref","topic":"tokens","section":"Spacing Tokens"}]},{"title":"Usage","category":"foundations","content":[{"type":"prose","text":"Stack, HStack, VStack, Grid, Toolbar, OverflowList, and ChatMessageList take a `gap` step: 0, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, or 10 (×4px). Carousel takes the steps from 0 to 4. For custom layouts, use the spacing tokens in StyleX."},{"type":"code","lang":"tsx","label":"Spacing via component props vs StyleX","code":"// Via component props (preferred)\n<Stack gap={4}>{/* 16px gap */}</Stack>\n\n// Via StyleX tokens (custom layouts)\nimport {spacingVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n custom: {\n padding: spacingVars['--spacing-4'],\n gap: spacingVars['--spacing-3'],\n },\n});"}]},{"title":"Best Practices","category":"foundations","content":[{"type":"list","style":"do","items":["Use component gap props when available; they handle automatic spacing compensation.","Stick to the scale for consistency. If a value isn't on the scale, reconsider the design.","Use smaller steps (0.5–2) for tight internal spacing and larger steps (4–8) for section gaps."]},{"type":"list","style":"dont","items":["Use arbitrary pixel values outside the scale.","Mix spacing tokens with raw px/rem values in the same component."]}]}]}},"d809526464174b0880d34530bd19ff0f":{"doc":{"type":"block","exampleFor":"ChatDictation","name":"ChatDictationButton — In Composer","displayName":"ChatDictationButton — In Composer","description":"Dictation button placed in the sendActions slot of a chat composer. Shows the recommended integration point for voice input alongside the send button.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatDictation","ChatComposer","Layout","Text"]}},"d809cb9b03ebef311b67120129e8c4ac":{"doc":{"type":"block","exampleFor":"CommandPaletteEmpty","name":"CommandPaletteEmpty — Basic","displayName":"CommandPaletteEmpty — Basic","description":"A command palette with no results, showing a custom empty message via emptyBootstrapText. Use to explain why the palette is empty and what the user can do next.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CommandPalette","CommandPaletteEmpty","Text"]}},"d81d6934ef0b6e62834bf4774261e7c5":{"docs":{"type":"generic","name":"template-doc-overview","placement":{"parent":"namespace:document-the-template","slot":"guides","order":10},"title":"Template doc overview","category":"guide","description":"Understand what the template doc controls, keep it accurate as the UI changes, and check how Astryx lists the template.","sections":[{"id":"understand-the-two-files","title":"Understand the two files","content":[{"type":"prose","text":"Every template has a source file and a doc file. For `acme-dashboard`, the source is `templates/acme-dashboard.tsx` and the doc is `templates/acme-dashboard.doc.mjs`. Both begin with `acme-dashboard`, which is how Astryx knows they belong together."},{"type":"table","headers":["File","What it controls"],"rows":[["`templates/acme-dashboard.tsx`","The UI source that an app copies and then owns."],["`templates/acme-dashboard.doc.mjs`","How Astryx names, describes, categorizes, previews, and resolves the template before it is copied."]]},{"type":"prose","text":"The integration manifest points Astryx to the `templates` directory; it does not list each template. Change the source and doc together whenever the purpose, preview, readiness, or replacement behavior changes. No automated check can tell whether the doc still describes the rendered UI."}]},{"id":"document-the-shared-fields","title":"Document the shared fields","content":[{"type":"prose","text":"The fields below apply to every page and block. The page, block, and replacement guides add the fields unique to each."},{"type":"prose","text":"Every field is in {@link schema:template-doc}."},{"type":"list","style":"unordered","items":["Set `type` to the kind you chose in {@link generic:start-a-template}. It decides which other fields the doc accepts.","The file name sets the template id ({@link generic:start-a-template}). Labels live in the doc: the terminal list prints `name`, and JSON listings print `displayName`. Changing either never changes the id.","Write the description for someone choosing between templates. The Doc metadata category in {@link generic:template-grading-rubric} defines what a complete description covers.","Name the ideas the template serves in `keywords`: the domains, tasks, and other names a builder might use for it, in lowercase, such as `['monitoring', 'uptime', 'on-call']` for a service-health dashboard. How search and build use them is in {@link generic:field-reference}, so the description can stay about the layout.","Add `isReady: false` as soon as you generate the doc, because a doc without `isReady` is listed as ready. Keep it until the template passes {@link generic:test-template-in-app} and the quality review."]},{"type":"prose","text":"Note: `keywords` needs `@astryxdesign/cli` 0.6.6 or later. A stable CLI before 0.6.6 rejects the field and drops that template, and one before 0.6.4 also hides your doc topics: `template --list` and `search` print one warning, and `docs` and `build` say nothing. Declare the CLI floor as an optional peer ({@link generic:versioning}); `integration verify` fails until you do."}]},{"id":"check-how-astryx-lists-it","title":"Check how Astryx lists it","content":[{"type":"prose","text":"Read the package-scoped template list after every doc change. Confirm the id, visible name, description, type, readiness, and package."},{"type":"code","lang":"bash","code":"astryx --json template --list --package @acme/astryx-templates"},{"type":"code","lang":"json","label":"Relevant list result","code":"{\n \"id\": \"acme-dashboard\",\n \"name\": \"acme-dashboard\",\n \"displayName\": \"Acme Dashboard\",\n \"description\": \"An analytics dashboard for reviewing account health and recent trends.\",\n \"type\": \"page\",\n \"package\": \"@acme/astryx-templates\",\n \"isReady\": false\n}"}]}]}},"d82cd620b5dce72ba339cc97050a7cb8":{"doc":{"type":"block","exampleFor":"Toolbar","name":"Toolbar — Sizes","displayName":"Toolbar — Sizes","description":"Small, medium, and large toolbars side by side. The size prop cascades to child buttons and inputs automatically. Use small in dense UIs like cards, medium for most cases, and large for spacious layouts.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toolbar","Button","Icon","Text","Layout","Card"],"icons":{"FunnelIcon":"funnel","PlusIcon":"add"}}},"d87209f7b46dd24d7429870d8b52c5b9":{"docs":{"type":"generic","name":"tokens-spacing","title":"Spacing Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":40},"category":"foundations","description":"Spacing scale used for padding, gap, and margin. Component gap props map spacing steps to these tokens.","sections":[{"title":"Spacing Tokens","content":[{"type":"prose","text":"Spacing scale used for padding, gap, and margin. Component gap props map spacing steps to these tokens."},{"type":"table","headers":["Token","Core default"],"rows":[["--spacing-0","0rem"],["--spacing-0-5","0.125rem"],["--spacing-1","0.25rem"],["--spacing-1-5","0.375rem"],["--spacing-2","0.5rem"],["--spacing-3","0.75rem"],["--spacing-4","1rem"],["--spacing-5","1.25rem"],["--spacing-6","1.5rem"],["--spacing-7","1.75rem"],["--spacing-8","2rem"],["--spacing-9","2.25rem"],["--spacing-10","2.5rem"],["--spacing-11","2.75rem"],["--spacing-12","3rem"]]}],"previewType":"spacing-bar"}]}},"d8cec9225b13362120e720b5a0bcc52a":{"doc":{"type":"block","exampleFor":"StackItem","name":"StackItem — Fill","displayName":"StackItem — Fill","description":"A static-width item next to one that fills the remaining space. Wrap stack children in StackItem when an item needs explicit sizing control.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["StackItem","HStack","Card","Text"]}},"d90df7851a50cff4ce3e30e30a5aa99d":{"doc":{"type":"block","exampleFor":"DateRangeInput","name":"DateRangeInput","displayName":"Date Range Input","description":"A date range picker with a button trigger and dual-month calendar popover with preset ranges.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["DateRangeInput","Layout"]}},"d96d527ce8bd0f462beedff04d82270f":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — Creatable","displayName":"Tokenizer — Creatable","description":"Free-text tokenizer for creating custom tags and a combined create-or-search pattern. Use when users need to enter values that may not exist in a predefined list.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Tokenizer","Layout","Text"]}},"d9c7234e690f9d519ac1656b90a73031":{"doc":{"type":"block","exampleFor":"useTableRowIndex","name":"useTableRowIndex — Numbered Rows","displayName":"useTableRowIndex — Numbered Rows","description":"A table with a prepended row-number column via useTableRowIndex. Numbering is monospaced, right-aligned, and follows the rows the table renders.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"d9cfc5b2aa7773c595138ae0f445cd61":{"doc":{"type":"block","exampleFor":"ChatDictation","name":"ChatDictationButton — Sizes","displayName":"ChatDictationButton — Sizes","description":"Small and medium dictation buttons side by side. Use small in compact composer densities and medium for standard layouts.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatDictation","Layout","Text"]}},"d9f312b2208727468d1bed26ef44912a":{"doc":{"type":"block","exampleFor":"Step","name":"Step — Indicator","displayName":"Step — Indicator","description":"Everything the indicator prop accepts: the auto default, an always-number badge, a custom ReactNode, and none, each on its own completed Step so the prop is the only difference between them. Every variant occupies the same 16px box, so a step swapping its number for a check as it completes never shifts the label beside it. The last cell shows that a custom node can be live rather than static: a Spinner on a step that is in progress, shaded `inherit` so it picks up the step's own tint like any other glyph.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper","Step","Icon","Spinner","Text"]}},"da49c946668fda6169bfc45d53fb7b98":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — Overflow","displayName":"Tokenizer — Overflow","description":"Tokenizer with overflow truncation when unfocused. Inline mode pushes content down on expand; layer mode overlays without shifting layout. Overflow modes apply to the inline field.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Tokenizer","Layout","Text"]}},"da89ae9da6340d5410b2df829f67bafb":{"doc":{"type":"page","name":"Searchable Table","displayName":"Searchable Table","description":"Flat table of uniform rows under a block of record-level facts, narrowed three ways at once — a full-text search box, a scope toggle, and per-column popovers — with sortable and filterable columns, per-row hover detail, and totals derived from the visible rows that flag themselves as partial while a filter is on. The shape for one homogeneous list, not nested rows or groups with their own columns.","keywords":["search","filter","sort","table","flat rows","records","dataset","totals","roster","inventory","assets","registry","lookup","report table","numeric columns","pagination","csv export"],"isReady":true,"category":"Table - Basic","icons":{"ArrowDownTrayIcon":"download","MagnifyingGlassIcon":"search"}}},"da9196efda471a7e5804541eedd81de2":{"docs":{"type":"generic","name":"export-template-assets","placement":{"parent":"namespace:package-and-test","slot":"guides","order":10},"title":"Export the template and assets","category":"guide","description":"Make sure the published package contains and exposes everything the copied template imports.","sections":[{"id":"keep-the-generated-template-export","title":"Keep the generated template export","content":[{"type":"prose","text":"`integration verify` resolves each template through a public package path without a file extension, such as `./templates/acme-dashboard`, and fails when that path is missing."},{"type":"code","lang":"json","label":"package.json","code":"{\n \"exports\": {\n \"./templates/acme-dashboard\": \"./templates/acme-dashboard.tsx\"\n }\n}"},{"type":"list","style":"unordered","items":["`integration add` writes this entry when `package.json` has an `exports` map ({@link generic:start-a-template}). Without a map it writes nothing, because creating one would make existing deep imports private. Add the map yourself, then the entry.","Keep the public path without `.tsx`. Only the target file ends in `.tsx`.","Do not point the entry at a barrel file that loses the template default export."]}]},{"id":"export-package-owned-support-files","title":"Export package-owned support files","content":[{"type":"prose","text":"Add a public path for every package-owned component, helper, icon, or stylesheet that the copied source imports. Keep implementation-only files private."},{"type":"code","lang":"json","label":"Relevant package.json entries","code":"{\n \"exports\": {\n \"./templates/acme-dashboard\": \"./templates/acme-dashboard.tsx\",\n \"./components/AcmeStatusCard\": \"./components/AcmeStatusCard.tsx\",\n \"./icons/AcmePulseIcon\": \"./icons/AcmePulseIcon.tsx\",\n \"./styles/acme-dashboard.css\": \"./styles/acme-dashboard.css\"\n }\n}"},{"type":"prose","text":"If a block is also loaded directly as a live `.tsx` preview, add a pattern that keeps the extension, such as `\"./templates/*.tsx\": \"./templates/*.tsx\"`. Keep the generated entry too; `integration verify` resolves the template through it."}]},{"id":"include-every-file","title":"Include every file","content":[{"type":"prose","text":"An export can point to a file that npm leaves out. When `package.json#files` exists, list the integration manifest, the templates directory, and every directory the copied file depends on."},{"type":"code","lang":"json","label":"package.json","code":"{\n \"files\": [\n \"astryx.integration.mjs\",\n \"templates\",\n \"components\",\n \"icons\",\n \"styles\",\n \"assets/fonts\"\n ],\n \"sideEffects\": [\"**/*.css\"]\n}"},{"type":"list","style":"unordered","items":["`integration add` appends the manifest and templates directory when a `files` list already exists. Add the other directories yourself.","If `package.json` sets `sideEffects`, include CSS in it, as above, so bundlers keep side-effect stylesheet imports.","Run `{@pm-only npm \"the tarball the registry receives\" pack --dry-run}` and read the real file list instead of reasoning from the workspace."]}]},{"id":"declare-what-the-copied-file-imports","title":"Declare what the copied file imports","content":[{"type":"prose","text":"A copied file imports from the app, so the app must install every package it imports. Declare the Astryx peers as described in {@link generic:versioning}. For other packages:"},{"type":"table","headers":["Field","Use it for"],"rows":[["`peerDependencies`","Libraries the copied source imports, such as an icon library. List them in `devDependencies` too, so the package itself builds."],["`dependencies`","Runtime packages used only by package-owned modules, which should travel with the integration"],["`devDependencies`","Everything needed to build and test the integration itself"]]},{"type":"prose","text":"Use only ranges you test. A package that resolves only because a workspace hoisted it is not declared."}]}]}},"dac8922a6dd307372b3a28bb021ca16f":{"doc":{"type":"block","exampleFor":"VisuallyHidden","name":"VisuallyHidden — Supplementary Context","displayName":"VisuallyHidden — Supplementary Context","description":"Stat cards whose trend arrows get screen-reader-only text, so a change like +12% is read as an increase from last month. Use to make terse visual data accessible.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["VisuallyHidden","Card","HStack","VStack","Text","Icon"],"icons":{"ArrowDownIcon":"arrowDown","ArrowUpIcon":"arrowUp"}}},"dae43ee6ef5960cdaed3ae36aef20b41":{"doc":{"type":"block","exampleFor":"SelectableCard","name":"SelectableCard — Elevated","displayName":"Selectable Card — Elevated","description":"Raised selectable cards with `elevation=\"low\"`. The inset selection ring composes on top of the shadow, so a selected card keeps its elevation.","isReady":true,"aspectRatio":2,"componentsUsed":["SelectableCard","Layout","Text"]}},"db48a07db6971f7b64b088344ae2c0c4":{"doc":{"type":"block","exampleFor":"Theme","name":"Theme — Switch Themes","displayName":"Theme — Switch Themes","description":"Use state to switch the theme object passed to Theme and preview a different visual treatment.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Theme","Card","Button","Section","Layout","Selector","Text"]}},"db6c920148a0d52c83acbb46b8f8b4ec":{"docs":{"name":"browser-support","title":"Browser support","category":"guide","description":"What browsers Astryx targets, which modern platform features it depends on, and how to support older browsers for your own audience.","sections":[{"title":"Overview","content":[{"type":"prose","text":"Astryx is built on modern web platform features: the [`Popover`](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) API, CSS anchor positioning, and CSS `light-dark()`. These let components stay small, accessible, and dependency-free, but they also set a floor on which browsers render everything correctly."},{"type":"prose","text":"A design system does not own its traffic; the products built on it do. Their audiences range from evergreen-Chrome-only internal tools to public sites with meaningful older-Safari share. So Astryx does not declare a single hard browser floor the way an app would. Instead it defines tiers that describe what works at each level, and hands the final decision to you. Pick the tier that matches your audience."}]},{"title":"Support Tiers","content":[{"type":"prose","text":"Astryx officially supports Tier 1 and Tier 2. Tier 3 is best-effort: components will not crash, but positioning and theming may degrade."},{"type":"table","headers":["Tier","Baseline","Representative versions","What your users experience"],"rows":[["Tier 1: Full fidelity","Current Baseline (2026)","Chrome 125+, Edge 125+, Safari 26+, Firefox 147+","Everything works, including CSS anchor positioning. This is the reference target."],["Tier 2: Functional","Baseline − 2 years (2024)","Chrome 114+, Edge 114+, Safari 17+, Firefox 125+","Components open, dismiss, and are fully usable. Only anchor positioning is missing, so layered surfaces (tooltips, menus, popovers) may not be positioned next to their trigger."],["Tier 3: Below Tier 2","Older than Baseline − 2","Anything older","Best-effort. The only guarantee is \"does not crash.\" `light-dark()` is unavailable, so theme colors may fall back to defaults."]]}]},{"title":"Which Features Set the Floor","content":[{"type":"prose","text":"Only three modern features carry a browser requirement. Everything else Astryx uses (`:has()`, `color-mix()`, container queries, the `<dialog>` element) has been widely available since 2023 or earlier and needs no special handling."},{"type":"table","headers":["Feature","Role in Astryx","Widely available"],"rows":[["CSS Anchor Positioning","Positions layered surfaces relative to their trigger (tooltips, menus, popovers, dropdowns).","Baseline 2026: the tightest requirement."],["`Popover` API","Opens, stacks, and light-dismisses layered surfaces via the top layer.","Baseline 2025."],["CSS light-dark()","Compiles every theme color tuple into a single value that responds to color scheme. Underpins the whole theming system.","Widely available since mid-2024."]]},{"type":"prose","text":"The gap that matters is between Tier 1 and Tier 2: the `Popover` API and `light-dark()` reached wide availability well before anchor positioning. So in Tier 2 browsers, layered surfaces open and dismiss correctly; they just are not positioned. This is the one feature most consumers will need to reason about."}]},{"title":"Which Components Are Affected","content":[{"type":"prose","text":"Any component that opens a menu, popover, tooltip, or dropdown carries the browser requirement: it renders that surface in an overlay positioned against its trigger. That includes:"},{"type":"list","style":"unordered","items":["Tooltip, HoverCard, and Popover, and any prop that shows one (such as the Button `tooltip`)","DropdownMenu, MoreMenu, and ContextMenu","Selector, MultiSelector, ComplexSelector, Typeahead, and PowerSearch (dropdown surfaces)","DateInput, DateRangeInput, and DateTimeInput (calendar popovers)","Tokenizer (suggestion menu)","The overflow and flyout menus in Breadcrumbs, TabList, TopNav, and SideNav","Carousel (anchored controls)"]},{"type":"prose","text":"If your product opens no menus, popovers, tooltips, or dropdowns, it has no anchor-positioning requirement; it needs only `light-dark()` (Tier 2 and up) for correct theme colors. Page layout, typography, forms, buttons, cards, and tables work down to Tier 2 with no special handling."}]},{"title":"What Astryx Guarantees","content":[{"type":"list","style":"do","items":["Components never throw on missing platform APIs. Where a browser lacks the `Popover` API, layers fall back to plain visibility instead of crashing.","Tier 1 and Tier 2 are officially supported and tested.","Non-layered components render correctly down to Tier 2."]},{"type":"list","style":"dont","items":["Astryx does not guarantee correct layer positioning below Tier 1 (anchor positioning). Closing that gap for a Tier 2 audience is a consumer choice; see below.","Astryx does not ship a `light-dark()` fallback, so theme colors are not guaranteed below Tier 2."]}]},{"title":"The On-Screen Keyboard","content":[{"type":"prose","text":"On a phone, the components that respond to the on-screen keyboard, a fully expanded `height='tall'` BottomSheet and ChatLayout's composer, measure it the same way: the layout viewport's height minus the visual viewport's height times its scale. Where the visual viewport shrinks for the keyboard, as in Safari on iOS in the browser and as a home-screen app, in Firefox for Android and in Chrome on Android, they keep the focused field and the surface around it above the keyboard and leave the page where it was. If Firefox for Android pans to the field, they put the page back within a couple of frames."},{"type":"prose","text":"In Chrome on Android, ChatLayout’s composer rides the keyboard as Gboard slides it up and down. A Tall BottomSheet’s focused field rides the keyboard as Gboard slides it up, and as Gboard slides it down after the field loses focus. The scroll room stays until the keyboard is down. A hide Chrome reports late, such as Back, which keeps the focus, rides down from Chrome’s report. When the keyboard is reported, the sheet places the field just above it in that same frame, so Chrome has no covered field to pan to; if Chrome pans anyway, the sheet puts the page back when that pan ends. Chrome follows your viewport setting, which Astryx documents and never sets: your app owns its viewport `<meta>` element. By default (`interactive-widget=resizes-visual`) Chrome lays the keyboard over the page and pans to a focused field elsewhere on the page. With `interactive-widget=resizes-content` it shrinks the layout viewport instead, so content anchored to the bottom sits above the keyboard, and those components measure no keyboard and change nothing: the browser has already made the room."},{"type":"code","lang":"html","label":"Chrome on Android resizes the page for the keyboard","code":"<meta\n name=\"viewport\"\n content=\"width=device-width, initial-scale=1, interactive-widget=resizes-content\" />"}]},{"title":"Supporting Older Browsers","content":[{"type":"prose","text":"If your audience includes Tier 2 browsers and you need correct layer positioning, you have three options, cheapest first. All of them are decisions you make for your audience; Astryx does not impose one."},{"type":"list","style":"ordered","items":["Polyfill anchor positioning. Load a CSS anchor positioning polyfill conditionally behind an `@supports` check so it costs nothing on Tier 1. This is the lowest-effort way to get correct positioning; polyfills may not cover every position-fallback feature.","Provide a JS positioning fallback. Detect missing support with `CSS.supports(\"anchor-name\", \"--x\")` and position layers with a measurement-based library (e.g. a floating-element positioner) when it returns false. More code, full control.","Accept degraded positioning. Document for your users that on Tier 2 browsers, layered surfaces open correctly but may not sit next to their trigger. Cheapest, and often fine for internal tools on evergreen browsers."]},{"type":"prose","text":"Feature-detect at runtime rather than sniffing user agents:"},{"type":"code","lang":"js","label":"Feature detection","code":"// Popover API (Tier 2 and up)\nconst hasPopover = typeof HTMLElement !== 'undefined'\n && typeof HTMLElement.prototype.showPopover === 'function';\n\n// CSS anchor positioning (Tier 1)\nconst hasAnchorPositioning = CSS.supports('anchor-name', '--x');\n\n// CSS light-dark() (Tier 2 and up)\nconst hasLightDark = CSS.supports('color', 'light-dark(#000, #fff)');"}]},{"title":"How These Tiers Move Over Time","content":[{"type":"prose","text":"The tiers are rolling, not frozen to specific versions. They track the Web Baseline year:"},{"type":"list","style":"unordered","items":["Tier 1 tracks the current Baseline year.","Tier 2 tracks Baseline minus two years.","Tier 3 is everything older, and remains best-effort."]},{"type":"prose","text":"This is not an arbitrary window: Baseline − 2 is close to where anchor positioning stops being available while the `Popover` API and `light-dark()` still are, so the tier boundary tracks a real capability edge, not a guessed date. The version floors above are reviewed and advanced roughly once a year as new Baseline years land. Always feature-detect rather than hardcoding version numbers, so your app adapts automatically as the platform moves."}]}]}},"db89b77ede0c284287cac501dbb2cf27":{"doc":{"type":"block","exampleFor":"ChatLayoutScrollButton","name":"ChatLayoutScrollButton — Labels","displayName":"ChatLayoutScrollButton — Labels","description":"Scroll button with different labels for context-specific notifications like new messages, unread replies, or a generic scroll prompt.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","Layout","Text"]}},"dbb9b5c94108b8c78df97d7eda6d550f":{"docs":{"type":"namespace","name":"authoring","title":"Authoring","summary":"Build an npm package that adds components, templates, themes, docs, and codemods to Astryx apps, and look up every field of every file it holds.","keywords":["authoring","integration","integration package","make an integration","publish an integration","integration authoring","authoring reference"],"slots":{"guides":{"title":"Build an integration","accepts":{"kinds":["generic","namespace"]}},"reference":{"title":"Reference","accepts":{"kinds":["generic"]}}},"blocks":[{"type":"prose","text":"In global mode: users can install your integration for their computer, beside the global CLI. It then applies in folders outside any project, and inside a project only if the project installs it. See {@link namespace:global} and {@link generic:global-integrations}."},{"type":"prose","text":"An integration is a way to share things with Astryx users: a package you own and maintain, built on a framework Astryx gives you. Publish one, many, or any mix, and people install it in one step. It works with the Astryx CLI alongside Core. See each kind under {@link namespace:building-blocks}."},{"type":"prose","text":"For example, ship a carousel as an integration. Any app that installs it can find it with `{@command search carousel}`, and the CLI uses it like any Astryx Core component."},{"type":"prose","text":"An integration can also replace a built-in template or doc. To start, install `@astryxdesign/cli` and open {@link generic:quick-start}."},{"type":"prose","text":"Every field of every file you write for an integration is in {@link generic:field-reference}."},{"type":"prose","text":"Every integration runs `{@command integration check --strict}` in its own build: it is required, not optional, so a doc, prop, or link that stops matching the code fails your build instead of your users' apps. See {@link generic:checks}."}]}},"dbc167853ab0ac90651fa121bd68b0b5":{"doc":{"type":"block","exampleFor":"IconButton","name":"IconButton — With Tooltips","displayName":"IconButton — With Tooltips","description":"Icon buttons with tooltips that explain each action on hover","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["IconButton","Icon","HStack"]}},"dbdf06c80eb1d957ff1dc747dde85b55":{"doc":{"type":"block","exampleFor":"MediaTheme","name":"MediaTheme — Media Overlay","displayName":"MediaTheme — Media Overlay","description":"A compact media overlay showing MediaTheme adapting text, icons, badges, and button variants over an image-backed dark surface.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MediaTheme","Section","Layout","Text","Button","Badge","Icon"]}},"dbf3d5ca0899ec7919a1481faa9c1cbd":{"doc":{"type":"block","exampleFor":"Timer","name":"Timer","displayName":"Timer","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Timer","Layout","Text"]}},"dc23b3079f5180346d47b946b01b3397":{"doc":{"type":"block","exampleFor":"ChatTokenizedText","name":"ChatTokenizedText — Basic","displayName":"ChatTokenizedText — Basic","description":"A message with @mention tokens. Each matching pattern is replaced with its display name badge.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatTokenizedText","Chat"]}},"dc530a42349ae4c83e8c0deaa840df02":{"doc":{"type":"block","exampleFor":"Avatar","name":"Avatar — Tooltip","displayName":"Avatar — Tooltip","description":"By default an avatar shows its name in a tooltip on hover and keyboard focus. Pass a string to show custom text instead, or false to turn the tooltip off.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Avatar","Layout","Text"]}},"dc71a66050100caf1a2302b2d8f57899":{"doc":{"type":"block","exampleFor":"Token","name":"Token — End Content","displayName":"Token — End Content","description":"Tokens with trailing content like a count badge or status indicator after the label. Use for notification counts, item quantities, or compact status info.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Token","Badge","Layout","Text"]}},"dc807e2288eaa5cac80c96b1acf396ff":{"doc":{"type":"block","exampleFor":"EmptyState","name":"EmptyState — Container","displayName":"EmptyState — Container","description":"Empty state wrapped in a Card for first-time setup or onboarding. Use when the user has not created any items yet, like a project list, team roster, or dashboard widget that will fill with data once they take action.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["EmptyState","Button","Card","Icon"],"icons":{"FolderPlusIcon":"folderAdd"}}},"dd177be28fb939812fc88a86111eb866":{"doc":{"type":"block","exampleFor":"MetadataList","name":"MetadataList — Horizontal","displayName":"MetadataList — Horizontal","description":"Horizontal metadata items for compact inline display.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MetadataList"]}},"dd3b7ccd7f96b77d2356ef5af13a916a":{"default":{"type":"icon-definition","name":"clipboard","description":"Show or use the clipboard, such as a paste action or copied content.","words":["paste","clipboard"]}},"dd41068243ada9e6973d54dab2c91db6":{"doc":{"type":"block","exampleFor":"ChatDictationButton","name":"ChatDictationButton — Basic","displayName":"ChatDictationButton — Basic","description":"A dictation button wired to useChatDictation and placed in the sendActions slot of a ChatComposer. Click the microphone to transcribe speech into the input.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatDictationButton","ChatComposer","ChatComposerInput"]}},"dd6f2301f16306e53d7236393ae5cf59":{"default":{"type":"theme","name":"chocolate","displayName":"Chocolate","description":"Warm chocolate theme for Astryx — rich brown palette with Fraunces headings, Albert Sans body, and Lucide icons","maintained":false}},"dd7a7007c6ac55ed85786f328d75a9b9":{"doc":{"type":"block","exampleFor":"Table","name":"Table — Grid Dividers","displayName":"Table — Grid Dividers","description":"Compact table with grid dividers showing both row and column borders, suited for dense numeric data.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"dd7d2a0c12cf985b549b27ea7929459c":{"doc":{"type":"block","exampleFor":"TimeInput","name":"TimeInput — States","displayName":"TimeInput — States","description":"Default, disabled, error, warning, and success states. Use status messages to give users clear feedback about their time selection.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TimeInput","Layout"]}},"ddca9b76708e4b3d2faca464717641a0":{"doc":{"type":"block","exampleFor":"ChatSendButton","name":"ChatSendButton — States","displayName":"ChatSendButton — States","description":"Disabled, ready, and streaming states at both sizes. The button automatically toggles between send (primary) and stop (secondary) based on streaming state.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatSendButton","Layout","Text"]}},"ddd1ac3c4ca883e56b8f22a6f35253e6":{"doc":{"type":"block","exampleFor":"useLightbox","name":"useLightbox — Gallery Grid","displayName":"useLightbox — Gallery Grid","description":"Photo gallery thumbnail grid using useLightbox for trigger props, keyboard navigation, and open state.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Lightbox","Grid"]}},"de0d97b6d3d79e59a6c104d6f898b7c1":{"doc":{"type":"block","exampleFor":"ScrollableArea","name":"ScrollableArea — Two-Axis Board","displayName":"Scrollable Area — Two-Axis Board","description":"axis=\"both\" gives the content box max-content inline sizing, so a board wider and taller than its panel scrolls on both axes from one viewport.","isReady":true,"aspectRatio":1,"componentsUsed":["ScrollableArea","Card","Grid"]}},"de2338d88aab992a5ae568dfcf2303b6":{"default":{"type":"icon-definition","name":"thumbsUp","description":"Approve or give positive feedback.","words":["approve","good","like","hand thumb up"]}},"de74c30f6a2694fcceb828991a85c2ff":{"doc":{"type":"block","exampleFor":"TopNav","name":"TopNav — Hover Menu","displayName":"TopNav — Hover Menu","description":"Navigation bar with a hover-triggered dropdown menu showing product items with icons and descriptions.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMenu","NavIcon","Button"],"icons":{"BoltIcon":"bolt","ChartBarIcon":"chart","CodeBracketIcon":"code","CubeIcon":"package","ShieldCheckIcon":"shield","UserCircleIcon":"userCircle"}}},"dea2a60d3e7e3ff565f52b0f72642be0":{"docs":{"type":"generic","name":"icon-sets","placement":{"parent":"namespace:experimental","slot":"guides","order":10},"stability":"experimental","title":"Icon sets","category":"guide","keywords":["icon set","add icons","ship icons","icon library","icon definition","icons.json","integration icons"],"description":"Ship an icon set: register each icon against an icon definition, so apps find icons by meaning and templates use your icons.","sections":[{"id":"experimental","title":"Experimental","content":[{"type":"prose","text":"Icon sets are experimental: the `astryx experimental icon` commands, the `experimental.iconSet` key in astryx.config, the `experimental.iconSets` key in an integration manifest, the data file, icon definitions, and the output and JSON of all of them can change, or go away, in any patch release without a deprecation period. A project that does not set `experimental.iconSet` sees no change in any stable command, apart from: the marked `experimental` group in help and in `astryx manifest` (its command, and its `responseTypes` and `jsonSupported` entries); the marked experimental entries in the CLI reference listings; and a search for \"experimental\", which also finds the stable `stability` field of the field reference. Templates, discover, and doctor answer as they do with no icon set installed. With a package that ships icon sets installed and no opt-in, the warnings an older CLI gives about the manifest key `experimental` (in `astryx doctor` and `astryx doctor integration validate <package>`, and the one-line nudge other commands print to stderr) are gone. `astryx search` never returns icons or these docs; to find an icon by meaning, use `astryx experimental icon <words>`."}]},{"id":"how-it-works","title":"How it works","content":[{"type":"prose","text":"Astryx keeps a list of icon definitions: one file per meaning, like `close` or `delete` (`astryx docs cli/experimental/icon-definitions`). An icon set registers which of its icons draws each definition, in the `map` of its data file; one icon may draw several definitions (`file` and `document` can both be your `document` icon). Templates say which definition each of their icons draws, so a project that uses your set gets your icon for every definition you map. Every set maps the built-in definitions, the names Core renders itself."},{"type":"prose","text":"The CLI knows no icon library. You, or your agent, pick each icon from the library you wrap; the commands below verify it, write the files, and check the set."}]},{"id":"add-an-icon-set","title":"Add an icon set","content":[{"type":"code","lang":"bash","code":"astryx experimental icon new-set outline"},{"type":"prose","text":"`outline.doc.mjs` is the descriptor: name, display name and description (`--display-name`, `--description`), and `license`, the SPDX license of the artwork (it starts as your package's own). `outline.icons.json` starts with no icons and an empty `map`; its `module` is your package name. After you rename the package, the next command that writes the data file (`new-set` on the existing set, with or without `--from`, `add`, `map`, or `new-definition --icon`) writes the new name and keeps any subpath (`@acme/old-icons/outline` becomes `@acme/new-icons/outline`), and its receipt says so. `outline.generated.js` is the set's generated module, with its declaration file `outline.generated.d.ts`: the CLI writes both, and every icon and the theme map are exports of it. Every field is in {@link schema:icon-set-doc} and {@link schema:icon-set-data}."},{"type":"prose","text":"The set's icons import from your package by name, so your package's entry must re-export the generated module. The command writes only the set's own files: your entry, `exports`, `main`, `types`, `files`, peers, and scripts are yours, and the receipt names each change to make as text to copy. For an entry file in the package (and the declaration file package.json names) that is the line `export * from './icon-sets/outline/outline.generated.js';`, relative to it; for a package with no entry, `index.js` and `index.d.ts` with that line and the package.json `main`, `types`, and `exports` that name them; for a built or CommonJS entry, the line to add to the source it is built from. `integration check` names the same change until you make it, and the receipt also names the peers and the `typecheck` script to add. `integration check --strict` type-checks the set's doc files with your package's TypeScript; the receipt says when it is missing (`npm install -D typescript@6`)."}]},{"id":"add-icons","title":"Add icons one at a time","content":[{"type":"prose","text":"Pick an icon from the library and ask which definitions fit it. Nothing is written yet. To read every icon a set already has, one line each with its words and the definitions it draws, run `astryx experimental icon --set <set> --all-icons`; `astryx experimental icon <set>/<id>` reads one, or says the id does not exist:"},{"type":"code","lang":"bash","code":"astryx experimental icon add Bin --from @acme/glyph-library"},{"type":"prose","text":"Each row is an Astryx definition (or one your set declares) with the exact command that adds the icon for it. Run one:"},{"type":"code","lang":"bash","code":"astryx experimental icon add Bin --from @acme/glyph-library --definition delete"},{"type":"prose","text":"The CLI reads the library's exports without running them and refuses a name the module does not export, suggesting close names. It adds the icon as `BinIcon` (id `bin`, words from its name), writes `export {Bin as BinIcon} from '@acme/glyph-library';` to the set's generated module, and sets `map.delete = \"bin\"`. Running it again changes nothing. Do not copy the definition's words into the icon: `astryx experimental icon` matches an icon by its own words and by the name and words of every definition it is mapped to."},{"type":"prose","text":"When no Astryx definition fits, add your own in the same command. It needs no pull request:"},{"type":"code","lang":"bash","code":"astryx experimental icon add Dice5 --from @acme/glyph-library --new-definition random --description 'Pick something at random.' --words dice,shuffle,chance"},{"type":"prose","text":"`experimental icon map <definition> <icon>` points a definition at an icon the set already has (a definition is named in camelCase, `eyeSlash`, or by the kebab id the definitions list shows, `eye-slash`; an icon by its id, its export name in any case, or another name its library exports it as, such as `trash-2`, never by one word of its id), `experimental icon map --pairs close=x-mark,search=magnifying-glass` writes many entries at once (checked together, all or none; an entry the map already has is replaced, and the receipt shows what it was), and `--remove` drops an entry. `experimental icon new-definition <name> --description ... --words ... --icon <id>` adds your own definition for an icon you already have. `experimental icon --definitions` lists every Astryx definition, built in or not, with its words (`--json` for a script)."}]},{"id":"wrap-a-library","title":"Or wrap a whole library","content":[{"type":"code","lang":"bash","code":"astryx experimental icon new-set outline --from @acme/glyph-library"},{"type":"prose","text":"Every component the library exports becomes an icon (an alias of one component is recorded once), named `<Name>Icon`, with an id from its name (`Squares2X2Icon` is `squares-2x2`: a dimension stays one word). An export name cannot start with a digit, so an icon whose id would start with one once the library prefix comes off keeps the prefix (`fa0` is id `fa-0`, exported as `Fa0Icon`), and an id you give with `--id` must start with a letter. `map` is filled only where a definition's name is an icon's id (`delete` → icon `delete`), and the receipt lists those entries under Mapped by name: a library can draw another meaning under the same name (one library's `delete` is a backspace key), so check each. An icon whose id is only one of a definition's words (`trash` for `delete`) may mean something else in this library, so the receipt lists it under Suggestions, with the `experimental icon map <definition> <icon>` command for each, and writes nothing for it: check the meaning, then run the ones that fit. Run it again after a library release to refresh the icons that library supplies; `map` entries whose icon still exists are kept, and the receipt names any icon the library dropped, any icon `--exclude` left out, and the `map` entries each took with it. Icons you added from your own files or another library are left as they are. Icons you added one file at a time from the same package (`--from <package>/dist/XIcon`) move to the root import when you refresh from the package root and the root exports the same icon; each keeps its id, export, `map` entries, variants, and words on that refresh and every later one, and the receipt lists it under `moved`. A library icon whose id or name a moved icon already has is left out. When another icon of the set already reads the same root export, the icon stays on its own file, and the receipt says why. An icon you already have is known by the library export it re-exports, so it keeps its export name exactly, its `map` entries, variants, and words, even when a newer CLI spells its id differently or your `--exclude` lets a library prefix come off new ids; the receipt lists each changed id under `renamed`. An id you chose that is not a spelling of the library name (`dismiss` for `XIcon`) is kept. A refresh with `--dry-run` writes nothing and prints the Mapped by name and Suggestions lists again; `--display-name` and `--description` on a refresh rewrite the descriptor. Variants added with `add --variant … --all` are kept too; run that `add` again to pick up icons the release added. `experimental icon --list` shows how many definitions the set maps."},{"type":"prose","text":"With a package or package subpath, it also records the installed library and version as the data file's `source`, so `integration check` warns when your dependency moves to another version; copies the library's LICENSE (and NOTICE) files into the set directory; and sets the descriptor's `license` to the library's. A set you started without `--from` gets the same the first time a refresh records its source, unless you already changed `license`: a `license` you set is kept (the receipt names the library's), and every later refresh keeps it too. Your package.json `license` is never changed. Edit `license` when the artwork's license differs from the library's package license. When the library ships no license file to copy, the receipt says so under `licenseNoticeMissing` and in its notes, and the CLI writes nothing: add a `NOTICE` file to the set directory (`icon-sets/<set>/NOTICE`) that names the library, its version, and its license. `integration check` accepts a file named `LICENSE`, `LICENCE`, `NOTICE`, or `COPYING`, in any case and with an optional suffix such as `NOTICE.md` or `LICENSE-MIT`, in the set directory or the package root; without one it reports `icon_license_notice_missing`."},{"type":"prose","text":"A library with a module per style supplies variants. Declare them when you create the set, then add a variant for every icon in one run:"},{"type":"code","lang":"bash","code":"astryx experimental icon new-set heroicons --from @heroicons/react/24/outline --variants outline,solid --default-variant outline --description 'Heroicons, outline and solid.'\nastryx experimental icon add --variant solid --from @heroicons/react/24/solid --all"},{"type":"prose","text":"A library that redraws its artwork for small sizes (Heroicons' 20px mini and 16px micro) ships each of those as its own set in its own package (their export names match the 24px ones), not as variants: a variant's size comes from CSS. `--variants` lists the variants; `--default-variant` names the one each icon's own export draws (when omitted, the look a library that names its looks draws; otherwise the set's current default, else, on a set without icons, the first variant; a set with icons changes it only with `--from`, and only in a library that names its looks). `--all` adds the variant for every icon whose id an export of `--from` has (`TrashIcon` in the solid module becomes `TrashSolidIcon`, the solid variant of `trash`), and the receipt lists the icons the module has no export for. A library may ship each look as its own package (Font Awesome's solid and regular packages): `--from` may then name the other package, and an icon gains the variant from the export of the same name there; the receipt lists the icons that package has no export for. Running it again changes nothing."},{"type":"prose","text":"A library whose icons are data (objects or SVG strings) has no components to find: write an adapter (see library shapes) and pass it, as in `experimental icon new-set fa --from @acme/glyph-data --adapter ./src/adapt.js#adapt`; every data export then becomes an icon through the adapter. When every icon export shares a leading word, such as `feather` in `featherEye` and `featherSun`, ids and export names leave it out: `featherEye` becomes id `eye`, exported as `EyeIcon`. The prefix is read over icon-like exports only: SCREAMING_CASE constants (`README`, `VERSION`), number and boolean exports, and, next to components or icon objects, plain strings are never icons. Components named `…Provider` or `…Context` are never icons either, and neither is a pack: an object whose keys are all other exports of the module, such as `fas` next to `faXmark`. Leave out any other export that is not an icon with `--exclude meta,version`: the data file keeps the list in `exclude`, so a refresh leaves them out too. When a library exports one icon under several names (`Trash2` and `Trash`), the icon is recorded once and its other names become words, so `experimental icon trash-2` finds it and `experimental icon map delete trash-2` maps it. `experimental icon add` reads the prefix the same way, and reuses the icon an export already has, so its commands need no `--id`."}]},{"id":"export-the-icons","title":"How icons are exported","content":[{"type":"prose","text":"Every icon is a named export of your package's public entry, so apps, templates, and theme maps all import components from one place:"},{"type":"list","style":"unordered","items":["The data file's `module` is your package name or one of its package.json `exports` subpaths, never a file path. `integration check` fails otherwise.","A variant is a named look the set supplies (for example outline or solid); size comes from CSS. List the names in `variants` in the data file and the one each icon's own export draws in `default`.","Each export is named `<Name>Icon`, and a variant `<Name><Variant>Icon`, such as `TrashSolidIcon`. `experimental icon add` names them that way; `integration check` warns on another name.","Each export is a React component: a function, a class, `forwardRef` or `memo`, or what your adapter returns. `integration check` fails on a plain object or string.","It accepts SVG props (`className`, `style`, `aria-*`, `width`, `height`), draws with `currentColor`, and fills its box (`1em` or `100%`), so `<Icon icon={TrashIcon} size=\"sm\" />` sizes and colors it like a built-in icon. The CLI cannot check this statically; the test below can."]},{"type":"prose","text":"`experimental icon add` writes the set's generated module (`generated` in the data file) and its declaration file, which re-exports each component's own types and types each adapted icon as `ComponentType<SVGProps<SVGSVGElement>>`. Add this line to your package's entry and its types; `experimental icon new-set` names the exact line and file in its receipt (see add an icon set):"},{"type":"code","lang":"js","code":"export * from './icon-sets/outline/outline.generated.js';"},{"type":"prose","text":"An optional render test you can copy. Save it inside your package directory and run it there, since it imports your package by name through its `exports`, and install `react-dom` first (`npm install -D react-dom`). A library may add its own classes beside yours, so it checks the class list. A component that writes its own `width` and `height` attributes (24, from a `size` prop, say) still fills its box when it passes `style` through to its svg: the `Icon` component and `themeIcons` size the svg with CSS, which overrides size attributes. The test checks that too."},{"type":"code","lang":"js","code":"import {renderToStaticMarkup} from 'react-dom/server';\nimport {createElement} from 'react';\nimport * as icons from '@acme/icons';\n\nfor (const [name, Icon] of Object.entries(icons)) {\n if (!name.endsWith('Icon')) continue;\n const html = renderToStaticMarkup(createElement(Icon, {className: 'x'}));\n if (!/class=\"([^\"]* )?x( [^\"]*)?\"/.test(html)) throw new Error(`${name} drops className`);\n if (!html.includes('currentColor')) throw new Error(`${name} has a fixed color`);\n const styled = renderToStaticMarkup(createElement(Icon, {style: {width: '1em'}}));\n if (!styled.includes('width:1em')) throw new Error(`${name} drops style, so CSS cannot size it`);\n}"}]},{"id":"library-shapes","title":"Library shapes","content":[{"type":"prose","text":"`--from` is any import specifier: a package, a package subpath, or a `./` path inside your package. Use the row that matches the library:"},{"type":"table","headers":["Library ships","Command"],"rows":[["Components in one module","`experimental icon add Bin --from @acme/glyph-library --definition delete`"],["A subpath per style","`experimental icon add --variant solid --from @acme/glyph-library/solid --all` for every icon at once, or `experimental icon add Bin --from @acme/glyph-library/solid --id bin --variant solid` for one (the set must declare the variant: `new-set --variants`)"],["Every look in its export names (`XOutline24WGHT500Icon`, `XFilled24WGHT500Icon`)","`experimental icon new-set meta --from @acme/vector-icons` wraps each glyph once as `x` (`XIcon`), in the look `--default-variant` names or the library's usual default (outline, the middle weight). For another look: `experimental icon new-set meta --variants outline,filled` declares it in place, then `experimental icon add --variant filled --from @acme/vector-icons --all`"],["One file per icon, default export","`experimental icon add Rocket --from @acme/glyph-library/rocket --default --definition rocket`"],["Icon data objects","Declare an `adapter`, then `experimental icon add Rocket --from @acme/glyph-data --definition rocket`"],["SVG strings or URLs","Declare an `adapter` that renders them, then `experimental icon add` as above"],["Your own component files","`experimental icon add Rocket --from ./src/icons/rocket.js --definition rocket`, and `--id rocket --variant solid` for its other looks. The file exports a component named as written (no library prefix is taken off), with a declaration file beside it (`rocket.d.ts`) or written in TypeScript, since the set's types re-export its own; when package.json lists `files` and none covers it, the receipt names the `files` array that publishes its folder."]]},{"type":"prose","text":"An export that is not a component goes through your adapter: a function in your package that turns it into one. Pass it to `experimental icon new-set` as `--adapter ./src/adapt.js#adapt`, which declares it in the data file as `\"adapter\": {\"module\": \"./src/adapt.js\", \"export\": \"adapt\"}`; with `--from`, every data export becomes an icon through it, and `experimental icon add` writes `export const RocketIcon = adaptIcon(RocketIconSource);`:"},{"type":"code","lang":"js","code":"// src/adapt.js\nimport {createElement} from 'react';\n\n/** Turn one icon data object ({path}) into an icon component. */\nexport function adapt(data) {\n return function AdaptedIcon(props) {\n return createElement(\n 'svg',\n {'viewBox': '0 0 24 24', 'width': '1em', 'height': '1em', 'fill': 'currentColor', ...props},\n createElement('path', {d: data.path}),\n );\n };\n}"}]},{"id":"theme-map","title":"The theme map","content":[{"type":"prose","text":"The generated module also exports `themeIcons`: one entry per built-in definition in `map`, each an element of your own icon, hidden from assistive technology and sized `1em` by its attributes and by CSS (its `style`), so it fills the theme's icon box even when your component writes its own size attributes. The CLI rewrites it on every `experimental icon add` and `experimental icon map`, so you never write it by hand, and `integration check` proves it matches `map`. A theme uses it in one line:"},{"type":"code","lang":"tsx","code":"import {defineTheme} from '@astryxdesign/core/theme';\nimport {themeIcons} from '@acme/icons';\n\nexport const brand = defineTheme({name: 'brand', icons: themeIcons});"}]},{"id":"check-the-set","title":"Check the set","content":[{"type":"prose","text":"`astryx integration check` reads the set without running your icons. An unmapped built-in definition is an error that names the definition's description and words and the `experimental icon map <definition> <icon id>` command that fixes it, so you or your agent can pick the icon. It names a search of your set (`experimental icon <word> --set <set>`) only when that search finds icons, and suggests one icon: the first of the suggestions `experimental icon new-set` gives for that definition. It never matches part of a word, and never writes a suggestion. Its icon-set codes:"},{"type":"list","style":"unordered","items":["`invalid_icon_set` (error): the descriptor, data file, or a definition file is invalid, for example a repeated `id`, an icon with no words, or a `map` key that is neither an Astryx definition nor one in your `definitions` folder. The set is withdrawn: apps do not see it.","`icon_builtin_definition_missing` (error): a built-in definition is not in `map`.","`icon_definition_unused` (warning): a definition you declared is not in `map`.","`icon_definition_shadowed` (warning): a definition you declared now exists in Astryx; map to Astryx's and remove yours.","`icon_module_not_public` (error), `icon_export_name` (warning), `icon_not_component` (error): the export contract above.","`icon_export_missing` (error): an export, the generated module, or the adapter does not exist.","`icon_module_invalid` (error): the set's module, a file it re-exports, or the generated module does not parse; reported once, instead of a missing export per icon.","`icon_generated_types_mismatch` (error): the generated module's declaration file is missing or does not match it.","`icon_theme_map_mismatch` (error): the theme map disagrees with the built-in entries of `map`.","`icon_source_version_drift` and `icon_license_notice_missing` (warnings): the data names another library version than the package depends on, or a set with an upstream ships no license notice."]},{"type":"prose","text":"The other Astryx definitions your set leaves unmapped are not issues: a library need not draw every definition. They are listed under \"Unmapped icon definitions (optional)\", and in the JSON as the validate result's `iconSets`: for each set, `unmappedDefinitions` (each `{name, description, words}`) and `suggestions` (each `{definition, icon}`, for any unmapped definition one of your icons fits). They are never counted and never fail a check."},{"type":"prose","text":"Templates use more meanings than the built-in ones, such as `document` and `share`. A copied template shows a placeholder for each meaning your set does not map. To see which, run `astryx experimental icon --definitions` in your package: each definition shows how many templates use it and whether your set maps it. `new-set`, `add`, and `map` end with a line that names the template meanings the set still leaves unmapped, most used first, and `integration check` lists them under \"Template icon meanings not mapped\" (in the JSON, each set's `templateMeanings.unmapped`, each `{definition, templates}`). This list never fails a check."},{"type":"prose","text":"An export fails only when the reader proves it absent; what it cannot judge it does not fail either. An icon export whose module is an `exports` target you have not built yet; an icon or adapter export it cannot prove either way (behind a re-export it cannot follow, bound to a default or namespace import, or imported from a package that is not installed); and a theme map or theme-map entry it cannot read are listed under \"Not checked\", and in the JSON as each set's `unchecked` (each `{icon}`, `{adapter}`, or `{entry}`, with its `reason`). Build the package, install the package it imports from, export the icon by name, or write the entry as a binding or element to have it checked. An export your built module lacks is still an error."},{"type":"prose","text":"Errors fail the check. Warnings fail only with `--strict`. A set that maps every built-in definition and every definition it declares passes `--strict`, which integrations run in their build ({@link generic:checks}). The flow, start to finish: `experimental icon new-set` → `npm install -D typescript@6` when the receipt asks → `integration check` → `experimental icon add` (or `experimental icon map`) for each definition it lists → `integration check` passes."}]},{"id":"publish","title":"Before you publish","content":[{"type":"list","style":"unordered","items":["Run `astryx integration verify` yourself before publishing. Do not put it in `prepublishOnly`: under `npm publish --dry-run` its own `npm pack` becomes a dry run too, and it checks nothing.","Declare `@astryxdesign/cli` as an optional peer (`peerDependenciesMeta`). A required peer an app cannot satisfy makes npm remove the app's CLI without a word. Icon sets are experimental, so no version range promises them, and the format may change in a patch release. A CLI reads a set only when it knows every key the set's data file uses: a key it does not know withdraws the set, naming the key. `exclude` is read only by a CLI whose data-file reference lists it ({@link schema:icon-set-data}); a set without `exclude` is read by every CLI that has `astryx experimental icon`. A CLI without it reads `experimental` as a manifest key it does not know: `astryx doctor` there warns that your package was published against a newer Astryx CLI, other commands print a one-line nudge to run it, and your icons, icon definitions, and template icon mapping do not appear ({@link generic:versioning}).","Every built-in definition needs an icon, because Core renders it. When your library has no icon with that exact meaning, map the closest one, or add your own artwork as a component file in your package (`experimental icon add <Name> --from ./src/icons/<name>.js --definition <definition>`; a ./ path is named as written). Artwork you draw is yours: note its license beside the library's, for example in a NOTICE file in the set directory.","The generated declaration file imports React types, so declare `@types/react` as an optional peer for TypeScript users.","Keep the wrapped library in `dependencies`: your generated module re-exports its components, so apps get it with your package, and `integration check` compares its range with the version the data file records.","`integration check --strict` type-checks the set's doc files; it does not type-check the generated declaration file against React's types. Run `tsc` with `@types/react` installed to check those.","Your package needs `react` (the theme map and adapter use it) as a peer, as Core does. The `experimental icon new-set` receipt names the peers your package.json does not declare yet, as the JSON to add: `react` (`>=18`), and `@types/react` and `@astryxdesign/cli` (from the release that wrote the set) as optional peers; and the `typecheck` script (`astryx integration check --strict`) when there is none."]}]},{"id":"share-a-definition","title":"Share a definition with every set","content":[{"type":"prose","text":"Your own definitions need no change to Astryx. To share one with every set, open a pull request that copies its file into the CLI's icon definitions folder, with a description and words. Its name must not clash with another definition."}]},{"id":"how-apps-use-it","title":"How apps use it","content":[{"type":"code","lang":"bash","code":"astryx experimental icon delete # ranked matches with import lines\nastryx experimental icon outline/bin # one icon and every variant\nastryx experimental icon --list # installed sets, their order, and definition coverage\nastryx experimental icon use outline # make it the project's main icon set\nastryx experimental icon use outline --backup brand # a main set, then a backup"},{"type":"prose","text":"A template declares, in its descriptor's `icons`, the definition each imported icon draws (`{TrashIcon: 'delete'}`). Once the project sets `experimental.iconSet` in astryx.config (`experimental icon use` writes it), each declared icon becomes the icon for that definition from the first set in the project's list that maps it. An icon that no set in the list has draws a placeholder instead (see When no set has an icon, below), unless it comes from the library a set in the list wraps (the `source` in the set's data). Such an icon is already one your project chose: a template written with the main set's own library keeps its icons as written, and an icon from a backup set's library that no set maps keeps its import. The copy reports every icon as mapped, a placeholder, or kept. Nothing is guessed from names. A mapped icon loses its library's sizing props (`size`, `strokeWidth`, `absoluteStrokeWidth`), since a set's icons take their size from CSS; the report names them as `dropped`. Comments on a rewritten import line are kept."},{"type":"prose","text":"Each `icons` key is the name the template imports from its module, not a local alias. When a template imports the same name from two modules, such as `TrashIcon` from a library's outline and solid modules, one key covers both: both draw the same definition. Each then becomes the chosen set's variant of the same name when its module belongs to an installed set that declares the variant (so solid stays solid). When the chosen set's icon has no such variant, it draws the set's default look, and the report names both looks as `variant: {asked, used}`. A missing look never moves an icon to a backup set."}]},{"id":"main-and-backup-sets","title":"Choose a main set and backups","content":[{"type":"prose","text":"A project uses one main icon set. Backup sets fill the meanings the main set does not map, in the order you list them. Each icon comes from exactly one set: the first in the list that maps its meaning. Two sets that both map a meaning never mix; the list order decides."},{"type":"code","lang":"bash","code":"astryx experimental icon use outline --backup @acme/brand-icons/brand --backup lines"},{"type":"prose","text":"`use` writes `experimental.iconSet` in astryx.config. With no `--backup`, it writes the set name as a string. With backups, it writes a list, the main set first. Name a set as `<set>`, or as `<package>/<set>` when two packages ship a set with that name. Every set in the list must be installed, and each set appears once. When the project's `@astryxdesign/cli` range also admits an older release that refuses the value written, `use` warns and names the range to require; the CLI you run now reads it either way."},{"type":"code","lang":"js","label":"astryx.config.mjs","code":"export default {\n experimental: {\n // One main set:\n // iconSet: 'outline',\n // A main set, then backups in order:\n iconSet: ['outline', '@acme/brand-icons/brand', 'lines'],\n },\n};"},{"type":"prose","text":"`astryx experimental icon --list` shows the order: the project's `order` (each set as `<package>/<set>`), and each set's `role` (`main`, `backup`, or not listed) and `rank`. Its coverage columns count the definitions each set maps: `builtIn` of the built-in names (a valid set maps them all, and `missing` lists any it lacks), and `definitions` of every Astryx definition. When two or more sets are installed and none is the main set, `--list` says so with the command to run, `astryx experimental icon use <main> --backup <set>`. The `use` receipt (`icon.use`) names the main set (`iconSet`, `set`) and each backup (`backups`), and lists installed sets the list leaves out (`unlisted`) with the command that adds them (`next`): `astryx doctor` fails a project that installs more than one set and leaves one out of the list."},{"type":"prose","text":"Only the main set's theme map feeds `defineTheme({icons})`. Backups never change the theme. The copy report lists each set it used, with its license (`icons.sets`)."}]},{"id":"missing-icons","title":"When no set has an icon","content":[{"type":"prose","text":"When no set in the list maps an icon's meaning, and no set in the list wraps the library the template imports it from, the copied file removes that icon from the template's library import. It declares a small `MissingIcon` component once (another free name when the file already uses `MissingIcon`), and each place the icon was renders it, so the page still builds and needs no new package. The placeholder is a dashed square, 1em in size, in the current text color. It is hidden from screen readers unless that use gives it an `aria-label`. A comment beside each use records the meaning."},{"type":"code","lang":"tsx","code":"<Icon icon={MissingIcon /* missing icon: cut */} size=\"sm\" />"},{"type":"prose","text":"`astryx template` prints a note for each placeholder, and the JSON report lists it in `icons.placeholder` with its `definitions` and `fixes`. Give the meaning a real icon in one of these ways:"},{"type":"list","style":"ordered","items":["Add a backup set that has the meaning: `astryx experimental icon use <main> --backup <set>`. `astryx discover --type icon-set` lists the sets your sources offer, with the definitions each maps; install one first.","If you author your main set (its package is yours, not an installed dependency), map the meaning there: `astryx experimental icon map cut <icon> --set <main>`.","For a built-in meaning (`astryx experimental icon --definitions` marks them), render the theme icon by name instead: `<Icon icon=\"close\" />`. Every set maps the built-in names, so this needs no import.","Otherwise, write your own icon component and pass it where `MissingIcon` was (`astryx docs icons custom-icons`)."]},{"type":"prose","text":"After the first two, copy the template again, or replace each use of `MissingIcon` with the icon `astryx experimental icon <meaning>` prints, which finds the icon once a set in your list maps the meaning, and delete the `MissingIcon` declaration. `astryx doctor` warns while copied code still uses the placeholder (the `icon-placeholders` check), and names each file and meaning."}]},{"id":"label-template-icons","title":"Label every template icon","content":[{"type":"prose","text":"A template follows a project's icon sets only for the icons its `icons` declares. In a package whose templates declare `icons`, `astryx integration check` notes each icon a template imports but does not declare (`template_icon_undeclared`). The note fails `--strict --next` now, and `--strict` from the next minor release. It counts an import from another package as an icon when a template in the package declares an icon from the same module, and the template renders it as an element with no children (`<Scissors />`) or passes it as a value (`icon={Scissors}`). Any other import from that module, such as a type, a function the template calls, or a provider with children, is listed as not checked: declaring it would make `astryx template` swap it for an icon. An import whose name ends in `Icon`, from any other module, matches by name only, so the check lists it as not checked. A generic renderer (a bare `Icon`, or a component every use gives an `icon`, `iconNode`, `name` or `src` prop, such as lucide's `DynamicIcon`) draws no one definition, so it is listed as not checked too, whatever its module. Neither fails anything. Add the key with the definition it draws; `astryx experimental icon --definitions` lists the definitions, and `astryx experimental icon new-definition` adds one your set needs."}]},{"id":"reference","title":"Where icon sets show up","content":[{"type":"prose","text":"Every place the CLI reads or reports icon sets, all experimental. Outside `astryx experimental icon`, each appears only in a project that sets `experimental.iconSet`; `astryx search` never returns icons:"},{"type":"table","headers":["Where","What"],"rows":[["`experimental.iconSet` in astryx.config","The project's main icon set, by set name or as `<package>/<set>`, or a list: the main set first, then backup sets in order. It is the opt-in: templates, discover, and doctor read icon sets only when it is set. `astryx experimental icon` ranks the main set's icons first, and without it treats the only installed set as the project's. `astryx experimental icon use <main> --backup <set>` writes it."],["`experimental.iconSets` in the integration manifest","The folder that holds the package's icon sets, relative to package.json. `astryx experimental icon new-set` declares it."],["A template descriptor's `icons`","The icon definition each imported icon draws (`{TrashIcon: 'delete'}`): a named import by the name it imports, a default import by its local name. `astryx template`, shown or copied, then writes the icons from the first set in the list that has each meaning and reports `icons` (status, set, order, mapped, placeholder, kept, sets): every key is mapped, a placeholder when no set has its meaning, or kept with why (a namespace or type-only import, a re-export, an Astryx import or one from a set in the list, an import from the library a set in the list wraps, no import at all, or an icon that draws no definition and has no match). `integration check` notes a key the template's source never imports (`template_icon_not_imported`), never failing, and notes an imported icon the package's templates do not declare (`template_icon_undeclared`), which fails `--strict --next`."],["`astryx discover`","A package's sets (`iconSets`) and, for `@scope/name/<set>`, the set's display name, license, icon count, and definitions; `--type icon-set` keeps only sets."],["`astryx doctor`","In an app, the `icon-sets` check: fails when `experimental.iconSet` names a set, main or backup, that is not installed, was withdrawn (an invalid set, or one whose module does not resolve), or that two packages ship by that name, saying why; fails when more than one set is installed and the list leaves one out; and warns when another installed set was withdrawn. The `icon-placeholders` check warns while copied code uses the placeholder for a missing icon, naming each file and meaning. In your icon-set package, check with `astryx integration check` instead: plain `doctor` diagnoses an app."],["JSON types","`icon.search`, `icon.detail`, `icon.list`, `icon.setIcons`, `icon.definitions`, `icon.use`, `icon.map`, `icon.mapMany`, `icon.add`, `icon.addVariants`, `icon.definitionMatches`, `icon.newSet`, and `icon.newDefinition`, from the matching `astryx experimental icon` command."]]}]}]}},"dead3a7a1fd4cc50784dd371eacee148":{"doc":{"type":"block","exampleFor":"StatusDot","name":"StatusDot","displayName":"Status Dot","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A positive status dot indicator.","componentsUsed":["StatusDot"]}},"dec8180d30aa25d9df6eff693097488d":{"doc":{"type":"block","exampleFor":"ChatToolCalls","name":"ChatToolCalls — Statuses","displayName":"ChatToolCalls — Statuses","description":"All four status states (pending, running, complete, and error) shown together in a single group.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["ChatToolCalls"]}},"dfa1121362e81c41a82556a2b1f928f1":{"default":{"type":"icon-definition","name":"bookmarkAdd","description":"Save something new as a bookmark or a saved view.","words":["add bookmark","bookmark plus","save view"]}},"dfb29c900273f68a197a1cf95e66c8bf":{"doc":{"type":"block","exampleFor":"useCalendarDays","name":"useCalendarDays — Month Grid","displayName":"useCalendarDays — Month Grid","description":"A compact custom month view: a seven-column table built from the weeks and dayNames that useCalendarDays returns, with only as many rows as the month needs. Days from the previous and next months are dimmed, and a Week starts on control (Sunday or Monday) reorders both the header and the grid.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SegmentedControl","Layout","Text"]}},"dfea13d707c3fffc7329aed6844ae0d1":{"default":{"type":"icon-definition","name":"package","description":"A package, product or shipment.","words":["box","product","module","cube"]}},"e0089aed347380c32e3c3fe50ae9513f":{"docs":{"type":"generic","name":"is-my-code-good","title":"Is my Astryx code good?","category":"guide","keywords":["is my code good","review my code","code review","check my code","evaluate my code","review astryx code","rubric","astryx quality rubric","custom code audit"],"description":"Check whether a product surface fits its app and uses Astryx well, require evidence for every claim, and improve it with a repeatable agent review.","sections":[{"id":"understand-the-app","title":"Understand the app","content":[{"type":"prose","text":"Do not judge a file or surface in isolation. First learn the app context that makes a pattern correct, inconsistent, or incomplete."},{"type":"list","style":"ordered","items":["Name what the app is for, who uses it, and the task this surface helps them complete.","Trace where the surface sits: its route, entry point, navigation path, parent shell, and the page or block pattern it is meant to use.","Inspect sibling surfaces that do the same or adjacent jobs. Record their shared headers, actions, layout primitives, spacing, density, states, and narrow-screen behavior.","Read project guidance, including the root and relevant nested `AGENTS.md` files. Record app-owned wrapper components and intentional app conventions.","Record the installed `@astryxdesign/core`, `@astryxdesign/cli`, and integration-package versions from the project manifest and lockfile. Run the installed invocation of `{@command component --list}` to see core and integration components, then inspect app-owned wrappers that do not appear in that catalog.","List the real data states, roles and permissions, supported locales and RTL behavior, and mobile or narrow-width needs that affect the task."]},{"type":"prose","text":"Keep this context with the review. Mark anything you could not learn as `not inspected`. Do not flag a documented, intentional app convention merely because it differs from a generic pattern; cite the convention and verify that the user task and accessibility requirements still work."}]},{"id":"choose-the-review","title":"Choose the review","content":[{"type":"prose","text":"Review one exact revision and one named product surface, route, or component in its app context. Pick the smallest review that can answer your question."},{"type":"table","headers":["Review","Use it for","What it can prove"],"rows":[["Source check","A fast check for raw elements, direct icons, custom styles, and unsupported imports","Source findings plus app context visible in the project. It cannot call the rendered product good."],["Full product review","Calling a surface done","App fit and task completion plus source quality, rendered layout, states, assets, project checks, and accessibility evidence."],["Template publication grade","An integration template that people copy","The shared criteria plus versioned scoring, metadata, packaging, copy, and clean-app checks in {@link generic:grade-template-with-agent}."]]},{"type":"prose","text":"If all you have is one source file, run the source check anyway and use any project context that is available. Report clear source blockers; list missing app purpose, route, sibling patterns, shell, theme and density, installed components and versions, real states and roles, locale and mobile needs, revision, runnable app, rendered states, and project checks; and do not call the full product good."},{"type":"prose","text":"`astryx` in this guide means the project's installed CLI invocation, such as its local binary or existing package script. If the project has no installed invocation, report that evidence gap instead of downloading a different CLI version for the review."},{"type":"prose","text":"A screenshot can prove a visible result, but it cannot prove which imports, components, or styles produced it. Source alone cannot prove responsive behavior, interaction, color modes, or whether an asset loads. Mark anything outside the supplied evidence as `not inspected`."}]},{"id":"apply-the-rubric","title":"Apply the shared rubric","content":[{"type":"prose","text":"Mark each category `good`, `needs work`, or `not inspected`. Cite the route, sibling surface, project guidance, theme, component catalog, or user requirement behind every context-dependent result; cite a file and line for every source result; and name the rendered state for every visual result. Never turn missing evidence into a pass. A blocker is a finding that prevents the surface from building, rendering, operating, letting the target user complete the task, or meeting an accessibility requirement. Other departures from the rubric are `needs work`."},{"type":"table","headers":["Category","What good means"],"rows":[["App fit and task completion","The surface uses the app's established shell, page pattern, theme, density, wrappers, integrations, and interaction conventions unless a deviation is intentional and evidenced. The target user can complete the surface's job across the real states and permissions in scope."],["Astryx components","Astryx owns each visible or interactive pattern for which it has a suitable component. Raw elements remain only when their native semantics are necessary or Astryx has no equivalent."],["Icons","Icons render through `Icon`, `IconButton`, or the receiving component icon prop, not as raw SVG or a library component used directly."],["Styling","Component props and design tokens do the work before custom StyleX declarations, inline styles, or classes. Each custom rule has a reason because no supported Astryx surface fits."],["Layout","Astryx layout primitives express the visible structure, hierarchy, spacing, and responsive behavior without rebuilding the same patterns in raw containers or CSS."],["Images and assets","Every image, font, and other asset is intentional, accessible, stable, and working from the product build path."],["Code health","Public imports resolve, client boundaries are necessary, reachable states are handled, and no dead code or wrapper hides a finding."]]},{"type":"prose","text":"Before calling a pattern custom or wrong, compare sibling surfaces and the installed component catalog. Reuse an app-owned wrapper or integration component when it already owns the job. A documented app convention is not a finding merely because it differs from a generic pattern; cite the convention and verify the user's task and accessibility requirements."},{"type":"heading","level":3,"text":"Common component replacements"},{"type":"table","headers":["Raw pattern","Common Astryx owner"],"rows":[["Layout `div`","`VStack`, `HStack`, `Grid`, `Card`, `Section`, or `Center`"],["`span`, `p`, or `h1` through `h6`","`Text` or `Heading`"],["`button` or linked action","`Button`, `IconButton`, or `Link`"],["In-page `nav` or `aside`","`LayoutPanel`"],["`header` or `main`","`LayoutHeader` or `LayoutContent` inside `Layout`"],["`ul`, `ol`, or `li`","`List` and `ListItem`"],["`input`, `textarea`, or `select`","The matching Astryx form control"],["`table`, `tr`, or `td`","`Table`"],["`hr`, `dialog`, `details`, or `summary`","`Divider`, `Dialog`, or `Collapsible`"]]},{"type":"prose","text":"Keep a native element when its semantics are necessary and Astryx has no equivalent. Common examples are a `form` that provides native submission, `input type=\"hidden\"` for native form state, and an `img` when no general Astryx image component fits."},{"type":"list","style":"unordered","items":["Compare the route with sibling surfaces that do the same job. Identify the app's shared header, actions, shell, page pattern, spacing, and density before judging the target.","Inspect every JSX opening tag. Moving raw HTML behind a PascalCase helper does not make the underlying pattern an Astryx component.","Count every raw SVG element used as an icon, including `svg`, `path`, `circle`, `rect`, `line`, `polyline`, `polygon`, `ellipse`, and `g`. For an inline SVG helper, count its raw SVG elements once in the helper definition, not again at each render. Count each icon-library component rendered directly outside an Astryx icon surface.","Look up a possible replacement with `{@command component <Name> --dense}`. Do not invent a component or prop that the installed version does not provide.","Run the installed `{@command component --list}` and inspect app-owned wrappers before rebuilding a pattern. Prefer the component the app or one of its installed integrations already uses for the job.","Inspect every `stylex.create` declaration, inline style, `className`, and `stylex.props` use. Look for a component prop or token first.","When replacing a literal spacing value, read `{@command docs spacing --full}` for the matching step or token and the target component doc for the prop's accepted scale. Do not guess a pixel-to-step mapping.","Choose the root that matches the surface. Use `Layout` for a page, `Center` for centered content, and `AppShell` only when the surface owns global application chrome.","Render realistic empty, loading, error, long-content, and interactive states. Check narrow and wide widths plus each supported color mode.","Verify the target roles and permissions, supported locales and RTL behavior, and mobile needs. Follow the real task from entry to completion instead of judging only the static page.","Run the product build, type check, tests, and accessibility checks. Keep a missing or failed check visible instead of calling the result good."]},{"type":"prose","text":"This shared rubric has no numeric score. It answers whether ordinary product code uses Astryx well without pretending that an inapplicable template field or missing browser state earned points. Integration templates add a versioned score in {@link generic:template-grading-rubric}."}]},{"id":"collect-the-evidence","title":"Collect the evidence","content":[{"type":"list","style":"ordered","items":["Record the exact revision, named surface, route, and source files in scope. If the files are outside version control, record a content hash for each file and say that no project revision was available.","Write down the app's purpose, target users, surface task, entry point, navigation path, parent shell, expected page pattern, and sibling surfaces used for comparison.","Record project guidance, theme, density, installed Astryx and integration versions, the relevant output of `{@command component --list}`, and app-owned wrappers or conventions.","List the states and context that matter, including real data shapes, roles and permissions, empty, loading, error, long content, interaction, narrow width, wide width, supported color modes, locales, and RTL behavior when they apply.","Run the product and capture each named rendered state. Use screenshots or a live browser result for visible claims, and follow the target user task from entry to completion.","Run the build, type check, tests, and accessibility checks. Keep their commands and results with the review.","For each Astryx component whose replacement, prop, or composition is in question, read `{@command component <Name> --dense}`."]}]},{"id":"ask-an-agent","title":"Ask an agent","content":[{"type":"prose","text":"Start with a read-only pass so the original findings stay visible. Replace every angle-bracket value in this prompt."},{"type":"code","lang":"text","label":"Agent evaluation prompt","code":"Evaluate how well <surface> at <revision> fits <app> and uses Astryx. Do not edit files during this first pass.\n\n`astryx` below means the project's installed CLI invocation, such as its local binary or existing package script. If none is installed, report that evidence gap instead of downloading a different version.\n\nBefore evaluating:\n1. Read `astryx docs is-my-code-good --full`.\n2. Read the root and relevant nested `AGENTS.md` files plus other project guidance. State what the app is for, who uses it, and the task this surface supports.\n3. Trace the surface's route, entry point, navigation path, parent shell, and expected page or block pattern.\n4. Inspect at least two sibling surfaces that do the same or adjacent jobs. Record their shared headers, actions, layout, spacing, density, states, and narrow-screen behavior.\n5. Record the app's theme, density, app-owned wrappers, and documented intentional conventions.\n6. Read the project manifest and lockfile for the installed Astryx, CLI, and integration versions. Run `astryx component --list`, then identify relevant integration components and app-owned wrappers.\n7. List the real data states, roles and permissions, supported locales and RTL behavior, and mobile or narrow-width needs.\n8. Inspect every source file in scope and its public imports.\n9. Run `astryx component <Name> --dense` for each Astryx component whose replacement, prop, or composition you question.\n10. Read `astryx docs spacing --full` and the target component's docs before mapping a literal spacing value to a prop or token.\n11. Render every supplied state at narrow and wide widths and in each supported color mode.\n12. Read the build, type-check, test, and accessibility-check results.\n\nIf only source is supplied, continue with a source check. Report blockers visible in the source, list every missing app-context and product-evidence item, and do not call the full product good. Do not leave the blocker list empty only because no checks were supplied.\n\nJudge the code against the app as well as Astryx. Ask whether it matches sibling surfaces, uses the right shell and page pattern, reuses app or integration components instead of rebuilding them, preserves intentional app conventions, and lets the target user complete the task.\n\nFor each rubric category, return `good`, `needs work`, or `not inspected`. Every context-dependent finding must cite the route, sibling file, project guidance, theme, component catalog, wrapper, or user requirement it relies on. Cite file and line evidence for source findings and name the rendered state for visual findings. Mark context you could not learn as `not inspected`. Do not flag a documented intentional app convention merely because it differs from a generic pattern. Never turn missing evidence into a pass. Do not hide raw HTML or custom styles behind a helper. Do not calculate a template score for ordinary product code.\n\nReturn:\n- app purpose, target users, surface job, route, and entry path\n- app context inspected and app context missing\n- product evidence inspected and product evidence missing\n- one row per rubric category with result, evidence, and fix\n- task-completion, functional, or accessibility blockers visible in the source or found by the supplied checks\n- the top three fixes in order\n- every claim that still needs a person to verify"}]},{"id":"verify-and-repeat","title":"Verify, improve, and repeat","content":[{"type":"list","style":"ordered","items":["Reject a `good` result without app-context, source, and rendered evidence. Open every cited route, sibling file, guidance file, and source location, and reproduce every named visible state.","Check that documented intentional app conventions were not flagged merely for differing from a generic pattern, and that context the reviewer could not learn stayed `not inspected`.","Fix task-completion, build, functional, and accessibility blockers first.","Reuse the app shell, page pattern, wrappers, and installed integration components before replacing unnecessary raw elements, direct icons, and custom styles.","Follow the target user task again, render the full state set, and rerun the project checks.","Repeat the read-only review on the new revision. Keep the first report so the improvement and every remaining tradeoff stay visible."]},{"type":"prose","text":"For an integration template, finish with the scored package and copy workflow in {@link generic:grade-template-with-agent}. Ordinary product code stops with the evidence-backed category report and does not receive a template publication grade."}]}]}},"e059fbb03af5bc0d6350abb80c8a5a7d":{"doc":{"type":"block","exampleFor":"AspectRatio","name":"AspectRatio","displayName":"Aspect Ratio","isReady":true,"aspectRatio":1.3333333333333333,"isShowcase":true,"description":"Three aspect ratio containers at equal height (1:1, 4:3, and 16:9), each showing an image with its ratio labeled below.","componentsUsed":["AspectRatio","Layout","Text"]}},"e09a951b081e6e24e0c6ab90660432d5":{"docs":{"type":"generic","name":"computer-agent-guide","placement":{"parent":"namespace:global","slot":"guides","order":5},"title":"The agent guide on your computer","category":"guide","keywords":["agent guide","init --user","SKILL.md","skills","remove-agents","claude","codex","cursor","agents","other agents","symlink","link skills"],"description":"Your global install keeps one short Astryx skill in your home folder and links it into the folders agent tools read, so agents anywhere know Astryx is there. `{@command init --user}` writes it now or turns it off.","sections":[{"id":"what","title":"What it is","content":[{"type":"prose","text":"A project's agent docs reach only agents working in that project. Your global install also keeps one skill file, `~/.agents/skills/astryx/SKILL.md`, which most coding agents read. It tells agents that Astryx is on this computer, when it is relevant (building or changing UI), and to start with `{@command search}`. It names no version, so it never goes stale. Inside a project, the project's own agent docs come first."},{"type":"prose","text":"It is written in the background on the first run and again after you upgrade, so no command waits for it. Installing the package does not write it, because some package managers skip install scripts."}]},{"id":"where","title":"Where agents find it","content":[{"type":"prose","text":"Agents that read only their own skills folder get a link to the skill's folder, so they read the same one file: a folder symlink with a relative target (a junction on Windows, or a copy where neither can be made). Continue's scanner skips links, so it gets a copy, refreshed with the file:"},{"type":"table","headers":["Folder","When"],"rows":[["`~/.claude/skills/astryx`","Always"],["`~/.kiro/skills/astryx`","When `~/.kiro` exists"],["`~/.codeium/windsurf/skills/astryx`","When `~/.codeium/windsurf` exists"],["`~/.letta/skills/astryx`","When `~/.letta` exists"],["`~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/skills/astryx`","When Xcode's coding assistant folder exists"],["`~/.config/agents/skills/astryx`","When `~/.config/agents/skills` exists"],["`~/.continue/skills/astryx` (a copy)","When `~/.continue` exists"]]},{"type":"prose","text":"Astryx never replaces anything it did not create at one of these folders, and never writes a folder another tool manages; `{@command doctor}` names any it skipped, and any link whose skill folder is missing, as in a container that mounts only one agent's folder."}]},{"id":"cloud-and-apps","title":"Cloud agents and apps","content":[{"type":"list","style":"unordered","items":["Cloud and background agents read only the repository, so the project's own agent docs, the block `{@command init}` writes into AGENTS.md or CLAUDE.md, are what reach them.","Apps that take an uploaded skill: upload `~/.agents/skills/astryx/SKILL.md`, or a zip of its folder."]}]},{"id":"other-agents","title":"Other agents","content":[{"type":"prose","text":"If your agent reads skills from another folder, link it to the skill:"},{"type":"code","lang":"bash","code":"ln -s ~/.agents/skills/astryx <your agent's skills folder>/astryx"},{"type":"prose","text":"On Windows, in PowerShell:"},{"type":"code","lang":"powershell","code":"New-Item -ItemType Junction -Path \"<your agent's skills folder>\\astryx\" -Target \"$HOME\\.agents\\skills\\astryx\""}]},{"id":"choose","title":"Write it now, or turn it off","content":[{"type":"code","lang":"bash","code":"{@command init --user}\n{@command init --user --remove-agents}"},{"type":"list","style":"unordered","items":["`init --user` writes the file and the links now.","`--remove-agents` removes the file and every link Astryx made, and turns it off until you run `{@command init --user}` again.","A file you edited is never overwritten or removed; delete it to get the current text.","Outside a project, `{@command doctor}` says whether the skill is there, current, edited, or turned off, and where it is linked."]}]},{"id":"more","title":"More on global mode","content":[{"type":"prose","text":"This page is part of {@link namespace:global}, which explains what global mode is and how each part works. A project's own agent docs: {@link command:init}."}]}]}},"e0b27015b3b004784c2c14c28ee3f2fb":{"default":{"type":"icon-definition","name":"settings","description":"Open settings or preferences.","words":["gear","preferences","options","cog"]}},"e10b750ad0d86d8db877c2fc77ac8994":{"docs":{"type":"generic","name":"check-your-docs","placement":{"parent":"namespace:docs","slot":"guides","order":60},"title":"Check your docs","category":"guide","description":"Check the docs tree, links, overlaps, doc fields, read size, and CLI peer.","sections":[{"id":"run-the-docs-check","title":"Run the docs check","content":[{"type":"prose","text":"Run `doctor integration docs` in your package to check the docs tree, every link, and overlaps with Core topics, and to list any passage two topics repeat. Pass a package name to check an installed package."},{"type":"code","lang":"bash","code":"{@command doctor integration docs}\n# In an app, check an installed package\n{@command doctor integration docs @acme/astryx-widgets}"},{"type":"code","lang":"text","code":"Checking integration docs: @acme/astryx-widgets@1.0.0\n\n[ok] The docs tree and every link in these docs check out.\n\n[ok] No doc topics overlap with Core.\n[ok] No topic copies a passage from another.\n[ok] No filler phrases or low-density topics."},{"type":"prose","text":"Write each fact in one topic. When two of your topics, or one of yours and a Core topic, repeat 10 or more words of prose word for word, the check lists the pair as a `copied_passage` warning. It names the topic that keeps the text (a Core topic, or of your two the one the passage fits) and the line in the other where to put the link instead ({@link generic:links}). Code and examples are not compared, and a topic may carry the text of the Core topic it replaces. A run with fewer than 4 distinct content words (words other than function words such as \"the\", \"in\" or \"it\"), or one that three or more topics share (a series lead-in), is not listed. Each listed pair is also a warning (`copied_passage`): `doctor integration docs` still exits 0, and `integration check --strict` fails until you fix it."},{"type":"prose","text":"Keep docs dense. The check lists, as a `doc_fluff` warning, each padding phrase in your prose, with its file line and what to write instead, and each topic of 80 or more prose words in which fewer than half the words carry content (words other than function words such as the, and, in), with its measured share and the floor of 0.5. `doctor integration docs` still exits 0, and `integration check --strict` fails until you cut it. Code, examples, and quoted text are not read. The phrases: `it's important to note`, `it is important to note`, `important to note that`, `it's worth noting`, `it is worth noting`, `worth noting that`, `it should be noted`, `please note`, `note that` (opening a sentence), `as mentioned above`, `as mentioned earlier`, `as mentioned before`, `as noted above`, `as you can see`, `needless to say`, `in order to`, `due to the fact that`, `for the purpose of`, `at this point in time`, `in other words`, `basically`, `essentially`, `obviously`."},{"type":"prose","text":"Point at another doc with a link, never by writing `{@command docs <name>}` in prose: `{@link generic:<name>}` for one of your package's topics, or `{@link @astryxdesign/cli:generic:<name>}` for a Core doc (`namespace:` for a Core namespace). The CLI prints the link as the command that opens the doc, and doctor checks that the doc exists. The check lists each written pointer to a doc that exists as a `stray_doc_pointer` warning, with the link to write instead. A command with more words, or one in a code block, is a walkthrough and is not listed."},{"type":"prose","text":"Its arguments and exit codes are in {@link command:doctor integration docs}."}]},{"id":"know-what-fails-the-check","title":"Know what fails the check","content":[{"type":"prose","text":"A doc that does not load, an accidental Core overlap, a `reference` block that names no doc, or a failed namespace or placement fails the check with exit code 1. A link that names no doc only warns, and the exit code stays 0."},{"type":"table","headers":["Problem","Reported as","Exit code"],"rows":[["A doc that does not load, such as an unknown section field or block type","`[fail]` `invalid_doc`","1"],["A topic with a Core topic's name and no `replaces` or `extends`","`[fail]` `accidental`","1"],["A placement that fails, which hides the doc","`[fail]` `invalid_doc_graph`","1"],["A `reference` block whose target names no doc","`[fail]` `invalid_doc_reference`","1"],["A link that names no doc","`[warn]` `invalid_doc_graph`","0"],["A topic that sets `replaces` or `extends`","`[info]` `replaces` or `extends`","0"]]},{"type":"prose","text":"Read the warnings before you publish. With `--json`, they are in `data.issues`, with `severity: \"warning\"`."}]},{"id":"check-each-doc-against-its-type","title":"Check each doc against its type","content":[{"type":"prose","text":"`doctor integration validate` reads every doc your package ships against the type `@astryxdesign/cli/authoring` publishes for its kind, the way `tsc` would: a `hidden` doc and a second doc for one name too. Test fixtures under `__tests__` in the components or docs root, which those readers skip, are counted, not checked. It reports a field the type does not have (`unknown_field`), a missing required field (`missing_field`), and a value outside the field's type (`wrong_type`)."},{"type":"code","lang":"bash","code":"{@command doctor integration validate}"},{"type":"code","lang":"text","code":"Checking 1 doc(s) against the authoring types (TypeScript 6.0.3)\n\nseverity: [warn]\ndoc: components/AcmeCarousel.doc.mjs\nline: 7\nexport: default\ntype: ComponentDoc\nfield: summary\nproblem: unknown_field\nmessage: Object literal may only specify known properties, and 'summary' does not exist in type 'SingleComponentDoc'.\nfix: Remove `summary`: SingleComponentDoc has no field `summary`."},{"type":"list","style":"unordered","items":["The folder decides the type: `ComponentDoc` in your components root, `IntegrationTemplateDoc` in your templates root, `ThemeDoc` in your themes root, and in your docs root the type the doc's `type` names. Keep the `@type` comment above each doc's export too, so your editor shows the same problems as you type.","Every finding is a warning, so the exit code stays 0. With `--json`, they are in `data.docTypes.findings`.","It uses the `typescript` your package installs. Where `typescript` is missing or has no JavaScript compiler API, as TypeScript 7 does, it uses `@typescript/typescript6`, the TypeScript 6 API package, if your package installs it. Without either, it prints `[skip] Docs not type-checked` and the reason.","Every field of every doc type is in {@link generic:field-reference}."]}]},{"id":"check-read-size","title":"Check read size","content":[{"type":"prose","text":"`{@command doctor}` also measures every read and warns on one over 32 KB. Run it in your package or in an app that installs it; `doctor integration docs` does not check size."},{"type":"code","lang":"bash","code":"{@command doctor}"},{"type":"code","lang":"text","code":"id: docs-progressive-disclosure\nstatus: [warn]\nlabel: Documentation navigation and size\nmessage: acme/deploying build-before-you-ship: 46 KB, over the 32 KB one read may return"},{"type":"prose","text":"Split a section over the limit into smaller ones, each with its own key. See {@link command:doctor}."}]},{"id":"check-the-cli-peer","title":"Check the CLI peer","content":[{"type":"prose","text":"`integration verify` fails a package that ships a docs section, a placed guide, or a doc section with an `id` without an `@astryxdesign/cli` peer of `>=0.6.4`. It does not run the docs check, so run both."},{"type":"code","lang":"bash","code":"{@command integration verify}"},{"type":"code","lang":"text","code":"- [fail] The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer. A stable CLI before 0.6.4 does not read the docs tree, and can hide every doc topic the package ships. Declare \"@astryxdesign/cli\": \">=0.6.4\" in peerDependencies (optional in peerDependenciesMeta, if the CLI is not required)."},{"type":"list","style":"unordered","items":["`integration add doc --parent` writes the peer for you.","`integration verify` passes a hidden guide and an accidental Core overlap; only `doctor integration docs` catches them.","Everything else it checks is in {@link command:integration verify} and {@link generic:checks}."]}]}]}},"e11e7be6cf8589d68e4ae90c58c221cd":{"doc":{"type":"block","exampleFor":"Toast","name":"Toast — Action","displayName":"Toast — Action","description":"Persistent toasts with a trailing button or link so the user can act on the notification, like undoing a delete or viewing a report.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Toast","Button","Link","Layout","Text"]}},"e1868ffd211887d656bb7db16169f215":{"default":{"type":"icon-definition","name":"checkDouble","description":"Show that something was copied or read.","words":["copied","read","seen","double check","check check"],"builtIn":true}},"e1d77794fa8caf6d3ca892ee7fd21ca5":{"doc":{"type":"block","exampleFor":"Table","name":"Table — Resizable Columns","displayName":"Table — Resizable Columns","description":"Table with draggable column resize handles. Drag the right edge of any header to resize.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table"]}},"e1e53de4f054c3717dbdb0f65802841a":{"docs":{"type":"generic","name":"start-a-template","placement":{"parent":"namespace:templates","slot":"build","order":10},"title":"Start a template","category":"guide","keywords":["what is a template","add a template","page template","block template"],"description":"Help others build apps faster and share a consistent visual language by turning your UI idea into a full page or page section.","sections":[{"id":"what-a-template-is","title":"What a template is","content":[{"type":"prose","text":"Unlike a component, a template becomes app code: an app copies it into its own code and adapts it to its product."},{"type":"prose","text":"A component stays a package dependency and updates with the package. A copied template does not, so updating the package never rewrites the app's copy."},{"type":"code","lang":"bash","code":"# How an app finds a template and copies it\n{@command template --list}\n{@command template acme-dashboard src/app/dashboard}"}]},{"id":"why-share-one","title":"Why share one","content":[{"type":"prose","text":"Templates help other people build apps faster while keeping a consistent visual language across products. Share one when people need more than one component to get started: a template brings the right components, layout, content structure, and interaction wiring already assembled."},{"type":"prose","text":"Do not turn a product-specific page into a rigid component only to share its structure. Share it as a template and let each app adapt its copy."}]},{"id":"choose-page-or-block","title":"Choose a page or block","content":[{"type":"table","headers":["Kind","Use it for"],"rows":[["Page","A complete screen, such as a dashboard, settings page, or checkout flow."],["Block","A smaller section that fits inside a page, such as a hero, form, or data panel. A block can also be the example or showcase for a component."]]}]},{"id":"pick-a-template-id","title":"Pick a template id","content":[{"type":"prose","text":"Choose a stable lowercase kebab-case id, such as `acme-dashboard`. The id becomes the source and doc file name, the package export, and the value apps pass to `{@command template}`. To change a label, edit the doc ({@link generic:template-doc-overview}); never rename the id."},{"type":"list","style":"unordered","items":["Start with your product or package name, then name the reusable pattern, so the id stays distinct from Core and other integrations.","Do not end the id with `-page`, `-app`, `-view`, or `-screen`.","Do not reuse a Core id by accident: the bare id becomes ambiguous in every app that installs your package. To take over a Core template on purpose, declare `replaces` ({@link generic:replace-a-core-template})."]},{"type":"code","lang":"bash","code":"# See the Core ids\nastryx --json template --list --package @astryxdesign/core"}]},{"id":"run-the-add-command","title":"Run the add command","content":[{"type":"prose","text":"Pages are the default. Pass `--type block` to add a block."},{"type":"code","lang":"bash","code":"{@command integration add template acme-dashboard}\n{@command integration add template acme-stat-card --type block}"},{"type":"code","lang":"text","code":"template contribution added\n\n[ok] acme-dashboard\n\nDeclare template root ./templates in astryx.integration.mjs.\n\n- templates/acme-dashboard.doc.mjs\n- templates/acme-dashboard.tsx\n- package.json\n- astryx.integration.mjs"},{"type":"prose","text":"The command writes `templates/<id>.tsx` for the UI and `templates/<id>.doc.mjs` for its metadata, and declares the templates directory in `astryx.integration.mjs`. When `package.json` has an `exports` map, it also adds the `./templates/<id>` export ({@link generic:export-template-assets})."},{"type":"prose","text":"It never overwrites an existing source or doc file. Add `--dry-run` to see every planned write first."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: when users install your package for their computer, beside the global CLI, your templates show up in folders outside any project; inside a project, only if the project installs your package. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"e1e8172e6c98248f231ff94ae362d27b":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Collapsible","displayName":"Banner — Collapsible","description":"Combine an action button, dismiss control, and a collapsible detail area in one banner. Children sit behind the toggle by default; `collapsible={{defaultIsOpen: true}}` starts it open, and `collapsible={false}` drops the toggle entirely. Use for complex notifications like config changes or deployment summaries.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner","Button","List","Layout","Text"]}},"e2796206ccb6c5e55dc5ba1a35ebb347":{"doc":{"type":"block","exampleFor":"useTheme","name":"useTheme — Token Values","displayName":"useTheme — Token Values","description":"Read resolved theme token values with useTheme for non-CSS consumers like SVG charts.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Theme","Card","Text","Layout"]}},"e2ad6e690888903a576b4b1316df2d0d":{"doc":{"type":"page","name":"Incident Console","displayName":"Incident Console","description":"Dense row queue with an inspector: severity-coded rows grouped by status, a saved-search filter bar, a segmented status control, and a resizable detail pane for the selected row. Rows, not cards, sized for scanning volume.","keywords":["incident","alert","on-call","outage","ticket","triage console"],"isReady":false,"category":"Tools - Incident Console","icons":{"BellAlertIcon":"notificationActive","PlusIcon":"add"}}},"e342c7648e9c29fd77fe7acc5b572380":{"doc":{"type":"page","name":"Settings Panels","displayName":"Settings Panels","description":"Preferences split into nav-switched panels: a persistent section list swaps the pane beside it, and rows edit in place rather than opening a separate form.","keywords":["settings","preferences","configuration","options","account panels"],"isReady":true,"category":"Settings - Panels","icons":{"ArrowLeftIcon":"arrowLeft","BellIcon":"notification","BriefcaseIcon":"work","ChevronRightIcon":"chevronRight","ComputerDesktopIcon":"desktop","CreditCardIcon":"creditCard","DocumentTextIcon":"document","GlobeAltIcon":"globe","LockClosedIcon":"lock","PencilSquareIcon":"compose","ShareIcon":"share","ShieldCheckIcon":"shield","UserIcon":"user","WrenchScrewdriverIcon":"wrench"}}},"e379b2e124821d127059e82be147bc11":{"default":{"type":"icon-definition","name":"adjustments","description":"Adjust options such as view or filters.","words":["sliders","tune","options"]}},"e3d20064e01cb8413d6ae10fa13b8a6e":{"doc":{"type":"block","exampleFor":"Breadcrumbs","name":"Breadcrumbs — Icons","displayName":"Breadcrumbs — Icons","description":"Add icons before breadcrumb labels for quick recognition. Use a home icon on the root item and contextual icons on key sections.","isReady":true,"aspectRatio":4,"componentsUsed":["Breadcrumbs","Icon"],"icons":{"Cog6ToothIcon":"settings","HomeIcon":"home"}}},"e50b6e81555350ed29d34a320ee552e8":{"doc":{"type":"block","exampleFor":"Button","name":"Button — Variants","displayName":"Button — Variants","description":"All 4 button variants in default, disabled, and loading states. Use primary for the main action, secondary for most others, ghost for low-emphasis, and destructive for dangerous actions.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Button","Layout","Text"]}},"e523f5bca85c078195cd80ce9462f0a4":{"doc":{"name":"Product Gallery","displayName":"Product Gallery","description":"Uniform card grid where every tile carries media, title, supporting line, and a price. Browse-to-select only, with no filtering and no detail surface.","keywords":["products","catalog","storefront","shop","listings","ecommerce grid"],"type":"page","isReady":true,"category":"Gallery - Product","icons":{"ArrowRightIcon":"arrowRight"}}},"e5a4969364a5dff1690cc1ea54bd8e8e":{"doc":{"type":"block","exampleFor":"TextArea","name":"TextArea — Character Count","displayName":"TextArea — Character Count","description":"Textareas with maxLength and a live character counter. The counter turns red when the limit is exceeded.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TextArea"]}},"e5b09bff668b847cb855950e5f1dc27c":{"doc":{"type":"block","exampleFor":"InternationalizationProvider","name":"Load a shipped Astryx locale catalog","displayName":"Internationalization Provider — Shipped Locale","registry":{"slug":"shipped-locale"},"description":"Load a locale catalog shipped by Astryx and re-render InternationalizationProvider with a new locale to update Astryx strings live.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["InternationalizationProvider","SegmentedControl","Selector","Layout"]}},"e5de21ff9e28e0f0fa86c1706ae36b3e":{"doc":{"type":"block","exampleFor":"Typeahead","name":"Typeahead — With Helper Text","displayName":"Typeahead — With Helper Text","description":"Typeahead with a description below the label.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Typeahead","Center"]}},"e63ad4f091d7494e1404458bcedc3573":{"doc":{"type":"block","exampleFor":"OverflowList","name":"OverflowList — Collapse From Start","displayName":"OverflowList — Collapse From Start","description":"Overflow list that hides items from the start, keeping the latest visible","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["OverflowList","Button","Card","Center"]}},"e66fd307111302d2e460e448bbd9fbdb":{"default":{"type":"icon-definition","name":"mail","description":"Email or a message inbox.","words":["email","envelope","message"]}},"e6718d8218194ece5ca36e0160770c38":{"doc":{"type":"block","exampleFor":"Lightbox","name":"Lightbox — Gallery","displayName":"Lightbox — Gallery","description":"A thumbnail grid that opens a fullscreen gallery. Clicking any thumbnail opens the lightbox at that index. Prev/next navigation lets users browse all images without closing.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Lightbox","Grid","Thumbnail"]}},"e6bb294f8a5143fece1443c8050dc4b8":{"doc":{"type":"block","exampleFor":"SyntaxTheme","name":"SyntaxTheme — Light Preset","displayName":"SyntaxTheme — Light Preset","description":"Use a light syntax preset for code examples that need to sit on light documentation surfaces.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["SyntaxTheme","CodeBlock"]}},"e6bdea40089d569aef13b8c6e85acb22":{"doc":{"type":"block","exampleFor":"Tokenizer","name":"Tokenizer — End Content","displayName":"Tokenizer — End Content","description":"Tokenizer with an action button in the end slot. Use for inline actions like applying selections alongside the input.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Tokenizer","Button","Layout","Text"]}},"e7485cb7c7d24ffc6923cebf8b1758b7":{"doc":{"type":"block","exampleFor":"GridSpan","name":"GridSpan","displayName":"Grid Span","description":"GridSpan lets a grid item span multiple columns or rows within an Grid, enabling masonry-style and asymmetric layouts.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Grid","GridSpan"]}},"e74952df2fe8b25e8eecf892a96a6079":{"doc":{"type":"block","exampleFor":"TabList","name":"TabList — With Badge","displayName":"TabList — With Badge","description":"Tabs with notification badge counts rendered via endContent. Uses error variant for urgent counts and neutral for informational ones.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["TabList","Tab","Badge"]}},"e7ad96aa5e6c7a938b9eff6d77127829":{"docs":{"type":"generic","name":"page-template","placement":{"parent":"namespace:document-the-template","slot":"guides","order":20},"title":"Page template","category":"guide","description":"Help people find a page: give it a category for `{@command search}` and template listings, and flag a sparse starting shell as a scaffold.","sections":[{"id":"start-from-the-generated-page-doc","title":"Start from the generated page doc","content":[{"type":"prose","text":"`integration add template` writes a page doc by default. Replace its sample description, then add the page-only fields below."},{"type":"code","lang":"javascript","label":"templates/acme-dashboard.doc.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').IntegrationTemplateDoc} */\nexport default {\n type: 'page',\n name: 'acme-dashboard',\n displayName: 'Acme Analytics Dashboard',\n description:\n 'A filterable account-health dashboard with headline metrics, trends, and a recent-activity table. Dashboard, reporting, analytics, or status overview.',\n category: 'Dashboard - Analytics',\n isReady: false,\n};"}]},{"id":"help-people-find-the-page","title":"Help people find the page","content":[{"type":"prose","text":"Every field is in {@link schema:template-doc}."},{"type":"list","style":"unordered","items":["Set `category` to the most specific supported `{Group} - {Variant}` value. Its words become search terms for `{@command search}`, and it appears in the JSON template list.","Set `scaffold: true` only for a deliberately sparse starting shell. The JSON template list reports it, so tools and galleries can tell a scaffold from a finished page.","Fields that only Astryx's own gallery reads, such as `isHiddenFromOverview`, have no effect on integration templates."]}]}]}},"e8b506b0d903bdbdb730c822f95aea74":{"doc":{"type":"block","exampleFor":"Text","name":"Text","displayName":"Text","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Stack","Text"]}},"e8e67a499b451f4165bbe5a027eeafdd":{"default":{"type":"icon-definition","name":"work","description":"Work, a job, or business.","words":["job","business","briefcase"]}},"e90719e5fae73e9f883818c0b46d2367":{"doc":{"type":"block","exampleFor":"Dialog","name":"Dialog — Fullscreen","displayName":"Dialog — Fullscreen","description":"Takes over the entire viewport for content that needs maximum space. Use for documentation viewers, rich text editors, multi-step wizards, or media previews where the standard dialog width is too narrow.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Dialog","Layout","Button","Text","Card"]}},"e9509c7f97742c6d5c8a0dfacc75a4d6":{"doc":{"type":"block","exampleFor":"TopNavMenu","name":"TopNavMenu — Basic","displayName":"TopNavMenu — Basic","description":"A dropdown menu inside a TopNav built from an items array with icons and descriptions. Use to group related destinations under a single trigger.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavHeading","TopNavItem","TopNavMenu"],"icons":{"ChartBarIcon":"chart","Cog6ToothIcon":"settings"}}},"e9570b20d17202a755135123f7c582bc":{"doc":{"type":"block","exampleFor":"TopNavMegaMenuFeaturedCard","name":"TopNavMegaMenuFeaturedCard","displayName":"Top Nav Mega Menu Featured Card","description":"Demonstrates TopNavMegaMenuFeaturedCard with a title, description, and CTA link inside a mega menu.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMegaMenu","TopNavMegaMenuFeaturedCard","TopNavMegaMenuItem"]}},"e9b641e806da785baafb85b5bc224eb1":{"default":{"type":"icon-definition","name":"rotateCounterclockwise","description":"Rotate to the left, against the clock.","words":["rotate left","counterclockwise","anticlockwise"]}},"e9eda16a06e0d887c333c6ad38e296f5":{"doc":{"type":"block","exampleFor":"Timestamp","name":"Timestamp — Timezone","displayName":"Timestamp — Timezone","description":"Timestamps with the timezone abbreviation appended. Enable isTimezoneShown for audiences across time zones, like audit logs or team calendars.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Timestamp","Layout","Text"]}},"ea1e8540d7a28b25165e422acd9ad014":{"doc":{"type":"block","exampleFor":"ChatTokenizedText","name":"ChatTokenizedText","displayName":"Chat Tokenized Text","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Chat"]}},"ea2c64e5460b273bc8a69ecf4aceb03c":{"docs":{"type":"generic","name":"i18n-library-integration","title":"Library Integration","placement":{"parent":"namespace:internationalization","slot":"guides","order":20},"category":"guide","description":"Override astryx's default text, coexist with react-intl / i18next / next-intl / LinguiJS, or use astryx as your i18n library.","keywords":["react-intl","i18next","next-intl","LinguiJS","overrides","useTranslator"],"sections":[{"title":"Overriding astryx's default text","content":[{"type":"prose","text":"Use `overrides` to change individual strings without shipping a full catalog. Overrides are keyed by locale and merged on top of the built-in and user-supplied catalogs."},{"type":"code","lang":"tsx","label":"Change one string in English","code":"<InternationalizationProvider\n locale=\"en\"\n overrides={{en: {'@astryx.pagination.next': 'Next →'}}}\n>\n <App />\n</InternationalizationProvider>"},{"type":"prose","text":"Overrides win over both bundled English and any `messages` catalog for the same key. Use them for brand voice tweaks or one-off wording changes."}]},{"title":"Using astryx with your own i18n library","content":[{"type":"prose","text":"Astryx components render astryx strings through astryx's provider. Consumer components render consumer strings through whatever i18n library you already use: react-intl, i18next, next-intl, LinguiJS, and so on. The two systems coexist and read from the same source of truth for the active locale."},{"type":"code","lang":"tsx","label":"Astryx + react-intl side by side","code":"import {InternationalizationProvider} from '@astryxdesign/core/i18n';\nimport {Selector} from '@astryxdesign/core/Selector';\nimport {Button} from '@astryxdesign/core/Button';\nimport {FormattedMessage, IntlProvider, useIntl} from 'react-intl';\nimport astryxFr from './locales/astryx/fr.json'; // astryx's UI, in French\nimport appFr from './locales/app/fr.json'; // your app strings, in French\n\nfunction Pricing() {\n // Consumer strings — resolved by react-intl.\n const intl = useIntl();\n\n return (\n <section>\n <h1><FormattedMessage id=\"pricing.heading\" /></h1>\n\n {/* Astryx Selector — trigger placeholder, search-box placeholder,\n clear-button aria-label all resolved by\n <InternationalizationProvider>. Options come from react-intl. */}\n <Selector\n label={intl.formatMessage({id: 'pricing.region.label'})}\n options={[\n {value: 'na', label: intl.formatMessage({id: 'pricing.region.na'})},\n {value: 'eu', label: intl.formatMessage({id: 'pricing.region.eu'})},\n ]}\n hasSearch\n hasClear\n />\n\n <Button label={intl.formatMessage({id: 'pricing.cta.subscribe'})} />\n </section>\n );\n}\n\nexport default function App() {\n return (\n // Same locale, two providers reading their own catalogs.\n <IntlProvider locale=\"fr\" messages={appFr}>\n <InternationalizationProvider locale=\"fr\" messages={{fr: astryxFr}}>\n <Pricing />\n </InternationalizationProvider>\n </IntlProvider>\n );\n}"},{"type":"prose","text":"Keep the two providers in sync on locale, and each library owns its own catalog. Astryx never sees your app strings, and your i18n library never sees astryx internals. Runtime locale swap works the same way: re-render both providers with a new `locale` prop and the whole tree updates live."},{"type":"prose","text":"Single-catalog usage (where an external i18n runtime like react-intl or i18next resolves both your app strings AND astryx's strings through one provider) is on the roadmap via a `Translator` adapter. Track [meta/astryx#4029](https://github.com/meta/astryx/issues/4029). For now, run the two providers side by side as shown above."}]},{"title":"Using astryx as your i18n library","content":[{"type":"prose","text":"For production apps with substantial localization needs, we recommend a dedicated i18n library such as react-intl, i18next, next-intl, or LinguiJS. If your app is small or you do not want another runtime, you can resolve your own strings through astryx too. Keep app keys in a separate namespace from `@astryx.*`, and include your own `en` catalog because astryx's built-in English fallback only contains astryx component strings."},{"type":"code","lang":"tsx","label":"Translate app strings with astryx","code":"import {Button} from '@astryxdesign/core/Button';\nimport {\n InternationalizationProvider,\n useTranslator,\n type Catalog,\n type MessagesByLocale,\n} from '@astryxdesign/core/i18n';\n\nconst en: Catalog = {\n '@myapp.actions.save': {defaultMessage: 'Save'},\n};\n\nconst fr: Catalog = {\n '@myapp.actions.save': {defaultMessage: 'Enregistrer'},\n};\n\nconst messages: MessagesByLocale = {en, fr};\n\nfunction SaveButton() {\n const t = useTranslator();\n return <Button label={t('@myapp.actions.save')} />;\n}\n\nexport default function App() {\n return (\n <InternationalizationProvider locale=\"fr\" messages={messages}>\n <SaveButton />\n </InternationalizationProvider>\n );\n}"},{"type":"prose","text":"`Catalog` types the rich `{defaultMessage, description?}` authoring shape. `RuntimeCatalog` types the generated key-to-message string map. `ProviderMessagesByLocale` accepts either shape for the provider, while `MessagesByLocale` keeps the original rich-only context shape."}]}]}},"eb0d95ba3cf5a62057d8a29461b97639":{"doc":{"type":"block","exampleFor":"Heading","name":"Heading — Card Grid","displayName":"Heading — Card Grid","description":"Responsive card grid with truncated headings and descriptions for uniform layout","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Heading","Text"]}},"eb13c9bee5fe979e616d2c247fc6f2d4":{"doc":{"type":"block","exampleFor":"Kbd","name":"Kbd — Modifier Combinations","displayName":"Kbd — Modifier Combinations","description":"Modifier combinations and special keys rendered as shortcut badges","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Kbd","VStack","HStack","Text"]}},"eb15abd7dcf6a436787996953413cb05":{"doc":{"type":"block","exampleFor":"Switch","name":"Switch","displayName":"Switch","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A toggle switch for enabling notifications.","componentsUsed":["Switch"]}},"eb599be952abc4a034ac07f122cc51a7":{"doc":{"type":"block","exampleFor":"DateInput","name":"DateInput — Description","displayName":"DateInput — Description","description":"Date input with helper text below the label explaining what the field expects. Use when the purpose of the date is not obvious from the label alone.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DateInput","Layout","Text"]}},"ebfa5364d805bf51116bea6f2f28bcc2":{"doc":{"type":"block","exampleFor":"Table","alsoExampleFor":["useTableFiltering","useTableFilterState"],"name":"Table — Inline Filters","displayName":"Table — Inline Filters","description":"Table with inline filter controls rendered directly below each column header.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","PowerSearch"]}},"ec08981b15ddae6cf5d3d2cce31e207b":{"doc":{"type":"block","exampleFor":"Citation","name":"Citation — Inline Text","displayName":"Citation — Inline Text","description":"Citations embedded within a paragraph of text, showing how they flow inline with surrounding content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Citation","Text"]}},"ec104e662f4313a5fa79f2a51c5424b1":{"doc":{"type":"block","exampleFor":"Lightbox","name":"Lightbox — Zoom","displayName":"Lightbox — Zoom","description":"A lightbox with zoom and pan enabled. Double-click the image to zoom in; drag to pan around. Double-click again or use the close button to exit.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Lightbox","Thumbnail"]}},"ec75d7e0da914ba83c82b2f5bf71d174":{"doc":{"type":"block","exampleFor":"Code","name":"Code","displayName":"Code","description":"Inline code snippets inside a sentence showing how Code renders alongside body text.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Code","Layout","Text"]}},"ec9614499cb90287887034b2dedfb9a4":{"doc":{"type":"block","exampleFor":"Toast","alsoExampleFor":["useToast"],"alsoShowcaseFor":["useToast"],"name":"Toast","displayName":"Toast","description":"Imperative toast notifications triggered with useToast and rendered in the toast viewport.","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["Toast","Button"]}},"ed44688d6bbbb94cc58276205009d39b":{"doc":{"type":"block","exampleFor":"ChatMessageList","name":"ChatMessageList","displayName":"Chat Message List","description":"Basic AI chat conversation with user and assistant messages. The simplest way to render a message list with alternating sender bubbles, metadata, and a date divider.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Chat","ChatMessageList","Layout","Timestamp"]}},"ed8b2cfeb21cb4381df31e02186d651f":{"doc":{"type":"block","exampleFor":"Banner","name":"Banner — Statuses","displayName":"Banner — Statuses","description":"All four status banners stacked: info, success, warning, and error. A quick visual reference for choosing the right status.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Banner","Layout"]}},"ed92a12798909db86a9778773a0aff08":{"doc":{"type":"block","exampleFor":"MediaTheme","name":"MediaTheme — Image Overlay","displayName":"MediaTheme — Image Overlay","description":"A common image card pattern: place text and actions over a dark gradient and wrap the overlay content in MediaTheme mode=\"dark\".","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["MediaTheme","AspectRatio","Button","Section","Layout","Text"]}},"edad878dfbc1b299c6b4e3418655c50d":{"doc":{"type":"block","exampleFor":"InputGroup","name":"InputGroup","displayName":"Input Group","isReady":true,"aspectRatio":1.7777777777777777,"isShowcase":true,"componentsUsed":["InputGroup","TextInput","Layout"]}},"ef5550b98c2ca8c8fa7dac3b77285b73":{"docs":{"type":"generic","name":"cli-command","placement":{"parent":"namespace:configuration","slot":"guides","order":15},"title":"CLI command","category":"guide","keywords":["cliCommand","command name","wrapper","printed commands","pnpm exec astryx"],"description":"Name the command your users run the CLI with, so every command the CLI prints in their apps starts with it.","sections":[{"id":"when-to-set-it","title":"When to set it","content":[{"type":"prose","text":"The CLI ends most answers with the next command to run: a hint, an error fix, a Doctor fix, or a doc example. By default each one starts with a command that reaches the release that answered: what the app's package manager runs, such as `pnpm exec astryx` or `yarn astryx`, when the app's own CLI answered, and otherwise the CLI package pinned to that release, such as `{@pm dlx @astryxdesign/cli@0.7.2}`."},{"type":"prose","text":"Set `cliCommand` only when your users run the CLI some other way, such as a wrapper your company ships that runs it with your package loaded. Otherwise the commands the CLI prints send them, and their agents, to a CLI that answers without your package. Most packages leave it out."}]},{"id":"set-it","title":"Set it","content":[{"type":"prose","text":"Add `cliCommand` to `astryx.integration.mjs`: the command, without a subcommand."},{"type":"code","lang":"js","code":"// astryx.integration.mjs\nexport default {\n components: './components',\n cliCommand: 'acme astryx',\n};"},{"type":"prose","text":"In an app that installs your package, the CLI then prints every command with it:"},{"type":"code","lang":"text","code":"Error: Theme \"ocean\" is not added. Run `acme astryx theme add ocean` first."},{"type":"prose","text":"That covers hints, errors, suggestions, Doctor fixes, `--help`, the setup reminder, the agent block `init` writes, and doc text. `--json` output keeps every command without a runner, as in `\"command\": \"astryx theme add ocean\"`, so a script reads the same fields in every app."}]},{"id":"how-the-cli-picks","title":"How the CLI picks the command","content":[{"type":"list","style":"ordered","items":["The `cliCommand` of the packages the app loads, when they name one command.","The command a host tool names when it runs the CLI for the app. Nothing in a plain project names one.","A command that reaches the release that answered: what the app's package manager runs when the app's own CLI answered, such as `pnpm exec astryx` or `yarn astryx`; `astryx` outside a project when the CLI installed for the computer answered; otherwise the CLI package pinned to that release, such as `{@pm dlx @astryxdesign/cli@0.7.2}` (see {@link generic:who-answers})."]},{"type":"prose","text":"Two packages that set the same command agree, and the CLI uses it."}]},{"id":"when-two-packages-disagree","title":"When two packages disagree","content":[{"type":"prose","text":"If two packages an app loads set different commands, the CLI uses neither: it prints commands with what the app's package manager runs, even when a host tool named a command. `{@command doctor}` warns in its `cli-command` check and names both packages:"},{"type":"code","lang":"text","code":"status: [warn]\nlabel: CLI command\nmessage: Loaded integrations declare different CLI commands: @acme/astryx-widgets (`acme astryx`), @other/kit (`other astryx`). Neither is used, so printed commands start with `pnpm exec astryx`."},{"type":"prose","text":"The app fixes it by removing the package that does not belong, or the packages agree on one command."}]},{"id":"check-it","title":"Check it","content":[{"type":"prose","text":"An invalid value is ignored, and the rest of your manifest still loads. `{@command doctor integration validate}` reports it as `invalid_cli_command`. A valid `cliCommand` is one line of plain text without spaces at either end, at most 120 characters."},{"type":"prose","text":"In an app that installs your package, `{@command doctor}` passes its `cli-command` check and names your package as the one that set the command. A CLI released before this field reports `cliCommand` as an unknown key and prints the package manager's command."},{"type":"code","lang":"bash","code":"{@command doctor integration validate}\n# In an app that installs the package\n{@command doctor}"}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: outside a project, the `cliCommand` of integrations installed for the computer applies; when none is declared, commands start with the plain command of the CLI installed for the computer. Inside a project, only the project's integrations count, so a `cliCommand` from a package installed for the computer never changes the project's printed commands. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"efa46bdb83730f837459749535d7c655":{"default":{"type":"icon-definition","name":"warning","description":"Warn about something that needs attention.","words":["caution","alert","exclamation triangle","triangle alert"],"builtIn":true}},"efa79d97ed9f4ce925118fc3a2ef2288":{"doc":{"type":"block","exampleFor":"TabMenu","name":"TabMenu","displayName":"Tab Menu","description":"TabMenu is an overflow menu within a TabList that groups additional tab options into a dropdown, showing the selected option's label as the trigger text.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TabList","Tab","TabMenu"]}},"f0777d677cbc7af3c40ae020c04e4cae":{"doc":{"type":"block","exampleFor":"useTableSelectionState","alsoExampleFor":["Table"],"name":"Table — Selection in the Leading Mark","displayName":"Table — Selection in the Leading Mark","description":"Selection without a checkbox column: each item shows its avatar, and the checkbox takes the avatar slot while a mouse is over it, on keyboard focus, and everywhere once anything is selected; on touch screens it always shows. The state comes from useTableSelectionState, and the checkboxes render in the name column instead of the useTableSelection column, so checked items get no aria-selected or highlight; add them if needed.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Table","CheckboxInput","Avatar"]}},"f080a23e77b09537cb47a6e45d1e0867":{"docs":{"type":"generic","name":"font-setup","title":"Font Setup","placement":{"parent":"namespace:typography","slot":"guides","order":10},"category":"foundations","description":"Font families, custom font loading, geometric font sizes, and semantic font weights.","keywords":["font family","custom fonts","webfont","Google Fonts","font-face","font size","font weight","geometric scale"],"sections":[{"title":"Overview","content":[{"type":"prose","text":"Typography is built on a geometric type scale: base size × ratio^step, with 14px and 1.2 as defaults. Every text style is a semantic token that composes font size, weight, and line-height, so components express intent (heading, body, label) rather than raw values."},{"type":"prose","text":"Two layers work together: raw size tokens (--font-size-xs ... --font-size-5xl) form the geometric scale, and semantic type scale tokens (--text-heading-1-size, --text-body-leading, etc.) reference them by var(). Themes override the entire scale by adjusting base and ratio in defineTheme; all semantic tokens recompute automatically."}]},{"title":"Font Families","content":[{"type":"prose","text":"Three font roles: body (UI text), heading (titles and headings), and code (monospace). By default, body and heading share the same system font stack; code uses a monospace stack. Custom themes can assign different families per role; heading inherits from body when not explicitly set."},{"type":"token-ref","topic":"tokens","section":"Font Family Tokens"}]},{"id":"loading-custom-fonts","title":"Custom fonts","content":[{"type":"prose","text":"Astryx never loads font files. defineTheme and the built CSS only set font-family: naming a webfont (Fraunces, JetBrains Mono, and so on) makes every browser look for it, and quietly fall back when the app has not loaded it. `{@command theme build}` warns when a theme names families that are neither CSS generics nor common system fonts and prints the snippet to add; loading the font is always the app's job."},{"type":"code","lang":"html","label":"Google Fonts: add to your document <head>","code":"<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n<link\n rel=\"stylesheet\"\n href=\"https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=JetBrains+Mono&display=swap\"\n/>"},{"type":"code","lang":"css","label":"Self-hosted: one @font-face per family and weight","code":"@font-face {\n font-family: 'Fraunces';\n src: url('/fonts/fraunces.woff2') format('woff2');\n font-weight: 400 700; /* variable-font range, or one weight per file */\n font-display: swap; /* fallback text stays visible while the font loads */\n}"},{"type":"prose","text":"Always pair a webfont with a real fallback stack (metric-similar system fonts plus a generic) so text stays readable before the font loads and wherever it never does: defineTheme({typography: {heading: {family: 'Fraunces', fallbacks: 'Georgia, serif'}}})."}]},{"title":"Font Sizes","content":[{"type":"prose","text":"Geometric scale: round(base × ratio^step), expressed in rem. The default scale is 14px × 1.2, producing 12 steps from 4xs (6px) to 5xl (42px). Adjusting base and ratio in defineTheme regenerates every size token while preserving proportional relationships."},{"type":"token-ref","topic":"tokens","section":"Font Size Tokens"}]},{"title":"Font Weights","content":[{"type":"prose","text":"Four semantic weights: normal (400, body/code), medium (500, labels/data), semibold (600, headings/titles), bold (700, strong emphasis). Type scale tokens reference these by var() so themes can remap numeric values."},{"type":"token-ref","topic":"tokens","section":"Font Weight Tokens"}]}]}},"f0971f5448021bf3308319ad569bfff5":{"doc":{"type":"block","exampleFor":"NavIcon","name":"NavIcon — Basic","displayName":"NavIcon — Basic","description":"Circular icon containers wrapping semantic icons. Use as logos or accent icons in navigation headers such as TopNavHeading.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["NavIcon","Icon","HStack"]}},"f0c3ec5ee58c18f6c9a87ee36be72008":{"docs":{"type":"generic","name":"agent-guidance","placement":{"parent":"namespace:configuration","slot":"guides","order":10},"title":"Agent guidance","category":"guide","keywords":["agent docs","agents.md"],"description":"Add a few lines of guidance that apps put in front of the AI agents working in their code.","sections":[{"id":"add-a-guidance-line","title":"Add a line of guidance","content":[{"type":"prose","text":"`integration add agent-doc` adds one line for AI agents that work in apps using your package. Apps show it in their agent file, such as `AGENTS.md`."},{"type":"code","lang":"bash","code":"{@command integration add agent-doc 'Use AcmeCarousel for rotating content.'}"},{"type":"prose","text":"The line lands in `agentDocs.append` in your manifest:"},{"type":"code","lang":"js","code":"// astryx.integration.mjs\nexport default {\n components: './components',\n agentDocs: {\n append: ['Use AcmeCarousel for rotating content.'],\n },\n};"},{"type":"prose","text":"Adding the same line again changes nothing. To reword or remove a line, edit `agentDocs.append` by hand."}]},{"id":"keep-within-the-limits","title":"Keep within the limits","content":[{"type":"prose","text":"Every line costs space in each app's agent file, so the CLI keeps guidance short and few. Put detail in your docs instead."},{"type":"table","headers":["Limit","What happens past it"],"rows":[["8 lines per package","`integration add` fails: `append may contain at most 8 lines`."],["240 characters per line","`integration add` fails: `must contain at most 240 Unicode code points`."],["32 lines per app, from all its packages","`init` writes no agent block and prints `Could not install agent docs.`"]]},{"type":"prose","text":"A line is one line of plain text. Line breaks, control characters, spaces at either end, and managed-block markers such as `<!-- ASTRYX:START -->` are rejected."},{"type":"prose","text":"Start a command in a line with the word astryx alone, with no runner in front, as in: Run astryx doctor before finishing. The block names the command the app runs once, at its top, for every command below it, so your line works in every app. See {@link generic:cli-command}."}]},{"id":"see-what-agents-read","title":"See what agents read","content":[{"type":"prose","text":"An app's `{@command init}` writes your lines at the end of its managed agent block, each labeled with your package name. The CLI owns the heading, the labels, and the markers."},{"type":"code","lang":"bash","code":"{@command init --features agents}"},{"type":"code","lang":"text","code":"INTEGRATIONS:\n- `@acme/astryx-widgets`: Use AcmeCarousel for rotating content.\n<!-- ASTRYX:END -->"},{"type":"prose","text":"The block collects lines from every integration the app has installed, with or without an `astryx.config` entry."}]},{"id":"refresh-the-block","title":"Refresh the block in an app","content":[{"type":"prose","text":"The block changes only when the app runs `init`, or `upgrade --from <version> --apply`. After an app installs a version of your package with new lines, it runs one of them."},{"type":"code","lang":"bash","code":"{@command init --features agents}\n# Or: --from takes the Core version the app had before\n{@command upgrade --from <version> --apply}"},{"type":"code","lang":"text","code":"[ok] Agent docs refreshed -> AGENTS.md"},{"type":"prose","text":"`upgrade --apply` prints that line; `init` prints `[ok] AI agent docs installed -> AGENTS.md`. Without `--apply`, `upgrade` only reports `Agent docs differ from the installed Astryx and integration configuration.` It refreshes the block even when Core did not change. See {@link command:upgrade}."}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: the agent guide the CLI keeps for the computer carries no integration's guidance, because it serves every folder; your guidance reaches agents through the agent docs `init` writes in an app that installs your package. See {@link namespace:global} and {@link generic:computer-agent-guide}."}]}]}},"f1b96fbde06f4bd021da159cb2f1b6e6":{"docs":{"type":"generic","name":"tokens-size","title":"Size Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":50},"category":"foundations","description":"Control heights for consistent sizing across buttons, inputs, and selectors.","sections":[{"title":"Size Tokens","content":[{"type":"prose","text":"Control heights for consistent sizing across buttons, inputs, and selectors."},{"type":"table","headers":["Token","Core default"],"rows":[["--size-element-sm","28px"],["--size-element-md","32px"],["--size-element-lg","36px"]]}],"previewType":"size-bar"}]}},"f1e08b9e2a2021582736fda5356803e4":{"doc":{"type":"block","exampleFor":"Text","name":"Text — Wrap","displayName":"Text — Wrap","description":"The 4 text-wrap modes (wrap, nowrap, balance, pretty) shown in width-constrained containers.","isReady":true,"aspectRatio":1,"componentsUsed":["Text"]}},"f22805b667f1c356e7e0a0384450c304":{"doc":{"type":"block","exampleFor":"Stack","name":"Stack — Fill Item","displayName":"Stack — Fill Item","description":"An avatar, text, and button in a row; the text stretches to fill the available space.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Layout","Text","Button","Avatar"]}},"f25798769bb97eb1c93b779c295c0479":{"doc":{"type":"block","exampleFor":"useAppShellMobile","name":"useAppShellMobile — Custom Mobile Trigger","displayName":"useAppShellMobile — Custom Mobile Trigger","description":"Custom mobile navigation trigger built with useAppShellMobile. The trigger consumes the surrounding AppShell context instead of rendering its own shell.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["AppShell","Button","Text","Layout"]}},"f2a581c1889bd9909642a7022d7066b5":{"doc":{"type":"block","exampleFor":"BottomSheet","name":"Bottom Sheet — No scrim","displayName":"Bottom Sheet — No scrim","description":"Keeps the page visible and interactive behind a non-modal bottom sheet.","isReady":true,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","Divider","Heading","Section","Stack","Text"]}},"f2c39f76d7c510ee44f5c2f257bf4292":{"docs":{"name":"illustrations","title":"Illustrations","category":"foundations","description":"Illustration guidelines for empty states, onboarding flows, and feature highlights.","keywords":["empty state"],"sections":[{"title":"When to Use","category":"foundations","content":[{"type":"prose","text":"Consistent illustration usage reinforces brand identity and helps users understand context at a glance. Use illustrations in these contexts:"},{"type":"table","headers":["Context","Examples"],"rows":[["Empty states","No data, first-time experience, search with no results"],["Onboarding","Welcome screens, feature introduction, setup wizards"],["Feature highlights","New feature announcements, upgrade prompts"],["Error states","Permission denied, not found, service unavailable"]]}]},{"title":"Guidelines","category":"foundations","content":[{"type":"list","style":"do","items":["Keep illustrations consistent in style across the product.","Use simple, flat illustrations that work in both light and dark mode.","Size illustrations proportionally to the container, typically 120–240px.","Place illustrations centered with supporting text below."]},{"type":"list","style":"dont","items":["Mix illustration styles from different sources.","Use illustrations as decoration without purpose."]}]},{"title":"Placement","category":"foundations","content":[{"type":"prose","text":"For an empty state, pass the illustration to the `icon` slot of `EmptyState`, which centers it above the title and description. Typical illustration sizes range from 120px for inline empty states to 240px for full-page onboarding screens. Always pair the illustration with a title and a description that says what to do next."},{"type":"code","lang":"tsx","label":"Empty state with illustration","code":"<EmptyState\n icon={<img src=\"/illustrations/empty-search.svg\" alt=\"\" width={200} height={200} />}\n title=\"No results found\"\n description=\"Try adjusting your search or filters.\"\n/>"}]}]}},"f322550a084b5e5a69266937d3b9cd60":{"default":{"type":"icon-definition","name":"book","description":"Documentation or a guide.","words":["docs","guide","read","learn"]}},"f3447dad32b574f1052bf6f17c31210a":{"doc":{"type":"block","exampleFor":"Selector","name":"Selector — Ghost Toolbar","displayName":"Selector — Ghost Toolbar","description":"Borderless Selector variant composed with ghost buttons in a toolbar.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Selector","Button","HStack"]}},"f39db2fae8ca5fd6987e3ef7a689d566":{"docs":{"name":"color","title":"Color","category":"foundations","description":"Semantic color tokens for surfaces, text, icons, borders, and status indicators.","tokenCategory":"color","sections":[{"title":"Overview","category":"foundations","content":[{"type":"prose","text":"Colors are semantic: tokens describe purpose, not appearance. Every color adapts automatically between light and dark modes via CSS light-dark(). Themes override the resolved values, so your code never references raw hex colors. Each theme defines its own values: `{@command theme list}` shows the themes that are available."}]},{"id":"surface-colors","title":"Color Tokens","category":"foundations","content":[{"type":"prose","text":"Layered surface hierarchy: body → surface → card → popover. Each level sits visually above the previous one."},{"type":"token-ref","topic":"tokens","section":"Color Tokens"}]},{"id":"usage","title":"Use color tokens in StyleX","category":"foundations","content":[{"type":"prose","text":"Import the typed color tokens and use them in `stylex.create()`; they resolve to the active theme and color mode."},{"type":"code","lang":"tsx","label":"Applying color tokens","code":"import * as stylex from '@stylexjs/stylex';\nimport {colorVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n container: {\n backgroundColor: colorVars['--color-background-surface'],\n color: colorVars['--color-text-primary'],\n borderColor: colorVars['--color-border'],\n },\n accent: {\n color: colorVars['--color-text-accent'],\n },\n});"}]},{"title":"Best Practices","category":"foundations","content":[{"type":"list","style":"do","items":["Use semantic tokens (--color-text-primary) instead of raw hex values.","Rely on the surface hierarchy (body → surface → card → popover) for layering.","Use status colors (success, error, warning) only for their semantic meaning."]},{"type":"list","style":"dont","items":["Hardcode hex values, since they won't adapt to dark mode or custom themes.","Mix accent colors with status colors in the same context.","Use --color-on-accent on non-accent backgrounds."]}]}]}},"f3cc80e5fe700d881798161867398de5":{"doc":{"type":"block","exampleFor":"DropdownMenu","name":"DropdownMenu","displayName":"Dropdown Menu","description":"A button that opens a dropdown menu with action items. The menu starts open for preview.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["DropdownMenu"]}},"f3f2927903562c3881b66356109ab614":{"doc":{"type":"block","exampleFor":"Kbd","name":"Kbd — Menu Shortcuts","displayName":"Kbd — Menu Shortcuts","description":"Menu-style list pairing action labels with their keyboard shortcuts","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Kbd","Card","List"]}},"f4157f3c202996b8a2ff8a39115f9289":{"doc":{"type":"block","exampleFor":"CommandPaletteFooter","name":"CommandPaletteFooter — Basic","displayName":"CommandPaletteFooter — Basic","description":"A command palette footer with no children, rendering the built-in keyboard navigation hints. Use CommandPaletteFooter without content to get the default arrow-key, Enter, and Esc hints below the results list.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CommandPalette","CommandPaletteFooter"]}},"f43e66f4e6bf57d42d3ad90810042ab5":{"doc":{"type":"block","exampleFor":"TopNavMegaMenuItem","name":"TopNavMegaMenuItem","displayName":"Top Nav Mega Menu Item","description":"Demonstrates TopNavMegaMenuItem with icons, titles, and descriptions inside a mega menu.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMegaMenu","TopNavMegaMenuItem"]}},"f44f1a1bcd074db3d4dfa8a64b03dddb":{"doc":{"type":"block","exampleFor":"List","name":"List — Message List","displayName":"List — Message List","description":"Chat-style message list with avatars, preview text, and unread badges.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["List","Avatar","Badge"]}},"f456a74fe12be628e3b62f6d4ae1041c":{"doc":{"type":"block","exampleFor":"DateTimeInput","name":"DateTimeInput — Validation","displayName":"DateTimeInput — Validation","description":"DateTimeInput in all three status states: error, warning, and success. Use to surface scheduling conflicts, caution the user about edge cases, or confirm a valid datetime.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["DateTimeInput","Layout"]}},"f45a6cffa5a03c933003488941aa1459":{"docs":{"type":"generic","name":"tokens-type-scale","title":"Type Scale Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":150},"category":"foundations","description":"Semantic tokens for headings, body, labels, code, supporting text, and display text. References font size and weight tokens. Override via typography.scale in defineTheme.","sections":[{"title":"Type Scale Tokens","content":[{"type":"prose","text":"Semantic tokens for headings, body, labels, code, supporting text, and display text. References font size and weight tokens. Override via typography.scale in defineTheme."},{"type":"table","headers":["Token","Core default"],"rows":[["--text-heading-1-size","var(--font-size-2xl)"],["--text-heading-1-weight","var(--font-weight-semibold)"],["--text-heading-1-leading","1.3333"],["--text-heading-2-size","var(--font-size-xl)"],["--text-heading-2-weight","var(--font-weight-semibold)"],["--text-heading-2-leading","1.4"],["--text-heading-3-size","var(--font-size-lg)"],["--text-heading-3-weight","var(--font-weight-semibold)"],["--text-heading-3-leading","1.4118"],["--text-heading-4-size","var(--font-size-base)"],["--text-heading-4-weight","var(--font-weight-semibold)"],["--text-heading-4-leading","1.4286"],["--text-heading-5-size","var(--font-size-sm)"],["--text-heading-5-weight","var(--font-weight-semibold)"],["--text-heading-5-leading","1.6667"],["--text-heading-6-size","var(--font-size-xs)"],["--text-heading-6-weight","var(--font-weight-semibold)"],["--text-heading-6-leading","1.6"],["--text-body-size","var(--font-size-base)"],["--text-body-weight","var(--font-weight-normal)"],["--text-body-leading","1.4286"],["--text-large-size","var(--font-size-lg)"],["--text-large-weight","var(--font-weight-semibold)"],["--text-large-leading","1.4118"],["--text-label-size","var(--font-size-base)"],["--text-label-weight","var(--font-weight-medium)"],["--text-label-leading","1.4286"],["--text-code-size","var(--font-size-base)"],["--text-code-weight","var(--font-weight-normal)"],["--text-code-leading","1.4286"],["--text-supporting-size","var(--font-size-sm)"],["--text-supporting-weight","var(--font-weight-normal)"],["--text-supporting-leading","1.6667"],["--text-display-1-size","var(--font-size-5xl)"],["--text-display-1-weight","var(--font-weight-normal)"],["--text-display-1-leading","1.2381"],["--text-display-2-size","var(--font-size-4xl)"],["--text-display-2-weight","var(--font-weight-normal)"],["--text-display-2-leading","1.2571"],["--text-display-3-size","var(--font-size-3xl)"],["--text-display-3-weight","var(--font-weight-normal)"],["--text-display-3-leading","1.2414"]]}],"previewType":"font-sample"}]}},"f480129bd045a51f578d78fdefaadda2":{"doc":{"type":"block","exampleFor":"BottomSheetSwitcher","alsoExampleFor":["BottomSheet"],"registry":{"slug":"review-flow"},"name":"Bottom Sheet — Review flow","displayName":"Bottom Sheet — Review flow","description":"A two-step form flow of two standalone sheets driven by one state value: Continue replaces the review step with the confirmation in place, and Back returns.","isReady":true,"isShowcase":false,"aspectRatio":0.75,"componentsUsed":["BottomSheet","Button","Heading","Section","Stack","Text"]}},"f493d4a46e4ffeea1fb6dacbd0077478":{"doc":{"type":"block","exampleFor":"Selector","alsoExampleFor":["BottomSheet"],"name":"Selector — Bottom Sheet","displayName":"Selector — Bottom Sheet","description":"Presents a single-selection list in a bottom sheet for compact touch interfaces.","isReady":true,"aspectRatio":0.75,"componentsUsed":["Selector"]}},"f4d26683dc30a2fc416120fc12743c99":{"docs":{"type":"generic","name":"tokens-duration","title":"Duration Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":100},"category":"foundations","description":"Motion duration primitives. Three bands: fast (micro-interactions), medium (entrance/exit), slow (continuous). Min/max variants derive from base × ratio. Of a theme's two `motion` knobs, `tempo` (0.75–1.5) scales every duration here; `character` leaves durations alone. A duration scale beats `tempo` for the bands it sets, and explicit `tokens` beat both. `tempo` leaves these unscaled: finger tracking, momentum, the rubber band, the on-screen keyboard, the press's onset delay, cancel distance and tap flash, hover-intent delays, gesture thresholds, Spinner's and Skeleton's loops, and the 200 ms Reduce Motion cap.","sections":[{"title":"Duration Tokens","content":[{"type":"prose","text":"Motion duration primitives. Three bands: fast (micro-interactions), medium (entrance/exit), slow (continuous). Min/max variants derive from base × ratio. Of a theme's two `motion` knobs, `tempo` (0.75–1.5) scales every duration here; `character` leaves durations alone. A duration scale beats `tempo` for the bands it sets, and explicit `tokens` beat both. `tempo` leaves these unscaled: finger tracking, momentum, the rubber band, the on-screen keyboard, the press's onset delay, cancel distance and tap flash, hover-intent delays, gesture thresholds, Spinner's and Skeleton's loops, and the 200 ms Reduce Motion cap."},{"type":"table","headers":["Token","Core default"],"rows":[["--duration-fast-min","130ms"],["--duration-fast","175ms"],["--duration-fast-max","230ms"],["--duration-medium-min","310ms"],["--duration-medium","410ms"],["--duration-medium-max","550ms"],["--duration-slow-min","730ms"],["--duration-slow","975ms"],["--duration-slow-max","1300ms"],["--duration-exit","var(--duration-fast)"]]}],"previewType":"duration-bar"}]}},"f4e907ddaac3e63f7514af2911ca118e":{"doc":{"type":"block","exampleFor":"HoverCard","alsoShowcaseFor":["useHoverCard"],"name":"HoverCard","displayName":"Hover Card","description":"A hover card that shows a user profile preview when hovering over a trigger button. Starts open for preview.","isReady":true,"isShowcase":true,"aspectRatio":1,"componentsUsed":["HoverCard","Button","Layout","Text","Avatar"]}},"f4f1595376927227e519caadadc0f51e":{"doc":{"type":"block","exampleFor":"IconButton","name":"IconButton — Action Bar","displayName":"IconButton — Action Bar","description":"Row of ghost icon buttons for a compact action toolbar","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["IconButton","Icon","HStack"]}},"f50ceacd73fd18effeec95e7a5920dec":{"doc":{"type":"block","exampleFor":"SelectableCard","name":"SelectableCardMulti","displayName":"Selectable Card — Multi-select","description":"Multi-select tag picker using color variant selectable cards with color-matched selection borders.","isReady":true,"aspectRatio":2,"componentsUsed":["SelectableCard","Layout","Text"]}},"f51665c99a8883e5747837c57a56807a":{"docs":{"type":"generic","name":"tokens-typography","title":"Font Family Tokens","placement":{"parent":"namespace:tokens","slot":"guides","order":120},"category":"foundations","description":"Font family stacks for body, code, and heading text.","sections":[{"title":"Font Family Tokens","content":[{"type":"prose","text":"Font family stacks for body, code, and heading text."},{"type":"table","headers":["Token","Core default"],"rows":[["--font-family-body","-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif"],["--font-family-code","\"SF Mono\", Monaco, Consolas, monospace"],["--font-family-heading","-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif"]]}],"previewType":"font-sample"}]}},"f56ecb660fefdee8434f3fbdf2a26474":{"doc":{"type":"block","exampleFor":"MultiSelector","name":"MultiSelector","displayName":"Multi Selector","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["MultiSelector"]}},"f6351010a813f7960c6a6cd6d4de3f86":{"default":{"type":"icon-definition","name":"creditCard","description":"A payment card or billing.","words":["billing","payment","card"]}},"f696f7758d497ee582bc47f6f4f3abc0":{"doc":{"type":"page","name":"Grouped Table","displayName":"Grouped Table","description":"Row collection bundled into collapsible sections with per-group counts, so a long list reads as a handful of blocks that expand and collapse. Query filtering and a resizable inspector for the selected row.","keywords":["table","list","rows","records","grid","grouped dataset","to-do list","todo","priorities","completed items","checkboxes"],"isReady":true,"category":"Table - Grouped","icons":{"ArrowRightIcon":"arrowRight","ChartBarIcon":"chart","DocumentDuplicateIcon":"copy","EllipsisHorizontalIcon":"moreHorizontal","PencilIcon":"edit","TagIcon":"tag","TrashIcon":"delete","UserIcon":"user","XMarkIcon":"close"}}},"f6b79a7a82d3849855239cf482253ba9":{"docs":{"name":"shape","title":"Shape","category":"foundations","description":"Border radius tokens for consistent component rounding, from sharp corners to full pills.","tokenCategory":"radius","sections":[{"title":"Overview","category":"foundations","content":[{"type":"prose","text":"The radius scale uses a semantic naming system: inner → element → container → page. Each level fits a specific context. Themes can multiply the entire scale via a radius multiplier, with --radius-none and --radius-full as fixed anchors."}]},{"title":"Radius Scale","category":"foundations","content":[{"type":"prose","text":"Seven radius tokens, from 0px to 9999px."},{"type":"token-ref","topic":"tokens","section":"Radius Tokens"}]},{"title":"Concentric Radius","category":"foundations","content":[{"type":"prose","text":"Inside a padded, rounded container, give nested elements a radius of outer radius minus padding so the curves stay concentric. Card does not do this for your content."},{"type":"code","lang":"css","label":"Concentric radius formula","code":".inner {\n border-radius: max(0px, calc(var(--radius-container) - var(--spacing-4)));\n}"}]},{"title":"Best Practices","category":"foundations","content":[{"type":"list","style":"do","items":["Use --radius-element for interactive controls (buttons, inputs, selectors).","Use --radius-container for content containers (cards, panels, dialogs).","Use --radius-full for pill shapes (badges, tags, avatar status dots)."]},{"type":"list","style":"dont","items":["Use --radius-page for small elements; it's meant for page-level containers.","Hardcode radius values; they won't scale with theme radius multipliers."]}]}]}},"f70ba9ef3eeb3f49acf944273698ed91":{"doc":{"type":"block","exampleFor":"NumberInput","name":"NumberInput — Status Variants","displayName":"NumberInput — Status Variants","description":"Number inputs showing error, warning, and success validation states","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["NumberInput","VStack","Center"]}},"f71a978c069cab40e0facd4d0f0b59ed":{"default":{"type":"icon-definition","name":"mention","description":"Mention someone or show an email address.","words":["at","email","handle","at symbol","at sign"]}},"f73663fafe40f4fa4cdae9a09255bb6c":{"doc":{"type":"block","exampleFor":"ListItem","name":"List Item — Basic","displayName":"List Item — Basic","description":"Basic list items with labels and descriptions. Use this structure for settings, navigation summaries, and other simple collections.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["List","ListItem"]}},"f7428475e578bcec068e8abe2d17ecc1":{"doc":{"type":"block","exampleFor":"Calendar","name":"Calendar — Two Months","displayName":"Calendar — Two Months","description":"Two months side by side for selecting ranges that span a month boundary. Use in booking or travel UIs where check-in and check-out often fall in different months.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Calendar","Layout","Text"]}},"f7b307987e9b58a4242b7c2a907e05db":{"doc":{"type":"block","exampleFor":"List","name":"List — Bulleted Features","displayName":"List — Bulleted Features","description":"Bulleted list of feature highlights using disc markers.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["List"]}},"f7b3c96cf1c585420c66111c22a3fc5e":{"doc":{"type":"block","exampleFor":"Slider","name":"Slider — With Marks","displayName":"Slider — With Marks","description":"Slider with labeled tick marks at fixed intervals.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Slider"]}},"f7bcfceb74c1c38a059a4d47ae9b9d29":{"doc":{"type":"block","exampleFor":"Code","name":"Code — Content Types","displayName":"Code — Content Types","description":"Inline code used for variables, terminal commands, CSS properties, file paths, and keyboard shortcuts. Shows how Code adapts to different kinds of technical content.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Code","Text","Stack"]}},"f7e688b270ce6f2e5faf470ab32bd818":{"docs":{"type":"generic","name":"quick-start","placement":{"parent":"namespace:authoring","slot":"guides","order":10},"title":"Quick Start","category":"guide","keywords":["authoring","make a package","make an integration","first integration","integration tutorial","package.json","exports map","astryx.integration.mjs"],"description":"Create a new integration package or add Astryx to one you already publish.","sections":[{"id":"quick-start","title":"Quick start","content":[{"type":"heading","level":3,"text":"Make the package"},{"type":"prose","text":"An integration starts as a normal npm package. Make a folder for it, create a package.json inside that folder, give the package a name, make it an ES module, then install the Astryx CLI, Core, and TypeScript for development."},{"type":"code","lang":"bash","code":"mkdir acme-widgets && cd acme-widgets\n{@pm-only npm \"writes package.json\" init -y}\n{@pm-only npm \"edits package.json\" pkg set name=@acme/astryx-widgets type=module}\n{@pm-only npm \"edits package.json\" pkg set 'exports={}' --json}\n{@pm install @astryxdesign/cli @astryxdesign/core typescript@6 --dev}"},{"type":"list","style":"unordered","items":["Set `\"type\": \"module\"`: the `.js` files the CLI generates, such as a built theme, are ES modules, and Node fails to load them in a package marked `\"type\": \"commonjs\"`, which `{@pm-only npm \"writes package.json\" init -y}` writes on npm 11.","Start with `\"exports\": {}`: each component and template you add then writes the public import that `integration verify` resolves.","Run the CLI as `astryx`, which runs the `@astryxdesign/cli` you installed as a devDependency.","Component commands read Core, so they need `@astryxdesign/core` installed.","The checks compare your docs with your code through TypeScript's JavaScript compiler API, which `typescript` 5.0 through 6 has. TypeScript 7 does not ship that API: on TypeScript 7, also install `@typescript/typescript6`, its TypeScript 6 API package, and the checks use it."]},{"type":"heading","level":3,"text":"Add your first integration item"},{"type":"prose","text":"An integration can ship several kinds of items. Start with a component named `AcmeCarousel`."},{"type":"code","lang":"bash","code":"{@command integration add component AcmeCarousel}"},{"type":"code","lang":"text","code":"component contribution added\n\n[ok] AcmeCarousel\n\nDeclare component root ./components in astryx.integration.mjs.\n\n- components/AcmeCarousel.doc.mjs\n- components/AcmeCarousel.tsx\n- package.json\n- astryx.integration.mjs"},{"type":"prose","text":"`integration add` creates the component source, its `.doc.mjs`, the package export, and `astryx.integration.mjs`. Update the generated doc so the CLI understands the component, then write the component itself."},{"type":"prose","text":"Read it back the way an app will."},{"type":"code","lang":"bash","code":"{@command component AcmeCarousel}"},{"type":"prose","text":"You now have an integration package with one exported component."},{"type":"heading","level":3,"text":"Check it in every build (required)"},{"type":"prose","text":"Run `integration check --strict` in every build ({@link generic:checks}): a doc, prop, template, or link that drifts from the code then fails your build, not your users' apps. Set it up now, as the `typecheck` script, and run it."},{"type":"code","lang":"bash","code":"{@pm-only npm \"edits package.json\" pkg set scripts.typecheck=\"astryx integration check --strict\"}\n{@pm run typecheck}"},{"type":"code","lang":"text","code":"[ok] 0 errors, 0 warnings, 0 skipped. Every check passed."},{"type":"list","style":"unordered","items":["Run `typecheck` in CI and before every publish. When you add a `tsconfig.json`, put `tsc --noEmit && ` in front of the check so the same script checks your types.","What each check covers, and what `--strict` adds: {@link generic:checks}."]},{"type":"heading","level":3,"text":"Verify and pack the package"},{"type":"prose","text":"Run `integration verify` to check that an app would see the component, then make the `.tgz` file you install next. `--pack-destination ..` writes it beside the package folder, so the next pack does not ship it."},{"type":"code","lang":"bash","code":"{@command integration verify}\n{@pm-only npm \"builds the publish tarball\" pack --pack-destination ..}"},{"type":"code","lang":"text","code":"Integration package ready\n\n[ok] @acme/astryx-widgets@1.0.0\n\n4 packed files; 3/3 required files present."},{"type":"prose","text":"`integration verify` installs the packed package in a temporary app and confirms the component resolves through its public import there ({@link generic:checks}). It publishes nothing and leaves no `.tgz` file, so `{@pm-only npm \"builds the publish tarball\" pack}` writes `../acme-astryx-widgets-1.0.0.tgz` for the next step."},{"type":"heading","level":3,"text":"Use it in an app"},{"type":"prose","text":"Install Core, the CLI, and your `.tgz` file in a new app. The app loads your package because it is a dependency, with no config."},{"type":"code","lang":"bash","code":"cd ..\nmkdir my-app && cd my-app\n{@pm-only npm \"writes package.json\" init -y}\n{@pm install @astryxdesign/core @astryxdesign/cli ../acme-astryx-widgets-1.0.0.tgz}\n{@command component AcmeCarousel}"},{"type":"code","lang":"text","code":"**Import:** `import {AcmeCarousel} from '@acme/astryx-widgets/components/AcmeCarousel';`"},{"type":"prose","text":"The next sections explain each package field and the integration file. To build the real component, continue with {@link namespace:components}."}]},{"id":"fill-in-package-json","title":"Fill in package.json","content":[{"type":"prose","text":"An integration is an ordinary npm package. These six fields control how it is named, developed, checked, and published."},{"type":"prose","text":"`peerDependencies` are packages the app supplies. `devDependencies` are packages you use while building the integration."},{"type":"table","headers":["Field","Set it to","Why"],"rows":[["`name`","Your package name, such as `@acme/astryx-widgets`","Each add writes it into the `import` of the doc it generates. Rename before you add, or update each `import` after."],["`version`","The release you publish, such as `1.0.0`","Apps see it; `astryx.integration.mjs` never repeats it."],["`exports`","Start with `{}`","Each component and template add writes its public import here, and `integration verify` resolves it."],["`files`","Optional: the paths to publish","Keeps private files out. When the list exists, each add appends its root and `astryx.integration.mjs`."],["`peerDependencies`","`@astryxdesign/core` when your code imports it; `@astryxdesign/cli`, optional, when you ship a feature that needs a newer CLI ({@link generic:versioning})","The app supplies these packages for your integration."],["`devDependencies`","`@astryxdesign/cli`, `@astryxdesign/core`, and `typescript`","Lets you run the CLI, build components, and run the checks while working on the integration."]]},{"type":"prose","text":"Peer ranges and releases are covered in {@link generic:versioning}; `files` and publishing in {@link generic:publishing}. Add `\"typecheck\": \"tsc --noEmit && astryx integration check --strict\"` to `scripts` so each run checks your types and that your docs, props, and links still match the code. It needs `typescript` and a `tsconfig.json`; see {@link generic:checks}."}]},{"id":"the-integration-file","title":"The integration file","content":[{"type":"prose","text":"The first `integration add` creates `astryx.integration.mjs`, and each later add updates it. You do not need to write or edit this file during the quick start."},{"type":"heading","level":3,"text":"Files in the package"},{"type":"list","style":"unordered","items":["`package.json` defines the npm package, including its name, version, dependencies, published files, and exports.","`astryx.integration.mjs` tells the CLI where the package keeps each kind of integration item.","The integration item files live under those roots. For example, a component can have `AcmeWidget.tsx` for its source and `AcmeWidget.doc.mjs` for its documentation."]},{"type":"heading","level":3,"text":"Fields in the integration file"},{"type":"code","lang":"javascript","label":"astryx.integration.mjs","code":"/** @type {import('@astryxdesign/cli/authoring').AstryxIntegration} */\nexport default {\n components: './components',\n};"},{"type":"prose","text":"The file tells the CLI where this package keeps its integration items. Edit it only when you want a custom root or another optional setting. Paths are relative to package.json, and later adds keep a custom path you already set."},{"type":"prose","text":"Every field is in {@link schema:integration}."},{"type":"heading","level":3,"text":"Use the CLI"},{"type":"prose","text":"You can edit the package files by hand, but the CLI handles the normal workflow. These links always open the canonical command docs."},{"type":"reference","target":"command:integration add","presentation":"summary"},{"type":"reference","target":"command:integration verify","presentation":"summary"},{"type":"reference","target":"command:doctor integration","presentation":"summary"}]},{"id":"global-mode","title":"In global mode","content":[{"type":"prose","text":"In global mode: users can also install your package for their computer, beside the global CLI (`{@pm install @astryxdesign/cli your-package --global}`). It then applies in folders outside any project, and inside a project only if the project installs it. See {@link namespace:global} and {@link generic:global-integrations}."}]}]}},"f7e9d33956bf3c70711023d041ecae13":{"default":{"type":"icon-definition","name":"shipping","description":"Shipping or delivery.","words":["delivery","truck","ship"]}},"f7f0cfcfd0d2d47e1415c93dc3efa102":{"doc":{"type":"block","exampleFor":"useInputContainer","name":"useInputContainer — Search Field Wrapper","displayName":"useInputContainer — Search Field Wrapper","description":"A custom search field wrapper with a leading search icon, padding and a trailing Clear button. useInputContainer puts focus in the input when the icon or the padding is clicked, while a click on Clear empties the field without the wrapper taking it over.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Icon","InputClearButton"],"icons":{"MagnifyingGlassIcon":"search"}}},"f9252c492a824ee80ecba6a16055e488":{"doc":{"type":"block","exampleFor":"FormLayout","name":"FormLayout — Settings Form","displayName":"FormLayout — Settings Form","description":"Settings form with labels placed beside their inputs","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["FormLayout","TextInput","Selector"]}},"f961720f6030fce36049b0c92f43f918":{"doc":{"type":"block","exampleFor":"CommandPaletteInput","name":"CommandPaletteInput","displayName":"Command Palette Input","description":"Command palette search input with a custom placeholder and a keyboard shortcut hint in the endContent slot.","isReady":true,"isShowcase":true,"aspectRatio":1.3333333333333333,"componentsUsed":["CommandPalette","CommandPaletteInput","Kbd"]}},"f98e5927490cc1e1c83b6d2d22a0050d":{"doc":{"type":"page","name":"Documentation Catalog","displayName":"Documentation Catalog","description":"Reference landing that is pure wayfinding: a banner above a grid of category cards linking into sections, with no article content on the surface itself.","keywords":["documentation","docs","guide","handbook","reference","api index"],"isReady":true,"category":"Content - Documentation Catalog"}},"f9936282ed9c72a2b513ae739d660b45":{"doc":{"type":"block","exampleFor":"StatusDot","name":"StatusDot — Variants","displayName":"StatusDot — Variants","description":"All five semantic color variants displayed in a row.","isReady":true,"aspectRatio":1.7777777777777777,"scale":1,"componentsUsed":["StatusDot","HStack"]}},"fa1f53555a31007e1b3712423dfc1a63":{"default":{"type":"icon-definition","name":"shoppingBag","description":"A store, a purchase, or a shopping bag.","words":["shop","store","purchase"]}},"fa6e7c6dbbe89525f1b2f61853630f54":{"doc":{"type":"block","exampleFor":"CheckboxListItem","name":"CheckboxListItem — Basic","displayName":"CheckboxListItem — Basic","description":"Checkbox items with labels and descriptions inside a controlled CheckboxList. Use for multi-select option groups like notification preferences.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["CheckboxList","CheckboxListItem"]}},"fade619d9e4ad26341bdb31ba6add185":{"doc":{"type":"page","name":"Executive Summary Dashboard","displayName":"Executive Summary Dashboard","description":"Report-shaped analytics with a prose rail beside the charts: a scorecard of headline numbers with period deltas and status coloring, goal-attainment bars, a trend grid, and a written commentary column that folds beneath the content when narrow.","keywords":["executive summary","business review","readout","reporting"],"isReady":true,"category":"Dashboard - Scorecard","icons":{"ArrowDownIcon":"arrowDown","ArrowDownTrayIcon":"download","ArrowRightIcon":"arrowRight","ArrowUpIcon":"arrowUp","StopIcon":"stop"}}},"faf447871f69e4276f3434037b1ffe29":{"docs":{"type":"generic","name":"use-integrations","title":"Use integrations","category":"guide","description":"Install, discover, and use integration packages that add components, templates, themes, and docs to your app.","keywords":["install an integration","add an integration","install a package","use an integration","discover integrations","integration","package","third party","plugin","extension"],"sections":[{"title":"Discover integrations","content":[{"type":"prose","text":"Integration packages extend Astryx with extra components, templates, themes, docs, and codemods. They are published as regular npm packages."},{"type":"prose","text":"Search for what you need:"},{"type":"code","lang":"bash","code":"astryx search carousel\nastryx discover"},{"type":"prose","text":"`search` looks across everything the CLI knows (components, docs, templates, themes, and hooks), so a word like \"carousel\" finds it whether it is a component, a template, or a doc page. `discover` lists every integration the project has, and, with a discover source, packages it could add."}]},{"title":"Install an integration","content":[{"type":"prose","text":"Install the package with your package manager. Integrations autolink: the CLI finds them among your dependencies, so installing is all it takes:"},{"type":"code","lang":"bash","code":"{@pm install @acme/brand-integration}"},{"type":"prose","text":"Run `astryx doctor` to confirm everything is wired up. If you need to load a package that is not a direct dependency, add it explicitly to `astryx.config.mjs`:"},{"type":"code","lang":"js","label":"Optional: explicit config entry","code":"export default {\n integrations: ['@acme/brand-integration'],\n};"}]},{"title":"Use what it adds","content":[{"type":"prose","text":"Once installed, the integration's contributions appear alongside Core:"},{"type":"list","style":"unordered","items":["`astryx component --list` shows its components next to Core components.","`astryx template --list` includes its page and block templates.","`astryx theme list` lists its themes; add one with `astryx theme add <slug> --package @acme/brand-integration`.","`astryx docs` shows any guides it provides.","`astryx search <query>` finds everything, from every installed integration."]},{"type":"prose","text":"Import components at the subpath the integration documents. Run `astryx component <Name>` to see the exact import:"},{"type":"code","lang":"jsx","code":"import {AcmeCarousel} from '@acme/brand-integration/components/AcmeCarousel';"},{"type":"prose","text":"For themes, see {@link generic:use-a-theme}. To build an integration of your own, see {@link namespace:authoring}."}]},{"title":"Check for problems","content":[{"type":"prose","text":"Run `astryx doctor` to see integration issues: missing roots, invalid contributions, or a CLI version mismatch. The doctor check is the one place every issue for every package is listed."},{"type":"code","lang":"bash","code":"astryx doctor"}]}]}},"fc120a1a395d103cebc6500e9a62b2ee":{"default":{"type":"icon-definition","name":"photoEffect","description":"An effect on a photo, such as grain or a lens look.","words":["aperture","lens","grain","camera effect"]}},"fc2456c7d47054b24375f2dc4832962e":{"docs":{"type":"namespace","name":"global","title":"Global mode","summary":"Install Astryx once on your computer and use it in any folder. Each project still runs its own version of Astryx, so a global install never changes what a project gets.","keywords":["global","global mode","globally","global install","npm i -g","install globally","install once","any folder","outside a project","which version","computer"],"slots":{"guides":{"title":"Global mode, question by question","accepts":{"kinds":["generic"]}}},"blocks":[{"type":"prose","text":"Global mode means installing the Astryx CLI once for your computer, so the astryx command works everywhere: in your projects, in an empty folder, and for every coding agent. Inside a project, the project's own version of Astryx answers, so your global install never changes what a project gets."},{"type":"code","lang":"bash","code":"{@pm install @astryxdesign/cli --global}"},{"type":"heading","level":3,"text":"What you get"},{"type":"list","style":"unordered","items":["Docs, components, templates, and search in any folder, before you have a project.","Every coding agent on your computer knows Astryx, through a short guide the CLI keeps where agent tools look.","Each project keeps its own version: in a project, the project's version answers, whichever astryx command you run."]},{"type":"heading","level":3,"text":"Which version runs"},{"type":"table","headers":["Where you run it","Which version answers"],"rows":[["Inside a project","The project's own CLI. In a project that installs only `@astryxdesign/core`, the astryx command you started, with a hint once a day to add the CLI."],["Outside any project","Your global version."],["Commands for your computer, such as `{@command init --user}`","Your global version, in any folder."]]},{"type":"prose","text":"Not sure whether you want a project install, a global one, or both: {@link generic:project-global-or-both}. The details: {@link generic:who-answers}."},{"type":"heading","level":3,"text":"Updates"},{"type":"prose","text":"Your global install never upgrades itself or a project. When a newer version is out, a command that succeeds ends with a two-line notice, at most once a day: {@link generic:updates}."},{"type":"heading","level":3,"text":"Agents"},{"type":"prose","text":"The CLI keeps a short Astryx guide where agent tools look in your home folder, so an agent working anywhere knows Astryx is there: {@link generic:computer-agent-guide}."},{"type":"heading","level":3,"text":"Integrations"},{"type":"prose","text":"Integrations you install next to your global install work outside projects. Inside a project, only the project's own integrations do: {@link generic:computer-integrations}. Building one: {@link generic:global-integrations}."},{"type":"heading","level":3,"text":"More"},{"type":"list","style":"unordered","items":["Install, and work offline: {@link generic:install-once}.","Monorepos and nested folders: {@link generic:monorepos}.","CI and containers: {@link generic:ci-and-containers}.","Something looks wrong: {@link generic:problems}.","Uninstall and reset: {@link generic:uninstall}.","Every path, setting, JSON field, and error code: {@link generic:reference}.","What each command does outside a project: {@link namespace:commands}."]}]}},"fc262ba22691ba12e53686e5c2789785":{"doc":{"type":"block","exampleFor":"MobileNav","name":"MobileNav","displayName":"Mobile Nav","isReady":true,"aspectRatio":1,"isShowcase":true,"componentsUsed":["Button","Icon","MobileNav","SideNav"]}},"fc39740a53bcf102e9e47832fdfa9491":{"doc":{"type":"block","exampleFor":"StackItem","name":"StackItem","displayName":"Stack Item","description":"StackItem can be used within HStack or VStack for more granular control over individual item sizing and alignment, but is optional; stack children work without it.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["Stack","StackItem"]}},"fc4386a8067b16633b80fed16124dfb8":{"default":{"type":"icon-definition","name":"shield","description":"Security or protection.","words":["security","verified","protected"]}},"fc5fa503ba11ef1d7987b291826c9b31":{"default":{"type":"icon-definition","name":"heart","description":"Like something.","words":["like","love"]}},"fcf0a394a780cda951cf80e26906dd74":{"docs":{"type":"namespace","name":"styling-libraries","title":"Other styling libraries","summary":"Integrate Tailwind, StyleX, Panda, Chakra, MUI, CSS-in-JS, CSS Modules, and non-CSS renderers with system tokens.","keywords":["Tailwind","StyleX","Panda","Chakra","MUI","Emotion","styled-components","CSS Modules","interop","styling library interop"],"slots":{"guides":{"title":"Guides","accepts":{"kinds":["generic"]}}}}},"fd03735749583f4faea71075935ebc7c":{"doc":{"type":"block","exampleFor":"Stepper","name":"Stepper — Validation Status","displayName":"Stepper — Validation Status","description":"Semantic status per step in a verification flow: success shows a green check, error a red glyph, accent the in-progress step. Status sets the indicator color and glyph only, never the connector, and is announced to assistive tech as text.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Stepper"]}},"fd19cf8dacda3b2e22f5c1ecbd7ef449":{"default":{"type":"icon-definition","name":"remove","description":"Remove an item or reduce a value.","words":["minus","subtract","less"]}},"fd44d6ce8317e6e5b13558f003874a74":{"doc":{"type":"block","exampleFor":"DropdownMenuGroup","name":"DropdownMenuGroup","displayName":"Dropdown Menu Group","description":"A compound-mode menu whose rows are titled in groups. Each DropdownMenuGroup renders a role=\"group\" named by its heading; arrow keys and typeahead skip the heading.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","DropdownMenuGroup","DropdownMenuItem"]}},"fdd2144a0b44594425b2f7c89ec2617a":{"docs":{"type":"namespace","name":"icon-definitions","placement":{"parent":"namespace:experimental","slot":"guides","order":20},"stability":"experimental","title":"Icon definitions","summary":"Every icon definition: what an icon stands for, and the shared name icon sets map their icons to.","keywords":["icon definition","icon definitions","icon names","which icon","icon map"],"slots":{"definitions":{"title":"Definitions","accepts":{"kinds":["icon-definition"]}}},"adopts":[{"source":{"group":"icon-definitions","kinds":["icon-definition"],"packages":"all"},"into":"definitions"}],"blocks":[{"type":"prose","text":"An icon definition is one thing an icon stands for, such as `close` or `delete`. Every icon set registers its icons against definitions in its data file's `map`, and templates are written against definitions, so a project that switches icon sets gets the same definition from the new set. Built-in definitions, marked [built-in], are the shared names Core renders (the semantic icon names in `astryx docs icons`); every set maps them, and `integration check` fails until it does. The others are optional: map each one your library draws. `map` keys a definition by its camelCase name, shown after the id (`eyeSlash`); `experimental icon map` and `--pairs` take either spelling. A set may add its own definitions; in a project that sets `experimental.iconSet`, they are listed here with the package that ships them. `astryx experimental icon <definition>` finds the icon each installed set draws for it. Icon definitions are experimental: they may change or be removed in a patch release."}]}},"fdef8ad42cdf3479444d41b2c2b3d639":{"default":{"type":"icon-definition","name":"drag","description":"A handle to drag an item and reorder it.","words":["grip","handle","reorder","move"]}},"fe3abdcadd8bf27372ed61947472c4e8":{"default":{"type":"icon-definition","name":"tag","description":"A tag or label.","words":["label","category"]}},"fe87833e34bc1470a07807c797e78f64":{"doc":{"type":"block","exampleFor":"useClipboard","name":"useClipboard — Share Link","displayName":"useClipboard — Share Link","description":"A share card that copies its invite link with useClipboard: the Copy button reads \"Copied\" while isCopied is true, a screen reader hears \"Link copied\", and a second press restarts the reset timer.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Card","Button","TextInput","Text","Layout"]}},"fe8b0aa93a9de5189b78b168382c5dbf":{"doc":{"type":"block","exampleFor":"TopNavMenu","name":"TopNavMenu","displayName":"Top Nav Menu","description":"Demonstrates TopNavMenu with a hover-triggered dropdown containing items with icons and descriptions.","isReady":true,"isShowcase":true,"aspectRatio":1.7777777777777777,"componentsUsed":["TopNav","TopNavMenu","TopNavItem"],"icons":{"ChartBarIcon":"chart","Cog6ToothIcon":"settings","MagnifyingGlassIcon":"search","UsersIcon":"users"}}},"fed4cc8e58d06adbc0f760b7b1c02203":{"doc":{"type":"block","exampleFor":"DropdownMenuGroup","name":"DropdownMenuGroup — Selectable rows","displayName":"DropdownMenuGroup — Selectable rows","description":"Titled groups around a radio group and checkbox rows — the rows the data API cannot express, which is why the heading lives in compound mode.","isReady":true,"aspectRatio":1.7777777777777777,"componentsUsed":["DropdownMenu","DropdownMenuGroup","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuCheckboxItem"]}},"ff06e8e324bff30488ee27670f07f219":{"doc":{"type":"block","exampleFor":"Grid","name":"Grid — Card Gallery","displayName":"Grid — Card Gallery","description":"Card gallery with responsive columns that maintain consistent widths","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Grid","Card","VStack","Text"]}},"ff274df3c46b26622dca15851e30af49":{"doc":{"type":"page","name":"Dialog Wizard","displayName":"Dialog Wizard","description":"Step through a short flow in a dialog, overlay, or popup launched from the page underneath, which stays where it was. Compact step markers and a pinned action row inside a constrained width, rather than the full page a wizard usually gets. Best for two to four short steps — setup, invite, schedule, onboarding — where losing the context underneath would cost more than the flow is worth.","keywords":["setup","invite","schedule","onboarding"],"isReady":true,"category":"Form - Wizard Dialog"}},"ff7dfb2597f282ddeb94684b46704bd0":{"doc":{"type":"block","exampleFor":"Slider","name":"Slider","displayName":"Slider","isReady":true,"aspectRatio":1,"isShowcase":true,"description":"A slider control set to 50%.","componentsUsed":["Slider"]}},"ffa1fa33ae4bfe90a2316d84c869f77f":{"doc":{"type":"block","exampleFor":"PowerSearch","name":"PowerSearch — Search with Table","displayName":"PowerSearch — Search with Table","description":"Composition of PowerSearch with Table using usePowerSearchConfig to auto-generate config and filter data.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["PowerSearch","Table","Layout"]}},"ffd7e3c20bda9141c62df9d13ba1111b":{"doc":{"type":"block","exampleFor":"Link","name":"Link — External Links","displayName":"Link — External Links","description":"A vertical list of external links that open in a new tab with an indicator icon.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["Link","VStack"]}},"ffe19d7f073fc9d73e346cc415279580":{"doc":{"type":"block","exampleFor":"MultiSelector","name":"MultiSelector — Form Composition","displayName":"MultiSelector — Form Composition","description":"Two multi-selectors in a form with required/optional states.","isReady":true,"aspectRatio":1.3333333333333333,"componentsUsed":["MultiSelector","Center","VStack"]}}}