Skip to content

docs: add styling overview — the choose-a-path guide - #7134

Merged
josephfarina merged 2 commits into
mainfrom
docs/styling-overview
Oct 8, 2026
Merged

josephfarina merged 2 commits into
mainfrom
docs/styling-overview

Conversation

@josephfarina

@josephfarina josephfarina commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

What this does

1. Styling overview (new file)

One doc answering "How do I set up CSS?" with exact imports for plain, Tailwind, and StyleX-from-source paths.

2. Theme workflow fix-forward

Restores the import-based workflow in the split theme guides (#7141). Addresses every item from CodeBunny review #5451802604:

  • use-a-theme: teaches theme add --import + generated astryx-themes module, theme use/theme remove, theme eject for forking
  • author-a-theme: teaches extends on imported themes, eject for forking
  • theme overview: uses --import commands
  • Restores "Migrating Earlier Theme Copies" section
  • Fixes apostrophe syntax error in author-a-theme

Files

File Change
styling-overview.doc.mjs New — CSS setup guide
use-a-theme.doc.mjs Fix — import workflow, migration section
author-a-theme.doc.mjs Fix — import/eject workflow, syntax fix
theme.doc.mjs Fix — import commands in overview
docs.test.mjs Fix — assertion for new label

Checks

  • 0 tree errors, 0 link problems
  • 261/261 CLI tests pass
  • review-signal: CODEOWNERS will auto-request cixzhang + imdreamrunner

Not merged — awaiting Joey's word.

@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 8, 2026 6:21pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 8, 2026, 6:26 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 7, 2026
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this — one short guide that answers "How do I set up CSS?" is exactly what was missing. The three paths read clearly, the plain and Tailwind import blocks match the existing getting-started and styling-libraries guidance, and search already surfaces the new topic first.

One fix is needed before this can merge: the pointer to the bundler config examples in the StyleX-from-source section names no doc, so it renders as raw {@link ...} markup for readers and the docs checks fail on it. Naming the styling doc itself, with the section mentioned in prose (for example, "See the StyleX Build Setup section of …"), resolves it.

It would also help to refresh the pull-request description's section table, which still lists sections the shipped file no longer contains.

Once that link resolves, this looks good to land.

[Automated review]

},
{
type: 'prose',
text: 'If a swizzled component renders with no styles and no error, a missing compiler is almost always why. See {@link generic:styling stylex-setup} for bundler config examples.',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link names no doc: {@link generic:styling stylex-setup} is reported by astryx doctor as naming no doc, renders as literal markup in astryx docs styling-overview --full, and fails the docs-graph link-resolution test (plus the Doctor docs-tree checks). Doc links name a doc by identity only, so please name the doc itself and put the section in prose — for example: "See the StyleX Build Setup section of {@link generic:styling} for bundler config examples."

One doc answering "How do I set up CSS?" with exact imports for
plain, Tailwind, and StyleX-from-source paths.

Fixes link syntax and updates theme references for the split.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this — one short guide that answers "How do I set up CSS?" is exactly what was missing. The three paths read clearly, the Tailwind imports match the existing styling-libraries guidance, and search already surfaces the new topic first.

The earlier blocking link is fixed: the StyleX-from-source pointer now names the styling doc (with the section in prose), it resolves when the guide is read, and the docs checks and Doctor pass for this topic.

One small housekeeping note: the pull-request description's section table still lists a few sections the shipped file no longer contains, so refreshing it would keep readers from looking for them.

This looks good to land.

[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.
@josephfarina
josephfarina merged commit fa4c5fc into main Oct 8, 2026
38 checks passed
@github-actions
github-actions Bot deleted the docs/styling-overview branch October 9, 2026 06:25

This branch was successfully deployed

1 active deployment
Preview — 85a7b120 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant