Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-theme-default

Package Overview
Dependencies
Maintainers
1
Versions
2289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-theme-default

SASS resources for the default Kendo UI theme

  • 2.12.21
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
169K
decreased by-3.26%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Kendo UI Default Theme

Overview

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

Currently, it is available for the following suites:

  • Kendo UI for React.
  • Kendo UI for Angular 2.

We are working on providing support for the Default Theme in Kendo UI jQuery suite too.

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 styles/_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.

Keywords

FAQs

Package last updated on 28 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc