matcha-core 1.1.15 → 1.1.16

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.
Files changed (2) hide show
  1. package/core.scss +14 -0
  2. package/package.json +1 -1
package/core.scss CHANGED
@@ -57,6 +57,18 @@ $helper-breakpoints: (
57
57
  }
58
58
  }
59
59
 
60
+ // Define the variable for the base size (usually 16 pixels = 1 rem).
61
+ $base-font-size: 16px;
62
+
63
+ // Function to convert pixels to rem.
64
+ @function px-to-rem($value-in-px) {
65
+ @if $value-in-px != 0 {
66
+ @return calc($value-in-px / $base-font-size) * 1rem;
67
+ } @else {
68
+ @return $value-in-px;
69
+ }
70
+ }
71
+
60
72
  // -----------------------------------------------------------------------------------------------------
61
73
  // @ Size classes | Width and Height
62
74
  // -----------------------------------------------------------------------------------------------------
@@ -1343,3 +1355,5 @@ $helper-breakpoints: (
1343
1355
  }
1344
1356
  }
1345
1357
  @include generate-masonry-classes($helper-breakpoints);
1358
+
1359
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-core",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "styles for matcha-design-system",
5
5
  "main": "core.scss",
6
6
  "scripts": {