Can you make random hiragana flash cards I just swipe through and they are full screen and I can touch them to get the sound and romaji. Should be really intuitive to use and characters use the full screen space nice and big. My toddler should be able to use that doesn't mean kid themed but rather so intuitive and useable you don't need to think about it and touch and animations are perfect
Assistant
Build succeeded. Here's what I built:
Hiragana Flashcards — a full-screen swipeable flashcard app that any toddler (or thumb) can use without thinking.
How it feels
Massive characters — each hiragana fills ~78% of the screen (min(78vw, 78vh)), always centered.
Tap anywhere → speaks the sound (Web Speech API, prefers a Japanese voice, warms up on first touch for iOS), shows the romaji in a frosted pill, and pulses a soft ripple.
Swipe in any horizontal direction → springs off-screen with rotation and a new random card flies in from the opposite side. Threshold + velocity detection so tiny nudges snap back and confident flicks always advance.
Elastic drag while your finger is down — the card tilts and translates with you, then springs cleanly.
User
Add katakana option
Assistant
Now update App.tsx to use the pool and add a mode toggle:
Now add the script toggle UI. Let me look at the end of the file:
Now add the script toggle button at the top, and use the scriptPulse for a subtle animation. I'll also add a "K" keyboard shortcut:
Now insert the script toggle button. I'll put it top-right so it doesn't interfere with tap-anywhere behavior but is always visible:
Build succeeded. Added a katakana option with zero learning curve:
New: Script toggle (top-right)
A round floating button in the top-right corner shows the current script:
あ → hiragana only
ア → katakana only
あア → both mixed together
Tap it to cycle. Each tap:
Springs the label with a rotate-in animation
Immediately deals a fresh random card from the new pool
Colorful gradient per card from an 18-palette rotation, with a subtle radial highlight for depth. The background dims to the same palette so animation gaps never flash.
Zero-chrome UI — no buttons, no menus, no header. Just the character.
First-run hint wiggles at the bottom ("tap for sound · swipe for next") and vanishes forever on first interaction.
Keyboard shortcuts for desktop: arrows / space to advance, s to speak.
Technical touches
touch-action: none, disabled overscroll, disabled text selection, disabled tap highlight — feels native.
viewport-fit=cover + apple-mobile-web-app-capable for edge-to-edge iOS.
Consecutive cards never repeat the same kana or gradient color.
Framer Motion variants with directional enter/exit and a spring settle.
Persists your choice to localStorage so it's remembered next launch
What's included
Full 46-character katakana gojūon dataset added alongside hiragana
"Both" mode picks randomly from all 92 characters — great for review
Same speech synthesis works for both (Japanese voice pronounces カ and か identically as "ka")
Keyboard shortcut K to cycle scripts on desktop
Button uses stopPropagation so tapping it never triggers the card's tap/swipe
The button is small, unobtrusive, and uses the same frosted-glass look as the romaji pill — so it fits the aesthetic without adding cognitive load. Toddler still just taps the card for sound and swipes for next; the parent picks the script.