@vettvangur/design-system 2.0.73 → 2.0.74

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2669,8 +2669,13 @@ const renderApplyLine = (prefix, token, indent = ' ') => {
2669
2669
  }
2670
2670
  if (prefix === 'border') {
2671
2671
  // Tailwind border color utilities are always `border-{token}`.
2672
- // If the token includes `border-` (e.g. `border-default`), this becomes `border-border-default`.
2673
- return `${indent}@apply border-${token};\n`;
2672
+ // Our color keys are grouped (e.g. `border-default`), so border colors should always apply as
2673
+ // `border-border-*`. If the token already starts with `border-`, keep it; otherwise namespace it.
2674
+ const t = token.startsWith('border-') ? token : `border-${token}`;
2675
+ if (process$1.env.DS_DEBUG) {
2676
+ console.log('[design-system] button-variants: border token =', token, '=>', `border-${t}`);
2677
+ }
2678
+ return `${indent}@apply border-${t};\n`;
2674
2679
  }
2675
2680
  return `${indent}@apply ${prefix}-${token};\n`;
2676
2681
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.73",
3
+ "version": "2.0.74",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",