| | | 1 | | using MudBlazor; |
| | | 2 | | |
| | | 3 | | namespace Chronicis.Client.Theme; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Provides the Chronicis application theme configuration for MudBlazor. |
| | | 7 | | /// </summary> |
| | | 8 | | public static class ThemeConfig |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Creates and returns the Chronicis theme with custom colors, typography, and layout properties. |
| | | 12 | | /// </summary> |
| | 0 | 13 | | public static MudTheme CreateChronicisTheme() => new() |
| | 0 | 14 | | { |
| | 0 | 15 | | PaletteLight = new PaletteLight |
| | 0 | 16 | | { |
| | 0 | 17 | | Primary = "#3A4750", // Slate blue-grey |
| | 0 | 18 | | Secondary = "#C4AF8E", // Beige-gold |
| | 0 | 19 | | Background = "#F4F0EA", |
| | 0 | 20 | | Surface = "#FFFFFF", |
| | 0 | 21 | | AppbarBackground = "#1F2A33", |
| | 0 | 22 | | DrawerBackground = "#1F2A33", |
| | 0 | 23 | | DrawerText = "#F4F0EA", |
| | 0 | 24 | | AppbarText = "#F4F0EA", |
| | 0 | 25 | | TextPrimary = "#1A1A1A", |
| | 0 | 26 | | TextSecondary = "#3A4750", |
| | 0 | 27 | | ActionDefault = "#3A4750", |
| | 0 | 28 | | ActionDisabled = "rgba(58, 71, 80, 0.38)", |
| | 0 | 29 | | ActionDisabledBackground = "rgba(58, 71, 80, 0.12)", |
| | 0 | 30 | | Divider = "rgba(196, 175, 142, 0.12)", |
| | 0 | 31 | | DividerLight = "rgba(196, 175, 142, 0.06)", |
| | 0 | 32 | | TableLines = "rgba(196, 175, 142, 0.12)", |
| | 0 | 33 | | LinesDefault = "rgba(196, 175, 142, 0.12)", |
| | 0 | 34 | | LinesInputs = "rgba(196, 175, 142, 0.32)", |
| | 0 | 35 | | TextDisabled = "rgba(26, 26, 26, 0.38)", |
| | 0 | 36 | | Success = "#4CAF50", |
| | 0 | 37 | | Warning = "#FFA726", |
| | 0 | 38 | | Error = "#ad1412ff", |
| | 0 | 39 | | Info = "#29B6F6" |
| | 0 | 40 | | }, |
| | 0 | 41 | | PaletteDark = new PaletteDark |
| | 0 | 42 | | { |
| | 0 | 43 | | Primary = "#F4F0EA", // Off-white |
| | 0 | 44 | | Secondary = "#C4AF8E", // Beige-gold |
| | 0 | 45 | | Background = "#1F2A33", |
| | 0 | 46 | | Surface = "#1F2A33", |
| | 0 | 47 | | AppbarBackground = "#1A2027", |
| | 0 | 48 | | DrawerBackground = "#1F2A33", |
| | 0 | 49 | | DrawerText = "#F4F0EA", |
| | 0 | 50 | | AppbarText = "#F4F0EA", |
| | 0 | 51 | | TextPrimary = "#F4F0EA", |
| | 0 | 52 | | TextSecondary = "#C4AF8E", |
| | 0 | 53 | | ActionDefault = "#F4F0EA", |
| | 0 | 54 | | Divider = "rgba(196, 175, 142, 0.12)", |
| | 0 | 55 | | Success = "#4CAF50", |
| | 0 | 56 | | Warning = "#FFA726", |
| | 0 | 57 | | Error = "#ad1412ff", |
| | 0 | 58 | | Info = "#29B6F6" |
| | 0 | 59 | | }, |
| | 0 | 60 | | Typography = new Typography |
| | 0 | 61 | | { |
| | 0 | 62 | | Default = new Default |
| | 0 | 63 | | { |
| | 0 | 64 | | FontFamily = new[] { "Roboto", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "sans-serif" } |
| | 0 | 65 | | }, |
| | 0 | 66 | | H1 = new H1 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "2.5rem", FontWei |
| | 0 | 67 | | H2 = new H2 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "2rem", FontWeigh |
| | 0 | 68 | | H3 = new H3 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.5rem", FontWei |
| | 0 | 69 | | H4 = new H4 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.25rem", FontWe |
| | 0 | 70 | | H5 = new H5 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1.125rem", FontW |
| | 0 | 71 | | H6 = new H6 { FontFamily = new[] { "Spellweaver Display", "Georgia", "serif" }, FontSize = "1rem", FontWeigh |
| | 0 | 72 | | Button = new Button { TextTransform = "none", FontWeight = 500 } |
| | 0 | 73 | | }, |
| | 0 | 74 | | LayoutProperties = new LayoutProperties |
| | 0 | 75 | | { |
| | 0 | 76 | | DrawerWidthLeft = "320px", |
| | 0 | 77 | | DrawerWidthRight = "320px", |
| | 0 | 78 | | AppbarHeight = "64px" |
| | 0 | 79 | | }, |
| | 0 | 80 | | ZIndex = new ZIndex |
| | 0 | 81 | | { |
| | 0 | 82 | | Drawer = 1200, |
| | 0 | 83 | | AppBar = 1100, |
| | 0 | 84 | | Dialog = 1300, |
| | 0 | 85 | | Popover = 1400, |
| | 0 | 86 | | Snackbar = 1500, |
| | 0 | 87 | | Tooltip = 1600 |
| | 0 | 88 | | } |
| | 0 | 89 | | }; |
| | | 90 | | } |