Split minigames-kit demos into standalone crates with compiled Tailwind
Split minigames-kit demos into standalone crates with compiled Tailwind
#14 in Riparion/riparion-retro — merged 2026-06-09
What
Each minigame demo was a cargo [[example]] under minigames-kit, served via dx serve --package minigames-kit --example <name>. This promotes each to its own workspace crate under examples/<name>, so each carries its own Dioxus.toml, assets, and Tailwind build — just like the games in games/*.
Changes
- New crates under
examples/*(added to the workspace members glob):minigames-kit-quickdraw,-timing-bar,-crowd-threading,-hunter,-steady-hands. Each depends on the kit with only its own feature enabled. - Compiled Tailwind, no CDN. Replaced the Tailwind Play CDN (
cdn.tailwindcss.com) with a per-cratetailwind.cssthatdxauto-compiles intoassets/tailwind.css. The@sourcedirectives pull in the kit's component classes (the utilities live in the kit, not the demo'smain.rs). This removes the production-CDN console warning and the first-paint utility-class layout shift, and lets us drop hunter's inline-style CDN workarounds. - Removed the old
[[example]]stanzas andexamples/*.rsfrom the kit. just example <name>andjust steady-handsnow point at the new packages.
Verification
cargo checkclean for all five crates and the kit.dx buildsucceeds for all five; each compilestailwind.css→assets/tailwind.cssand bundles it. Inspected output contains both kit-component classes (.grid-cols-3,.gap-*) and demo classes (.flex,.text-center,.opacity-70,.p-4).
Run
dx serve --package minigames-kit-hunter # or: just example hunter
🤖 Generated with Claude Code
Last updated 2026-06-10
Links to this note
Credits
Merged pull requests, newest first.