@atomic-ui/theme 0.12.1 → 0.13.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.
@@ -1,4 +1,4 @@
1
- Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) Archivo-Italic[wdth,wght].ttf: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo)
1
+ Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
Binary file
@@ -1,5 +1,5 @@
1
1
  /*
2
- * The typefaces of Impakt's redesign, @atomic-ui/theme version 0.12.1.
2
+ * The typefaces of Impakt's redesign, @atomic-ui/theme version 0.13.1.
3
3
  * Archivo, IBM Plex Mono and Kalam, Latin, WOFF2, licensed under the SIL Open Font License 1.1.
4
4
  * The licences are fonts/OFL-Archivo.txt, fonts/OFL-IBM-Plex-Mono.txt and fonts/OFL-Kalam.txt.
5
5
  *
@@ -7,8 +7,10 @@
7
7
  * heading face ready before first paint, also preload it:
8
8
  * <link rel="preload" href="/fonts/archivo-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
9
9
  */
10
- @font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
10
+ @font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+221A,U+FEFF,U+FFFD; }
11
11
  @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
12
12
  @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
13
13
  @font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kalam-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
14
14
  @font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/kalam-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
15
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+2190,U+2192,U+221A; }
16
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+2190,U+2192,U+221A; }
package/dist/index.html CHANGED
@@ -78,8 +78,8 @@
78
78
  <button type="button">Add a file</button>
79
79
  <button class="ghost" type="button">Cancel</button>
80
80
  <button class="danger" type="button">Delete</button>
81
- <button class="small" type="button">Small</button>
82
81
  <button class="primary" type="button" disabled>Disabled</button>
82
+ <button type="button" disabled>Not yet</button>
83
83
  </div>
84
84
  </section>
85
85
 
@@ -133,9 +133,22 @@
133
133
  <span class="pill">Draft</span><span class="pill ok">Brief ready</span><span class="pill warn">Needs attention</span
134
134
  ><span class="pill bad">Failed</span><span class="pill info">Reading</span><span class="pill brand">New</span>
135
135
  </p>
136
- <div class="alert ok"><b>Saved.</b> The letter is stored and will not change.</div>
137
- <div class="alert warn"><b>Check this.</b> The insurance policy does not show public liability cover.</div>
138
- <div class="alert bad"><b>That did not work.</b> The file is larger than 50 MB.</div>
136
+ <div class="alert warn">
137
+ <span class="ik-alert-tag">Check</span>
138
+ <p>The deposit is more than five weeks of rent. An adjudicator will ask about it.</p>
139
+ </div>
140
+ <div class="alert warn">
141
+ <p>Claiming the full cost would be betterment. An adjudicator is likely to award the fair share.</p>
142
+ <div class="ik-alert-actions"><button type="button">Claim £252 instead</button></div>
143
+ </div>
144
+ <div class="alert bad">
145
+ <span class="ik-alert-tag">Failed</span>
146
+ <p>The file is larger than 50 MB.</p>
147
+ </div>
148
+ <div class="alert ok">
149
+ <span class="ik-alert-tag">Saved</span>
150
+ <p>The letter is stored and will not change.</p>
151
+ </div>
139
152
  <div class="alert info">The model reads the tender in the background.</div>
140
153
  </div>
141
154
  </section>
@@ -227,7 +240,7 @@
227
240
  ><span class="ik-hint">or choose files. JPG, PNG or HEIC, up to 15 MB each.</span></label
228
241
  >
229
242
  <ul class="ik-files">
230
- <li><span class="ik-file-name">lounge-carpet-checkout.jpg</span><span class="pill ok">Read</span><button class="small ghost">Remove</button></li>
243
+ <li><span class="ik-file-name">lounge-carpet-checkout.jpg</span><span class="pill ok">Read</span><button class="ghost">Remove</button></li>
231
244
  <li>
232
245
  <span class="ik-file-name">kitchen-oven.jpg</span><span class="pill info"><span class="ik-spinner" aria-hidden="true"></span>Reading</span>
233
246
  </li>
@@ -239,7 +252,10 @@
239
252
  </div>
240
253
  <div class="card ik-prose" style="margin-top:16px">
241
254
  <p>A large red wine stain about 40cm across is a spill, not reasonable use. The check-in report and photo show the carpet clean and unmarked.</p>
242
- <blockquote>"Lounge carpet: cream, clean throughout, no marks." <a class="ik-source" href="#">Check-in report, p. 2</a></blockquote>
255
+ <blockquote>
256
+ <p>Lounge carpet: cream, clean throughout, no marks.</p>
257
+ <a class="ik-source" href="#">Check-in report, p. 2</a>
258
+ </blockquote>
243
259
  <p>Fair share: 25% of £800 for a six-year-old carpet with an eight-year life.</p>
244
260
  </div>
245
261
  <div class="ik-empty">
package/dist/theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Impakt product theme, @atomic-ui/theme version 0.12.1.
2
+ * Impakt product theme, @atomic-ui/theme version 0.13.1.
3
3
  * https://github.com/matthill8286/impkt-design-system/tree/main/packages/theme
4
4
  *
5
5
  * Generated from the Impakt brand inputs by @atomic-ui/design-tokens. Do not edit this file:
@@ -17,11 +17,13 @@
17
17
 
18
18
  /* ---------------------------------------------------------------- fonts */
19
19
 
20
- @font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
20
+ @font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+221A,U+FEFF,U+FFFD; }
21
21
  @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
22
22
  @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
