@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 +5 -4
- package/badge/atl-badge.css +1 -1
- package/package.json +1 -1
- package/tokens.css +18 -0
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
|
-
|
|
29
|
-
`@import '@atelier-ui/react/styles/tokens.css'` (
|
|
30
|
-
|
|
31
|
-
package; with Angular or Vue, install it
|
|
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
|
|
package/badge/atl-badge.css
CHANGED
package/package.json
CHANGED
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 */
|