Skip to content

Commit aae26f4

Browse files
dimodidimodi
authored andcommitted
Update knowledge-base/change-theme-runtime.md
1 parent 24fae87 commit aae26f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knowledge-base/change-theme-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This KB article answers the following questions:
3434

3535
The app stylesheets reside outside the Razor component hierarchy, so the Blazor code cannot access them. You can change the current Telerik [theme or swatch](slug:themes-overview) at runtime with [JSInterop](https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/call-javascript-from-dotnet).
3636

37-
The following algorithm follows the commonly used approach to replace a CSS file in any web app. You can use it for built-in themes and custom themes, regardless of the [CSS theme's physical location](slug:themes-overview#using-a-theme). Keep in mind that the [Telerik UI for Blazor NuGet package contains a limited number of theme swatches](slug:themes-overview#loading-themes-in-blazor-from-the-nuget-package). That's why the example below uses [CDN](slug:common-features-cdn). You can also download all swatches to `wwwroot` and load them locally.
37+
The following algorithm follows the commonly used approach to replace a CSS file in any web app. You can use it for built-in themes and custom themes, regardless of the [CSS theme's physical location](slug:themes-overview#using-a-theme). Keep in mind that the [Telerik UI for Blazor NuGet package contains a limited number of theme swatches](slug:themes-overview#loading-themes-in-blazor-from-the-nuget-package). That's why the example below uses [CDN](slug:common-features-cdn). You can also download all swatches to `wwwroot` and load them locally. In this case, replace the CSS files when [upgrading the Telerik UI for Blazor version](slug:upgrade-tutorial).
3838

3939
1. [Register the initial Telerik theme](slug:themes-overview#using-a-theme) in a way that allows you to get reference to the `<link>` tag. For example, use an `id` attribute.
4040

0 commit comments

Comments
 (0)