CCurran Kelleher
Last edited Nov 15, 2026
Created on Nov 15, 2026
An interactive learning experience for kids to learn shapes and colors.
Shapes & Colors
An interactive learning toy for young children (ages 3–7) to explore shapes and colors.
Features
- Pick red, green, or blue from the left column.
- Pick circle, square, or triangle from the bottom bar.
- The large central shape updates with smooth D3 transitions and morphs between shapes.
- Every selection is spoken aloud with the browser's Web Speech API (e.g. "blue circle").
- The speaker button repeats the current combination.
- Fully keyboard accessible, with visible focus rings and an accessible text description.
- Respects
prefers-reduced-motion. - Runs entirely client-side with no external assets besides D3.
Files
index.html— page shell and import map (D3 from a CDN).main.js— state, D3 rendering, morph transitions, and speech.styles.css— layout, touch targets, responsive rules.README.md— this file.
Notes
- Speech only starts after a user gesture, which is required for mobile Safari.
- Repeated clicks call
speechSynthesis.cancel()first, so audio never queues up. - If speech synthesis is unavailable, the interface still works normally.
References
This project was informed by the general ideas (color, shape, and size panels with a central preview) found in these visualizations:
Comments
Sign in to join the discussion.