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-crate tailwind.css that dx auto-compiles into assets/tailwind.css. The @source directives pull in the kit's component classes (the utilities live in the kit, not the demo's main.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 and examples/*.rs from the kit.
  • just example <name> and just steady-hands now point at the new packages.

Verification

  • cargo check clean for all five crates and the kit.
  • dx build succeeds for all five; each compiles tailwind.cssassets/tailwind.css and 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