Added initial token/theme styles and theme service.

This commit is contained in:
2025-12-02 22:39:09 -05:00
parent 6790a9bfff
commit 30162b6a27
5 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
namespace JSMR.UI.Blazor.Services;
public class ThemeService
{
public AppTheme Current { get; private set; } = AppTheme.Frozen;
public event Action? Changed;
public void Set(AppTheme theme)
{
if (theme == Current) return;
Current = theme;
Changed?.Invoke();
}
}
public enum AppTheme { Frozen, Warm }