@skirbi/pinta 0.0.38 → 0.0.40

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/Changes CHANGED
@@ -1,5 +1,16 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.40 2026-09-16 04:30:30Z
4
+
5
+ * Add default styling for semtic-nav-page/semtic-nav-page-item: previous
6
+ hugs the nav's start edge, next its end edge, each a hoverable blurb
7
+ that gains an inline thumbnail when one is present.
8
+
9
+ 0.0.39 2026-09-15 01:57:23Z
10
+
11
+ * Fix bug for `a` elements for lead, antagonist attributes.
12
+ * Update recipes for card layouts
13
+
3
14
  0.0.38 2026-09-12 03:21:26Z
4
15
 
5
16
  * Add attribution CSS
package/README.md CHANGED
@@ -26,6 +26,23 @@ Pinta follows the **80% rule**:
26
26
 
27
27
  Everything is CSS. No runtime. No JS required.
28
28
 
29
+ General-purpose utility attributes were removed in v0.0.12. Use classes or
30
+ meaningful attributes as selector hooks, then let CSS handle spacing, borders,
31
+ shadows, and responsive layout.
32
+
33
+
34
+ # Installation
35
+
36
+ ```sh
37
+ npm install @skirbi/pinta
38
+ ```
39
+
40
+ Import the stylesheet from the package:
41
+
42
+ ```css
43
+ @import "@skirbi/pinta/pinta.css";
44
+ ```
45
+
29
46
 
30
47
  # Philosophy
31
48
 
@@ -104,7 +121,7 @@ Named theme:
104
121
 
105
122
  # Why Skirbi and not Pinta?
106
123
 
107
- The namespace `skirbi-` is chosen over `pinta-` because `@skibri/dibuho` also
124
+ The namespace `skirbi-` is chosen over `pinta-` because `@skirbi/dibuho` also
108
125
  paints the canvas and is part of the skirbi-universe. Having one namespace
109
126
  makes things easier.
110
127
 
@@ -114,15 +131,15 @@ makes things easier.
114
131
  Pinta defines stable layer order:
115
132
 
116
133
  ```css
117
- @layer skirbi-base, skirbi-theme, skirbi-transform, skirbi-components, skirbi-app;
134
+ @layer skirbi-base, skirbi-theme, skirbi-transform, skirbi-components,
135
+ skirbi-app;
118
136
  ```
119
137
 
120
138
  Meaning:
121
139
 
122
140
  * `skirbi-base`
123
141
 
124
- * derivation engine
125
- * environment logic
142
+ * structural defaults
126
143
  * typography
127
144
  * accessibility defaults
128
145
 
@@ -142,7 +159,7 @@ Meaning:
142
159
 
143
160
  * `skirbi-app`
144
161
 
145
- * app-specific overrides, always wins over components
162
+ * application-specific overrides
146
163
 
147
164
  Theme authors should override in:
148
165
 
@@ -153,6 +170,10 @@ Theme authors should override in:
153
170
  }
154
171
  ```
155
172
 
173
+ For normal declarations, later layers take precedence over earlier layers.
174
+ Specificity and source order still resolve competing declarations within a
175
+ layer. Unlayered normal CSS takes precedence over layered normal CSS.
176
+
156
177
 
157
178
  # Theme modes
158
179
 
@@ -166,12 +187,26 @@ Pinta supports:
166
187
  Dark mode changes:
167
188
 
168
189
  * environment base
169
- * surface derivation
170
- * page wash
190
+ * page and surface source colors
191
+ * surface derivation lifts
171
192
  * default foregrounds
172
193
 
173
194
  Mode can be applied to any subtree.
174
195
 
196
+ Pinta provides light/dark switching through `skirbi-theme-mode`. Toggle the
197
+ attribute between `light` and `dark`; Pinta updates the environment, source
198
+ colors, foregrounds, and surface derivations for that subtree.
199
+
200
+ ```js
201
+ const root = document.documentElement;
202
+ const currentMode = root.getAttribute('skirbi-theme-mode');
203
+
204
+ root.setAttribute(
205
+ 'skirbi-theme-mode',
206
+ currentMode === 'dark' ? 'light' : 'dark',
207
+ );
208
+ ```
209
+
175
210
 
176
211
  # Color families
177
212
 
@@ -181,8 +216,8 @@ Pinta uses color families instead of loose palette slots.
181
216
 
182
217
  ```css
183
218
  --skirbi-primary-main
184
- --skirbi-primary-light
185
- --skirbi-primary-dark
219
+ --skirbi-primary-soft
220
+ --skirbi-primary-strong
186
221
  --skirbi-primary-contrast
187
222
  ```
188
223
 
@@ -190,8 +225,8 @@ Pinta uses color families instead of loose palette slots.
190
225
 
191
226
  ```css
192
227
  --skirbi-secondary-main
193
- --skirbi-secondary-light
194
- --skirbi-secondary-dark
228
+ --skirbi-secondary-soft
229
+ --skirbi-secondary-strong
195
230
  --skirbi-secondary-contrast
196
231
  ```
197
232
 
@@ -199,23 +234,35 @@ Usually only `*-main` needs to be set.
199
234
 
200
235
  Pinta derives:
201
236
 
202
- * light
203
- * dark
204
- * contrast
237
+ * soft
238
+ * strong
205
239
 
206
240
  unless explicitly overridden.
207
241
 
208
- ## Helper colors
242
+ Contrast defaults to either `--skirbi-on-dark` or `--skirbi-on-light`. It is a
243
+ selected foreground, not a calculated contrast check, so theme authors must
244
+ verify contrast for their palette.
245
+
246
+ The older `--skirbi-*-light` and `--skirbi-*-dark` properties remain as
247
+ deprecated aliases for `soft` and `strong`.
248
+
249
+ ## Supporting colors
209
250
 
210
251
  Helper colors exist for supporting accents.
211
252
 
212
253
  ```css
213
254
  --skirbi-tertiary-main
255
+ --skirbi-tertiary-soft
256
+ --skirbi-tertiary-strong
257
+ --skirbi-tertiary-contrast
214
258
  --skirbi-quaternary-main
259
+ --skirbi-quaternary-soft
260
+ --skirbi-quaternary-strong
261
+ --skirbi-quaternary-contrast
215
262
  ```
216
263
 
217
- These intentionally do not expose full family contracts. They are currently
218
- included, but unused. Component authors may be able to use them if needed.
264
+ Tertiary and quaternary expose the same complete family contract as primary
265
+ and secondary.
219
266
 
220
267
  # Button tokens
221
268
 
@@ -247,10 +294,10 @@ Pinta derives atmospheric backgrounds from brand colors.
247
294
 
248
295
  ## Transform modes
249
296
 
250
- ```css
251
- --skirbi-bg-transform: none;
252
- --skirbi-bg-transform: wash;
253
- --skirbi-bg-transform: reverse-wash;
297
+ ```html
298
+ <html skirbi-theme skirbi-bg-transform="none">
299
+ <html skirbi-theme skirbi-bg-transform="wash">
300
+ <html skirbi-theme skirbi-bg-transform="reverse-wash">
254
301
  ```
255
302
 
256
303
  ## Wash controls
@@ -264,6 +311,14 @@ Default page backgrounds use a wash transform.
264
311
 
265
312
  This keeps themes calm and readable by default.
266
313
 
314
+ The selector attribute changes the active percentage. Setting only
315
+ `--skirbi-bg-transform` does not switch the transform.
316
+
317
+ For exact backgrounds, set `--skirbi-page-bg`, `--skirbi-surface-bg`, or
318
+ `--skirbi-surface-bg-elevated`. Component and application CSS should consume
319
+ the matching `*-final` tokens so explicit overrides and derived fallbacks both
320
+ work.
321
+
267
322
 
268
323
  # Status colors
269
324
 
@@ -416,6 +471,15 @@ Use normal CSS for:
416
471
 
417
472
  Pinta provides light defaults only.
418
473
 
474
+ The plain recipes expose `--skirbi-columns`, `--skirbi-grid-gap`,
475
+ `--skirbi-flex-gap`, and `--skirbi-stack-gap`. `semtic-flex` retains its
476
+ component-specific `semtic-direction`, `semtic-justify`, `semtic-align`, and
477
+ `semtic-wrap="wrap"` mappings. There is no numbered `semtic-gap` mapping or
478
+ responsive `semtic-columns-*` API.
479
+
480
+ Pinta also provides `semtic-grid[diptych]` and `semtic-grid[triptych]`
481
+ recipes. Their shared layout thresholds are `48rem` and `69rem`.
482
+
419
483
  Example:
420
484
 
421
485
  ````html
@@ -460,17 +524,18 @@ attribute based is up to you as the author.
460
524
 
461
525
  # Documentation source
462
526
 
463
- `pinta.css` is the source of truth for the detailed style documentation.
527
+ `lib/themes/pinta.css` is the source of truth for the detailed style
528
+ documentation.
464
529
 
465
530
  The stylesheet uses DocumentCSS-style comment blocks for the public theme
466
531
  contract:
467
532
 
468
- * `@stylesheet` for the Pinta overview
533
+ * `@page` for the Pinta overview and layer documentation
469
534
  * `@styles` for token groups, cascade layers, transforms, and Semtic recipes
470
535
  * Markdown tables and examples inside the comment body
471
536
 
472
- The README stays the human-facing overview. The generated style guide can use
473
- `pinta.css` directly.
537
+ The README stays the human-facing overview. Generate the detailed style guide
538
+ with `npm run docs`.
474
539
 
475
540
  Example `documentjs.json` shape:
476
541
 
@@ -485,20 +550,13 @@ Example `documentjs.json` shape:
485
550
  }
486
551
  ```
487
552
 
488
- # Optional utilities
553
+ # Removed utilities
489
554
 
490
555
  Pinta v0.0.12 removed built-in utility attributes from the core package.
491
556
 
492
- An optional utility package may exist later for:
493
-
494
- * prototypes
495
- * demos
496
- * quick experiments
497
-
498
557
  Core Pinta intentionally stays focused on:
499
558
 
500
559
  * tokens
501
560
  * derivations
502
561
  * recipes
503
562
  * theming
504
-
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.38";
5
+ const VERSION = "0.0.40";
@@ -3633,7 +3633,7 @@
3633
3633
  pointer-events: none;
3634
3634
  }
3635
3635
 
3636
- [lead] {
3636
+ a[lead] {
3637
3637
  background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
3638
3638
  /*
3639
3639
  * This leaves some weird ass artifact, fix it and enable gradient
@@ -3655,7 +3655,7 @@
3655
3655
  }
3656
3656
  }
3657
3657
 
3658
- [support] {
3658
+ a[support] {
3659
3659
  background: var(--skirbi-button-support-bg, transparent);
3660
3660
  color: var(--skirbi-button-support-color, var(--skirbi-primary-main));
3661
3661
  border-color: var(--skirbi-button-support-border,
@@ -3669,7 +3669,7 @@
3669
3669
  }
3670
3670
  }
3671
3671
 
3672
- [extra] {
3672
+ a[extra] {
3673
3673
  background: var(--skirbi-button-extra-bg, transparent);
3674
3674
  color: var(--skirbi-button-extra-color, var(--skirbi-primary-main));
3675
3675
  border-color: var(--skirbi-button-extra-border,
@@ -3685,7 +3685,7 @@
3685
3685
  }
3686
3686
  }
3687
3687
 
3688
- [antagonist] {
3688
+ a[antagonist] {
3689
3689
  background: var(--skirbi-button-antagonist-bg, transparent);
3690
3690
  color: var(--skirbi-button-antagonist-color,
3691
3691
  var(--skirbi-error-base, #b91c1c));
@@ -3701,7 +3701,7 @@
3701
3701
  }
3702
3702
  }
3703
3703
 
3704
- [antagonist][lead] {
3704
+ a[antagonist][lead] {
3705
3705
  background: var(--skirbi-button-antagonist-strong-bg,
3706
3706
  var(--skirbi-error-base, #b91c1c));
3707
3707
  color: var(--skirbi-on-dark, white);
@@ -3714,7 +3714,7 @@
3714
3714
  }
3715
3715
  }
3716
3716
 
3717
- [herald] {
3717
+ a[herald] {
3718
3718
  background: var(--skirbi-button-herald-bg, transparent);
3719
3719
  color: var(--skirbi-button-herald-color,
3720
3720
  var(--skirbi-warn-base, #d97706));
@@ -3728,7 +3728,7 @@
3728
3728
  var(--skirbi-warn-base, #d97706));
3729
3729
  }
3730
3730
  }
3731
- [herald][lead] {
3731
+ a[herald][lead] {
3732
3732
  background: var(--skirbi-button-herald-strong-bg,
3733
3733
  var(--skirbi-warn-base, #d97706));
3734
3734
  color: var(--skirbi-on-dark, white);
@@ -4275,7 +4275,31 @@
4275
4275
  * @description
4276
4276
  *
4277
4277
  * Default recipe for `<semtic-article-card>`, its rendered content hooks,
4278
- * hero presentation, and restrained card heading scale.
4278
+ * and the six card variants Tatuahe assigns per card, in descending
4279
+ * order of prominence
4280
+ * (`[hero]`, `[feature]`, `[support]`, `[lead]`, `[extra]`, `[overview]`):
4281
+ *
4282
+ * - `hero` and `feature` are image-forward, full-bleed cards. `hero` is
4283
+ * the larger of the two; `feature` uses the same treatment at a
4284
+ * smaller scale.
4285
+ * - `support` is text-only: the plain bordered/shadowed card shell, with
4286
+ * a title size between feature's and lead's. No image.
4287
+ * - `lead` and `extra` are compact, text-first cards. `lead` gets a
4288
+ * short, contained thumbnail above the title (no bleed, unlike
4289
+ * hero/feature); `extra` has no image at all and reads as the quieter
4290
+ * of the two.
4291
+ * - `overview` places the image and text side by side when an image is
4292
+ * present, and behaves like `lead` when it isn't.
4293
+ *
4294
+ * Two custom properties are overridable per instance:
4295
+ *
4296
+ * - `--skirbi-article-card-gap` -- gap between the card's own regions
4297
+ * (eyebrow, header, content). Defaults to `0.75rem`.
4298
+ * - `--skirbi-article-card-image-inset` -- gap between the hero/feature
4299
+ * image and the card's border (and the matching border-radius on the
4300
+ * image). Defaults to `0`, i.e. the image bleeds edge to edge. Set it
4301
+ * on a specific card with e.g.
4302
+ * `<semtic-article-card feature style="--skirbi-article-card-image-inset: 1rem">`.
4279
4303
  */
4280
4304
 
4281
4305
  [skirbi-theme] {
@@ -4286,21 +4310,26 @@
4286
4310
 
4287
4311
  > [semtic-article-card-link] {
4288
4312
  display: grid;
4289
- gap: 0.75rem;
4313
+ gap: var(--skirbi-article-card-gap, 0.75rem);
4290
4314
  align-content: start;
4291
4315
  block-size: 100%;
4292
4316
  box-sizing: border-box;
4293
4317
  padding: 1.5rem;
4294
- background: color-mix(
4295
- in srgb,
4296
- var(--skirbi-primary-main) 8%,
4297
- white
4298
- );
4299
- border: 2px solid var(--skirbi-primary-main);
4318
+ background: var(--skirbi-surface-bg-final);
4319
+ border: 1px solid var(--skirbi-surface-border-final);
4300
4320
  border-radius: 0.75rem;
4301
- box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
4302
- color: var(--skirbi-primary-dark);
4321
+ box-shadow: var(--skirbi-shadow-md, 0 1px 3px rgb(0 0 0 / 0.08));
4322
+ color: var(--skirbi-surface-fg);
4303
4323
  text-decoration: none;
4324
+ transition: box-shadow 0.15s ease, transform 0.15s ease,
4325
+ border-color 0.15s ease;
4326
+ }
4327
+
4328
+ &:hover > [semtic-article-card-link],
4329
+ &:focus-within > [semtic-article-card-link] {
4330
+ border-color: var(--skirbi-primary-main);
4331
+ box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
4332
+ transform: translateY(-2px);
4304
4333
  }
4305
4334
 
4306
4335
  [semtic-article-card-header],
@@ -4316,6 +4345,10 @@
4316
4345
  align-items: center;
4317
4346
  }
4318
4347
 
4348
+ [semtic-article-card-eyebrow] semtic-pill-box {
4349
+ font-size: 0.75rem;
4350
+ }
4351
+
4319
4352
  [semtic-article-card-title] {
4320
4353
  margin: 0;
4321
4354
  }
@@ -4323,6 +4356,20 @@
4323
4356
  [semtic-article-card-author],
4324
4357
  [semtic-article-card-date] {
4325
4358
  font-size: 0.875em;
4359
+ color: var(--skirbi-text-muted-final);
4360
+ }
4361
+
4362
+ /*
4363
+ * A date moved into the eyebrow inside a semtic-pill-box (for
4364
+ * contrast on the hero/feature scrim and to match the category
4365
+ * pill's look) takes the pill's own color and type scale instead
4366
+ * of fighting it with the muted meta styling above. On lead, the
4367
+ * date sits bare in the eyebrow (no pill, no category to sit next
4368
+ * to), so it keeps that muted meta styling as-is.
4369
+ */
4370
+ [semtic-article-card-eyebrow] semtic-pill-box [semtic-article-card-date] {
4371
+ font-size: inherit;
4372
+ color: inherit;
4326
4373
  }
4327
4374
 
4328
4375
  [semtic-article-card-image] {
@@ -4332,32 +4379,261 @@
4332
4379
  border-radius: 0.5rem;
4333
4380
  }
4334
4381
 
4335
- &[hero] {
4382
+ /*
4383
+ * Image-forward treatment shared by hero and feature: the image
4384
+ * fills the card and the header (eyebrow, title, author) overlays
4385
+ * its bottom edge instead of stacking below it, with a scrim
4386
+ * behind the text so it stays readable over any image.
4387
+ */
4388
+ &:is([hero], [feature]) {
4336
4389
  > [semtic-article-card-link] {
4390
+ position: relative;
4337
4391
  padding: 0;
4338
4392
  overflow: hidden;
4393
+ background: var(--skirbi-surface-bg-elevated-final);
4339
4394
  }
4340
4395
 
4341
4396
  [semtic-article-card-content] {
4342
4397
  display: contents;
4343
4398
  }
4344
4399
 
4345
- [semtic-article-card-header],
4346
4400
  [semtic-article-card-content] > :not([semtic-article-card-image]) {
4347
4401
  margin-inline: 1.5rem;
4348
4402
  }
4349
4403
 
4404
+ [semtic-article-card-content] > :last-child {
4405
+ margin-block-end: 1.5rem;
4406
+ }
4407
+
4408
+ [semtic-article-card-image] {
4409
+ position: absolute;
4410
+ inset: var(--skirbi-article-card-image-inset, 0px);
4411
+ inline-size: calc(100% - (var(--skirbi-article-card-image-inset, 0px) * 2));
4412
+ block-size: calc(100% - (var(--skirbi-article-card-image-inset, 0px) * 2));
4413
+ max-block-size: none;
4414
+ margin: 0;
4415
+ order: -1;
4416
+ object-fit: cover;
4417
+ z-index: 0;
4418
+ }
4419
+
4350
4420
  [semtic-article-card-header] {
4351
- margin-block-start: 1.5rem;
4421
+ position: absolute;
4422
+ z-index: 1;
4423
+ inset-inline: 0;
4424
+ inset-block-end: 0;
4425
+ margin: 0;
4426
+ padding: 1.5rem;
4427
+ gap: 0.35rem;
4428
+ background: linear-gradient(
4429
+ to top,
4430
+ color-mix(in srgb, black 65%, transparent),
4431
+ color-mix(in srgb, black 65%, transparent) 60%,
4432
+ transparent
4433
+ );
4434
+ border-radius: 0;
4435
+ color: var(--skirbi-on-dark, white);
4352
4436
  }
4353
4437
 
4354
- [semtic-article-card-content] > :last-child {
4355
- margin-block-end: 1.5rem;
4438
+ /*
4439
+ * The scrim above fades to transparent well before the top of
4440
+ * the header block, right where the eyebrow sits -- so its
4441
+ * pills need their own solid backdrop instead of trusting
4442
+ * whatever part of the image is behind them.
4443
+ */
4444
+ [semtic-article-card-eyebrow] semtic-pill-box {
4445
+ background: rgba(0, 0, 0, 0.55);
4446
+ color: white;
4447
+ }
4448
+
4449
+ [semtic-article-card-eyebrow] semtic-pill-box[live] {
4450
+ background: var(--skirbi-info-base, #2f6fed);
4451
+ }
4452
+
4453
+ [semtic-article-card-eyebrow] semtic-pill-box[breaking] {
4454
+ background: var(--skirbi-error-base, #b91c1c);
4455
+ }
4456
+ }
4457
+
4458
+ &[hero] {
4459
+ > [semtic-article-card-link] {
4460
+ min-block-size: 22rem;
4461
+ border-width: 2px;
4462
+ border-color: var(--skirbi-primary-main);
4463
+ box-shadow: 0 12px 32px rgb(0 0 0 / 0.16);
4464
+ }
4465
+
4466
+ [semtic-article-card-title] {
4467
+ font-size: clamp(1.75rem, 2.4vw, 2.5rem);
4468
+ }
4469
+
4470
+ @media (max-width: 48rem) {
4471
+ > [semtic-article-card-link] {
4472
+ min-block-size: 16rem;
4473
+ }
4474
+
4475
+ [semtic-article-card-title] {
4476
+ font-size: clamp(1.35rem, 6vw, 1.75rem);
4477
+ }
4478
+ }
4479
+ }
4480
+
4481
+ &[feature] {
4482
+ > [semtic-article-card-link] {
4483
+ min-block-size: 14rem;
4484
+ }
4485
+
4486
+ @media (max-width: 48rem) {
4487
+ > [semtic-article-card-link] {
4488
+ min-block-size: 11rem;
4489
+ }
4490
+ }
4491
+ }
4492
+
4493
+ &:is([hero], [feature]) {
4494
+ @media (max-width: 48rem) {
4495
+ [semtic-article-card-header] {
4496
+ padding: 1rem;
4497
+ }
4498
+ }
4499
+ }
4500
+
4501
+ /*
4502
+ * Text-first treatment shared by lead and extra: no border or
4503
+ * shadow weight, a bottom rule doing the separating instead, and a
4504
+ * tighter heading scale that reads as secondary to hero/feature.
4505
+ */
4506
+ &:is([lead], [extra]) {
4507
+ > [semtic-article-card-link] {
4508
+ gap: 0.5rem;
4509
+ padding: 1rem 0;
4510
+ background: transparent;
4511
+ border: 0;
4512
+ border-block-end: 1px solid var(--skirbi-surface-border-final);
4513
+ border-radius: 0;
4514
+ box-shadow: none;
4515
+ }
4516
+
4517
+ &:hover > [semtic-article-card-link],
4518
+ &:focus-within > [semtic-article-card-link] {
4519
+ border-color: var(--skirbi-primary-main);
4520
+ box-shadow: none;
4521
+ transform: none;
4522
+ }
4523
+
4524
+ [semtic-article-card-title] {
4525
+ font-size: clamp(1.05rem, 1.4vw, 1.25rem);
4526
+ }
4527
+ }
4528
+
4529
+ /*
4530
+ * Lead gets a contained thumbnail above the title -- unlike
4531
+ * hero/feature, it stays in normal flow (no bleed, no absolute
4532
+ * overlay): just reordered ahead of the header via the same
4533
+ * display: contents + order trick, at a much shorter cap.
4534
+ */
4535
+ &[lead] {
4536
+ [semtic-article-card-content] {
4537
+ display: contents;
4356
4538
  }
4357
4539
 
4358
4540
  [semtic-article-card-image] {
4359
4541
  order: -1;
4542
+ max-block-size: 10rem;
4543
+ border-radius: 0.5rem;
4544
+ }
4545
+ }
4546
+
4547
+ &[extra] {
4548
+ [semtic-article-card-title] {
4549
+ font-size: 1rem;
4550
+ }
4551
+
4552
+ [semtic-article-card-author],
4553
+ [semtic-article-card-date] {
4554
+ font-size: 0.8em;
4555
+ }
4556
+ }
4557
+
4558
+ /*
4559
+ * Support is text-only, no image, sitting between feature and
4560
+ * lead in prominence -- it keeps the default bordered/shadowed
4561
+ * card shell (nothing to override there) and just gets a title
4562
+ * size between feature's (the plain h2 default) and lead's.
4563
+ */
4564
+ &[support] {
4565
+ [semtic-article-card-title] {
4566
+ font-size: clamp(1.2rem, 1.6vw, 1.5rem);
4567
+ }
4568
+ }
4569
+
4570
+ /*
4571
+ * Overview pairs the image with the text side by side, nos.nl
4572
+ * style. Falls back to the lead treatment when there is no
4573
+ * image to sit next to.
4574
+ */
4575
+ &[overview]:has([semtic-article-card-image]) {
4576
+ > [semtic-article-card-link] {
4577
+ display: grid;
4578
+ grid-template-columns: minmax(8rem, 12rem) 1fr;
4579
+ gap: 1rem;
4580
+ align-items: start;
4581
+ padding: 1rem 0;
4582
+ background: transparent;
4583
+ border: 0;
4584
+ border-block-end: 1px solid var(--skirbi-surface-border-final);
4360
4585
  border-radius: 0;
4586
+ box-shadow: none;
4587
+ }
4588
+
4589
+ &:hover > [semtic-article-card-link],
4590
+ &:focus-within > [semtic-article-card-link] {
4591
+ border-color: var(--skirbi-primary-main);
4592
+ box-shadow: none;
4593
+ transform: none;
4594
+ }
4595
+
4596
+ [semtic-article-card-image] {
4597
+ max-block-size: 8rem;
4598
+ border-radius: 0.5rem;
4599
+ }
4600
+
4601
+ [semtic-article-card-header],
4602
+ [semtic-article-card-content] {
4603
+ grid-column: 2;
4604
+ }
4605
+
4606
+ @media (max-width: 48rem) {
4607
+ > [semtic-article-card-link] {
4608
+ grid-template-columns: 1fr;
4609
+ }
4610
+
4611
+ [semtic-article-card-image] {
4612
+ max-block-size: 12rem;
4613
+ }
4614
+
4615
+ [semtic-article-card-header],
4616
+ [semtic-article-card-content] {
4617
+ grid-column: 1;
4618
+ }
4619
+ }
4620
+ }
4621
+
4622
+ &[overview]:not(:has([semtic-article-card-image])) {
4623
+ > [semtic-article-card-link] {
4624
+ padding: 1rem 0;
4625
+ background: transparent;
4626
+ border: 0;
4627
+ border-block-end: 1px solid var(--skirbi-surface-border-final);
4628
+ border-radius: 0;
4629
+ box-shadow: none;
4630
+ }
4631
+
4632
+ &:hover > [semtic-article-card-link],
4633
+ &:focus-within > [semtic-article-card-link] {
4634
+ border-color: var(--skirbi-primary-main);
4635
+ box-shadow: none;
4636
+ transform: none;
4361
4637
  }
4362
4638
  }
4363
4639
 
@@ -4400,7 +4676,9 @@
4400
4676
  * @styles pinta.semtic-pill-box Semtic pill box
4401
4677
  * @description
4402
4678
  *
4403
- * Default compact pill recipe for `<semtic-pill-box>`, including linked pills.
4679
+ * Default compact pill recipe for `<semtic-pill-box>`, including linked
4680
+ * pills. `[live]` and `[breaking]` are color toggles -- documented on the
4681
+ * component since it shipped, but never actually given a color until now.
4404
4682
  */
4405
4683
 
4406
4684
  [skirbi-theme] {
@@ -4413,6 +4691,14 @@
4413
4691
  color: white;
4414
4692
  }
4415
4693
 
4694
+ semtic-pill-box[live] {
4695
+ background: var(--skirbi-info-base, #2f6fed);
4696
+ }
4697
+
4698
+ semtic-pill-box[breaking] {
4699
+ background: var(--skirbi-error-base, #b91c1c);
4700
+ }
4701
+
4416
4702
  semtic-pill-box[url] {
4417
4703
  padding: 0;
4418
4704
  }
@@ -4671,6 +4957,85 @@
4671
4957
  }
4672
4958
  }
4673
4959
 
4960
+ /**
4961
+ * @styles pinta.semtic-nav-page Semtic nav page
4962
+ * @description
4963
+ *
4964
+ * Default recipe for `<semtic-nav-page>` and its `<semtic-nav-page-item>`
4965
+ * sides. The previous item hugs the nav's start edge, the next item its end
4966
+ * edge -- edge to edge within whatever column the nav itself sits in (the
4967
+ * article's content column, typically), not the page's outer aside rails.
4968
+ */
4969
+ [skirbi-theme] {
4970
+ semtic-nav-page > nav {
4971
+ display: flex;
4972
+ justify-content: space-between;
4973
+ gap: 1rem;
4974
+ margin-block-start: 2rem;
4975
+ padding-block-start: 1.5rem;
4976
+ border-block-start: 1px solid var(--skirbi-surface-border-final);
4977
+ }
4978
+
4979
+ semtic-nav-page-item {
4980
+ display: block;
4981
+ min-width: 0;
4982
+ flex: 1 1 0;
4983
+
4984
+ &[next] {
4985
+ text-align: end;
4986
+ }
4987
+ }
4988
+
4989
+ semtic-nav-page-item > a {
4990
+ display: flex;
4991
+ align-items: center;
4992
+ gap: 0.75rem;
4993
+ padding: 0.5rem;
4994
+ margin: -0.5rem;
4995
+ border-radius: 0.75rem;
4996
+ color: inherit;
4997
+ text-decoration: none;
4998
+ transition: background var(--skirbi-transition-duration)
4999
+ var(--skirbi-transition-ease);
5000
+
5001
+ &:hover, &:focus-visible {
5002
+ background: var(--skirbi-surface-bg-final);
5003
+ }
5004
+ }
5005
+
5006
+ semtic-nav-page-item[next] > a {
5007
+ flex-direction: row-reverse;
5008
+ }
5009
+
5010
+ [semtic-nav-page-eyebrow] {
5011
+ display: block;
5012
+ font-size: 0.75rem;
5013
+ text-transform: uppercase;
5014
+ letter-spacing: 0.04em;
5015
+ color: var(--skirbi-text-muted-final);
5016
+ }
5017
+
5018
+ [semtic-nav-page-title] {
5019
+ display: block;
5020
+ font-weight: 600;
5021
+ overflow: hidden;
5022
+ text-overflow: ellipsis;
5023
+ white-space: nowrap;
5024
+ }
5025
+
5026
+ [semtic-nav-page-thumb] {
5027
+ flex: none;
5028
+
5029
+ img {
5030
+ display: block;
5031
+ width: 3.5rem;
5032
+ height: 3.5rem;
5033
+ border-radius: 0.5rem;
5034
+ object-fit: cover;
5035
+ }
5036
+ }
5037
+ }
5038
+
4674
5039
  /**
4675
5040
  * @styles pinta.heading-quote Heading quote
4676
5041
  * @description
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
- "version": "0.0.38"
35
+ "version": "0.0.40"
36
36
  }
Binary file