Problem
- Snackbar visibility issue: The default Material snackbar is difficult to read in dark mode due to poor contrast (white text on
light background in some cases).
- No visual distinction: All snackbar messages (errors, success, warnings) look the same, making it hard for users to quickly
identify message severity.
Steps to Reproduce
- Create a free account in Google AI Studio
- Keep messaging the agent until you reach the daily limit (~21 messages)
- Observe the rate limit error snackbar
(or any flow that trigger showing the snackbar , ex eval saving or importing a session from a file)
Screenshot:
Proposed Solution
Add custom snackbar styling and color-aware message types:
Improvements
-
Fix visibility issues
- Use theme-aware CSS variables for proper contrast
- Ensure button text is visible in both light and dark modes
-
Add color-coded message types
- Error messages: red background
- Success messages: green background
- Warning messages: orange background
- Info messages: default theme background
-
Make it reusable
- Create shared constants (
SnackbarType.ERROR, SUCCESS, WARNING, INFO)
- Allow other components to use the same pattern
I'm working on a PR for this and would appreciate feedback on the approach!
Problem
light background in some cases).
identify message severity.
Steps to Reproduce
(or any flow that trigger showing the snackbar , ex eval saving or importing a session from a file)
Screenshot:
Proposed Solution
Add custom snackbar styling and color-aware message types:
Improvements
Fix visibility issues
Add color-coded message types
Make it reusable
SnackbarType.ERROR,SUCCESS,WARNING,INFO)I'm working on a PR for this and would appreciate feedback on the approach!