using MudBlazor; namespace FrontOffice.Main.Utilities; public static class CustomMudTheme { public static MudTheme CustomMudBlazorTheme { get; set; } = new() { PaletteLight = new PaletteLight() { Primary = "#0380C0", //Secondary = CustomColor.Secondary.Default, //Tertiary = CustomColor.Tertiary.Default, Background = "#F5F5F5", AppbarBackground = "#F5F5F5", //PrimaryContrastText = "#FFFFFF", //SecondaryContrastText = "#FFFFFF", //ErrorContrastText = "#FFFFFF", //SuccessContrastText = "#FFFFFF", //InfoContrastText = "#FFFFFF", //WarningContrastText = "#FFFFFF", TextPrimary = Colors.Gray.Darken3, //// TextSecondary = "#FFFFFF", //Error = CustomColor.Error.Default, //ErrorLighten = CustomColor.Error.Error100, //// Info = "#3977AD", //InfoLighten = CustomColor.Info.Lighten, //InfoDarken = CustomColor.Info.Darken, //// Success = "#05AF82", //SuccessDarken = CustomColor.Success.Darken, //SuccessLighten = CustomColor.Success.Lighten, ////Warning = "#EF7300", //WarningDarken = CustomColor.Warning.Lighten, //WarningLighten = CustomColor.Warning.Lighten, //BackgroundGrey = CustomColor.Other.Background, //GrayDefault = CustomColor.Other.Background, //GrayDark = CustomColor.Gray.Gray10, //GrayLight = CustomColor.Gray.Gray60, //GrayLighter = CustomColor.Gray.Gray80, //TextDisabled = CustomColor.Other.DisableText, //ActionDisabled = CustomColor.Other.DisableText, //ActionDisabledBackground = CustomColor.Other.DisableBackground, Surface = "#FFFFFF", Divider = "#B2BFCB", }, Typography = new Typography() { // پایه Default = new Default() { FontFamily = new[] { "Vazir", "Tahoma", "Segoe UI", "Arial", "sans-serif" } }, // هدینگ‌ها (اسکیل متعادل برای وب) H1 = new H1 { FontFamily = new[] { "Vazir" }, FontSize = "2rem", LineHeight = 1.70, FontWeight = 800, LetterSpacing = "normal" }, // ~32px H2 = new H2 { FontFamily = new[] { "Vazir" }, FontSize = "1.875rem", LineHeight = 1.65, FontWeight = 800, LetterSpacing = "normal" }, // ~30px H3 = new H3 { FontFamily = new[] { "Vazir" }, FontSize = "1.5rem", LineHeight = 1.60, FontWeight = 800, LetterSpacing = "normal" }, // ~24px H4 = new H4 { FontFamily = new[] { "Vazir" }, FontSize = "1.25rem", LineHeight = 1.55, FontWeight = 800, LetterSpacing = "normal" }, // ~20px H5 = new H5 { FontFamily = new[] { "Vazir" }, FontSize = "1.125rem", LineHeight = 1.50, FontWeight = 800, LetterSpacing = "normal" }, // ~18px H6 = new H6 { FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = 1.45, FontWeight = 800, LetterSpacing = "normal" }, // ~16px // Subtitles Subtitle1 = new Subtitle1 { FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = 1.62, FontWeight = 500, LetterSpacing = "normal" }, Subtitle2 = new Subtitle2 { FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = 1.60, FontWeight = 500, LetterSpacing = "normal" }, // Body text (برای خوانایی بازتر از هدینگ‌ها) Body1 = new Body1 { FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = 1.85, FontWeight = 400, LetterSpacing = "normal" }, Body2 = new Body2 { FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = 1.80, FontWeight = 400, LetterSpacing = "normal" }, // Small text Caption = new Caption { FontFamily = new[] { "Vazir" }, FontSize = "0.75rem", LineHeight = 1.60, FontWeight = 400, LetterSpacing = "normal" }, Overline = new Overline { FontFamily = new[] { "Vazir" }, FontSize = "0.75rem", LineHeight = 1.60, FontWeight = 500, LetterSpacing = "normal" }, // Buttons Button = new Button { FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = 1.60, FontWeight = 600, LetterSpacing = "normal", TextTransform = "none" // حروف بزرگ اجباری غیرفعال } } }; }