@nuvoui/core 1.4.3 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvoui/core",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "NuvoUI is a human-friendly SCSS framework designed for simplicity, and modern responsive designs.",
5
5
  "author": {
6
6
  "name": "AALA IT Solutions",
@@ -174,6 +174,11 @@ $color-cache: (); // to store the generated colors
174
174
  @return $default-color;
175
175
  }
176
176
 
177
+ // Convert string shade to number if needed
178
+ @if meta.type-of($shade) == "string" {
179
+ $shade: fn-math.to-number($shade);
180
+ }
181
+
177
182
  @if not is-valid-shade($shade) {
178
183
  @warn "Invalid shade value: #{$shade}. Valid range is 50 to 900.";
179
184
  @return $default-color;
@@ -273,6 +278,11 @@ $color-cache: (); // to store the generated colors
273
278
  }
274
279
 
275
280
  @function is-valid-shade($shade) {
281
+ // Convert string to number if needed
282
+ @if meta.type-of($shade) == "string" {
283
+ $shade: fn-math.to-number($shade);
284
+ }
285
+
276
286
  @if meta.type-of($shade) == "number" {
277
287
  @return $shade >= 50 and $shade <= 900;
278
288
  }
@@ -268,7 +268,7 @@
268
268
 
269
269
  @each $size, $val in config-typo.$font-sizes {
270
270
  #{config-flags.$parent-selector} .text-#{$size}#{$suffix} {
271
- @include text-size($size);
271
+ @include font-size($size);
272
272
  }
273
273
  }
274
274
 
@@ -446,7 +446,7 @@
446
446
  @media (min-width: #{$width}) {
447
447
  @each $size, $val in config-typo.$font-sizes {
448
448
  #{config-flags.$parent-selector} .text-#{$size}\@#{$breakpoint} {
449
- @include text-size($size);
449
+ @include font-size($size);
450
450
  }
451
451
  }
452
452
  @include responsive-config-typo($breakpoint);