Repository navigation
docs: split theme into use-a-theme and author-a-theme - #7141
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
|
e9636b4 to
ee9aeb7
Compare
Split the 33 KB theme monolith into two focused guides: - use-a-theme (7 sections) — applying themes, dark mode, nested, runtime vs built - author-a-theme (13 sections) — defineTheme, palette, overrides, variants, adaptations, build Thin overview stays at the theme route with cross-links to both. Updates 8 link references and test assertions.
ee9aeb7 to
0384cb6
Compare
Split the 33 KB theme monolith into two focused guides: - use-a-theme (7 sections) — applying themes, dark mode, nested, runtime vs built - author-a-theme (13 sections) — defineTheme, palette, overrides, variants, adaptations, build Thin overview stays at the theme route with cross-links to both. Updates 8 link references and test assertions.
0384cb6 to
cf0d27a
Compare
There was a problem hiding this comment.
Thanks for splitting the theme guide — separating “use a theme” from “author a theme” makes the right guide much easier to find.
Before this can land, the workflow inside the new guides needs to match the current theme workflow. For example, use-a-theme tells readers to add an integration theme with plain theme add and describes the result as editable copied source, and author-a-theme presents plain theme add as the way to copy a theme in. The current workflow instead has builder-facing guides name the import form of theme add for using a theme, wire the generated theme module once, customize with extends, and reserve copying for an explicit fork.
The smallest fix is to keep the use/author split and update the copied passages in use-a-theme, author-a-theme, and the thin theme overview to that workflow, preserving the current guide's import-based sections including migration for earlier copies. I did not re-run the CLI tests or search checks here, so please make sure the updated tests still support the search results described in the pull request after the fix.
[Automated review]
Split the 33 KB theme monolith into two focused guides: - use-a-theme (7 sections) — applying themes, dark mode, nested, runtime vs built - author-a-theme (13 sections) — defineTheme, palette, overrides, variants, adaptations, build Thin overview stays at the theme route with cross-links to both. Updates 8 link references and test assertions.
cf0d27a to
fc95199
Compare
There was a problem hiding this comment.
Thanks for splitting the theme guide — separating “use a theme” from “author a theme” makes the right guide much easier to find.
Before this can land, the workflow inside the new guides needs to match the current theme workflow. For example, use-a-theme tells readers to add an integration theme with plain theme add and describes the result as editable copied source, and author-a-theme presents plain theme add as the way to copy a theme in. The current workflow instead has builder-facing guides name the import form of theme add for using a theme, wire the generated theme module once, customize with extends, and reserve copying for an explicit fork.
The smallest fix is to keep the use/author split and update the copied passages in use-a-theme, author-a-theme, and the thin theme overview to that workflow, preserving the current guide's import-based sections including migration for earlier copies. I did not re-run the CLI tests or search checks here, so please make sure the updated tests still support the search results described in the pull request after the fix.
[Automated review]
Split the 33 KB theme monolith into two focused guides: - use-a-theme (7 sections) — applying themes, dark mode, nested, runtime vs built - author-a-theme (13 sections) — defineTheme, palette, overrides, variants, adaptations, build Thin overview stays at the theme route with cross-links to both. Updates 8 link references and test assertions.
fc95199 to
01ef77e
Compare
There was a problem hiding this comment.
Thanks for splitting the theme guide — separating “use a theme” from “author a theme” makes the right guide much easier to find.
Before this can land, the workflow inside the new guides needs to match the current theme workflow. For example, use-a-theme tells readers to add an integration theme with plain theme add and describes the result as editable copied source, and author-a-theme presents plain theme add as the way to copy a theme in. The current workflow instead has builder-facing guides name the import form of theme add for using a theme, wire the generated theme module once, customize with extends, and reserve copying for an explicit fork. The search test change also relaxes the exact import command assertion for theme results to a prefix, which no longer checks that stage command.
The smallest fix is to keep the use/author split and update the copied passages in use-a-theme, author-a-theme, and the thin theme overview to that workflow, preserving the current guide's import-based sections including migration for earlier copies, and restore the exact stage-command assertion. The changed CLI doc and search tests pass here apart from one usage-prefix assertion that depends on how the test runner was invoked, so please make sure the updated tests still support the search results described in the pull request after the fix.
[Automated review]
Split the 33 KB theme monolith into two focused guides: - use-a-theme (7 sections) — applying themes, dark mode, nested, runtime vs built - author-a-theme (13 sections) — defineTheme, palette, overrides, variants, adaptations, build Thin overview stays at the theme route with cross-links to both. Updates 8 link references, the token-docs generator, and test assertions.
01ef77e to
0731990
Compare
There was a problem hiding this comment.
Thanks for splitting the theme guide — separating “use a theme” from “author a theme” makes the right guide much easier to find, and the changed CLI tests pass locally (152 tests across the five changed files).
Before this can land, the workflow inside the new guides needs to match the current theme workflow. For example, use-a-theme tells readers to add an integration theme with plain theme add and describes the result as editable copied source, author-a-theme presents plain theme add as the way to copy a theme in, and none of the new guides mentions the import form, the generated app theme module, or the fork command — the earlier-copy migration guidance also disappears. The current workflow instead names theme add --import for using a theme, wires the generated module once, customizes with extends, reserves copying for an explicit fork, and keeps migration guidance for earlier copies. The referring getting-started and integration guides still teach the import workflow and now link into the new guides, so the shipped surfaces would disagree with each other.
The smallest fix is to keep the use/author split and update the workflow passages in use-a-theme, author-a-theme, and the thin theme overview from the current import-based sections, preserving the migration section, then confirm the updated tests still support the search behavior described in the pull request.
[Automated review]
The theme split (#7141) taught plain `theme add` (copying) instead of the current `theme add --import` workflow. This fixes use-a-theme, author-a-theme, and the theme overview to match the import-based workflow that getting-started and the integration guides teach: - theme add --import + generated astryx-themes module - theme use / theme remove for managing imported themes - theme eject only for independent source forks - Restores the "Migrating Earlier Theme Copies" section - Fixes apostrophe syntax error in author-a-theme Addresses CodeBunny review on #7141.
What this does
The theme doc was a 33 KB, 19-section monolith mixing two concerns: using themes and authoring themes.
Split into two focused guides plus a thin overview:
use-a-theme (7 sections, ~8 KB) — applying themes to your app
author-a-theme (13 sections, ~18 KB) — creating and customizing themes
theme overview (4 sections, ~3 KB) — thin entry point linking to both
Search results (after)
use-a-theme#light-dark-modeauthor-a-theme#definethemeauthor-a-theme#custom-variantsauthor-a-theme#usetheme-hookauthor-a-theme#paletteadd-a-themeCross-links
Also
{@link generic:theme}references to point to the right new doc