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.
This pull request introduces a theme management system to the Blazor sandbox app, enabling users to switch between light, dark, and system themes. It also updates the CSS to support the new theming, adds new utility classes, and improves the overall styling for consistency and accessibility.
Theme Management and Integration:
ThemeService(ThemeService.cs) for managing theme changes via JavaScript interop, and registered it in dependency injection (Startup.cs). [1] [2]Themecomponent (Theme.razor) with buttons to switch between light, dark, and system themes, and integrated it into the navigation menu (NavMenu.razor). [1] [2]_Host.cshtml).Styling and CSS Enhancements:
momentum.cssto add new CSS variables for colors, font sizes, radii, and transitions; implemented light and dark theme variable sets; and added base styles for headings, paragraphs, links, and other elements for better theme support. [1] [2] [3] [4].my-auto,.size-5,.bg-background,.bg-background-light, and.text-dangerfor improved layout and theming flexibility. [1] [2] [3] [4]Component and Layout Adjustments:
MainLayout.razorto use new background classes for theme compatibility.Dependency Updates:
Inxton.Operonpackage from0.3.0-alpha.100to0.3.0-alpha.102inDirectory.Packages.props.Other:
v4.1.17tov4.1.14inmomentum.cssfor compatibility.