fix: show initial value and improve numeral contrast

- Changed back to controlled value (with state update) to display initial 1234567
- Added customStyles for numerals: golden color (#fbbf24), bold, larger font
- Numerals now have excellent contrast against dark background

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-10-18 17:50:06 -05:00
parent d38ea312a7
commit 1b57f6ddec

View File

@@ -76,7 +76,7 @@ export default function HomePage() {
Click the beads to interact!
</div>
<AbacusReact
defaultValue={1234567}
value={abacusValue}
columns={7}
beadShape="diamond"
colorScheme="place-value"
@@ -87,6 +87,13 @@ export default function HomePage() {
soundVolume={0.4}
scaleFactor={2.2}
showNumbers={true}
customStyles={{
numerals: {
fill: '#fbbf24',
fontWeight: 'bold',
fontSize: '18px',
},
}}
callbacks={{
onValueChange: (newValue: number) => setAbacusValue(newValue),
}}