@atelier-ui/styles 0.3.14 → 0.4.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.
package/README.md CHANGED
@@ -25,10 +25,11 @@ dark) are published here too, and this is their source of truth:
25
25
  @import '@atelier-ui/styles/tokens.css';
26
26
  ```
27
27
 
28
- The same file still ships inside each framework package, so
29
- `@import '@atelier-ui/react/styles/tokens.css'` (and the `angular` / `vue`
30
- equivalents) keeps working unchanged. `@atelier-ui/react` depends on this
31
- package; with Angular or Vue, install it yourself to use the import above.
28
+ Most apps should import the framework package's own copy instead, which needs
29
+ no extra install: `@import '@atelier-ui/react/styles/tokens.css'` (or the
30
+ `angular` / `vue` equivalent). Use the import above for apps that mix
31
+ frameworks or want this package directly; with Angular or Vue, install it
32
+ yourself first.
32
33
 
33
34
  ## Layout
34
35
 
@@ -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.14",
3
+ "version": "0.4.0",
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 */