You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/change-theme-runtime.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This KB article answers the following questions:
34
34
35
35
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).
36
36
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).
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.
38
38
39
39
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.
0 commit comments