# Blazor Theme Customization Options

## Environment

<table>
    <tbody>
        <tr>
            <td>Product</td>
            <td>UI for Blazor</td>
        </tr>
    </tbody>
</table>

## Description

What is the best approach to create a base company fully customized CSS stylesheet for Telerik UI for Blazor?

How to provide visual flexibility and change the appearance of the components? How to override CSS styles with the app via style sheets or CSS isolation?

What are your recommendations to change the overall component styles? Should I modify the css manually?

Is there a simple and streamlined way to customize all component styles?

## Solution

Generally, there are **four** ways to customize the appearance of the Telerik Blazor components. All of them, except the first one, add an extra step to **every** UI for Blazor version update.

1. [Use color CSS variables to modify an existing theme](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/custom-theme#setting-theme-variables).
   * This approach is supported for theme versions `8.0.0` and Telerik UI for Blazor versions `6.0.0` and above.
   * It is a simple and sustainable way to make minor or major customizations to the **colors** of an existing CSS theme, even at runtime.
   * Upgrading the Blazor components does not require any additional steps with regard to the CSS code, unless there are breaking changes in the CSS variable names.
   * The apperance of the Telerik components depends on CSS code in two different files. If you prefer to avoid this, then create a custom theme.
2. [Use the ThemeBuilder to create a custom theme](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/custom-theme#using-themebuilder).
   * This option allows [customization of the theme **colors** with the free version, or **full control** with the Pro version](https://docs.telerik.com/themebuilder/introduction#themebuilder-tiers).
   * Upgrading the custom theme is straight-forward via [manual](https://docs.telerik.com/themebuilder/web-app/migrating-projects) or [automatic](https://docs.telerik.com/themebuilder/web-app/automatic-migrations) approach.
3. [Build a custom theme from the SASS source](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/custom-theme#building-themes-from-source-code).
   * This option provides **full control** over the resulting CSS code.
   * Upgrading requires you to pull the changes from the [**`kendo-themes`** repo](https://github.com/telerik/kendo-themes) and **rebuild** the custom theme. Ideally, make only [variable and style overrides](https://github.com/telerik/kendo-themes/wiki/Core-Code-Concepts) with minimal edits to our source code itself. However, major customizations may require more changes and maintenance.
4. [Override theme styles with additional CSS code](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/override-theme-styles).
   * This approach is possible with **both built-in themes or custom themes** made by the ThemeBuilder.
   * This option allows **full control** over the styling, but makes sense only up to a certain amount of customization. Beyond that, resort to building the theme from the source.
   * Upgrading may require changes to the additional custom CSS code, but only if there are breaking changes in the HTML output and styling.

To change the sizing and layout of most or all our components, go for manual theme build. For minor adjustments here and there, consider overrides only.

The final decision depends on what and how much you need to customize and what other requirements may appear.

[**Figma UI Kits**](https://www.telerik.com/figma-kits) allow designers to include visual representations of the Telerik components in their application designs. Custom kits still require you to [create a custom theme](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/custom-theme) afterwards.

## See Also

* [Custom Themes](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/custom-theme)
* [Use best practives when overriding theme styles](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/override-theme-styles#best-practices)
