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: web/appearance-styling.md
+26-7Lines changed: 26 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,37 @@ description: Define CSS classes of Kendo UI Widgets to change their appearance.
5
5
---
6
6
7
7
# Appearance and Styling
8
+
9
+
Kendo UI widgets arrive with a number of predefined themes:
10
+
11
+

12
+
13
+
14
+
Setting a Kendo UI **Web** theme (i.e. excluding Mobile and DataViz) requires the inclusion of two stylesheets to your project:
15
+
16
+
***kendo.common.css** - This common (base) stylesheet applies styles related to element positioning and widget dimensions. It is a mandatory stylesheet for the widgets to look correct and function properly.
17
+
18
+
***kendo.[theme].css** - This stylesheet applies theme-specific styles like color palette, background gradients and patterns, etc.
> Be sure to include the common CSS file before the theme CSS file. In some cases, the theme CSS file may override base styles as it uses selectors with the same specificity.
28
+
8
29
The appearance of the **Kendo UI** widgets depends entirely on styles defined by the applied CSS classes.
9
30
No inline styles are used, except for some very specific cases in which these styles must be set with Javascript, depending on the browser or configuration.
10
31
11
-
## Common and theme StyleSheets
12
-
The Kendo UI **Web** widgets (i.e. excluding Mobile and DataViz) require two stylesheets: **kendo.common.css** and **kendo.[theme].css**.
13
-
The common (base) stylesheet applies styles related to positioning and size, but which are not related to the color scheme and are always required for the widget to
14
-
look correct and function properly. The theme stylesheet applies theme-specific styles like colors and backgrounds.
32
+
Some themes require a different "common" stylesheet that applies different dimensions. There are three "common" styleshees shipped with Kendo UI:
15
33
16
-
Some themes require a different "common" stylesheet that applies different dimensions, for example **kendo.common-bootstrap.css** and **kendo.common-material.css**. These common stylesheets should be used
17
-
**instead of** kendo.common.css and only with their respective theme (e.g. kendo.bootstrap.css or kendo.material.css).
34
+
***kendo.common.css** - The default base stylesheet.
18
35
19
-
> Be sure to include the common CSS file before the theme CSS file. In some cases, the theme CSS file may override base styles as it uses selectors with the same specificity.
36
+
***kendo.common-bootstrap.css** - The base stylesheet for the Bootstrap theme. Use this file instead of kendo.common.css and only with kendo.bootstrap.css theme file to achieve Bootstrap like widget dimensions.
37
+
38
+
***kendo.common-material.css** - The base stylesheet for the Material and MaterialBlack themes. Use this file instead of kendo.common.css and only with kendo.material.css or kendo.materialblack.css theme files.
0 commit comments