@mlola-ui/tokens 1.1.27 → 1.2.1

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.
@@ -82,15 +82,15 @@ body {
82
82
  }
83
83
 
84
84
  h1 {
85
- font-size: clamp(2.25rem,5vw,4.75rem);
85
+ font-size: var(--ml-type-display-lg);
86
86
  }
87
87
 
88
88
  h2 {
89
- font-size: clamp(1.75rem,3.2vw,3rem);
89
+ font-size: var(--ml-type-display-md);
90
90
  }
91
91
 
92
92
  h3 {
93
- font-size: clamp(1.25rem,2vw,1.75rem);
93
+ font-size: var(--ml-type-display-sm);
94
94
  }
95
95
 
96
96
  :where(code,kbd,samp,pre) {
@@ -101,7 +101,7 @@
101
101
 
102
102
  .ml-display {
103
103
  font-family: var(--ml-font-display);
104
- font-size: clamp(2.5rem,6vw,4.5rem);
104
+ font-size: var(--ml-type-display-lg);
105
105
  font-weight: var(--ml-display-weight);
106
106
  line-height: 1.05;
107
107
  letter-spacing: -.03em;
@@ -175,7 +175,7 @@
175
175
  }
176
176
 
177
177
  .ml-section {
178
- padding-block: clamp(3.5rem,8vw,6.5rem);
178
+ padding-block: var(--ml-space-fluid-xl);
179
179
  /* A section is a grid or flex item in a page shell; without this, a wide
180
180
  table inside it widens the whole page instead of scrolling in place. */
181
181
  min-width: 0;
@@ -197,7 +197,7 @@
197
197
  .ml-section-header {
198
198
  display: grid;
199
199
  gap: var(--ml-space-3);
200
- margin-block-end: clamp(2rem,5vw,3rem);
200
+ margin-block-end: var(--ml-space-fluid-md);
201
201
  max-width: 42rem;
202
202
  }
203
203
 
@@ -224,7 +224,7 @@
224
224
 
225
225
  .ml-heading {
226
226
  font-family: var(--ml-font-display);
227
- font-size: clamp(1.75rem,3.2vw,2.75rem);
227
+ font-size: var(--ml-type-display-md);
228
228
  font-weight: var(--ml-display-weight);
229
229
  line-height: 1.1;
230
230
  letter-spacing: -.025em;
@@ -501,7 +501,7 @@
501
501
  flex-wrap: wrap;
502
502
  align-items: baseline;
503
503
  gap: var(--ml-space-1-5);
504
- font-size: clamp(2rem,4vw,2.75rem);
504
+ font-size: var(--ml-type-display-md);
505
505
  font-weight: 800;
506
506
  letter-spacing: -.03em;
507
507
  }
@@ -1665,6 +1665,17 @@ button.ml-breadcrumb-link {
1665
1665
  color: var(--ml-primary-text);
1666
1666
  }
1667
1667
 
1668
+ /* A link button is drawn as text, a line tall. On touch it keeps that look
1669
+ and gains an invisible target around it, as a control marked
1670
+ data-hit="expand" does, so a finger reaches it (WCAG 2.5.8). */
1671
+ @media (pointer: coarse) {
1672
+ .ml-button[data-variant="link"]::after {
1673
+ position: absolute;
1674
+ inset: min(calc(var(--ml-space-1-5) * -1), calc((var(--ml-target-min) - 100%) / -2));
1675
+ content: "";
1676
+ }
1677
+ }
1678
+
1668
1679
  .ml-button[data-size="sm"] {
1669
1680
  min-height: var(--ml-control-sm);
1670
1681
  gap: var(--ml-space-1-5);
@@ -19,6 +19,10 @@
19
19
  --ml-space-12: 3rem;
20
20
  --ml-space-14: 3.5rem;
21
21
  --ml-space-16: 4rem;
22
+ --ml-space-fluid-sm: clamp(1.25rem, 3vw, 2.5rem);
23
+ --ml-space-fluid-md: clamp(2rem, 5vw, 3rem);
24
+ --ml-space-fluid-lg: clamp(2rem, 5vw, 4rem);
25
+ --ml-space-fluid-xl: clamp(3.5rem, 8vw, 6.5rem);
22
26
  --ml-type-2xs: 0.6875rem;
23
27
  --ml-type-xs: 0.75rem;
24
28
  --ml-type-sm: 0.8125rem;
@@ -27,6 +31,10 @@
27
31
  --ml-type-lg: 1.125rem;
28
32
  --ml-type-xl: 1.25rem;
29
33
  --ml-type-2xl: 1.5rem;
34
+ --ml-type-display-sm: clamp(1.375rem, 2.5vw, 1.875rem);
35
+ --ml-type-display-md: clamp(1.75rem, 3.5vw, 2.75rem);
36
+ --ml-type-display-lg: clamp(2.5rem, 6vw, 4.5rem);
37
+ --ml-type-display-xl: clamp(4rem, 14vw, 8rem);
30
38
  --ml-leading-tight: 1.25;
31
39
  --ml-leading-snug: 1.4;
32
40
  --ml-leading-normal: 1.55;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlola-ui/tokens",
3
- "version": "1.1.27",
3
+ "version": "1.2.1",
4
4
  "description": "Stable CSS entry for the framework-free Mlola UI design system",
5
5
  "main": "tokens.css",
6
6
  "sideEffects": [