@progress/kendo-theme-core 10.1.0-dev.2 → 10.1.0-dev.4
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.css +1 -1192
- package/dist/meta/{variables.scss → _variables.scss} +2 -1
- package/dist/meta/sassdoc-data.json +418 -486
- package/dist/meta/sassdoc-raw-data.json +412 -476
- package/package.json +7 -5
- package/scss/all.scss +2 -2
- package/scss/color-system/_functions.import.scss +5 -4
- package/scss/functions/_color.import.scss +17 -16
- /package/scss/{index.import.scss → index.scss} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-core",
|
|
3
3
|
"description": "A collection of functions and mixins used for building themes for Kendo UI",
|
|
4
|
-
"version": "10.1.0-dev.
|
|
4
|
+
"version": "10.1.0-dev.4",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -29,9 +29,11 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"sass": "sass-
|
|
32
|
+
"sass": "npm run sass:compile:all",
|
|
33
|
+
"sass:dist": "gulp sass:dist --theme packages/core && npm run sass:compile:dist",
|
|
34
|
+
"sass:compile:all": "npx sass --no-source-map --load-path=../../node_modules ./scss/all.scss ./dist/all.css",
|
|
35
|
+
"sass:compile:dist": "npx sass --style=compressed --no-source-map --load-path=../../node_modules ./dist:dist",
|
|
36
|
+
"sass:watch": "npx sass --no-source-map --load-path=../../node_modules --watch ./scss/all.scss ./dist/all.css",
|
|
35
37
|
"docs": "node ../../scripts/sassdoc.js",
|
|
36
38
|
"predocs": "npm run resolve-variables",
|
|
37
39
|
"resolve-variables": "node ../../scripts/resolve-variables.js",
|
|
@@ -43,5 +45,5 @@
|
|
|
43
45
|
"directories": {
|
|
44
46
|
"doc": "docs"
|
|
45
47
|
},
|
|
46
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4089693fbd3a10aebc8155f11e7b7b7f814be2be"
|
|
47
49
|
}
|
package/scss/all.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@use "sass:map";
|
|
2
3
|
@use "sass:list";
|
|
3
4
|
@use "sass:string";
|
|
@@ -210,10 +211,10 @@
|
|
|
210
211
|
) {
|
|
211
212
|
$_variations: (
|
|
212
213
|
#{$name}: $color,
|
|
213
|
-
#{$name}-bold:
|
|
214
|
-
#{$name}-bolder:
|
|
215
|
-
#{$name}-subtle:
|
|
216
|
-
#{$name}-subtler:
|
|
214
|
+
#{$name}-bold: color.mix(black, $color, 25%),
|
|
215
|
+
#{$name}-bolder: color.mix(black, $color, 50%),
|
|
216
|
+
#{$name}-subtle: color.mix(white, $color, 25%),
|
|
217
|
+
#{$name}-subtler: color.mix(white, $color, 50%),
|
|
217
218
|
);
|
|
218
219
|
|
|
219
220
|
$result: map.merge($result, $_variations);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@use "sass:math";
|
|
2
3
|
@use "sass:list";
|
|
3
4
|
@use "sass:meta";
|
|
@@ -14,7 +15,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
14
15
|
/// @debug k-color-alpha( rgba( 0, 0, 0, 0.5 ) ); // => 0.5
|
|
15
16
|
/// @debug k-color-alpha( #000 ); // => 1
|
|
16
17
|
@function k-color-alpha( $color ) {
|
|
17
|
-
@return alpha( $color );
|
|
18
|
+
@return color.alpha( $color );
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
/// Returns the red channel of a color.
|
|
@@ -24,7 +25,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
24
25
|
/// @example scss - Usage
|
|
25
26
|
/// @debug k-color-red( #ff0000 ); // => 255
|
|
26
27
|
@function k-color-red( $color ) {
|
|
27
|
-
@return
|
|
28
|
+
@return math.round(color.channel( $color, "red" ));
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
/// Returns the green channel of a color.
|
|
@@ -34,7 +35,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
34
35
|
/// @example scss - Usage
|
|
35
36
|
/// @debug k-color-green( #00ff00 ); // => 255
|
|
36
37
|
@function k-color-green( $color ) {
|
|
37
|
-
@return
|
|
38
|
+
@return math.round(color.channel( $color, "green" ));
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
/// Returns the blue channel of a color.
|
|
@@ -44,7 +45,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
44
45
|
/// @example scss - Usage
|
|
45
46
|
/// @debug k-color-blue( #0000ff ); // => 255
|
|
46
47
|
@function k-color-blue( $color ) {
|
|
47
|
-
@return
|
|
48
|
+
@return math.round(color.channel( $color, "blue" ));
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/// Returns the hue of a color.
|
|
@@ -54,7 +55,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
54
55
|
/// @example scss - Usage
|
|
55
56
|
/// @debug k-color-hue( #e1d7d2 ); // => 20deg
|
|
56
57
|
@function k-color-hue( $color ) {
|
|
57
|
-
@return
|
|
58
|
+
@return color.channel( $color, "hue" );
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
/// Returns the saturation of a color.
|
|
@@ -64,7 +65,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
64
65
|
/// @example scss - Usage
|
|
65
66
|
/// @debug k-color-saturation( #e1d7d2 ); // => 20%
|
|
66
67
|
@function k-color-saturation( $color ) {
|
|
67
|
-
@return
|
|
68
|
+
@return color.channel( $color, "saturation" );
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
/// Returns the lightness of a color.
|
|
@@ -74,7 +75,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
74
75
|
/// @example scss - Usage
|
|
75
76
|
/// @debug k-color-lightness( #e1d7d2 ); // => 80%
|
|
76
77
|
@function k-color-lightness( $color ) {
|
|
77
|
-
@return
|
|
78
|
+
@return color.channel( $color, "lightness" );
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
/// Returns a color that is a mix of two colors.
|
|
@@ -86,7 +87,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
86
87
|
/// @example scss - Usage
|
|
87
88
|
/// @debug k-color-mix( #f00, #00f ); // => #800080
|
|
88
89
|
@function k-color-mix( $color1, $color2, $weight: 50% ) {
|
|
89
|
-
@return mix( $color1, $color2, $weight );
|
|
90
|
+
@return color.mix( $color1, $color2, $weight );
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
/// Makes a color darker by decreasing its lightness.
|
|
@@ -97,7 +98,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
97
98
|
/// @example scss - Usage
|
|
98
99
|
/// @debug k-color-darken( #f00, 10% ); // => #e60000
|
|
99
100
|
@function k-color-darken( $color, $amount) {
|
|
100
|
-
@return
|
|
101
|
+
@return color.adjust( $color, $lightness: - $amount );
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
/// Makes a color lighter by increasing its lightness.
|
|
@@ -108,7 +109,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
108
109
|
/// @example scss - Usage
|
|
109
110
|
/// @debug k-color-lighten( #f00, 10% ); // => #ff1a1a
|
|
110
111
|
@function k-color-lighten( $color, $amount) {
|
|
111
|
-
@return
|
|
112
|
+
@return color.adjust( $color, $lightness: $amount );
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
/// Increases or decreases the hue of a color.
|
|
@@ -119,7 +120,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
119
120
|
/// @example scss - Usage
|
|
120
121
|
/// @debug k-color-adjust-hue( #f00, 10deg ); // => #ff1a00
|
|
121
122
|
@function k-color-adjust-hue( $color, $degrees ) {
|
|
122
|
-
@return adjust
|
|
123
|
+
@return color.adjust( $color, $hue: $degrees );
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
/// Increases the saturation of a color.
|
|
@@ -130,7 +131,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
130
131
|
/// @example scss - Usage
|
|
131
132
|
/// @debug k-color-saturate( #f00, 10% ); // => #ff3333
|
|
132
133
|
@function k-color-saturate( $color, $amount ) {
|
|
133
|
-
@return
|
|
134
|
+
@return color.adjust( $color, $saturation: $amount );
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
/// Decreases the saturation of a color.
|
|
@@ -141,7 +142,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
141
142
|
/// @example scss - Usage
|
|
142
143
|
/// @debug k-color-desaturate( #f00, 10% ); // => #e60000
|
|
143
144
|
@function k-color-desaturate( $color, $amount ) {
|
|
144
|
-
@return
|
|
145
|
+
@return color.adjust( $color, $saturation: - $amount );
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
/// Returns a gray color with the same lightness as the input color.
|
|
@@ -151,7 +152,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
151
152
|
/// @example scss - Usage
|
|
152
153
|
/// @debug k-color-grayscale( #f00 ); // => #808080
|
|
153
154
|
@function k-color-grayscale( $color ) {
|
|
154
|
-
@return grayscale( $color );
|
|
155
|
+
@return color.grayscale( $color );
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
/// Returns the RGB complement of a color. This identical to adjusting the hue
|
|
@@ -162,7 +163,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
162
163
|
/// @example scss - Usage
|
|
163
164
|
/// @debug k-color-complement( #f00 ); // => #00ffff
|
|
164
165
|
@function k-color-complement( $color ) {
|
|
165
|
-
@return complement( $color );
|
|
166
|
+
@return color.complement( $color );
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
/// Returns the inverse of a color.
|
|
@@ -172,7 +173,7 @@ $kendo-dark-color-level-step: 16% !default;
|
|
|
172
173
|
/// @example scss - Usage
|
|
173
174
|
/// @debug k-color-invert( #f00 ); // => #00ffff
|
|
174
175
|
@function k-color-invert( $color ) {
|
|
175
|
-
@return invert( $color );
|
|
176
|
+
@return color.invert( $color );
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
/// Set a specific jump point for requesting color jumps
|
|
File without changes
|