This commit is contained in:
MeysamMoghaddam
2025-10-07 16:20:07 +03:30
parent 64a9387330
commit 8488f5d8fb
2 changed files with 327 additions and 302 deletions

View File

@@ -57,125 +57,41 @@ public static class CustomMudTheme
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"
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.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"
LineHeight = 1.60,
FontWeight = 600,
LetterSpacing = "normal",
TextTransform = "none" // حروف بزرگ اجباری غیرفعال
}
}
};