CSS
IS
AWESOME
npm update @progress/kendo-theme-default$accent: #B4D455;
$checkbox-size: 24px;
@import "~@progress/kendo-theme-default/scss/all";@import "~@progress/kendo-theme-default/scss/grid";
@import "~@progress/kendo-theme-default/scss/scheduler";Customize colors & sizes
Use only needed styles
Upgrade like any other package
Allows us to:
<- build scripts
<- contains NPM packages (Lerna convention)
<- @progress/kendo-theme-bootstrap (!)
<- @progress/kendo-theme-default (!)
<- @progress/kendo-theme-material (!)
<- build tasks, SCSS -> CSS
<- surprisingly, this contains tests
<- dimension tests
<- screenshot tests (!)
(Travis)
<- "blessed" HTML
<- screenshot
<- screenshot
<- screenshot
Files involved
The blessed HTML shows
the agreed upon rendering between Kendo UI flavors
Github review screen, helps reviewers
Demo doesn't show any selection at all.
But at least the classes are in place!
Where?
tests/visual/scheduler.html
Try it out!
# a quick way to host the folder
npm install -g http-server
http-server
# http://localhost:8080/tests/visual/scheduler.htmlNo screenshot change, since styles don't changed
Build a CSS selector that is just right:
Which file?
Color => _theme
Don't hard-code colors!
.k-scheduler-layout td.k-state-selected {
background-color: rgba($selected-bg, .25);
}
Even the wrong variable is better than hard-coding
(it will mostly work in the ThemeBuilder)
If you don't know the color functions, use Cuttle
Test other themes at
http://localhost:8080/tests/visual/scheduler.html?bootstrap
http://localhost:8080/tests/visual/scheduler.html?material
🍻
Reusing themes across suites means that either:
Option 1 never happens.
Even if it does, customers may upgrade packages without upgrading themes.
Changing the grid layout
from display: block
to display: flex
// before
.k-grid {
display: block;
}
<div class="k-grid"></div>
// after
.k-grid-flex {
display: flex;
}
<div class="k-grid k-grid-flex"></div>// before
.k-grid {
display: block;
}
<div class="k-grid"></div>
// after
.k-grid {
display: flex;
}
<div class="k-grid"></div>// refactor when https://github.com/telerik/kendo-themes/issues/298 is done
.k-notification-group .k-notification-wrap {
padding-right: $notification-padding-x;
}
guidelines @ telerik/kendo-themes/CONTRIBUTING.md