The default, SCSS-based theme for Kendo UI
Перейти к файлу
Alex Gyoshev 8764b3ebd4 fix(slider): vertical ticks are misaligned 2017-07-12 13:45:54 +03:00
build chore: remove EOL at EOF 2017-06-22 15:18:58 +03:00
docs chore: update api docs 2017-06-22 15:18:58 +03:00
examples/react feat: publish package with @progress prefix 2016-12-23 17:15:27 +02:00
scss fix(slider): vertical ticks are misaligned 2017-07-12 13:45:54 +03:00
.editorconfig chore: add editorconfig 2016-12-23 17:16:08 +02:00
.gitignore chore: add .vscode/ to .gitignore 2017-02-19 20:34:48 +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
.travis.yml chore: remove custom registry from build 2017-07-10 13:41:35 +03: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 fix: update license 2017-06-27 16:16:05 +03:00
README.md fix: update license 2017-06-27 16:16:05 +03:00
package.json chore: add handlebars to get sassdoc working on npm5 2017-07-12 13:41:47 +03:00
sass-lint.yml chore: update lint rules, fix warnings 2017-05-30 15:20:45 +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

Kendo UI Default Theme

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.

Copyright © 2017 Telerik AD. All rights reserved.

Overview

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

Basic Usage

For more information on how to use the Default Theme in Angular 2 and React projects, refer to its introductory topic.

Customization

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

To style a specific component, use the variables used in its specific .scss file.

The theme is built by running npm run build. The dist/all.css file contains the complete theme that you can use in your project.

Development

Styles are split into components and the dependencies are managed by the import-once mixin. When configuring the styles, define them within an import-once block so that they are bundled once when required from multiple files.

During development, the SCSS files are linted on every commit and built on every push command. The theme package can be tested against a component by linking the theme in the components package.

Upon build, browser-specific properties are generated through the PostCSS autoprefixer.

Embedding Resources

When you update resources (images or fonts), run the npm run embed-assets task. 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';. Then, inline the base64 version through map-get( $data-uris, 'WebComponentsIcons.woff' ). The embedding of resources avoids issues related with their hosting when your project consumes the theme. For more details, refer to issue #41.

Documenting Variables

The variables for customizing the Default theme are listed in the docs/customization.md article. It 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.