182 lines
5.6 KiB
C#
182 lines
5.6 KiB
C#
|
|
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" }
|
|||
|
|
},
|
|||
|
|
//Display/Large
|
|||
|
|
H1 = new H1()
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "3.5625rem",
|
|||
|
|
LineHeight = 4,
|
|||
|
|
FontWeight = 500,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Display/Medium
|
|||
|
|
H2 = new H2()
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "2.8125rem",
|
|||
|
|
LineHeight = 3.25,
|
|||
|
|
FontWeight = 500,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Display/Small
|
|||
|
|
H3 = new H3()
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "2.25rem",
|
|||
|
|
LineHeight = 2.75,
|
|||
|
|
FontWeight = 500,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Headline/Large
|
|||
|
|
H4 = new H4()
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "2rem",
|
|||
|
|
LineHeight = 2.5,
|
|||
|
|
FontWeight = 600,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Headline/Medium
|
|||
|
|
H5 = new H5()
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "1.75rem",
|
|||
|
|
LineHeight = 2.25,
|
|||
|
|
FontWeight = 600,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Headline/Small
|
|||
|
|
H6 = new H6()
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "1.5rem",
|
|||
|
|
LineHeight = 2,
|
|||
|
|
FontWeight = 600,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
Button = new Button
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "0.875rem",
|
|||
|
|
LineHeight = 1.75,
|
|||
|
|
FontWeight = 700,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Body/Large
|
|||
|
|
Body1 = new Body1
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "0.875rem",
|
|||
|
|
LineHeight = 1.75,
|
|||
|
|
FontWeight = 400,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Body/Medium
|
|||
|
|
Body2 = new Body2
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "0.875rem",
|
|||
|
|
LineHeight = 1.43,
|
|||
|
|
FontWeight = 400,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Body/small
|
|||
|
|
Overline = new Overline
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "0.75rem",
|
|||
|
|
LineHeight = 1.33,
|
|||
|
|
FontWeight = 400,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Title/Large
|
|||
|
|
Caption = new Caption
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "1.125rem",
|
|||
|
|
LineHeight = 1.714,
|
|||
|
|
FontWeight = 700,
|
|||
|
|
LetterSpacing = "0"
|
|||
|
|
},
|
|||
|
|
//Title/medium
|
|||
|
|
Subtitle1 = new Subtitle1
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "1rem",
|
|||
|
|
LineHeight = 1.5,
|
|||
|
|
FontWeight = 700,
|
|||
|
|
LetterSpacing = "0.009em"
|
|||
|
|
},
|
|||
|
|
//Title/small
|
|||
|
|
Subtitle2 = new Subtitle2
|
|||
|
|
{
|
|||
|
|
FontFamily = new[] { "Vazir" },
|
|||
|
|
FontSize = "0.875rem",
|
|||
|
|
LineHeight = 1.43,
|
|||
|
|
FontWeight = 700,
|
|||
|
|
LetterSpacing = "0.006em"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
}
|