@lotics/ui 22.0.0 → 22.1.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/AGENTS.md +7 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -41,6 +41,13 @@ CURRENT major only — upgrading an app across majors is `MIGRATION.md`.
|
|
|
41
41
|
[composition.md §`Badge` is for STATUS only](./docs/composition.md).
|
|
42
42
|
- **The kit's fonts/colors/icons ARE the design system** — never a custom font, icon set, or
|
|
43
43
|
hand-picked palette shade; color is `solid`/`tint`/`ramp` with ONE accent per screen.
|
|
44
|
+
- **Hand-typed type is off-system — and it always lands too small.** Every run of language is
|
|
45
|
+
`<Text size= weight= color=>` on the fixed rungs; a screen reaching for `fontSize` /
|
|
46
|
+
`lineHeight` / `letterSpacing` has left the ladder, and the sizes it invents come out UNDER
|
|
47
|
+
`xs` (12) and `sm` (14) — which is what "looks small and cheap" literally is. `Text` is also
|
|
48
|
+
the only way to get the letter-spacing curve and Inter's `cv11 ss01 ss03` alternates, the
|
|
49
|
+
"designed" tells you cannot type by hand. **Grep the diff: `fontSize:` / `lineHeight:` /
|
|
50
|
+
`letterSpacing:` outside `src/` is a bug.** → [composition.md §Typography](./docs/composition.md).
|
|
44
51
|
- **Pure primitives only** — no i18n, analytics, or domain types in `src/` (pass `labels`,
|
|
45
52
|
callbacks); Lotics-coupled UI belongs in `@lotics/ui-internal`.
|
|
46
53
|
- **A button never contains a control** — a row that presses open AND carries its own controls
|