The modern, refreshed look in Power Platform model-driven apps comes with a sleek Fluent 2 design system, bringing a fresh user experience. While classic theming is no longer supported, Microsoft has introduced modern themes, allowing makers to customize the app header with their own branding colors.
Although the customization options are limited to the app header, this small change can make a big difference in aligning apps with your organizationβs branding! π¨
π Why Customize the App Header?
A custom theme in Power Apps enables you to:
β Align branding with corporate colors
β Improve user experience with consistent UI
β Make navigation easier with clear contrasts
Since this only affects the app header, it doesnβt interfere with business process flows, forms, or other UI components.
π οΈ Steps to Apply Custom Header Colors
To modify the app header, you need to:
β
Create an XML resource with color definitions
β
Upload it as a web resource
β
Apply it to your environment settings
Letβs walk through the setup step by step! ποΈ
π Step 1: Create the XML Theme File
You need to define your color scheme in an XML file using the <AppHeaderColors> tag.
Example XML for a Green Theme πΏ
This XML defines a green app header with white text and custom button interaction colors.
<AppHeaderColors
background="#12783F"
foreground="#FFFFFF"
backgroundHover="#165A31"
foregroundHover="#FFFFFF"
backgroundPressed="#0F1C12"
foregroundPressed="#FFFFFF"
backgroundSelected="#153D23"
foregroundSelected="#FFFFFF"
/>
π Explanation:
background: Main app header colorforeground: Text colorbackgroundHover: Button hover backgroundforegroundHover: Button hover textbackgroundPressed: Button press backgroundforegroundPressed: Button press textbackgroundSelected: Active button backgroundforegroundSelected: Active button text
π Step 2: Upload as a Web Resource
Now, letβs upload the XML theme to Power Apps.
1οΈβ£ Go to Power Apps β Solutions
2οΈβ£ Click New Solution β Give it a name
3οΈβ£ Click New > More > Web resource
4οΈβ£ Enter a display name (e.g., XML for modern theming)
5οΈβ£ Choose Type: Data (XML)
6οΈβ£ Upload your XML file
7οΈβ£ Click Save & Publish
π Your theme XML is now stored as a web resource in Dataverse!
π― Step 3: Apply the Custom Theme to Your Environment
Once the web resource is uploaded, we need to apply it as a setting.
1οΈβ£ Open your solution in Power Apps
2οΈβ£ Click Add existing > More > Setting
3οΈβ£ Search for: Override app header color
4οΈβ£ Click Next > Add
5οΈβ£ Select Override app header color β Click Edit
6οΈβ£ Enter the unique name of your XML web resource (e.g., contoso_xmlfor-modern-theme)
7οΈβ£ Click Save
8οΈβ£ Publish all customizations
π Step 4: Verify & Test the Theme
After publishing, refresh your browser tab to see the new header colors!
β
Check all button states (hover, pressed, selected)
β
Ensure text contrasts well with the background
β
Make adjustments if necessary in the XML
π Real-World Example: Corporate Branding
Scenario: A company wants to align its CRM app with its branding.
β Brand Colors: Dark Blue Background, White Text
β Action Buttons: Lighter Blue when hovered, Gray when pressed
<AppHeaderColors
background="#0A3D91"
foreground="#FFFFFF"
backgroundHover="#3366CC"
foregroundHover="#FFFFFF"
backgroundPressed="#1C2E4A"
foregroundPressed="#FFFFFF"
backgroundSelected="#003366"
foregroundSelected="#FFFFFF"
/>
π Before & After:
π΅ Default: Light Blue Theme
π΅ Custom: Dark Blue, Consistent with Branding
π¨ Modern Themes: The Limitations
π« You cannot customize:
β Business Process Flows
β Buttons, Grids, or Forms
β Font Sizes or Text Alignment
β© Only the App Header is customizable for now.
π Final Thoughts: Small Change, Big Impact
Although modern themes in Power Apps only affect the app header, itβs a powerful way to differentiate apps visually!
β Adds corporate branding
β Enhances user experience
β Requires no coding
π Future Expectations: Microsoft may expand theming beyond the header to include buttons, process flows, and other UI elements.
πΉ Try it now & brand your app today! π¨
