December 4th, 2026

How to Change the Themes of Dynamics 365 & Model-Driven Apps

How to Change the Themes of Dynamics 365 & Model-Driven Apps

Whether it’s for company branding or making apps and environments more distinct, themes are a great way to update the look of your Dynamics apps. In Dynamics 365 on-premises, you can easily create and switch between different themes. While the process isn’t as straightforward for Dynamics 365 online, the modern interface still offers ways to customize your apps.  

In this article, I’ll cover how to create and apply a custom theme. I’ll start by going over how the theme gets applied; then I’ll break down how to create the theme itself, and at the end I have a theme template that you can use to build and customize your own themes easily.  

How Do You Implement a Custom Theme?  

In the modern interface, the app theme is set via an XML file that you upload as a web resource. Each app chooses its theme through the “Custom theme definition” setting. In the setting definition, enter the name of the web resource of the appropriate theme. You can specify a default value and a unique value for each app to make it easier to distinguish between them:  

If you are setting your themes in a custom solution, make sure you include the setting definition, as well as any apps whose themes you want to update. Only the apps within your current solution will show up as options under the “Setting app values” category.  

After you specify a web resource in the environment setting, republish both the setting and your app for the changes to apply.  

Custom Theme Structure 

A custom theme is specified using the XML coding language, with the following structure:  

<CustomTheme
Property1=”value”
Property2=”value”>
</CustomTheme> 

At the end of this article, I’ve included a template for your theme that contains quick descriptions of each variable. You can easily copy and paste the template and then update or remove properties as needed. 

What Can You Customize in a Theme? 

When creating a new theme, you can customize the app’s accent colors, logo, and fonts. By default, the heading style will match the rest of the app; however, you can also customize heading colors separately.  

Main Color 

You can set the main color of your app, as well as how the app calculates the lighter and darker shades. This will affect the app’s heading, the colors of links, accent bars, buttons, and more. Most elements that have a color will match the main color of the app, but some elements, like links, will choose a darker or lighter variation on the main color.  

There are four variables that affect the app’s colors:  

      • basePaletteColor: This is the base color of your theme.  
      • lockPrimary: This forces the app to use the base color you specified and change the vibrancy and hue of the related colors based on the hueTorsion and vibrancy variables. By default, this option is set to false, and the color palette gets adjusted to ensure the colors are more accessible. Set to true if you want more control over the color palette.  
      • vibrancy: This controls how saturated the related colors in the color palette are. A higher vibrancy means more saturated colors.  

A color palette with high vibrancy 

A color palette with low vibrancy 

      • hueTorsion: This controls how warm or cool the related colors in the color palette are. A lower value generates cooler colors, and a higher value generates warmer ones.  

A color palette with high hueTorsion 

A color palette with low hueTorsion 

To preview your theme and how the hue and vibrancy would affect the overall palette, you can enter different values into the Fluent Theme Designer: Theme / Theme Designer - Docs ⋅ Storybook 

This site also gives you an idea of which components are affected by the primary color: 

Logo 

The “logo” property points to the web resource that holds your desired logo. The “logoTooltip” property controls what text is displayed when you hover over the logo.  

Image source: Blueberries with green leaves watercolor illustration - Pixabay 

Fonts 

You can specify one or more fonts for your theme. If the first font specified isn’t supported by your browser, it will go to the next listed font, and so on. It’s recommended to always specify a fallback-font – a generic font chosen by the browser. Typically, your fallback font will be either “serif” or “sans-serif,” depending on your preferred fonts.  

The font you choose must also be supported within Model-Driven Apps. You can find a list of supported fonts here:  

Supported fonts - Finance & Operations | Dynamics 365 | Microsoft Learn 

The font affects almost all the text in the app, save for a few elements such as the font of a form tab when you hover over it, or the activity timeline:   

Theme Vs. Heading 

By default, the heading’s colors are set based on the main color of your theme. However, you can also specify custom colors for the heading, including its background color, text color, and the color of elements you hover over or click on:  

The header is customized using the <AppHeaderColors> tag. If you’re customizing both the overall theme and the header, place the AppHeaderColors tab inside the CustomTheme tag. Otherwise, you can just include the AppHeaderColors tag.  

Examples 

Below are some examples of how you can customize your app. Both examples were done in the same environment, but applied to different apps, making it easier to tell them apart at a glance.   

Example 1: Same Theme and Heading 

Code:  

<CustomTheme 
basePaletteColor="#573E93" 
vibrancy="-16" 
hueTorsion="50" 
font="Trebuchet MS, sans-serif" 
logoWebResource="new_yulie1blueberry5095431" 
logoTooltip="Blueberry Bubbles" 
hoverlinkeffect="#708A87"> 
</CustomTheme> 

Result:  

Example 2: Custom Heading  

Code:

<CustomTheme
basePaletteColor="#95CC94"
vibrancy="-16"
hueTorsion="-50"
font="'Aptos Serif', 'Georgia', sans-serif"
logoWebResource="new_yulie1blueberry5095431"
logoTooltip="Blueberry Bubbles">
<AppHeaderColors
  background="#85B2C9"
  foreground="#263343"
  backgroundHover="#5797B9"
  foregroundHover="#9BC0D2"
/>
</CustomTheme> 

Result:  

Template 

 <CustomTheme 

  basePaletteColor="#[Base theme color]" 

  lockprimary="[true (ensures that base color will be in theme, and applies vibrancy/torsion)|false (default - generates palette based on primary color, but considers accessibility)]" 

  vibrancy="[-100-100 - how saturated the colors are]" 

  hueTorsion="[-100-100 - how cool (-100) or warm (100) the colors are]" 

  font="[Font 1, Font 2... [serif|sans-serif]]" 

  logoWebResource="[web_resourcename]" 

  logoTooltip="[Logo Tooltip]" 

  hoverlinkeffect="#[Hover link text color]" 

> 

  <AppHeaderColors 

    background="#[Header Background Color - defaults to color based on base palette]" 

    foreground="#[Header Foreground Color - defaults to color to contrast background]" 

    backgroundHover="#[Header Background Color on Hover - defaults to a color based on background]" 

    foregroundHover="#[Header Foreground Color on Hover - defaults to a color to contrast backgroundHover]" 

    backgroundPressed="#[Header Background Color on Pressed - defaults to backgroundHover]" 

    foregroundPressed="#[Header Foreground Color on Pressed - defaults to foregrouundHover]" 

    backgroundSelected="#[Header Background Color on Selected - defaults to backgroundHover]" 

    foregroundSelected="#Header Foreground Color on Selected - defaults to foregrouundHover]" 

  /> 

</CustomTheme> 

Conclusion 

While the process has changed, you can still update the theme of your Dynamics 365 and Model-Driven Apps. Whether it’s to match company branding, make apps easier to tell apart, or even to make your environments easier to identify at a glance, themes help you communicate with your users as soon as they open the page. 

If you want to learn more about how you can customize Dynamics 365 and Model-Driven Apps to fit your team’s needs, reach out to TopLine Results at info@toplineresults.com or call 1-800-880-1960.