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
The example below demonstrates a possible way to switch Kendo UI themes on the client.
10
+
The following example demonstrates a possible way for you to switch the Kendo UI themes on the client by replacing the CSS stylesheets.
12
11
13
-
The core functionality of the following demo is replacing CSS stylesheets on the client, which is not something related to Kendo UI and does not require any Kendo UI APIs. From this point of view, the example is provided "as is", and may need customization and tweaking depending on the specific scenario, requirements, browser support, etc.
12
+
Because this approach is not related to the functionalities of the Kendo UI suite, it does not require you to apply Kendo UI API calls. As a result, depending on the requirements of your project, you might have to customize and tweak the code.
13
+
14
+
> **Important**
15
+
>
16
+
> To achieve a dynamic switching from or to [SASS themes]({% slug sassbasedthemes_kendoui %}), the page has to be fully reloaded (`location.reload()`). The reason for this behavior is that the common resources that are used are different and the browser is not capable of dynamically unloading the resources that are not necessary.
14
17
15
18
```html
16
19
@@ -135,21 +138,15 @@ The core functionality of the following demo is replacing CSS stylesheets on the
135
138
136
139
```
137
140
138
-
> Important
139
-
>
140
-
> When switching dynamically from/to [SASS themes]({%slug sassbasedthemes_kendoui%}) the page should be fully reloaded (`location.reload()`).
141
-
>
142
-
> This is due to differences with the common resources used and the incapability of browser to dynamically unload the unneeded ones.
143
-
144
141
## See Also
145
142
146
143
Other articles on styling, appearance, and rendering of Kendo UI widgets:
147
144
148
145
*[Themes and Appearance of the Kendo UI Widgets]({% slug themesandappearnce_kendoui_desktopwidgets %})
149
146
*[Responsive Web Design]({% slug responsivewebdesign_integration_kendoui %})
150
147
*[Web Font Icons]({% slug webfonticons_kendoui_desktopwidgets %})
Copy file name to clipboardExpand all lines: docs/styles-and-layout/sass-themes.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,17 +15,7 @@ Currently, Kendo UI delivers a single SASS theme. This is the **Default v2** the
15
15
16
16
## Overview
17
17
18
-
Apart from being written in a different language, the SASS-based themes are slightly different from the LESS-based ones. This article outlines those differences and shows how you can use the SASS-based themes.
19
-
20
-
> **Important**
21
-
>
22
-
> Sass based themes utilize some CSS features that are not supported by Internet Explorer 10 and earlier:
23
-
>
24
-
> * flexbox layout (not supported in IE 10 and earlier)
25
-
> * CSS gradients (not supported in IE 9 and earlier)
26
-
> * Web Open Font Format (not supported in IE 8 and earlier)
27
-
> * Border radius (not supported in IE 8 and earlier)
28
-
> * Alpha transparency colors (not supported in IE 8 and earlier)
18
+
Apart from being written in a different language, the SASS-based themes are slightly different from the LESS-based ones. This article outlines those differences and demonstrates how to use the SASS-based themes.
29
19
30
20
## Differences
31
21
@@ -36,6 +26,16 @@ In Kendo UI, the SASS-based themes demonstrate the following differences from th
36
26
- The SASS-based themes are available on NPM. Each theme is stored as an NPM package and can be easily upgraded.
37
27
- Each SASS-based theme is compatible with the [Kendo UI components for Angular 2](http://www.telerik.com/kendo-angular-ui/). This enables you to port parts of your application to Angular 2 while maintaining their styling.
38
28
29
+
## Browser Limitations
30
+
31
+
The following CSS features, which are used by the SASS-based themes, provide limited browser support:
32
+
33
+
* Flexbox layout—Not supported by Internet Explorer 10 and earlier.
34
+
* CSS gradients—Not supported by Internet Explorer 9 and earlier.
35
+
* Web Open Font Format—Not supported by Internet Explorer 8 and earlier.
36
+
* Border radius—Not supported by Internet Explorer 8 and earlier.
37
+
* Alpha transparency colors—Not supported by Internet Explorer 8 and earlier.
38
+
39
39
## Getting the Themes
40
40
41
41
To get the SASS-based Kendo UI themes, you can:
@@ -598,21 +598,21 @@ Outputs a module once, no matter how many times it is included.
598
598
599
599
To contribute to the development of the Kendo UI Default Theme, refer to the [telerik/kendo-theme-default](https://github.com/telerik/kendo-theme-default) GitHub repository it is stored in.
600
600
601
-
## Sass Theme Builder
601
+
## SASS Theme Builder
602
602
603
603
[**Progress Sass Theme Builder**](http://themebuilder.telerik.com/aspnet-mvc) for Kendo UI is an Angular web application that enables you to create new or customize existing themes.
604
604
605
-
The tool renders the same look and feel as the look and feel of all other components in the suite. It also delivers full control over the skin elements of each component and automatically updates its composite units. After you create the skin and achieve the desired look of the theme, the Sass Theme Builder enables you to download and integrate it in your project.
605
+
The tool renders the same look and feel as the look and feel of all other components in the suite. It also delivers full control over the skin elements of each component and automatically updates its composite units. After you create the skin and achieve the desired look of the theme, the SASS Theme Builder enables you to download and integrate it in your project.
1. On the initial Sass Theme Builder pane, select the **Start Theming** option.
615
+
1. On the initial SASS Theme Builder pane, select the **Start Theming** option.
616
616
1. Choose one of the existing skins to use as a base. The currently available built-in skins are **Default** and **Bootsrap**.
617
617
618
618
**Figure 2: Selecting a base theme**
@@ -621,7 +621,7 @@ To create a new theme:
621
621
622
622
### Customizing Existing Themes
623
623
624
-
The Sass Theme Builder supports the following options for customization:
624
+
The SASS Theme Builder supports the following options for customization:
625
625
626
626
* Color pickers which customize the appearance of the components.
627
627
* The **Apply changes instantly** option which enables you to observe the changes on the fly.
@@ -630,7 +630,7 @@ The Sass Theme Builder supports the following options for customization:
630
630
631
631
#### Functionalities for Customization
632
632
633
-
To customize an existing theme, use the following Sass Theme Builder functionalities:
633
+
To customize an existing theme, use the following SASS Theme Builder functionalities:
634
634
635
635
1.**Color Swatches**—Contains predefined color palettes that you can apply to all components in your application.
636
636
1.**Default**—Provides the applicable color customization options.
@@ -645,7 +645,7 @@ To customize an existing theme, use the following Sass Theme Builder functionali
645
645
646
646
To upload an existing theme you have previously created:
647
647
648
-
1. On the initial Sass Theme Builder pane, select **Import Theme**.
648
+
1. On the initial SASS Theme Builder pane, select **Import Theme**.
649
649
1. Upload the `variables.scss` file which contains your current modifications of the customized theme. As a result, the selected components and styling elements load.
650
650
1. Start [customizing your theme](#customizing-existing-themes).
0 commit comments