@progress/kendo-theme-default 8.0.2-dev.1 → 8.0.2-dev.2

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 CHANGED
@@ -713,7 +713,7 @@ $kendo-color-level-step: 8% !default;
713
713
  }
714
714
 
715
715
  // #endregion
716
- // #region @import "./_color-variations.import.scss"; -> /home/runner/work/kendo-themes/kendo-themes/node_modules/@progress/kendo-theme-core/scss/functions/_color-variations.import.scss
716
+ // #region @import "./_color-system.import.scss"; -> /home/runner/work/kendo-themes/kendo-themes/node_modules/@progress/kendo-theme-core/scss/functions/_color-system.import.scss
717
717
  /// Generates all color variations of a given main color
718
718
  /// @param {String} $name - The name of the main color
719
719
  /// @param {Color} $color - The color value to be assigned to the main color
@@ -836,6 +836,22 @@ $kendo-color-level-step: 8% !default;
836
836
 
837
837
  @return $result;
838
838
  }
839
+
840
+ /// Takes a color name from the $kendo-colors map as a parameter
841
+ /// and returns a CSS variable with the actual color as a fallback
842
+ /// @param {String} $key - The name of a color/key in the $kendo-colors map
843
+ /// @return {String} - CSS variable with the actual color as a fallback
844
+ ///
845
+ /// @group color-system
846
+ @function k-color($key) {
847
+ $_color: k-map-get($kendo-colors, $key);
848
+
849
+ @if ($_color) {
850
+ @return var(--kendo-color-#{$key}, $_color);
851
+ } @else {
852
+ @error "Color Variable \`#{$key}\` does not exists in the color collection.";
853
+ }
854
+ }
839
855
  // #endregion
840
856
  // #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
841
857
  @function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
@@ -4384,16 +4400,6 @@ $_default-colors: (
4384
4400
  $kendo-colors: $_default-colors !default;
4385
4401
  $kendo-colors: k-map-merge($_default-colors, $kendo-colors);
4386
4402
 
4387
- @function k-color($key) {
4388
- $_color: k-map-get($kendo-colors, $key);
4389
-
4390
- @if ($_color) {
4391
- @return var(--kendo-color-#{$key}, $_color);
4392
- } @else {
4393
- @error "Color Variable \`#{$key}\` does not exists in the color collection.";
4394
- }
4395
- }
4396
-
4397
4403
  @mixin color-system--styles() {
4398
4404
  :root {
4399
4405
  @each $key, $value in $kendo-colors {
@@ -15264,7 +15270,6 @@ $kendo-headings: (
15264
15270
  font-weight: $kendo-h1-font-weight,
15265
15271
  letter-spacing: $kendo-h1-letter-spacing,
15266
15272
  margin: $kendo-h1-margin
15267
-
15268
15273
  ),
15269
15274
  h2: (
15270
15275
  font-size: $kendo-h2-font-size,
@@ -15305,7 +15310,7 @@ $kendo-headings: (
15305
15310
  font-weight: $kendo-h6-font-weight,
15306
15311
  letter-spacing: $kendo-h6-letter-spacing,
15307
15312
  margin: $kendo-h6-margin
15308
- ),
15313
+ )
15309
15314
  ) !default;
15310
15315
 
15311
15316
 
@@ -15471,7 +15476,7 @@ $kendo-display: (
15471
15476
  line-height: $kendo-display4-line-height,
15472
15477
  font-weight: $kendo-display4-font-weight,
15473
15478
  letter-spacing: $kendo-display4-letter-spacing
15474
- ),
15479
+ )
15475
15480
  ) !default;
15476
15481
 
15477
15482
  // #endregion