fix: tweak banner colors #391
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Greptile Overview
Greptile Overview
Greptile Summary
This PR updates the testnet migration banner to use theme-aware CSS classes instead of hardcoded Tailwind colors.
Changes Made:
bg-gray-100withbg-base-altfor the banner backgroundtext-blackwithtext-primaryfor the text colorborder-gray-300class (which was only setting border color without an actual border width, so it had no visual effect)Why This Matters:
The old implementation used static colors (
gray-100,black) that don't adapt to the user's color scheme preference. The new implementation uses the design system's semantic color tokens (base-alt,primary) which automatically adjust for light and dark modes:bg-base-alt=#e5e5e5,text-primary=#0a0a0abg-base-alt=#2a2a2a,text-primary=#f5f5f5This ensures the banner remains readable and visually consistent across both color schemes, following the established design patterns used throughout the explorer application.
Confidence Score: 5/5
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant User participant Browser participant Layout Component participant CSS Theme System User->>Browser: View Explorer Page Browser->>Layout Component: Render Layout Layout Component->>CSS Theme System: Apply bg-base-alt class CSS Theme System-->>Layout Component: Return #e5e5e5 (light) or #2a2a2a (dark) Layout Component->>CSS Theme System: Apply text-primary class CSS Theme System-->>Layout Component: Return #0a0a0a (light) or #f5f5f5 (dark) Layout Component->>Browser: Render banner with theme-aware colors Browser-->>User: Display banner (adapts to light/dark mode)Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant User participant Browser participant Layout Component participant CSS Theme System User->>Browser: View Explorer Page Browser->>Layout Component: Render Layout Layout Component->>CSS Theme System: Apply bg-base-alt class CSS Theme System-->>Layout Component: Return #e5e5e5 (light) or #2a2a2a (dark) Layout Component->>CSS Theme System: Apply text-primary class CSS Theme System-->>Layout Component: Return #0a0a0a (light) or #f5f5f5 (dark) Layout Component->>Browser: Render banner with theme-aware colors Browser-->>User: Display banner (adapts to light/dark mode)