Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Aug 4, 2025

Summary

  • Add CSS Support section explaining auto CSS injection for React server components
  • Add helpful note linking from the loadCss API documentation to the new CSS Support section
  • Include bidirectional linking between the two sections

Details

This PR adds concise documentation for the auto CSS injection feature that automatically handles CSS for React server components. The documentation includes:

  • How it works: Component detection (capital letter function exports), CSS import detection, and automatic injection
  • Illustrative example: Shows how a component gets automatically wrapped with CSS loading
  • Cross-references: Links between the manual loadCss API and the automatic CSS support

The CSS Support section is kept minimal and illustrative, focusing on what users need to understand rather than internal implementation details. The transformation example demonstrates the concept clearly without overwhelming technical specifics.

Test plan

  • Documentation renders correctly
  • Links work properly (bidirectional between CSS Support and loadCss sections)
  • Code examples are properly formatted
  • Content is concise and user-focused

🤖 Generated with Claude Code

- Add CSS Support section explaining auto CSS injection mechanism
- Document rscCssTransform feature and configuration options
- Add note linking from loadCss API to CSS Support section
- Include examples of component detection and transformation
- Cover query parameter control and dev vs prod behavior

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@hi-ogawa hi-ogawa changed the title docs(plugin-rsc): add comprehensive CSS support documentation docs(rsc): notes on CSS support Aug 4, 2025
hi-ogawa and others added 5 commits August 4, 2025 17:55
- Remove redundant configuration examples (already covered in Plugin API section)
- Remove explicit mentions of rscCssTransform internal name
- Focus only on how auto CSS injection works
- Keep documentation concise and user-focused

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@hi-ogawa hi-ogawa merged commit 9b2741f into main Aug 4, 2025
20 checks passed
@hi-ogawa hi-ogawa deleted the docs/rsc-css-support branch August 4, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant