baseline-foundry 0.1.6 → 0.1.7

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
@@ -115,7 +115,7 @@ The verified GitHub release artifact remains available as a fallback for
115
115
  environments that cannot reach the npm registry:
116
116
 
117
117
  ```bash
118
- npm install https://github.com/lyubomir-popov/baseline-foundry/releases/download/v0.1.6/baseline-foundry-0.1.6.tgz
118
+ npm install https://github.com/lyubomir-popov/baseline-foundry/releases/download/v0.1.7/baseline-foundry-0.1.7.tgz
119
119
  ```
120
120
 
121
121
  Use the attached `.tgz`, not the GitHub source archive: generated `dist/`
@@ -188,6 +188,13 @@ ${bodyTypeStyles} margin: 0 0 var(--bf-single-line-row-margin-block-end);
188
188
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
189
189
  }
190
190
 
191
+ /* Chip parts normally carry the standalone body line explicitly. A compact
192
+ chip must pass its reduced line through to those parts so a nested badge
193
+ can fit without making the host row taller. */
194
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
195
+ line-height: inherit;
196
+ }
197
+
191
198
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
192
199
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
193
200
  }
@@ -130,7 +130,7 @@ ${componentAlignmentVars(components)} /* Action surfaces keep comfortable comma
130
130
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
131
131
  shorter line and capped symmetric padding fit their complete paint inside
132
132
  the host body line without introducing a second row rhythm. */
133
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
133
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
134
134
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
135
135
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
136
136
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -271,7 +271,7 @@ ${foundryComponentColorVars("dark")}
271
271
  margin: 0;
272
272
  }
273
273
 
274
- .bf-theme button {
274
+ :where(.bf-theme) :where(button) {
275
275
  font: inherit;
276
276
  }
277
277
 
@@ -931,7 +931,7 @@ html.u-baseline-grid::after {
931
931
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
932
932
  shorter line and capped symmetric padding fit their complete paint inside
933
933
  the host body line without introducing a second row rhythm. */
934
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
934
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
935
935
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
936
936
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
937
937
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1173,7 +1173,7 @@ html.u-baseline-grid::after {
1173
1173
  margin: 0;
1174
1174
  }
1175
1175
 
1176
- .bf-theme button {
1176
+ :where(.bf-theme) :where(button) {
1177
1177
  font: inherit;
1178
1178
  }
1179
1179
 
@@ -5934,6 +5934,13 @@ html.u-baseline-grid::after {
5934
5934
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
5935
5935
  }
5936
5936
 
5937
+ /* Chip parts normally carry the standalone body line explicitly. A compact
5938
+ chip must pass its reduced line through to those parts so a nested badge
5939
+ can fit without making the host row taller. */
5940
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
5941
+ line-height: inherit;
5942
+ }
5943
+
5937
5944
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
5938
5945
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
5939
5946
  }
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
package/dist/styles.css CHANGED
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
@@ -1261,7 +1261,7 @@ html.u-baseline-grid::after {
1261
1261
  /* Auxiliary surfaces may opt into a host-owned nested composition. The
1262
1262
  shorter line and capped symmetric padding fit their complete paint inside
1263
1263
  the host body line without introducing a second row rhythm. */
1264
- --bf-nested-auxiliary-line-height: max(1em, calc(var(--bf-body-line-height) - var(--bf-baseline)));
1264
+ --bf-nested-auxiliary-line-height: max(var(--bf-body-font-size), calc(var(--bf-body-line-height) - var(--bf-baseline)));
1265
1265
  --bf-nested-auxiliary-padding-block: min(var(--bf-single-line-row-padding-block), max(0rem, calc((var(--bf-body-line-height) - var(--bf-nested-auxiliary-line-height)) / 2)));
1266
1266
  --bf-slider-track-size: calc(var(--bf-baseline) * 0.25);
1267
1267
  --bf-slider-row-block-size: var(--bf-single-line-row-block-size);
@@ -1566,7 +1566,7 @@ html.u-baseline-grid::after {
1566
1566
  margin: 0;
1567
1567
  }
1568
1568
 
1569
- .bf-theme button {
1569
+ :where(.bf-theme) :where(button) {
1570
1570
  font: inherit;
1571
1571
  }
1572
1572
 
@@ -6327,6 +6327,13 @@ html.u-baseline-grid::after {
6327
6327
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border);
6328
6328
  }
6329
6329
 
6330
+ /* Chip parts normally carry the standalone body line explicitly. A compact
6331
+ chip must pass its reduced line through to those parts so a nested badge
6332
+ can fit without making the host row taller. */
6333
+ :where(.bf-theme) :where(.bf-chip.is-nested) :where(.bf-chip-lead, .bf-chip-value) {
6334
+ line-height: inherit;
6335
+ }
6336
+
6330
6337
  :where(.bf-theme) :where(.bf-chip.is-nested:hover) {
6331
6338
  box-shadow: inset 0 0 0 var(--bf-border-width) var(--bf-ui-chip-border-hover);
6332
6339
  }
@@ -21,7 +21,7 @@ npm install baseline-foundry
21
21
  The attached GitHub release tarball is the fallback:
22
22
 
23
23
  ```bash
24
- npm install https://github.com/lyubomir-popov/baseline-foundry/releases/download/v0.1.6/baseline-foundry-0.1.6.tgz
24
+ npm install https://github.com/lyubomir-popov/baseline-foundry/releases/download/v0.1.7/baseline-foundry-0.1.7.tgz
25
25
  ```
26
26
 
27
27
  Do not install the Git tag or GitHub source archive. `dist/` is generated and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseline-foundry",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Lean baseline-aligned design system focused on typography, editorial flow, spacing, and grid primitives.",
5
5
  "author": "Lyubomir Popov",
6
6
  "type": "module",