@vettvangur/design-system 2.0.37 → 2.0.39

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/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3565,7 +3565,10 @@ function buildScreensCss(extra = {}) {
3565
3565
  const keys = Object.keys(merged).sort((a, b) => a.localeCompare(b, 'en'));
3566
3566
  const lines = ['/* AUTO-GENERATED - DO NOT EDIT BY HAND */', '', '@theme {'];
3567
3567
  for (const key of keys) {
3568
- lines.push(` --breakpoint-${key}: ${merged[key]};`);
3568
+ // Base breakpoints are pixel values and should be remified.
3569
+ // Figma-provided Screens values are already authored as unit-less values.
3570
+ const v = Object.hasOwn(BASE_SCREENS, key) ? `${merged[key]}px` : String(merged[key]);
3571
+ lines.push(` --breakpoint-${key}: ${v};`);
3569
3572
  }
3570
3573
  lines.push('}', '');
3571
3574
  return `${lines.join('\n')}\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",