@vettvangur/design-system 2.0.43 → 2.0.45

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 +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2960,7 +2960,7 @@ async function generateHeadlines(sizes, lineHeights, config) {
2960
2960
  * rem(px)
2961
2961
  */
2962
2962
  function rem(value) {
2963
- return `${value}px`;
2963
+ return `${value}rem`;
2964
2964
  }
2965
2965
 
2966
2966
  /**
@@ -3221,6 +3221,7 @@ function generateSpacingCss(scales) {
3221
3221
  const lines = Array.from(map.entries()).map(([k, v]) => ` ${k}: ${v};`);
3222
3222
 
3223
3223
  // manual required defaults
3224
+ ensureVar(lines, '--spacing', '1px');
3224
3225
  ensureVar(lines, '--spacing-0', '0');
3225
3226
  ensureVar(lines, '--spacing-auto', 'auto');
3226
3227
  ensureVar(lines, '--spacing-full', '100%');
@@ -3534,7 +3535,7 @@ const BASE_SCREENS = {
3534
3535
  'desktop-l': 1280,
3535
3536
  'desktop-xl': 1367,
3536
3537
  'desktop-xxl': 1740,
3537
- ultrawide: 2000
3538
+ ultrawide: 1921
3538
3539
  };
3539
3540
  function pickFirstNumber(values) {
3540
3541
  if (!values || typeof values !== 'object') {
@@ -3596,7 +3597,8 @@ async function generateScreens(figmaVariables, config) {
3596
3597
  }
3597
3598
  const n = pickFirstNumber(tok?.values);
3598
3599
  if (n != null) {
3599
- extras[key] = n;
3600
+ extras[key] = `${n}px`;
3601
+ extras[`${key}-unitless`] = n;
3600
3602
  }
3601
3603
  }
3602
3604
  const outDir = path.join(config.paths.styles, 'config');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.43",
3
+ "version": "2.0.45",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",