haus-tokens 5.1.0 → 5.2.0

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/semantics.css +29 -4
  2. package/package.json +1 -1
@@ -277,10 +277,35 @@
277
277
  --haus-weight-emphasis: var(--haus-weight-medium);
278
278
  --haus-weight-strong: var(--haus-weight-semibold);
279
279
 
280
- --haus-type-mono-size: var(--haus-text-13);
281
- --haus-type-mono-weight: var(--haus-weight-regular);
282
- --haus-type-mono-leading: var(--haus-leading-loose);
283
- --haus-type-mono-tracking: var(--haus-tracking-normal);
280
+ /* Mono is a ladder, not a role, for the same reason labels are: 11, 12 and
281
+ 13 are doing different jobs. A token name in a drawer is 11, a hex value
282
+ in a card is 12, a numeric field is 13, and vault reads --haus-font-mono
283
+ in 21 places spread over exactly those three sizes with no role fitting
284
+ any of them (haus#74). The leading loosens as the size grows, because the
285
+ larger the mono the more block-like the content: a chip wants a tight box,
286
+ a code panel wants air.
287
+
288
+ --haus-type-mono-* is the older single role and stays as md's alias, so
289
+ nothing that reads it moves. Prefer the ladder in new code. */
290
+ --haus-type-mono-xs-size: var(--haus-text-11);
291
+ --haus-type-mono-xs-weight: var(--haus-weight-regular);
292
+ --haus-type-mono-xs-leading: var(--haus-leading-normal);
293
+ --haus-type-mono-xs-tracking: var(--haus-tracking-normal);
294
+
295
+ --haus-type-mono-sm-size: var(--haus-text-12);
296
+ --haus-type-mono-sm-weight: var(--haus-weight-regular);
297
+ --haus-type-mono-sm-leading: var(--haus-leading-relaxed);
298
+ --haus-type-mono-sm-tracking: var(--haus-tracking-normal);
299
+
300
+ --haus-type-mono-md-size: var(--haus-text-13);
301
+ --haus-type-mono-md-weight: var(--haus-weight-regular);
302
+ --haus-type-mono-md-leading: var(--haus-leading-loose);
303
+ --haus-type-mono-md-tracking: var(--haus-tracking-normal);
304
+
305
+ --haus-type-mono-size: var(--haus-type-mono-md-size);
306
+ --haus-type-mono-weight: var(--haus-type-mono-md-weight);
307
+ --haus-type-mono-leading: var(--haus-type-mono-md-leading);
308
+ --haus-type-mono-tracking: var(--haus-type-mono-md-tracking);
284
309
 
285
310
 
286
311
  /* ── Spacing ─────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haus-tokens",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "haus design tokens: OKLCH colour, type, spacing, radius, shadow and motion, as W3C-DTCG JSON, CSS custom properties, and typed JS constants.",
5
5
  "license": "MIT",
6
6
  "engines": {