@progress/kendo-theme-classic 8.0.2-dev.0 → 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
@@ -712,7 +712,7 @@ $kendo-color-level-step: 8% !default;
712
712
  }
713
713
 
714
714
  // #endregion
715
- // #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
715
+ // #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
716
716
  /// Generates all color variations of a given main color
717
717
  /// @param {String} $name - The name of the main color
718
718
  /// @param {Color} $color - The color value to be assigned to the main color
@@ -835,6 +835,22 @@ $kendo-color-level-step: 8% !default;
835
835
 
836
836
  @return $result;
837
837
  }
838
+
839
+ /// Takes a color name from the $kendo-colors map as a parameter
840
+ /// and returns a CSS variable with the actual color as a fallback
841
+ /// @param {String} $key - The name of a color/key in the $kendo-colors map
842
+ /// @return {String} - CSS variable with the actual color as a fallback
843
+ ///
844
+ /// @group color-system
845
+ @function k-color($key) {
846
+ $_color: k-map-get($kendo-colors, $key);
847
+
848
+ @if ($_color) {
849
+ @return var(--kendo-color-#{$key}, $_color);
850
+ } @else {
851
+ @error "Color Variable \`#{$key}\` does not exists in the color collection.";
852
+ }
853
+ }
838
854
  // #endregion
839
855
  // #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
840
856
  @function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
@@ -4371,16 +4387,6 @@ $_default-colors: (
4371
4387
  $kendo-colors: $_default-colors !default;
4372
4388
  $kendo-colors: k-map-merge($_default-colors, $kendo-colors);
4373
4389
 
4374
- @function k-color($key) {
4375
- $_color: k-map-get($kendo-colors, $key);
4376
-
4377
- @if ($_color) {
4378
- @return var(--kendo-color-#{$key}, $_color);
4379
- } @else {
4380
- @error "Color Variable \`#{$key}\` does not exists in the color collection.";
4381
- }
4382
- }
4383
-
4384
4390
  @mixin color-system--styles() {
4385
4391
  :root {
4386
4392
  @each $key, $value in $kendo-colors {
@@ -15266,7 +15272,6 @@ $kendo-headings: (
15266
15272
  font-weight: $kendo-h1-font-weight,
15267
15273
  letter-spacing: $kendo-h1-letter-spacing,
15268
15274
  margin: $kendo-h1-margin
15269
-
15270
15275
  ),
15271
15276
  h2: (
15272
15277
  font-size: $kendo-h2-font-size,
@@ -15307,7 +15312,7 @@ $kendo-headings: (
15307
15312
  font-weight: $kendo-h6-font-weight,
15308
15313
  letter-spacing: $kendo-h6-letter-spacing,
15309
15314
  margin: $kendo-h6-margin
15310
- ),
15315
+ )
15311
15316
  ) !default;
15312
15317
 
15313
15318
  // Paragraph
@@ -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