The default, SCSS-based theme for Kendo UI
Перейти к файлу
Tsvetomir Tsonev 77efe2aa5a
docs: deprecation notice
2019-04-15 10:31:41 +03:00
.config chore: add integrity tests (#789) 2017-11-27 18:30:24 +02:00
.github chore: improve url in issue template 2018-05-01 09:12:32 +03:00
build docs: remove _kendouiforangular slug suffix (#797) 2017-11-23 16:59:46 +02:00
docs docs(vue): Add Theme preview app 2018-01-15 16:37:41 +02:00
examples/react feat: publish package with @progress prefix 2016-12-23 17:15:27 +02:00
scss chore: apply suggested changes 2018-01-29 15:05:06 +02:00
tests feat(icons): allow icons to have modifiers 2017-12-26 15:30:13 +02:00
.editorconfig chore: add missing editorconfig values 2017-08-30 11:25:24 +03:00
.gitignore chore: add integrity tests (#789) 2017-11-27 18:30:24 +02:00
.npmignore chore: filter out published files in dist/ 2017-04-26 16:02:07 +03:00
.sassdocrc chore: add theme name to api docs generation 2017-03-16 14:06:35 +02:00
CODEOWNERS.md docs: add codeowners.md (#601) 2017-07-10 17:55:39 +03:00
CONTRIBUTING.md docs: update link to CLA 2017-05-29 10:24:02 +03:00
LICENSE.md docs: update year in readme and license 2018-01-29 16:34:51 +02:00
README.md docs: deprecation notice 2019-04-15 10:31:41 +03:00
package.json fix: update Bootstrap dependency to v4 official 2018-01-25 16:23:45 +02:00
sass-lint.yml chore: fix lint warnings 2017-09-07 13:50:16 +03:00
third-party.md docs: add notice for third-party software 2017-06-19 14:23:12 +03:00
webpack.config.js chore: add bootstrap compatibility script 2017-04-26 16:02:07 +03:00

README.md

This repository is no longer updated. To access the current version, refer to the kendo-themes monorepo.

Kendo UI Default Theme

The Kendo UI Default Theme is a SCSS-based theme for the Kendo UI components.

License

This package is part of the following suites:

All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.

If you do not own a commercial license, the usage of this software shall be governed by the Apache License, Version 2.0.

Basic Usage

For more information on how to implement the Default theme in your project, refer to the following articles:

Customization

To customize the Default Theme in one swoop, use the colors which are defined in the scss/_variables.scss file. Any change you make to the content of this file is propagated to every component.

To style a specific component, apply the variables which are used in its specific .scss file.

After you build the theme by running the npm run build command, the complete theme that you can use in your project will be available in the dist/all.css file.

Development

The styles are split into components and the dependencies are managed by the import-once mixin. When you configure the styles, define them within an import-once block. In this way, when required from multiple files, they are bundled once.

During development, the SCSS files are linted on every commit and built on every push command. To test the theme package against a component, link the theme in the components package.

Browser-specific properties are generated at build-time through the PostCSS autoprefixer.

Embedding Resources

The embedding of resources, such as images or fonts, avoids hosting-related issues when your project consumes the theme. For more details, refer to issue #41.

To update the embedded resources in your project:

  1. Run the npm run embed-assets task. As a result, the task generates a file with the same name, which registers a Base64-encoded version in the $data-uris SCSS map. For example, the foo.woff font file will receive a foo.scss file, which can later be imported through @import './font/foo';.
  2. Inline the Base64 version through map-get( $data-uris, 'WebComponentsIcons.woff' ).

Documenting Variables

The available variables for customizing the Default theme are listed in the article on Default variables. The file is generated from the SCSS source files by running the npm run api command.

To document a variable, use triple-slash comments (///) before its definition.

/// Variable description
$foo: 42 !default;

To group variables, use the @group directive.

/// Variable description
/// @group random
$foo: 42 !default;

/// Another variable description
/// @group random
$bar: 1024 !default;

To change the layout or the front meter of the generated help topic, change the build/customization.md.hbs source file.

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.