Variants
Sizes and states, all built from the same markup.
Usage
Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.
Accessibility
- Role and state. Each setup task is a real button with role="checkbox" and aria-checked, Replant is a plain button. A polite live region announces the task and how many of 4 are complete.
- Keyboard. Tab walks the five controls, Space or Enter toggles a task. Focus rings are always visible. The glass columns in the scene are an extra pointer path, never the only one.
- Pointer and touch. Tap a task or a glass column in the scene. Hit targets are at least 44px and vertical page scroll still works over the stage.
- Reduced motion. With reduced motion the plant jumps to its growth stage, no sway, rain, fireflies drift or bloom burst. Counts and checked states are unchanged.