23
23
  @font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kalam-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
24
24
  @font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/kalam-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
25
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+2190,U+2192,U+221A; }
26
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); unicode-range: U+2190,U+2192,U+221A; }
25
27
 
26
28
  /* ---------------------------------------------------------- house tokens */
27
29
 
@@ -49,6 +51,7 @@
49
51
  --impakt-color-accent-default: #FFD43B;
50
52
  --impakt-color-accent-hover: #e0bb34;
51
53
  --impakt-color-accent-on: #1a1a1a;
54
+ --impakt-color-accent-on-ink: #ffd43b;
52
55
  --impakt-color-text-default: #111111;
53
56
  --impakt-color-text-muted: #5C5C5C;
54
57
  --impakt-color-text-placeholder: #5C5C5C;
@@ -131,7 +134,7 @@
131
134
  --impakt-font-line-height-relaxed: 1.75;
132
135
  --impakt-font-line-height-body: 1.45;
133
136
  --impakt-font-family-hand: Kalam, Archivo, "Helvetica Neue", Arial, sans-serif;
134
- --impakt-type-display-xl-size: clamp(3.5rem, 1.5741rem + 7.901vw, 7.5rem);
137
+ --impakt-type-display-xl-size: clamp(3.25rem, 1.2037rem + 8.395vw, 7.5rem);
135
138
  --impakt-type-display-xl-line-height: 1;
136
139
  --impakt-type-display-xl-tracking: -0.05em;
137
140
  --impakt-type-display-xl-weight: 600;
@@ -323,6 +326,104 @@
323
326
  --impakt-motion-journey-lift-easing: cubic-bezier(0.2, 0, 0, 1);
324
327
  --impakt-motion-journey-press-duration: 140ms;
325
328
  --impakt-motion-journey-press-easing: cubic-bezier(0.4, 0, 0.2, 1);
329
+ --impakt-button-height: 44px;
330
+ --impakt-button-padding-block: 14px;
331
+ --impakt-button-padding-inline: 20px;
332
+ --impakt-button-gap: 12px;
333
+ --impakt-button-font-size: 1rem;
334
+ --impakt-button-line-height: 1.2;
335
+ --impakt-button-weight: 500;
336
+ --impakt-button-sm-padding-block: 14px;
337
+ --impakt-button-sm-height: 44px;
338
+ --impakt-button-sm-padding-inline: 20px;
339
+ --impakt-button-sm-font-size: 1rem;
340
+ --impakt-button-sm-line-height: 1.2;
341
+ --impakt-button-sm-gap: 12px;
342
+ --impakt-button-arrow-icon: none;
343
+ --impakt-button-solid-edge-width: 0px;
344
+ --impakt-button-arrow-glyph: inline;
345
+ --impakt-button-lg-height: 56px;
346
+ --impakt-button-lg-padding-block: 16px;
347
+ --impakt-button-lg-font-size: 1.125rem;
348
+ --impakt-button-lg-line-height: 1.556;
349
+ --impakt-button-icon-size: 47px;
350
+ --impakt-button-lg-icon-size: 56px;
351
+ --impakt-button-full-justify: space-between;
352
+ --impakt-button-full-align: start;
353
+ --impakt-button-highlight: 0 0 0 0 transparent;
354
+ --impakt-button-edge: 100%;
355
+ --impakt-field-height: 50px;
356
+ --impakt-field-padding-block: 13px;
357
+ --impakt-field-padding-inline: 14px;
358
+ --impakt-field-line-height: 1.5;
359
+ --impakt-field-radius: 0px;
360
+ --impakt-field-edge: 100%;
361
+ --impakt-field-focus-edge: 100%;
362
+ --impakt-field-focus-halo: 0px;
363
+ --impakt-field-label-font: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
364
+ --impakt-field-label-weight: 400;
365
+ --impakt-field-label-space: 8px;
366
+ --impakt-select-appearance: none;
367
+ --impakt-select-caret: block;
368
+ --impakt-select-padding-end: 36px;
369
+ --impakt-select-marker-size: 4px;
370
+ --impakt-tile-padding: 20px;
371
+ --impakt-tile-gap: 10px;
372
+ --impakt-tile-min-height: 0px;
373
+ --impakt-tile-align: flex-start;
374
+ --impakt-tile-edge-width: 1px;
375
+ --impakt-tile-radius: 0px;
376
+ --impakt-tile-fill: 100%;
377
+ --impakt-tile-hover: 4%;
378
+ --impakt-tile-label-font: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
379
+ --impakt-tile-label-size: 0.875rem;
380
+ --impakt-tile-label-weight: 400;
381
+ --impakt-tile-label-tracking: 0em;
382
+ --impakt-tile-label-transform: none;
383
+ --impakt-tile-value-size: clamp(2.5rem, 2.1389rem + 1.481vw, 3.25rem);
384
+ --impakt-tile-value-stat: 1;
385
+ --impakt-tile-value-line-height: 1.04;
386
+ --impakt-tile-value-tracking: -0.04em;
387
+ --impakt-tile-value-weight: 600;
388
+ --impakt-tile-value-space: 0px;
389
+ --impakt-tile-lg-radius: 0px;
390
+ --impakt-tile-lg-label-size: 0.875rem;
391
+ --impakt-tile-lg-label-tracking: 0em;
392
+ --impakt-tile-lg-label-transform: none;
393
+ --impakt-tile-caption-line-height: 1.45;
394
+ --impakt-card-edge: 100%;
395
+ --impakt-filter-chip-height: 35px;
396
+ --impakt-filter-chip-weight: 400;
397
+ --impakt-filter-chip-edge: 100%;
398
+ --impakt-chip-outlined-tracking: 0em;
399
+ --impakt-dialog-edge-width: 1px;
400
+ --impakt-shadow-dialog: none;
401
+ --impakt-dialog-backdrop: rgb(17 17 17 / 0.5);
402
+ --impakt-dialog-backdrop-blur: 0px;
403
+ --impakt-dialog-padding: 24px;
404
+ --impakt-dialog-heading-size: clamp(1.75rem, 1.6296rem + 0.494vw, 2rem);
405
+ --impakt-dialog-heading-line-height: 1.1;
406
+ --impakt-dialog-heading-tracking: -0.03em;
407
+ --impakt-dialog-heading-weight: 600;
408
+ --impakt-accordion-edge: 100%;
409
+ --impakt-accordion-top-edge-width: 1px;
410
+ --impakt-accordion-question-size: 1.5rem;
411
+ --impakt-accordion-question-line-height: 1.15;
412
+ --impakt-accordion-question-tracking: -0.025em;
413
+ --impakt-accordion-question-padding: 32px;
414
+ --impakt-accordion-hover-ink: 100%;
415
+ --impakt-accordion-hover-line: underline;
416
+ --impakt-accordion-plus: block;
417
+ --impakt-accordion-chevron: none;
418
+ --impakt-section-gutter: 20px;
419
+ --impakt-section-padding-2xl: clamp(64px, 10vw, 120px);
420
+ --impakt-accordion-marker-size: 18px;
421
+ --impakt-accordion-marker-stroke: 3px;
422
+ --impakt-accordion-answer-space: 32px;
423
+ --impakt-accordion-answer-pull: calc(-1 * 16px);
424
+ --impakt-accordion-answer-ink: 0%;
425
+ --impakt-accordion-answer-line-height: 1.6;
426
+ --impakt-accordion-answer-width: 48rem;
326
427
  }
