# Theming Overview

Telerik UI for .NET MAUI comes with a built-in theme that controls the visual appearance of the components, including colors, borders, backgrounds, size, layout, position, and font size. The theme also offers multiple color variations to choose from.

In addition to the Telerik theme, Telerik UI for .NET MAUI also provides a Platform theme with light and dark variants. The platform theme closely resembles the light and dark modes of the device that runs your MAUI application.

> The built-in Telerik UI for .NET MAUI theme and its swatches were introduced in version 8.0.0 (2024 Q4) as a preview. With Telerik UI for MAUI 11.0.0 (2025 Q2) the Telerik theme and its swatches are generally available.

![Telerik .NET MAUI Theming Support](https://www.telerik.com/maui-ui/documentation/assets/40be482454d99d00378db8c410b3866a/theming-support.png)

## Theme

A *theme* is a collection of styles and templates in XAML files, which determine the appearance of the Telerik .NET MAUI components, including fonts, colors, sizes, and layouts. Furthermore, you can apply the theme's styles to other parts of your app and achieve visual consistency.

## Swatch

A *theme swatch* is a color variation of a theme. All swatches of a given theme use the same fonts, sizes, and layouts. On the other hand, the text colors, background colors, and border colors are different.

The Telerik .NET MAUI theme comes with a set of eight predefined swatches for both dark and light modes while the Platform theme offers a light and dark swatch.

| Theme    | Swatch          | Color                                                                                                                                                                | `TelerikTheme` `enum`  |
| -------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| Platform | Light           | ![Telerik UI for .NET MAUI Platform Light Theme](https://www.telerik.com/maui-ui/documentation/assets/8a1e1222a4ccaf3c34b9e5496269463b/platform-light.png)           | `PlatformLight`        |
| Platform | Dark            | ![Telerik UI for .NET MAUI Platform Dark Theme](https://www.telerik.com/maui-ui/documentation/assets/8f5e4784e0ff0244b86fa160fa953e90/platform-dark.png)             | `PlatformDark`         |
| Telerik  | Main            | ![Telerik UI for .NET MAUI Main Theme](https://www.telerik.com/maui-ui/documentation/assets/febe6fe40317c31c3f47c58b45b82b9a/telerik-main.png)                       | `TelerikMain`          |
| Telerik  | Main Dark       | ![Telerik UI for .NET MAUI Main Dark Theme](https://www.telerik.com/maui-ui/documentation/assets/eb75297d435c497f5fd192dbae59e1e7/telerik-main-dark.png)             | `TelerikMainDark`      |
| Telerik  | Ocean Blue      | ![Telerik UI for .NET MAUI Ocean Blue Theme](https://www.telerik.com/maui-ui/documentation/assets/ef5b9ac9a55ee316ca0e3a223f71b93b/telerik-ocean-blue.png)           | `TelerikOceanBlue`     |
| Telerik  | Ocean Blue Dark | ![Telerik UI for .NET MAUI Ocean Blue Dark Theme](https://www.telerik.com/maui-ui/documentation/assets/2e89bc78e8abd410e9df090d7d8472b2/telerik-ocean-blue-dark.png) | `TelerikOceanBlueDark` |
| Telerik  | Purple          | ![Telerik UI for .NET MAUI Purple Theme](https://www.telerik.com/maui-ui/documentation/assets/e30774402d93e2be9034e17854dbb43c/telerik-purple.png)                   | `TelerikPurple`        |
| Telerik  | Purple Dark     | ![Telerik UI for .NET MAUI Purple Dark Theme](https://www.telerik.com/maui-ui/documentation/assets/48b2930c47a8daddf263473b3f791345/telerik-purple-dark.png)         | `TelerikPurpleDark`    |
| Telerik  | Turquoise       | ![Telerik UI for .NET MAUI Turquoise](https://www.telerik.com/maui-ui/documentation/assets/449cc715bbcc7b0ba2e157adc2f4b1a5/telerik-turquoise.png)                   | `TelerikTurquoise`     |
| Telerik  | Turquoise Dark  | ![Telerik UI for .NET MAUI Turquoise Dark Theme](https://www.telerik.com/maui-ui/documentation/assets/8c1aa141a88106927eb56a5ca3bec82a/telerik-turquoise-dark.png)   | `TelerikTurquoiseDark` |

The `TelerikTheme` enum has a `Default` value which indicates the default look of the controls (without theming).

The next image compares the Purple swatch (left) and Purple Dark swatch (right) on the AutoComplete control. Both use the same layout, selected item, and suggestions, with matching text highlighted in purple. Purple uses a light background with dark text, while Purple Dark uses a dark background with light text.

![AutoComplete with Purple and Purple Dark swatches side by side](https://www.telerik.com/maui-ui/documentation/assets/b3645dcfd104b41989c9a86b41c3fdda/theming-default.png)

> tip You can explore and compare the built-in theme swatches in the [Telerik .NET MAUI ControlsSamples App](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/controls-showcase-app). Go to the Theming example of each component and use the **Change Theme** button to switch between the theme swatches.

## Using the MAUI Theming

Before you can add Telerik Theming to your app, make sure that it is configured to use the Telerik UI for .NET MAUI components. For more details, see the [Getting Started with Telerik UI for .NET MAUI in Visual Studio](https://www.telerik.com/maui-ui/documentation/get-started/quickstart#set-up-telerik-development-environment) or [Visual Studio Code](https://www.telerik.com/maui-ui/documentation/get-started/quickstart#set-up-telerik-development-environment) articles.

**1.** Go to the `.csproj` file of your MAUI project and set `UseTelerikTheming` property to `true` in a separate `PropertyGroup`:

```XAML
<PropertyGroup>
    <UseTelerikTheming>true</UseTelerikTheming>
</PropertyGroup>
```

**2.** Rebuild the solution—this will generate a new `TelerikTheming` folder containing all styles and resources needed for the Telerik .NET MAUI controls.

![Telerik UI for .NET MAUI TelerikTheming folder](https://www.telerik.com/maui-ui/documentation/assets/f890679a42a3da1bbc685b3ec41beb47/theming-folder-v10.png)

* The `Colors` folder contains the `Platform` and `Telerik` subfolders, each holding the resource dictionaries required for the theme swatches. Note that the colors are referenced through dynamic resources, so you can update them at runtime.

  ![Telerik UI for .NET MAUI Colors folder](https://www.telerik.com/maui-ui/documentation/assets/b8d0f92a2ff25740bce5a98633a83981/teleriktheming-colors-folder.png)

* The `Styles` folder contains the `Platform` and `Telerik` subfolders, each holding the styles and templates of the Telerik UI for .NET MAUI controls for the corresponding theme.

  * The styles are implemented through control-specific XAML files (see the next image).
  * The styles for all base controls that are used to build complex controls like the DataGrid are in the `Core.xaml` file.
  * The control templates in the XAML files are specific to the Telerik theme and the Platform theme. They differ from the default control templates of the Telerik UI for .NET MAUI controls.
  * The number of files in the `Platform` and `Telerik` subfolders is different because both themes support a different number of controls.

  ![Telerik UI for .NET MAUI Styles folder](https://www.telerik.com/maui-ui/documentation/assets/688ac0068d3d12cc9a1eda1d1bb97406/telerik-theming-styles-folder-v10.png)

> important The files in the `TelerikTheming` folder are auto-generated. Use them only as a reference and do not modify them. See [Customizing the Telerik Theme](https://www.telerik.com/maui-ui/documentation/styling-and-themes/customize-the-theme) for information on how to use these files to apply your own styles.

**3.** Go to the `App.xaml` file of your app and add the `TelerikTheming` resource dictionary to the application resources:

```XAML
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Resources/Styles/Colors.xaml" />
            <ResourceDictionary Source="Resources/Styles/Styles.xaml" />
            <local:TelerikThemeResources />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>
```

**4.** Choose a theme by setting the `Theme` (`enum` of type `TelerikTheme`) property to the desired theme in the `App.xaml`:

```XAML
<local:TelerikThemeResources Theme="TelerikPurple" />
```

or `AppTheme` (`enum` of type `TelerikTheme`) property to the `App.xaml.cs` file.

```C#
TelerikThemeResources.AppTheme = TelerikTheme.TelerikPurple;
```

The steps above apply the `Telerik` theme with its `Purple` swatch to the Telerik .NET MAUI components used across the app.

## Example for ToggleButton and Telerik Theme with Purple Swatch

If you have the following `RadToggleButton` control:

```XAML
<telerik:RadToggleButton x:Name="toggleButton"
                         Content="Wi-Fi" />
```

After applying the `Purple` swatch, the ToggleButton looks like this:

![Telerik .NET MAUI ToggleButton with Telerik theme](https://www.telerik.com/maui-ui/documentation/assets/e6d7a3892fa34355bb5b33054586d1ba/togglebutton-themed.gif)

> Some of the Telerik UI for .NET MAUI controls do not fully support the Telerik theming yet. These are Barcode, Chart, Gauge, Map.

## Applying Theme Colors throughout the App

You can use the colors provided by the Telerik theme and its swatches. Each theme swatch provides a set of colors that you can use in parts of your app that aren't Telerik components. This allows you to achieve a consistent look & feel.

For example, you can use the `RadAppSurfaceColor` and `RadOnAppSurfaceColor` colors for background/text color respectively, and `RadPrimaryColor` for the accent color to match the appearance of the Telerik controls:

```XAML
<VerticalStackLayout Spacing="10" 
                     Padding="20"
                     BackgroundColor="{DynamicResource RadAppSurfaceColor}">
    <Label Text="Telerik .NET MAUI Theming" 
           FontSize="20"
           TextColor="{DynamicResource RadOnAppSurfaceColor}" />
    <BoxView Color="{DynamicResource RadPrimaryColor}"
            HeightRequest="4" />
    <Label Text="Telerik UI for .NET MAUI comes with a built-in theme that controls the visual appearance of the components." 
           FontSize="14"
           TextColor="{DynamicResource RadOnAppSurfaceColor}" />
    <telerik:RadToggleButton Content="Telerik Theming" 
                             HorizontalOptions="Start" />
</VerticalStackLayout>
```

Here is the result with the `Purple` and `Purple Dark` swatches applied:

![Telerik .NET MAUI Theming App Usage](https://www.telerik.com/maui-ui/documentation/assets/a7fb226d0c362895e4e5c29e5d73d5a7/telerik-theming-app.png)

## Changing the Initially Loaded Themes and Control's XAML Files

Once you [enable the theming](https://www.telerik.com/maui-ui/documentation/styling-and-themes/overview#using-the-maui-theming) mechanism by setting `UseTelerikTheming` to `True` and then rebuild the app, the task generates a `config.json` file inside the `TelerikTheming` folder.

By editing the generated `config.json` file, you can:

* Control which theme-specific files are generated in the `TelerikTheming` folder.
* Control which controls-specific XAML files are generated in the `TelerikTheming` folder.

You can remove themes and controls from the `config.json` file that won't be used in the application. In this way, the Telerik Theming task generates only the swatch and control XAML files listed in the `config.json` file.

## Changing the Theme Swatch Dynamically

You can take advantage of the available theme swatches and change them at runtime based on the device theme. This allows the application to respond to changes in the device theme from light to dark and the other way around. For more details on the suggested implementation, see the [Changing the Theme at Runtime](https://www.telerik.com/maui-ui/documentation/knowledge-base/change-telerik-theme-runtime) KB article.

## Next Steps

* [Customizing the Telerik Theme Colors](https://www.telerik.com/maui-ui/documentation/styling-and-themes/customize-the-theme)
* [Customizing the Control-Specific Theme Resources](https://www.telerik.com/maui-ui/documentation/styling-and-themes/customize-the-component-styles)
