< 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
0%
Covered lines: 0
Uncovered lines: 77
Coverable lines: 77
Total lines: 90
Line coverage: 0%
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%210%

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>
 013    public static MudTheme CreateChronicisTheme() => new()
 014    {
 015        PaletteLight = new PaletteLight
 016        {
 017            Primary = "#3A4750",      // Slate blue-grey
 018            Secondary = "#C4AF8E",    // Beige-gold
 019            Background = "#F4F0EA",
 020            Surface = "#FFFFFF",
 021            AppbarBackground = "#1F2A33",
 022            DrawerBackground = "#1F2A33",
 023            DrawerText = "#F4F0EA",
 024            AppbarText = "#F4F0EA",
 025            TextPrimary = "#1A1A1A",
 026            TextSecondary = "#3A4750",
 027            ActionDefault = "#3A4750",
 028            ActionDisabled = "rgba(58, 71, 80, 0.38)",
 029            ActionDisabledBackground = "rgba(58, 71, 80, 0.12)",
 030            Divider = "rgba(196, 175, 142, 0.12)",
 031            DividerLight = "rgba(196, 175, 142, 0.06)",
 032            TableLines = "rgba(196, 175, 142, 0.12)",
 033            LinesDefault = "rgba(196, 175, 142, 0.12)",
 034            LinesInputs = "rgba(196, 175, 142, 0.32)",
 035            TextDisabled = "rgba(26, 26, 26, 0.38)",
 036            Success = "#4CAF50",
 037            Warning = "#FFA726",
 038            Error = "#ad1412ff",
 039            Info = "#29B6F6"
 040        },
 041        PaletteDark = new PaletteDark
 042        {
 043            Primary = "#F4F0EA",      // Off-white
 044            Secondary = "#C4AF8E",    // Beige-gold
 045            Background = "#1F2A33",
 046            Surface = "#1F2A33",
 047            AppbarBackground = "#1A2027",
 048            DrawerBackground = "#1F2A33",
 049            DrawerText = "#F4F0EA",
 050            AppbarText = "#F4F0EA",
 051            TextPrimary = "#F4F0EA",
 052            TextSecondary = "#C4AF8E",
 053            ActionDefault = "#F4F0EA",
 054            Divider = "rgba(196, 175, 142, 0.12)",
 055            Success = "#4CAF50",
 056            Warning = "#FFA726",
 057            Error = "#ad1412ff",
 058            Info = "#29B6F6"
 059        },
 060        Typography = new Typography
 061        {
 062            Default = new Default
 063            {
 064                FontFamily = new[] { "Roboto", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "sans-serif" }
 065            },
 066            H1 = new H1 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "2.5rem", FontWei
 067            H2 = new H2 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "2rem", FontWeigh
 068            H3 = new H3 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.5rem", FontWei
 069            H4 = new H4 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.25rem", FontWe
 070            H5 = new H5 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.125rem", FontW
 071            H6 = new H6 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1rem", FontWeigh
 072            Button = new Button { TextTransform = "none", FontWeight = 500 }
 073        },
 074        LayoutProperties = new LayoutProperties
 075        {
 076            DrawerWidthLeft = "320px",
 077            DrawerWidthRight = "320px",
 078            AppbarHeight = "64px"
 079        },
 080        ZIndex = new ZIndex
 081        {
 082            Drawer = 1200,
 083            AppBar = 1100,
 084            Dialog = 1300,
 085            Popover = 1400,
 086            Snackbar = 1500,
 087            Tooltip = 1600
 088        }
 089    };
 90}

Methods/Properties

CreateChronicisTheme()