327
428
 
328
429
  .impakt-page {
@@ -775,7 +876,7 @@ body {
775
876
  /* -------------------------------------------------------------- buttons */
776
877
  /* The action colour, solid, for the one main action, an ink outline on the card for the rest, and words only for
777
878
  a quiet action. Square and flat: no shadow and no highlight. Pressed is a different tone. Busy or disabled
778
- changes the cursor and the opacity, never the position, so the control does not move while it is used. */
879
+ changes the cursor and the look, never the position, so the control does not move while it is used. */
779
880
  :where(button, .ik-btn) {
780
881
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ik-space-2);
781
882
  min-height: var(--ik-control-height); min-width: var(--ik-target-min);
@@ -789,7 +890,13 @@ body {
789
890
  }
790
891
  :where(button, .ik-btn):hover:not(:disabled) { background: var(--ik-surface-subtle); border-color: var(--ik-ink); }
791
892
  :where(button, .ik-btn):focus-visible { box-shadow: var(--ik-focus-ring); }
792
- :where(button, .ik-btn):disabled, :where(button, .ik-btn)[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
893
+ /* Not yet: a soft fill behind a dashed edge and muted words, the G2 sign for something not there yet. It is never
894
+ faded, so its words still read at 4.5:1 in light and in dark, and the primary turns the same way. */
895
+ :where(button, .ik-btn):disabled, :where(button, .ik-btn)[aria-disabled="true"],
896
+ :where(button.primary, .ik-btn.primary):disabled, :where(button.primary, .ik-btn.primary)[aria-disabled="true"] {
897
+ opacity: 1; cursor: not-allowed;
898
+ color: var(--ik-ink-muted); background: var(--ik-surface-subtle); border-color: var(--ik-border); border-style: dashed;
899
+ }
793
900
  :where(button, .ik-btn)[aria-busy="true"] { cursor: progress; }
794
901
  :where(button.primary, .ik-btn.primary) { background: var(--ik-brand); border-color: var(--ik-brand); color: var(--ik-on-brand); box-shadow: none; }
795
902
  :where(button.primary, .ik-btn.primary):hover:not(:disabled) { background: var(--ik-brand-hover); border-color: var(--ik-brand-hover); color: var(--ik-on-brand); }
@@ -797,11 +904,11 @@ body {
797
904
  :where(button.ghost, .ik-btn.ghost) { background: transparent; border-color: transparent; box-shadow: none; color: var(--ik-ink); }
798
905
  :where(button.ghost, .ik-btn.ghost):hover:not(:disabled) { background: var(--ik-brand-subtle); border-color: transparent; }
799
906
  :where(button.danger, .ik-btn.danger) { color: var(--ik-danger-text); }
800
- :where(button.small, .ik-btn.small) { min-height: 32px; padding: 6px 12px; font-size: var(--ik-text-xs); }
907
+ /* G2 has one button size. A .small button, which 0.12 drew 32px high, is the same 47px button, so two heights never
908
+ sit side by side in a card head. The class is kept so a product's markup still works. */
801
909
  /* A full-width button: the words at the start and a trailing arrow, if there is one, at the far edge. */
802
910
  :where(button.block, .ik-btn.block) { display: flex; width: 100%; justify-content: space-between; text-align: start; }
803
- @media (pointer: coarse) { :where(button.small, .ik-btn.small) { min-height: 40px; } }
804
- @media (forced-colors: active) { :where(button, .ik-btn) { border-color: ButtonBorder; } }
911
+ @media (forced-colors: active) { :where(button, .ik-btn) { border-color: ButtonBorder; } :where(button, .ik-btn):disabled { color: GrayText; border-color: GrayText; } }
805
912
 
806
913
  /* --------------------------------------------------------------- fields */
807
914
  :where(label) { font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.4; color: var(--ik-ink); }
@@ -818,18 +925,58 @@ body {
818
925
  /* The two-band ring, outside the ink border, so the field being typed in is plain at a glance. */
819
926
  input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]):focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ik-ink); box-shadow: var(--ik-focus-ring); }
820
927
  :where(input, select, textarea)::placeholder { color: var(--ik-ink-muted); opacity: 1; }
821
- :where(input, select, textarea):disabled { background: var(--ik-surface-inset); cursor: not-allowed; }
928
+ :where(input, select, textarea):disabled { background-color: var(--ik-surface-inset); cursor: not-allowed; }
822
929
  /* An error thickens the border as well as turning it red, and the message says it in words. */
823
930
  :where(input, select, textarea)[aria-invalid="true"] { border-color: var(--ik-danger); border-width: 2px; }
824
931
  :where(textarea) { min-height: 120px; resize: vertical; }
825
932
  :where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; accent-color: var(--ik-brand); }
933
+ /*
934
+ * The browser's own controls. The G2 kit draws a drop zone for files (.ik-drop) and nothing for the rest, so a
935
+ * checkbox and a radio stay the browser's, in the action colour with the browser's own tick, which keeps its contrast
936
+ * in light, dark and forced colours. A date or month field keeps the browser's picker, drawn in the page's colour
937
+ * scheme so its calendar mark is ink in light and paper in dark.
938
+ */
939
+ :where(input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"])) { color-scheme: inherit; }
940
+ :where(input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"]))::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 1; }
941
+ /* A details element opens with the accordion's "+", which turns to "−", in place of the browser's triangle. */
942
+ :where(details:not(.ik-account)) > :where(summary) { list-style: none; cursor: pointer; }
943
+ :where(details:not(.ik-account)) > :where(summary)::-webkit-details-marker { display: none; }
944
+ :where(details:not(.ik-account)) > :where(summary)::before { content: "+"; display: inline-block; width: 1.25em; font-family: var(--ik-font-mono); font-weight: 500; }
945
+ :where(details[open]:not(.ik-account)) > :where(summary)::before { content: "\2212"; }
826
946
  :where(input[type="file"]) { max-width: 100%; font: inherit; font-size: var(--ik-text-sm); color: var(--ik-ink-muted); }
827
947
  :where(input[type="file"])::file-selector-button {
828
- margin-right: var(--ik-space-3); min-height: 36px; padding: var(--ik-space-1) var(--ik-space-4);
829
- font: inherit; font-weight: 500; color: var(--ik-ink); background: var(--ik-surface-card);
948
+ margin-right: var(--ik-space-3); min-height: 47px; padding: 14px 20px;
949
+ font: inherit; font-size: var(--ik-text-md); font-weight: 500; line-height: 1.2; color: var(--ik-ink); background: var(--ik-surface-card);
830
950
  border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-md); cursor: pointer;
831
951
  }
952
+ /*
953
+ * A select drawn as impakt-select is: the same box, and under the Impakt brand a small "▾" in the
954
+ * text colour after the words in place of the browser's arrow (G2, frame 37:492). The marker is
955
+ * two halves of a square drawn in currentColor, so it follows the text in light and in dark; in
956
+ * forced colours the browser's own arrow is drawn in the system's colours. A brand whose select.appearance is auto keeps the browser's own arrow, and its
957
+ * select.marker-size of 0px draws nothing.
958
+ */
959
+ :where(select:not([multiple], [size])) {
960
+ min-height: var(--impakt-field-height, 44px); line-height: var(--impakt-field-line-height, 1.2);
961
+ padding-right: var(--impakt-select-padding-end, 14px);
962
+ appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto);
963
+ background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
964
+ background-position: right calc(14px + var(--impakt-select-marker-size, 0px)) center, right 14px center;
965
+ background-size: var(--impakt-select-marker-size, 0px) var(--impakt-select-marker-size, 0px);
966
+ background-repeat: no-repeat;
967
+ cursor: pointer;
968
+ }
969
+ :where(select:not([multiple], [size])):disabled { cursor: not-allowed; }
970
+ /* Forced colours drop a drawn gradient, so there the browser draws its own arrow, in the system's colours. */
971
+ @media (forced-colors: active) { :where(select:not([multiple], [size])) { appearance: auto; -webkit-appearance: auto; background-image: none; } }
832
972
  .ik-field { display: grid; gap: 8px; margin-bottom: var(--ik-space-4); }
973
+ /*
974
+ * Fields side by side keep their boxes on one line, as G2 does (37:419), when a label wraps to two lines or has a hint:
975
+ * each field sinks to the foot of its row. .ik-fields is the row; a product's own .grid of label-and-field cells gets
976
+ * the same.
977
+ */
978
+ .ik-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 var(--ik-space-4); align-items: end; }
979
+ :where(.grid) > :has(> label + :is(input, select, textarea)) { align-self: end; }
833
980
  .ik-hint { font-size: var(--ik-text-xs); color: var(--ik-ink-muted); font-weight: 400; }
834
981
  /* A phone zooms into any field under 16px, so fields stay at 16px there. */
835
982
  @media (max-width: 640px) { :where(input, select, textarea) { font-size: 16px; } }
@@ -893,8 +1040,10 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
893
1040
  .pill, .ik-pill {
894
1041
  display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline;
895
1042
  padding: 3px 8px; border-radius: var(--ik-radius-md);
896
- font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.4; white-space: nowrap;
1043
+ font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.4;
897
1044
  color: var(--ik-ink); background: var(--ik-surface-card); border: 1px solid var(--ik-ink);
1045
+ /* A long pill, such as "Met on time, Mon, 14 Dec 2026" in a narrow tile, wraps inside its box rather than being cut off. */
1046
+ max-width: 100%; overflow-wrap: anywhere; text-align: start;
898
1047
  }
899
1048
  .pill:is(.ok, .warn, .bad, .info, .brand)::before, .ik-pill:is(.ok, .warn, .bad, .info, .brand)::before {
900
1049
  content: ""; flex: none; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; background: var(--ik-ink);
@@ -910,19 +1059,53 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
910
1059
  @media (forced-colors: active) { .pill, .ik-pill { border-color: CanvasText; } .pill::before, .ik-pill::before { forced-color-adjust: none; background: CanvasText !important; } }
911
1060
 
912
1061
  /* --------------------------------------------------------------- alerts */
913
- /* A tint with a strong edge on the leading side. The text stays in ink, which reads on every
914
- tint, and the edge carries the tone. */
1062
+ /*
1063
+ * The G2 message (33:494, 37:452): a square block with a 1px ink edge and the words in ink, and an optional tag in the
1064
+ * code face before them, such as "Check". Inside a tool yellow means "this needs your attention", so .warn is the solid
1065
+ * accent, and it stays yellow with ink words in dark too (48:696). The other tones keep the shape on the card colour and
1066
+ * carry their tone in the tag's word and dot, never in a tint alone.
1067
+ *
1068
+ * <div class="alert warn"><span class="ik-alert-tag">Check</span><p>The deposit is more than five weeks of rent.</p></div>
1069
+ *
1070
+ * With a tag, or with its actions in .ik-alert-actions, the message lays its parts in a row: the tag, the words, then the
1071
+ * actions at the far end. Hold the words in one element then, such as a <p>.
1072
+ */
915
1073
  .alert, .ik-alert {
916
- padding: var(--ik-space-3) var(--ik-space-4); margin: var(--ik-space-2) 0;
917
- border-radius: var(--ik-radius-md); border-inline-start: 4px solid var(--ik-border);
918
- background: var(--ik-surface-inset); color: var(--ik-ink);
1074
+ --ik-alert-ink: var(--ik-ink);
1075
+ padding: 14px 16px; margin: var(--ik-space-2) 0;
1076
+ border: 1px solid var(--ik-alert-ink); border-radius: 0;
1077
+ background: var(--ik-surface-card); color: var(--ik-alert-ink);
1078
+ font-size: var(--ik-text-md); line-height: 1.45;
919
1079
  box-shadow: none;
920
1080
  }
921
- .alert.ok, .ik-alert.ok { background: var(--ik-success-subtle); border-color: var(--ik-success); }
922
- .alert.warn, .ik-alert.warn { background: var(--ik-warning-subtle); border-color: var(--ik-warning); }
923
- .alert.bad, .ik-alert.bad { background: var(--ik-danger-subtle); border-color: var(--ik-danger); }
924
- .alert.info, .ik-alert.info { background: var(--ik-info-subtle); border-color: var(--ik-info); }
925
- @media (forced-colors: active) { .alert, .ik-alert { border: 1px solid CanvasText; border-inline-start-width: 4px; } }
1081
+ .alert.small, .ik-alert.small { font-size: var(--ik-text-sm); }
1082
+ .alert:has(> :is(.ik-alert-tag, .ik-alert-actions)), .ik-alert:has(> :is(.ik-alert-tag, .ik-alert-actions)) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
1083
+ :where(.alert, .ik-alert) > :where(p) { margin: 0; }
1084
+ :where(.alert, .ik-alert):has(> :is(.ik-alert-tag, .ik-alert-actions)) > :not(.ik-alert-tag, .ik-alert-actions) { flex: 1 1 10rem; min-width: 0; }
1085
+ .ik-alert-tag {
1086
+ display: inline-flex; align-items: center; gap: 6px; flex: none; vertical-align: baseline;
1087
+ padding: 3px 8px; margin-inline-end: 4px;
1088
+ font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.4; white-space: nowrap;
1089
+ color: var(--ik-surface-card); background: var(--ik-alert-ink); border: 1px solid var(--ik-alert-ink);
1090
+ }
1091
+ .ik-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
1092
+ /* Yellow: the one thing a person must read. The accent and the ink are the same in light and dark. */
1093
+ .alert.warn, .ik-alert.warn { --ik-alert-ink: var(--ik-on-accent); background: var(--ik-accent); }
1094
+ .alert.warn .ik-alert-tag, .ik-alert.warn .ik-alert-tag { color: #FFFFFF; }
1095
+ :where(.alert.warn, .ik-alert.warn) :where(a) { color: var(--ik-on-accent); }
1096
+ /* An action on the yellow is the filled ink button (37:526), in both themes. */
1097
+ :where(.alert.warn, .ik-alert.warn) :where(button, .ik-btn) { color: #FFFFFF; background: var(--ik-on-accent); border-color: var(--ik-on-accent); }
1098
+ :where(.alert.warn, .ik-alert.warn) :where(button, .ik-btn):hover:not(:disabled) { color: #FFFFFF; background: #2A2A2A; border-color: #2A2A2A; }
1099
+ :where(.alert.warn, .ik-alert.warn) :where(button, .ik-btn):focus-visible { box-shadow: 0 0 0 2px var(--ik-accent), 0 0 0 4px var(--ik-on-accent); }
1100
+ /* The other tones: the same shape on the card, the tone in the tag's dot. A failure ("Failed") is red, done is green. */
1101
+ .alert:is(.bad, .ok, .info) .ik-alert-tag::before, .ik-alert:is(.bad, .ok, .info) .ik-alert-tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ik-surface-card); }
1102
+ .alert.bad .ik-alert-tag::before, .ik-alert.bad .ik-alert-tag::before { background: var(--ik-danger); }
1103
+ .alert.ok .ik-alert-tag::before, .ik-alert.ok .ik-alert-tag::before { background: var(--ik-verified); }
1104
+ .alert.bad, .ik-alert.bad { border-width: 2px; padding: 13px 15px; }
1105
+ @media (forced-colors: active) {
1106
+ .alert, .ik-alert { border: 1px solid CanvasText; }
1107
+ .ik-alert-tag { forced-color-adjust: none; color: Canvas; background: CanvasText; border-color: CanvasText; }
1108
+ }
926
1109
 
927
1110
  /* --------------------------------------------------------------- tables */
928
1111
  :where(table) { width: 100%; border-collapse: collapse; font-size: var(--ik-text-sm); }
@@ -984,8 +1167,11 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
984
1167
  .ik-back { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ik-target-min); margin-bottom: var(--ik-space-3); font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink); text-decoration: none; }
985
1168
  .ik-back::before { content: "\2190"; }
986
1169
  .ik-back:hover { color: var(--ik-ink); text-decoration: underline; }
987
- .ik-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: var(--ik-space-3) 0 0; padding: 0; list-style: none; font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); line-height: 1.4; color: var(--ik-ink-muted); }
988
- .ik-facts > * + *::before { content: "\00B7"; padding-inline: 12px; }
1170
+ /* The facts are divided by a "·". Every fact carries one before it, pulled back into the gap, and the line clips what
1171
+ falls before its start, so a fact that wraps to a new line starts the line clean, with no dangling "·". */
1172
+ .ik-facts { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: var(--ik-space-3) 0 0; padding: 0; list-style: none; overflow-x: clip; font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); line-height: 1.4; color: var(--ik-ink-muted); }
1173
+ .ik-facts > * { margin-inline-start: -28px; }
1174
+ .ik-facts > *::before { content: "\00B7"; display: inline-block; width: 28px; text-align: center; }
989
1175
  .ik-facts strong { color: var(--ik-ink-muted); font-weight: 400; }
990
1176
  .ik-page-head .ik-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }
991
1177
 
@@ -997,32 +1183,39 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
997
1183
  /* ---------------------------------------------------------------- steps */
998
1184
  /* The stages of a job, in order, each numbered, with done, current and waiting told apart by
999
1185
  the mark and by words, never by colour alone. Use an <ol> whose items hold a link or button,
1000
- aria-current="step" on the current one, and a .ik-step-hint saying what blocks the next. */
1001
- .ik-steps { display: flex; gap: 0; margin: 0 0 var(--ik-space-5); padding: 0; list-style: none; counter-reset: ik-step; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ik-line-soft); }
1002
- .ik-steps::-webkit-scrollbar { display: none; }
1003
- .ik-steps > li { flex: none; counter-increment: ik-step; }
1004
- /* G2 stage stepper: a two-digit mono number and the stage's name, the current stage underlined in ink. */
1186
+ and aria-current="step" on the current one. */
1187
+ /*
1188
+ * G2 stage stepper (33:471): a two-digit mono number and the stage's name, a soft rule under each stage that ends with
1189
+ * the last one, and the current stage underlined in ink. A done stage keeps a "√" before its number. A .ik-step-hint,
1190
+ * such as "5 of 9 sections", is read to a screen reader but not drawn; .ik-steps.hints draws it under the name.
1191
+ * On a narrow screen the stages wrap onto a second row, each with its own rule, so every stage shows.
1192
+ */
1193
+ .ik-steps { display: flex; flex-wrap: wrap; gap: 0; width: max-content; max-width: 100%; margin: 0 0 var(--ik-space-5); padding: 0; list-style: none; counter-reset: ik-step; }
1194
+ .ik-steps > li { flex: none; counter-increment: ik-step; border-bottom: 1px solid var(--ik-line-soft); }
1005
1195
  .ik-steps > li > :where(a, button) {
1006
1196
  display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 10px;
1007
- min-height: 44px; padding: 14px 28px 14px 0; margin-bottom: -1px; text-align: left;
1197
+ min-height: 44px; min-width: 0; padding: 14px 28px 14px 0; margin-bottom: -1px; text-align: left;
1008
1198
  font: 500 16px/1.2 var(--ik-font, inherit); color: var(--ik-ink-muted); text-decoration: none;
1009
1199
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none;
1010
1200
  }
1011
1201
  .ik-steps > li > :where(a, button)::before {
1012
1202
  content: counter(ik-step, decimal-leading-zero); font: 400 14px/1.4 var(--ik-font-mono, ui-monospace, monospace); color: var(--ik-ink-muted);
1013
1203
  }
1014
- .ik-steps .ik-step-hint { grid-column: 2; font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink-muted); }
1015
- /* A done stage keeps a tick before its number. The tick is decoration: say "done" in the item's words for a screen reader. */
1016
- .ik-steps > li.done > :where(a, button)::before { content: "\2713\00a0" counter(ik-step, decimal-leading-zero); color: var(--ik-ink); }
1204
+ .ik-steps .ik-step-hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
1205
+ .ik-steps.hints .ik-step-hint { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; grid-column: 2; font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink-muted); }
1206
+ /* A done stage keeps the kit's "√" before its number. The mark is decoration: say "done" in the item's words for a screen reader. */
1207
+ .ik-steps > li.done > :where(a, button)::before { content: "\221A\00a0" counter(ik-step, decimal-leading-zero); color: var(--ik-ink); }
1017
1208
  .ik-steps > li > [aria-current="step"], .ik-steps > li > [aria-selected="true"] { color: var(--ik-ink); border-bottom-color: var(--ik-ink); }
1018
1209
  .ik-steps > li > [aria-current="step"]::before, .ik-steps > li > [aria-selected="true"]::before { color: var(--ik-ink); }
1019
- .ik-steps > li > :where(a, button):hover:not(:disabled) { color: var(--ik-ink); }
1020
- .ik-steps > li > :where(a, button):disabled, .ik-steps > li > [aria-disabled="true"] { opacity: 1; color: var(--ik-ink-muted); }
1210
+ /* Pointing or clicking changes only the words, never the fill: the kit has no filled stage. */
1211
+ .ik-steps > li > :where(a, button):hover:not(:disabled), .ik-steps > li > :where(a, button):active:not(:disabled) { color: var(--ik-ink); background: none; border-color: transparent; }
1212
+ .ik-steps > li > :is([aria-current="step"], [aria-selected="true"]):is(:hover, :active) { border-bottom-color: var(--ik-ink); }
1213
+ .ik-steps > li > :where(a, button):disabled, .ik-steps > li > [aria-disabled="true"] { opacity: 1; color: var(--ik-ink-muted); background: none; border-style: solid; border-color: transparent; }
1021
1214
  .ik-steps > li > :focus-visible { outline: 2px solid var(--ik-ink); outline-offset: -2px; box-shadow: none; }
1022
1215
  @media (max-width: 640px) {
1023
1216
  .ik-steps > li > :where(a, button) { padding-right: 20px; font-size: 14px; }
1024
- .ik-steps .ik-step-hint { display: none; }
1025
1217
  }
1218
+ @media (forced-colors: active) { .ik-steps > li > [aria-current="step"] { border-bottom-color: CanvasText; } }
1026
1219
 
1027
1220
  /* --------------------------------------------------------------- empty */
1028
1221
  /* What a screen says before there is anything on it: what this place is for, and the one
@@ -1053,18 +1246,20 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
1053
1246
  .ik-files .ik-file-name { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
1054
1247
 
1055
1248
  /* ------------------------------------------------------------ progress */
1056
- /* A long AI step: what it is doing, how far it has got when that is known, and a bar that
1057
- moves. Without a value the bar sweeps; reduced motion keeps it still. */
1058
- .ik-progress { display: grid; gap: 6px; padding: var(--ik-space-3) var(--ik-space-4); background: var(--ik-surface-inset); border-radius: var(--ik-radius-md); }
1059
- .ik-progress-label { display: flex; justify-content: space-between; gap: var(--ik-space-3); font-size: var(--ik-text-sm); font-weight: 600; }
1249
+ /* A long AI step: what it is doing, how far it has got when that is known, and a bar that moves. The G2 bar (33:495) is
1250
+ bare: an 8px ink fill on the soft track, square at both ends, with no box round it. The words above it are the quiet
1251
+ code-face meta. Without a value the bar sweeps; reduced motion keeps it still. */
1252
+ .ik-progress { display: grid; gap: 8px; padding: 0; background: none; border-radius: 0; }
1253
+ .ik-progress-label { display: flex; justify-content: space-between; gap: var(--ik-space-3); font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.4; color: var(--ik-ink); }
1060
1254
  .ik-progress-label span:last-child { font-weight: 400; color: var(--ik-ink-muted); font-variant-numeric: tabular-nums; }
1061
- .ik-progress progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--ik-radius-full); background: var(--ik-surface-card); overflow: hidden; color: var(--ik-brand); }
1062
- .ik-progress progress::-webkit-progress-bar { background: var(--ik-surface-card); border-radius: var(--ik-radius-full); }
1063
- .ik-progress progress::-webkit-progress-value { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
1064
- .ik-progress progress::-moz-progress-bar { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
1065
- .ik-progress progress:indeterminate { background: linear-gradient(90deg, var(--ik-surface-card) 0 30%, var(--ik-brand) 30% 55%, var(--ik-surface-card) 55%) 0 0 / 200% 100%; animation: ik-sweep 1.4s linear infinite; }
1255
+ .ik-progress progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 0; background: var(--ik-line-soft); overflow: hidden; color: var(--ik-ink); }
1256
+ .ik-progress progress::-webkit-progress-bar { background: var(--ik-line-soft); border-radius: 0; }
1257
+ .ik-progress progress::-webkit-progress-value { background: var(--ik-ink); border-radius: 0; }
1258
+ .ik-progress progress::-moz-progress-bar { background: var(--ik-ink); border-radius: 0; }
1259
+ .ik-progress progress:indeterminate { background: linear-gradient(90deg, var(--ik-line-soft) 0 30%, var(--ik-ink) 30% 55%, var(--ik-line-soft) 55%) 0 0 / 200% 100%; animation: ik-sweep 1.4s linear infinite; }
1066
1260
  .ik-progress progress:indeterminate::-webkit-progress-bar { background: transparent; }
1067
1261
  @keyframes ik-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
1262
+ @media (forced-colors: active) { .ik-progress progress { border: 1px solid CanvasText; } }
1068
1263
  /* A small turning ring for a button or a status word that is busy. */
1069
1264
  .ik-spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ik-spin 0.8s linear infinite; vertical-align: -0.15em; }
1070
1265
  @keyframes ik-spin { to { transform: rotate(360deg); } }
@@ -1079,15 +1274,27 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
1079
1274
  .ik-prose :where(ul, ol) { padding-inline-start: 1.25em; }
1080
1275
  .ik-prose li + li { margin-top: 0.35em; }
1081
1276
  .ik-prose blockquote, .ik-quote { margin-inline: 0; padding: 2px 0 2px var(--ik-space-4); font-family: var(--ik-font); font-size: var(--ik-text-md); font-style: normal; line-height: 1.45; color: var(--ik-ink-muted); background: none; border-inline-start: 3px solid var(--ik-ink); border-radius: 0; quotes: "\201C" "\201D" "\2018" "\2019"; }
1082
- /* Curly quotes round what was quoted, whether it is one run of words or a few paragraphs. */
1083
- .ik-quote:not(:has(> p))::before, .ik-prose blockquote:not(:has(> p))::before, .ik-quote > p:first-child::before, .ik-prose blockquote > p:first-child::before { content: open-quote; }
1084
- .ik-quote:not(:has(> p))::after, .ik-prose blockquote:not(:has(> p))::after, .ik-quote > p:last-child::after, .ik-prose blockquote > p:last-child::after { content: close-quote; }
1085
- /* A quote with its source under it: the last paragraph still closes the quote, and the source sits on its own line. */
1086
- .ik-quote > p:last-of-type::after { content: close-quote; }
1277
+ /*
1278
+ * Curly quotes round what was quoted (33:393, 39:678): one pair, then the source chip on its own line under the words.
1279
+ * The theme adds the marks, so write the words without them:
1280
+ * - words held in a <p> (or several): the first opens the quote and the last closes it, and a chip after them sits
1281
+ * outside the marks;
1282
+ * - words straight in the quote, with no chip: the quote opens and closes round them;
1283
+ * - words straight in the quote with a chip after them: the theme adds no marks, since it could only close the quote
1284
+ * after the chip, so write the marks in the words, or hold the words in a <p>;
1285
+ * - .has-marks: the words already carry their marks, so the theme adds none.
1286
+ */
1287
+ :is(.ik-quote, .ik-prose blockquote):not(.has-marks):not(:has(> :is(p, .ik-source, impakt-source)))::before { content: open-quote; }
1288
+ :is(.ik-quote, .ik-prose blockquote):not(.has-marks):not(:has(> :is(p, .ik-source, impakt-source)))::after { content: close-quote; }
1289
+ :is(.ik-quote, .ik-prose blockquote):not(.has-marks) > p:first-of-type::before { content: open-quote; }
1290
+ :is(.ik-quote, .ik-prose blockquote):not(.has-marks) > p:last-of-type::after { content: close-quote; }
1087
1291
  .ik-quote > p { margin: 0; }
1088
- .ik-quote > :where(impakt-source, .ik-source) { display: inline-flex; margin-top: 8px; }
1292
+ .ik-quote > p + p { margin-top: 0.6em; }
1293
+ /* The source chip sits under the words, outside the marks. */
1294
+ :is(.ik-quote, .ik-prose blockquote) > :where(impakt-source, .ik-source) { display: flex; width: fit-content; margin-top: 8px; }
1089
1295
  .ik-list > li .ik-quote { margin-top: 12px; }
1090
- /* Where an answer came from: a page, an evidence file, a moment in a call or a rule. A small square chip in the code face. */
1296
+ /* Where an answer came from: a page, an evidence file, a moment in a call or a rule. A small square chip in the code face,
1297
+ on the soft paper with an ink edge, as the kit draws it (33:393); in dark the soft surface is the dark soft grey. */
1091
1298
  .ik-source { display: inline-flex; align-items: center; gap: 4px; padding: 1px 5px; font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-style: normal; font-weight: 500; line-height: 1.4; color: var(--ik-ink); background: var(--ik-surface-subtle); border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-sm); text-decoration: none; white-space: nowrap; }
1092
1299
  a.ik-source:hover, button.ik-source:hover { color: var(--ik-ink); text-decoration: underline; }
1093
1300
  button.ik-source { min-height: 0; min-width: 0; padding: 1px 5px; font-size: var(--ik-text-xs); border: 1px solid var(--ik-ink); box-shadow: none; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ui/theme",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "description": "The Impakt product theme: one stylesheet and the Archivo and IBM Plex Mono fonts for the plain HTML products, generated from the Impakt brand by @atomic-ui/design-tokens.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "tsx": "^4.16.0",
23
23
  "typescript": "^5.5.0",
24
24
  "vitest": "^2.0.0",
25
- "@atomic-ui/design-tokens": "^0.12.1"
25
+ "@atomic-ui/design-tokens": "^0.13.1"
26
26
  },
27
27
  "files": [
28
28
  "dist",