@progress/kendo-theme-utils 7.1.0-dev.8 → 7.1.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.scss +22 -0
- package/package.json +3 -3
package/dist/all.scss
CHANGED
|
@@ -707,6 +707,28 @@ $kendo-color-level-step: 8% !default;
|
|
|
707
707
|
@return k-color-mix( rgba( $color1, 1 ), rgba( $color2, 1 ), $weight );
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
+
/// Generates all color variations of a given main color
|
|
711
|
+
/// @param {String} $name - The name of the main color
|
|
712
|
+
/// @param {Color} $level - The color value to be assigned to the main color
|
|
713
|
+
/// @return {Map} - A map with the generated keys and values
|
|
714
|
+
///
|
|
715
|
+
/// @group color-system
|
|
716
|
+
@function k-generate-colors( $name, $color ) {
|
|
717
|
+
$_variations: (
|
|
718
|
+
#{$name}-subtle: k-try-tint( $color, 80% ),
|
|
719
|
+
#{$name}-subtle-hover: k-try-tint( $color, 65% ),
|
|
720
|
+
#{$name}-subtle-active: k-try-tint( $color, 50% ),
|
|
721
|
+
#{$name}: $color,
|
|
722
|
+
#{$name}-hover: k-try-shade( $color, 0.5 ),
|
|
723
|
+
#{$name}-active: k-try-shade( $color, 1.5 ),
|
|
724
|
+
#{$name}-emphasis: k-try-tint( $color, 4.5 ),
|
|
725
|
+
#{$name}-on-subtle: k-try-shade( $color, 8 ),
|
|
726
|
+
on-#{$name}: k-contrast-legacy( $color ),
|
|
727
|
+
#{$name}-on-surface: $color,
|
|
728
|
+
);
|
|
729
|
+
|
|
730
|
+
@return $_variations;
|
|
731
|
+
}
|
|
710
732
|
// #endregion
|
|
711
733
|
// #region @import "./_custom-properties.import.scss"; -> /home/runner/work/kendo-themes/kendo-themes/node_modules/@progress/kendo-theme-core/scss/functions/_custom-properties.import.scss
|
|
712
734
|
@function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-utils",
|
|
3
3
|
"description": "Utility first library alongside Kendo UI",
|
|
4
|
-
"version": "7.1.0-dev.
|
|
4
|
+
"version": "7.1.0-dev.9",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"postpublish": "echo 'no postpublish for utils'"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@progress/kendo-theme-core": "7.1.0-dev.
|
|
46
|
+
"@progress/kendo-theme-core": "7.1.0-dev.9"
|
|
47
47
|
},
|
|
48
48
|
"directories": {
|
|
49
49
|
"doc": "docs"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4a6a0cb7085a4b032405585e25da25fd4383d7d7"
|
|
52
52
|
}
|