diff --git a/docs/styling/examples/icons/actions/main.html b/docs/styling/examples/icons/actions/main.html index 9fd84bc4..c55eb35c 100644 --- a/docs/styling/examples/icons/actions/main.html +++ b/docs/styling/examples/icons/actions/main.html @@ -1,5 +1,18 @@ + + + + + @@ -9,79 +22,79 @@ - + - + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/alerts-n-notifications/main.html b/docs/styling/examples/icons/alerts-n-notifications/main.html index 2f0e29b5..48a15b30 100644 --- a/docs/styling/examples/icons/alerts-n-notifications/main.html +++ b/docs/styling/examples/icons/alerts-n-notifications/main.html @@ -1,5 +1,18 @@ + + + + + @@ -9,79 +22,79 @@ - + - + - \ No newline at end of file + diff --git a/docs/styling/examples/icons/editing/main.html b/docs/styling/examples/icons/editing/main.html index 11bccbd7..411bf4cc 100644 --- a/docs/styling/examples/icons/editing/main.html +++ b/docs/styling/examples/icons/editing/main.html @@ -10,80 +10,79 @@ - - - + + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/files-n-folders/main.html b/docs/styling/examples/icons/files-n-folders/main.html index dd91ee2e..cd458355 100644 --- a/docs/styling/examples/icons/files-n-folders/main.html +++ b/docs/styling/examples/icons/files-n-folders/main.html @@ -10,80 +10,79 @@ - - - + + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/images/main.html b/docs/styling/examples/icons/images/main.html index 2b03f668..fe96e01d 100644 --- a/docs/styling/examples/icons/images/main.html +++ b/docs/styling/examples/icons/images/main.html @@ -10,79 +10,79 @@ - + - + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/layout-n-navigation/main.html b/docs/styling/examples/icons/layout-n-navigation/main.html index b39ce9ad..69f3af9b 100644 --- a/docs/styling/examples/icons/layout-n-navigation/main.html +++ b/docs/styling/examples/icons/layout-n-navigation/main.html @@ -10,80 +10,79 @@ - - - + + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/mapping/main.html b/docs/styling/examples/icons/mapping/main.html index 879d9d7e..6c7cf3a9 100644 --- a/docs/styling/examples/icons/mapping/main.html +++ b/docs/styling/examples/icons/mapping/main.html @@ -10,80 +10,79 @@ - - - + + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/media/main.html b/docs/styling/examples/icons/media/main.html index d6f8cde6..f12f7a29 100644 --- a/docs/styling/examples/icons/media/main.html +++ b/docs/styling/examples/icons/media/main.html @@ -10,79 +10,79 @@ - + - + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/social-sharing/main.html b/docs/styling/examples/icons/social-sharing/main.html index bfe6d460..8de526b1 100644 --- a/docs/styling/examples/icons/social-sharing/main.html +++ b/docs/styling/examples/icons/social-sharing/main.html @@ -10,80 +10,79 @@ - - - + + - - - \ No newline at end of file + + diff --git a/docs/styling/examples/icons/toggle/main.html b/docs/styling/examples/icons/toggle/main.html index 90a11d60..860881eb 100644 --- a/docs/styling/examples/icons/toggle/main.html +++ b/docs/styling/examples/icons/toggle/main.html @@ -10,80 +10,79 @@ - - - + + - - - \ No newline at end of file + + diff --git a/docs/styling/icons.mdx b/docs/styling/icons.mdx index 9ef28046..829ffc25 100644 --- a/docs/styling/icons.mdx +++ b/docs/styling/icons.mdx @@ -27,13 +27,41 @@ Font icons demonstrate significant benefits such as: ## Basic Usage -To use the Kendo UI for Vue font icons: +To use the Kendo UI font icons: -1. [Load](slug:themesandstyles) a Kendo UI for Vue theme into your project. -2. Assign a `k-icon` CSS class followed by a predefined class from the [list of font icons](#toc-list-of-font-icons) to an HTML tag. For example, the `` element as demonstrated in the following example. +1. [Load a Kendo UI theme](slug:themesandstyles) in your project. +1. Load the font icons either by [using the precompiled CSS](#toc-loading-icons-through-precompiled-css) or by [using a CDN link](#toc-loading-icons-through-a-cdn). +1. Add an empty `` element that will hold the font icon. +1. Assign a `k-icon k-font-icon` CSS classes that are followed by a predefined class from the [list of font icons](#toc-list-of-font-icons) to an HTML tag. For example: + ```html + `. + ``` + +### Loading Icons through Precompiled CSS + +1. To load the font icons by using precompiled CSS, install the `Kendo Font Icons` package through NPM. + + ```sh + npm i @progress/kendo-font-icons + ``` + +1. Import the precompiled CSS by using the following: + + - Import the font icons in the `styles.scss` file. + + ```scss + @import "@progress/kendo-font-icons/dist/index.css"; + ``` + +### Loading Icons through a CDN + +Import the font icons by using the following CDN link in your `index.html` file. ```html - + ``` ## Rendering with Unicode Numbers @@ -41,7 +69,7 @@ To use the Kendo UI for Vue font icons: Though the web icon font comes with a [set of predefined CSS classes](#toc-list-of-font-icons), you might need to use the icons with a custom CSS class name. To achieve this, set a `:before` pseudo content value for the relevant icon. ```html - +