@textmode/design-system 0.3.4 → 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.
Files changed (3) hide show
  1. package/README.md +11 -6
  2. package/package.json +1 -1
  3. package/tokens.css +4 -3
package/README.md CHANGED
@@ -22,7 +22,9 @@ errors; it is never a decorative wash.
22
22
  - `foundations.css` — reset, focus, selection, forced-colors, reduced motion
23
23
  - `primitives.css` — commands, ruled panels, ledger rows, and status signals
24
24
 
25
- Import `styles.css` once per document. Lower-level entry points are only for
25
+ Import `styles.css` once per document or open shadow root. Token declarations
26
+ target both `:root` and `:host`, so the same unchanged values are available to
27
+ document applications and Shadow DOM interfaces. Lower-level entry points are only for
26
28
  deliberate composition; applications must not import package-internal files or
27
29
  recreate aggregate ordering. The package deliberately does not opt pages into
28
30
  scroll snapping, prescribe a layout, or provide React modules. Those behaviors
@@ -50,6 +52,10 @@ remain product-owned so dense workspaces are unaffected.
50
52
  `--tm-type-copy-large`, `--tm-type-title`, `--tm-leading-tight`,
51
53
  `--tm-leading-copy`, `--tm-tracking-display`.
52
54
 
55
+ Monogram typography uses a strict half-rem scale: every `rem` value in a
56
+ `--tm-type-*` token is a whole or half step. Code-font consumers may define a
57
+ separate denser scale when their runtime requires it.
58
+
53
59
  ### Geometry and layout
54
60
 
55
61
  `--tm-space-1`, `--tm-space-2`, `--tm-space-3`, `--tm-space-4`,
@@ -95,8 +101,7 @@ forced-colors treatment for `aria-current` and `aria-pressed` state.
95
101
 
96
102
  The package has no JavaScript runtime or peer dependencies. Publish releases with
97
103
  semantic versioning: patch for value corrections, minor for additive tokens or
98
- classes, and major for removals or semantic changes. Version 0.3.4 adds
99
- `--tm-font-copy`, `--tm-section-height`, and package contract verification
100
- without changing the existing public token values; it also keeps reduced-motion
101
- rules limited to scroll and transition behavior so product-owned animation state
102
- remains overrideable.
104
+ classes, and major for removals or semantic changes. Version 0.4.0 adds Shadow
105
+ DOM `:host` delivery and normalizes Monogram control and copy roles to the
106
+ half-rem type scale. Reduced-motion rules remain limited to scroll and
107
+ transition behavior so product-owned animation state stays overrideable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textmode/design-system",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "Shared visual foundations and CSS primitives for textmode.art interfaces",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/tokens.css CHANGED
@@ -1,5 +1,6 @@
1
1
  @layer tokens {
2
- :root {
2
+ :root,
3
+ :host {
3
4
  color-scheme: dark;
4
5
 
5
6
  /* Primitive palette */
@@ -36,8 +37,8 @@
36
37
  --tm-font-copy: 'Monogram Extended';
37
38
  --tm-font-code: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
38
39
  --tm-type-meta: 1rem;
39
- --tm-type-control: 1.25rem;
40
- --tm-type-copy: 1.25rem;
40
+ --tm-type-control: 1.5rem;
41
+ --tm-type-copy: 1.5rem;
41
42
  --tm-type-copy-large: 1.5rem;
42
43
  --tm-type-title: clamp(3.5rem, 8vw, 6rem);
43
44
  --tm-leading-tight: 0.82;