< Summary

Information
Class: Chronicis.Client.Theme.ThemeConfig
Assembly: Chronicis.Client
File(s): /home/runner/work/chronicis/chronicis/src/Chronicis.Client/Theme/ThemeConfig.cs
Line coverage
100%
Covered lines: 77
Uncovered lines: 0
Coverable lines: 77
Total lines: 90
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
CreateChronicisTheme()100%11100%

File(s)

/home/runner/work/chronicis/chronicis/src/Chronicis.Client/Theme/ThemeConfig.cs

#LineLine coverage
 1using MudBlazor;
 2
 3namespace Chronicis.Client.Theme;
 4
 5/// <summary>
 6/// Provides the Chronicis application theme configuration for MudBlazor.
 7/// </summary>
 8public static class ThemeConfig
 9{
 10    /// <summary>
 11    /// Creates and returns the Chronicis theme with custom colors, typography, and layout properties.
 12    /// </summary>
 113    public static MudTheme CreateChronicisTheme() => new()
 114    {
 115        PaletteLight = new PaletteLight
 116        {
 117            Primary = "#3A4750",      // Slate blue-grey
 118            Secondary = "#C4AF8E",    // Beige-gold
 119            Background = "#F4F0EA",
 120            Surface = "#FFFFFF",
 121            AppbarBackground = "#1F2A33",
 122            DrawerBackground = "#1F2A33",
 123            DrawerText = "#F4F0EA",
 124            AppbarText = "#F4F0EA",
 125            TextPrimary = "#1A1A1A",
 126            TextSecondary = "#3A4750",
 127            ActionDefault = "#3A4750",
 128            ActionDisabled = "rgba(58, 71, 80, 0.38)",
 129            ActionDisabledBackground = "rgba(58, 71, 80, 0.12)",
 130            Divider = "rgba(196, 175, 142, 0.12)",
 131            DividerLight = "rgba(196, 175, 142, 0.06)",
 132            TableLines = "rgba(196, 175, 142, 0.12)",
 133            LinesDefault = "rgba(196, 175, 142, 0.12)",
 134            LinesInputs = "rgba(196, 175, 142, 0.32)",
 135            TextDisabled = "rgba(26, 26, 26, 0.38)",
 136            Success = "#4CAF50",
 137            Warning = "#FFA726",
 138            Error = "#ad1412ff",
 139            Info = "#29B6F6"
 140        },
 141        PaletteDark = new PaletteDark
 142        {
 143            Primary = "#F4F0EA",      // Off-white
 144            Secondary = "#C4AF8E",    // Beige-gold
 145            Background = "#1F2A33",
 146            Surface = "#1F2A33",
 147            AppbarBackground = "#1A2027",
 148            DrawerBackground = "#1F2A33",
 149            DrawerText = "#F4F0EA",
 150            AppbarText = "#F4F0EA",
 151            TextPrimary = "#F4F0EA",
 152            TextSecondary = "#C4AF8E",
 153            ActionDefault = "#F4F0EA",
 154            Divider = "rgba(196, 175, 142, 0.12)",
 155            Success = "#4CAF50",
 156            Warning = "#FFA726",
 157            Error = "#ad1412ff",
 158            Info = "#29B6F6"
 159        },
 160        Typography = new Typography
 161        {
 162            Default = new Default
 163            {
 164                FontFamily = new[] { "Roboto", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "sans-serif" }
 165            },
 166            H1 = new H1 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "2.5rem", FontWei
 167            H2 = new H2 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "2rem", FontWeigh
 168            H3 = new H3 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.5rem", FontWei
 169            H4 = new H4 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.25rem", FontWe
 170            H5 = new H5 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.125rem", FontW
 171            H6 = new H6 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1rem", FontWeigh
 172            Button = new Button { TextTransform = "none", FontWeight = 500 }
 173        },
 174        LayoutProperties = new LayoutProperties
 175        {
 176            DrawerWidthLeft = "320px",
 177            DrawerWidthRight = "320px",
 178            AppbarHeight = "64px"
 179        },
 180        ZIndex = new ZIndex
 181        {
 182            Drawer = 1200,
 183            AppBar = 1100,
 184            Dialog = 1300,
 185            Popover = 1400,
 186            Snackbar = 1500,
 187            Tooltip = 1600
 188        }
 189    };
 90}

Methods/Properties

CreateChronicisTheme()