Skip to content

Commit bcccb44

Browse files
committed
Remove hard-coded black color from animated-letters example
The example was setting color: "black" on letter spans, which made them invisible on dark backgrounds. Now letters inherit the default text color which adapts to the current color scheme (light/dark mode). The animation still works - letters appear green, turn red when leaving, and are visible (not black) during their steady state. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b416ff6 commit bcccb44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/animated-letters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function* Letter({letter, index}) {
6464
});
6565
});
6666

67-
yield <span style={{...style, color: "black"}}>{letter}</span>;
67+
yield <span style={style}>{letter}</span>;
6868
}
6969
}
7070

0 commit comments

Comments
 (0)