@podoba/tailwind 0.0.12 → 0.0.13

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/package.json +1 -1
  2. package/src/theme.css +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podoba/tailwind",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "description": "podoba Tailwind v4 theme — binds @podoba/tokens CSS custom properties to Tailwind's @theme. Import after `@import \"tailwindcss\"`.",
6
6
  "repository": {
package/src/theme.css CHANGED
@@ -69,12 +69,14 @@
69
69
  --radius-2xl: var(--radius-2xl);
70
70
  --radius-panel: var(--radius-panel);
71
71
 
72
- /* spacing (named keys; the numeric p-4/gap-2 scale is untouched) */
73
- --spacing-xs: var(--space-xs);
74
- --spacing-sm: var(--space-sm);
75
- --spacing-md: var(--space-md);
76
- --spacing-lg: var(--space-lg);
77
- --spacing-xl: var(--space-xl);
72
+ /* spacing only the off-grid `nav-x` (13px). We deliberately do NOT map
73
+ * xs/sm/md/lg/xl into --spacing-*: in v4 that namespace also feeds the
74
+ * sizing utilities (max-w/min-w/w/h/size/basis), where xs…xl are the
75
+ * `--container-*` t-shirt scale (max-w-md = 28rem). Naming spacing keys
76
+ * xs…xl shadows those (max-w-md would collapse to 1rem). And they'd be
77
+ * redundant anyway — the token values are exactly the numeric scale
78
+ * (--space-md 1rem = p-4, sm = p-2, lg = p-6, xl = p-8, xs = p-1), so use
79
+ * the numeric utilities for spacing and leave xs…xl to sizing. */
78
80
  --spacing-nav-x: var(--space-nav-x);
79
81
 
80
82
  /* font families */