# Version Update Breaks UI Component Styling

## Environment

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

## Description

The UI components do not render and look properly after version update.

How to resolve UI (styling) issues after NuGet package version upgrade? Where do I get the new theme CSS stylesheet?

## Steps to Reproduce

Upgrade the Telerik UI for Blazor version (NuGet package). The component styling breaks. If the previous version is restored, the styling is OK.

## Possible Cause

The application is using an outdated CSS theme or swatch.

## Solution

To resolve the problem, follow the [recommended UI for Blazor upgrade procedure](https://www.telerik.com/blazor-ui/documentation/upgrade/overview):

* If using the [Telerik **CDN**](https://www.telerik.com/blazor-ui/documentation/common-features/cdn) - update the [stylesheet file URL](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/overview#using-a-theme) to the correct version.
* If using a **local** CSS file in `wwwroot` - replace the stylesheet with a compatible one. If the application is using a [**custom theme**, then recreate it](https://www.telerik.com/blazor-ui/documentation/styling-and-themes/custom-theme).
* If using **static assets** from the NuGet package - clear the browser cache and [add a cache buster for the Telerik CSS and JavaScript files](https://www.telerik.com/blazor-ui/documentation/knowledge-base/common-browser-cache-buster).

A version update might break custom application CSS styles that are outside the Telerik theme. In this case, then check if the component HTML rendering or CSS classes have changed, and adjust the custom CSS code.

## See Also

* [Telerik UI for Blazor version upgrade steps](https://www.telerik.com/blazor-ui/documentation/upgrade/overview)
* [Troubleshooting JavaScript errors after version upgrade](https://www.telerik.com/blazor-ui/documentation/knowledge-base/common-cannot-read-properties-of-null-reading-addeventlistener)
