open-design/plugins/_official/scenarios/od-react-export/SKILL.md
pftom 67a109335d feat(web, daemon): enhance plugin categorization and introduce new export scenarios
- Updated the plugin categorization system to reflect a workflow-based model, replacing the previous category bar with a curated workflow bar (From source, Generate, Export).
- Added new export scenarios for Next.js, React, and Vue, providing users with starter plugins for downstream integration.
- Enhanced the HomeView and PluginsHomeSection components to support the new categorization and improve user interaction with plugins.
- Updated tests to cover new scenarios and ensure proper functionality across the updated plugin management system.

This update significantly improves the user experience by providing clearer categorization and new tools for exporting Open Design artifacts.
2026-05-12 21:50:19 +08:00

873 B

Export To React

Use this plugin when the user wants to hand an accepted Open Design artifact to a React app.

Workflow

  1. Inspect the current artifact and identify the smallest React component boundary that preserves the design.
  2. Produce React 18 + TypeScript code with clear props only for content or state that is likely to vary.
  3. Prefer Tailwind CSS when the target project already supports it; otherwise keep styling local and easy to move.
  4. Preserve accessibility semantics from the artifact, including headings, buttons, links, labels, focus states, and alt text.
  5. Finish with file placement notes, required assets, and any assumptions about routing or data.

Quality Bar

  • Do not flatten the artifact into generic divs.
  • Do not introduce a component library unless the target project already uses it.
  • Keep generated props and variants minimal.