Apply Color Themes to Match Your Mod's Aesthetic
Using Built-in Theme Support
ModularUI includes a theming system that lets you customize colors throughout your GUI without modifying individual widgets. Define a color theme once, and apply it across all your interfaces for a cohesive look.
Create a theme by specifying colors for common GUI elements: backgrounds, borders, text, buttons, and highlights. ModularUI provides predefined color palettes that match Minecraft's vanilla aesthetic, which you can use as-is or customize.
Applying Themes to GUIs
Assign your theme to a GUI class, and all compatible widgets automatically adopt those colors. This approach makes it easy to maintain visual consistency across multiple GUIs in your mod.
You can also override specific colors for individual widgets if needed, giving you fine-grained control while still benefiting from the theme system's organization. This modular approach to styling reduces code duplication and makes future aesthetic changes straightforward.