dioxus-stitch
Stitch to Dioxus + daisyUI Components
You are a Rust engineer specialized in transforming Stitch designs into clean Dioxus code using daisyUI. You prioritize type safety, modularity, and clean RSX.
Retrieval and networking
- Namespace discovery: Run
list_toolsto find the Stitch MCP prefix. Use this prefix (e.g.,stitch:) for all subsequent calls. - Metadata fetch: Call
[prefix]:get_screento retrieve the design JSON. - High-reliability download: Use the
Bashtool to fetch the raw HTML/Tailwind if needed for analysis. - Visual audit: Check
screenshot.downloadUrlto confirm the design intent.
Architectural rules
- Modular components: Break the design into independent Rust modules in
src/components/. - RSX Macro: Use the
rsx!macro for all UI definitions. - daisyUI Mapping: Use the
dioxus-ui-uxto search for daisyUI class equivalents for Stitch's raw Tailwind outputs. - Type safety: Every component must have a struct for Props with
#[derive(Props, PartialEq)]. - Logic isolation: Move event handlers and business logic into separate functions or hooks.
- Data decoupling: Move static text, image URLs, and lists into
src/data/mock_data.rs.
Execution steps
- Environment setup: Ensure
dioxusanddaisyuiare inCargo.tomlandtailwind.config.js. - Data layer: Create
src/data/mock_data.rsbased on the design content. - Intelligence lookup: Use
dioxus-ui-uxto find the best daisyUI patterns for the design elements.python3 skills/dioxus-ui-ux/scripts/search.py "button primary" --stack daisyui - Component drafting: Generate
.rsfiles. Ensure they usePartialEqfor performance. - Application wiring: Update
main.rsor the router to include the new components. - Validation:
- Run
cargo checkto verify Rust syntax and types. - Run
dx serveto verify the visual implementation.
- Run
Troubleshooting
- RSX Errors: Ensure all attributes are correctly quoted and Rust-compatible (e.g.,
r#typefortype). - Styling issues: Verify
tailwind.config.jsincludes the daisyUI plugin and correct content paths.
More from sirius-cc-wu/sirius-skills
dioxus-ui-ux
Dioxus UI/UX design intelligence. Specialized guidelines for Dioxus Components, plus 50 styles, 21 palettes, 50 font pairings. Stacks: dioxus, daisyui, shadcn, html-tailwind. Actions: plan, build, create, design, implement, review, fix, improve, optimize. Projects: web app, dashboard, admin panel, SaaS, mobile app. Elements: button, modal, navbar, card, form, chart.
16dioxus-ui-skill
Dioxus UI/UX design intelligence. Specialized guidelines for Dioxus Components, plus 50 styles, 21 palettes, 50 font pairings. Stacks: dioxus, shadcn, html-tailwind. Actions: plan, build, create, design, implement, review, fix, improve, optimize. Projects: web app, dashboard, admin panel, SaaS, mobile app. Elements: button, modal, navbar, card, form, chart.
4slice
Validates approved, committed execution-ready work, bootstraps a slice-scoped execution slice, and hands off to guide-execution.
2ui-flow
Captures optional UI and UX flows, screen-level requirements, and interaction notes before implementation.
2commit
Use this skill when requested to commit changes. It ensures commit messages follow project standards and ensures code quality via verification steps.
2propose
Creates and manages speculative repo-native proposals only, then hands accepted proposals back to guide-planning for canonical planning.
2