GithubHelp home page GithubHelp logo

anthrax3 / kendo-theme-default Goto Github PK

View Code? Open in Web Editor NEW

This project forked from telerik/kendo-theme-default

0.0 1.0 0.0 1.56 MB

The default, SCSS-based theme for Kendo UI

Home Page: https://www.telerik.com/kendo-ui

License: Other

JavaScript 1.79% HTML 0.25% CSS 97.96%

kendo-theme-default's Introduction

This repository has been archived.
Development has moved 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.

kendo-theme-default's People

Contributors

codebeastie avatar danielkaradachki avatar dimitar-goshev avatar dmihaylo avatar elena-gancheva avatar ggkrustev avatar gyoshev avatar ianmuirhead avatar inikolova avatar joneff avatar kirilnn avatar kspeyanski avatar magdalenaan avatar nlazarov avatar petyosi avatar rkonstantinov avatar theorlin avatar tsvetomir avatar valchev avatar veselints avatar vladimirivanoviliev avatar yordanov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.