@atelier-ui/styles 0.3.13 → 0.3.15

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.
@@ -28,7 +28,7 @@
28
28
 
29
29
  .atl-badge.size-md {
30
30
  padding: 0.3125rem var(--ui-spacing-3);
31
- font-size: var(--ui-font-size-sm);
31
+ font: var(--ui-type-emphasis);
32
32
  }
33
33
 
34
34
  /* Variants */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atelier-ui/styles",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Atelier component CSS — class-rooted, token-driven, shared by the Angular, React and Vue libraries",
5
5
  "keywords": [
6
6
  "css",
package/tokens.css CHANGED
@@ -168,6 +168,24 @@
168
168
  --ui-type-row-sm: var(--ui-font-weight-normal) var(--ui-font-size-sm) /
169
169
  var(--ui-line-height-tight) var(--ui-font-family);
170
170
 
171
+ /* The emphasis role (ADR-0162). SemiBold at sm, tight: the text of a small
172
+ * element that is stressed rather than read — a badge, a step marker, the
173
+ * current breadcrumb. Measured on BOTH sides before being added (ADR-0074):
174
+ *
175
+ * emphasis SemiBold 14 — 3 CSS rules (.atl-badge.size-md, .step-circle,
176
+ * .breadcrumb-current) and 15 Figma text nodes (AtlAvatar 2,
177
+ * AtlAvatarGroup 5, AtlBreadcrumbItem 1, AtlStep 4, AtlTh 3),
178
+ * all 125% leading.
179
+ *
180
+ * The xs sibling (SemiBold 12, tight) has NO role: only 2 clean CSS rules
181
+ * (table header cell, badge sm) — the other xs rules are mono, or inherit a
182
+ * leading that is not tight — so it misses the rule of three (ADR-0162).
183
+ * Letter-spacing and text-transform are not part of a role: badge and table
184
+ * header add their own.
185
+ */
186
+ --ui-type-emphasis: var(--ui-font-weight-semibold) var(--ui-font-size-sm) /
187
+ var(--ui-line-height-tight) var(--ui-font-family);
188
+
171
189
  /* ── Colours · light mode (default) ────────────────────────── */
172
190
 
173
191
  /* Primary — Conciso deep teal */