@atomic-ui/theme 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fonts-noire.css +1 -1
- package/dist/index.html +22 -6
- package/dist/theme.css +254 -51
- package/package.json +2 -2
package/dist/fonts-noire.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* The typefaces of Impakt's redesign, @atomic-ui/theme version 0.
|
|
2
|
+
* The typefaces of Impakt's redesign, @atomic-ui/theme version 0.13.0.
|
|
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
|
*
|
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
|
|
137
|
-
|
|
138
|
-
|
|
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="
|
|
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>
|
|
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.
|
|
2
|
+
* Impakt product theme, @atomic-ui/theme version 0.13.0.
|
|
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:
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
--impakt-color-accent-default: #FFD43B;
|
|
50
50
|
--impakt-color-accent-hover: #e0bb34;
|
|
51
51
|
--impakt-color-accent-on: #1a1a1a;
|
|
52
|
+
--impakt-color-accent-on-ink: #ffd43b;
|
|
52
53
|
--impakt-color-text-default: #111111;
|
|
53
54
|
--impakt-color-text-muted: #5C5C5C;
|
|
54
55
|
--impakt-color-text-placeholder: #5C5C5C;
|
|
@@ -131,7 +132,7 @@
|
|
|
131
132
|
--impakt-font-line-height-relaxed: 1.75;
|
|
132
133
|
--impakt-font-line-height-body: 1.45;
|
|
133
134
|
--impakt-font-family-hand: Kalam, Archivo, "Helvetica Neue", Arial, sans-serif;
|
|
134
|
-
--impakt-type-display-xl-size: clamp(3.
|
|
135
|
+
--impakt-type-display-xl-size: clamp(3.25rem, 1.2037rem + 8.395vw, 7.5rem);
|
|
135
136
|
--impakt-type-display-xl-line-height: 1;
|
|
136
137
|
--impakt-type-display-xl-tracking: -0.05em;
|
|
137
138
|
--impakt-type-display-xl-weight: 600;
|
|
@@ -323,6 +324,102 @@
|
|
|
323
324
|
--impakt-motion-journey-lift-easing: cubic-bezier(0.2, 0, 0, 1);
|
|
324
325
|
--impakt-motion-journey-press-duration: 140ms;
|
|
325
326
|
--impakt-motion-journey-press-easing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
327
|
+
--impakt-button-height: 44px;
|
|
328
|
+
--impakt-button-padding-block: 14px;
|
|
329
|
+
--impakt-button-padding-inline: 20px;
|
|
330
|
+
--impakt-button-gap: 12px;
|
|
331
|
+
--impakt-button-font-size: 1rem;
|
|
332
|
+
--impakt-button-line-height: 1.2;
|
|
333
|
+
--impakt-button-weight: 500;
|
|
334
|
+
--impakt-button-sm-padding-block: 14px;
|
|
335
|
+
--impakt-button-sm-height: 44px;
|
|
336
|
+
--impakt-button-sm-padding-inline: 20px;
|
|
337
|
+
--impakt-button-sm-font-size: 1rem;
|
|
338
|
+
--impakt-button-sm-line-height: 1.2;
|
|
339
|
+
--impakt-button-sm-gap: 12px;
|
|
340
|
+
--impakt-button-arrow-icon: none;
|
|
341
|
+
--impakt-button-solid-edge-width: 0px;
|
|
342
|
+
--impakt-button-arrow-glyph: inline;
|
|
343
|
+
--impakt-button-lg-height: 56px;
|
|
344
|
+
--impakt-button-lg-padding-block: 16px;
|
|
345
|
+
--impakt-button-lg-font-size: 1.125rem;
|
|
346
|
+
--impakt-button-lg-line-height: 1.556;
|
|
347
|
+
--impakt-button-icon-size: 47px;
|
|
348
|
+
--impakt-button-lg-icon-size: 56px;
|
|
349
|
+
--impakt-button-full-justify: space-between;
|
|
350
|
+
--impakt-button-full-align: start;
|
|
351
|
+
--impakt-button-highlight: 0 0 0 0 transparent;
|
|
352
|
+
--impakt-button-edge: 100%;
|
|
353
|
+
--impakt-field-height: 50px;
|
|
354
|
+
--impakt-field-padding-block: 13px;
|
|
355
|
+
--impakt-field-padding-inline: 14px;
|
|
356
|
+
--impakt-field-line-height: 1.5;
|
|
357
|
+
--impakt-field-radius: 0px;
|
|
358
|
+
--impakt-field-edge: 100%;
|
|
359
|
+
--impakt-field-focus-edge: 100%;
|
|
360
|
+
--impakt-field-focus-halo: 0px;
|
|
361
|
+
--impakt-field-label-font: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
362
|
+
--impakt-field-label-weight: 400;
|
|
363
|
+
--impakt-field-label-space: 8px;
|
|
364
|
+
--impakt-select-appearance: none;
|
|
365
|
+
--impakt-select-caret: block;
|
|
366
|
+
--impakt-select-padding-end: 36px;
|
|
367
|
+
--impakt-select-marker-size: 4px;
|
|
368
|
+
--impakt-tile-padding: 20px;
|
|
369
|
+
--impakt-tile-gap: 10px;
|
|
370
|
+
--impakt-tile-min-height: 0px;
|
|
371
|
+
--impakt-tile-align: flex-start;
|
|
372
|
+
--impakt-tile-edge-width: 1px;
|
|
373
|
+
--impakt-tile-radius: 0px;
|
|
374
|
+
--impakt-tile-fill: 100%;
|
|
375
|
+
--impakt-tile-hover: 4%;
|
|
376
|
+
--impakt-tile-label-font: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
377
|
+
--impakt-tile-label-size: 0.875rem;
|
|
378
|
+
--impakt-tile-label-weight: 400;
|
|
379
|
+
--impakt-tile-label-tracking: 0em;
|
|
380
|
+
--impakt-tile-label-transform: none;
|
|
381
|
+
--impakt-tile-value-size: clamp(2.5rem, 2.1389rem + 1.481vw, 3.25rem);
|
|
382
|
+
--impakt-tile-value-stat: 1;
|
|
383
|
+
--impakt-tile-value-line-height: 1.04;
|
|
384
|
+
--impakt-tile-value-tracking: -0.04em;
|
|
385
|
+
--impakt-tile-value-weight: 600;
|
|
386
|
+
--impakt-tile-value-space: 0px;
|
|
387
|
+
--impakt-tile-lg-radius: 0px;
|
|
388
|
+
--impakt-tile-lg-label-size: 0.875rem;
|
|
389
|
+
--impakt-tile-lg-label-tracking: 0em;
|
|
390
|
+
--impakt-tile-lg-label-transform: none;
|
|
391
|
+
--impakt-card-edge: 100%;
|
|
392
|
+
--impakt-filter-chip-height: 35px;
|
|
393
|
+
--impakt-filter-chip-weight: 400;
|
|
394
|
+
--impakt-filter-chip-edge: 100%;
|
|
395
|
+
--impakt-dialog-edge-width: 1px;
|
|
396
|
+
--impakt-shadow-dialog: none;
|
|
397
|
+
--impakt-dialog-backdrop: rgb(17 17 17 / 0.5);
|
|
398
|
+
--impakt-dialog-backdrop-blur: 0px;
|
|
399
|
+
--impakt-dialog-padding: 24px;
|
|
400
|
+
--impakt-dialog-heading-size: clamp(1.75rem, 1.6296rem + 0.494vw, 2rem);
|
|
401
|
+
--impakt-dialog-heading-line-height: 1.1;
|
|
402
|
+
--impakt-dialog-heading-tracking: -0.03em;
|
|
403
|
+
--impakt-dialog-heading-weight: 600;
|
|
404
|
+
--impakt-accordion-edge: 100%;
|
|
405
|
+
--impakt-accordion-top-edge-width: 1px;
|
|
406
|
+
--impakt-accordion-question-size: 1.5rem;
|
|
407
|
+
--impakt-accordion-question-line-height: 1.15;
|
|
408
|
+
--impakt-accordion-question-tracking: -0.025em;
|
|
409
|
+
--impakt-accordion-question-padding: 32px;
|
|
410
|
+
--impakt-accordion-hover-ink: 100%;
|
|
411
|
+
--impakt-accordion-hover-line: underline;
|
|
412
|
+
--impakt-accordion-plus: block;
|
|
413
|
+
--impakt-accordion-chevron: none;
|
|
414
|
+
--impakt-section-gutter: 20px;
|
|
415
|
+
--impakt-section-padding-2xl: clamp(64px, 10vw, 120px);
|
|
416
|
+
--impakt-accordion-marker-size: 18px;
|
|
417
|
+
--impakt-accordion-marker-stroke: 3px;
|
|
418
|
+
--impakt-accordion-answer-space: 32px;
|
|
419
|
+
--impakt-accordion-answer-pull: calc(-1 * 16px);
|
|
420
|
+
--impakt-accordion-answer-ink: 0%;
|
|
421
|
+
--impakt-accordion-answer-line-height: 1.6;
|
|
422
|
+
--impakt-accordion-answer-width: 48rem;
|
|
326
423
|
}
|
|
327
424
|
|
|
328
425
|
.impakt-page {
|
|
@@ -775,7 +872,7 @@ body {
|
|
|
775
872
|
/* -------------------------------------------------------------- buttons */
|
|
776
873
|
/* The action colour, solid, for the one main action, an ink outline on the card for the rest, and words only for
|
|
777
874
|
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
|
|
875
|
+
changes the cursor and the look, never the position, so the control does not move while it is used. */
|
|
779
876
|
:where(button, .ik-btn) {
|
|
780
877
|
display: inline-flex; align-items: center; justify-content: center; gap: var(--ik-space-2);
|
|
781
878
|
min-height: var(--ik-control-height); min-width: var(--ik-target-min);
|
|
@@ -789,7 +886,13 @@ body {
|
|
|
789
886
|
}
|
|
790
887
|
:where(button, .ik-btn):hover:not(:disabled) { background: var(--ik-surface-subtle); border-color: var(--ik-ink); }
|
|
791
888
|
:where(button, .ik-btn):focus-visible { box-shadow: var(--ik-focus-ring); }
|
|
792
|
-
|
|
889
|
+
/* Not yet: a soft fill behind a dashed edge and muted words, the G2 sign for something not there yet. It is never
|
|
890
|
+
faded, so its words still read at 4.5:1 in light and in dark, and the primary turns the same way. */
|
|
891
|
+
:where(button, .ik-btn):disabled, :where(button, .ik-btn)[aria-disabled="true"],
|
|
892
|
+
:where(button.primary, .ik-btn.primary):disabled, :where(button.primary, .ik-btn.primary)[aria-disabled="true"] {
|
|
893
|
+
opacity: 1; cursor: not-allowed;
|
|
894
|
+
color: var(--ik-ink-muted); background: var(--ik-surface-subtle); border-color: var(--ik-border); border-style: dashed;
|
|
895
|
+
}
|
|
793
896
|
:where(button, .ik-btn)[aria-busy="true"] { cursor: progress; }
|
|
794
897
|
:where(button.primary, .ik-btn.primary) { background: var(--ik-brand); border-color: var(--ik-brand); color: var(--ik-on-brand); box-shadow: none; }
|
|
795
898
|
: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 +900,11 @@ body {
|
|
|
797
900
|
:where(button.ghost, .ik-btn.ghost) { background: transparent; border-color: transparent; box-shadow: none; color: var(--ik-ink); }
|
|
798
901
|
:where(button.ghost, .ik-btn.ghost):hover:not(:disabled) { background: var(--ik-brand-subtle); border-color: transparent; }
|
|
799
902
|
:where(button.danger, .ik-btn.danger) { color: var(--ik-danger-text); }
|
|
800
|
-
|
|
903
|
+
/* G2 has one button size. A .small button, which 0.12 drew 32px high, is the same 47px button, so two heights never
|
|
904
|
+
sit side by side in a card head. The class is kept so a product's markup still works. */
|
|
801
905
|
/* A full-width button: the words at the start and a trailing arrow, if there is one, at the far edge. */
|
|
802
906
|
:where(button.block, .ik-btn.block) { display: flex; width: 100%; justify-content: space-between; text-align: start; }
|
|
803
|
-
@media (
|
|
804
|
-
@media (forced-colors: active) { :where(button, .ik-btn) { border-color: ButtonBorder; } }
|
|
907
|
+
@media (forced-colors: active) { :where(button, .ik-btn) { border-color: ButtonBorder; } :where(button, .ik-btn):disabled { color: GrayText; border-color: GrayText; } }
|
|
805
908
|
|
|
806
909
|
/* --------------------------------------------------------------- fields */
|
|
807
910
|
: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 +921,58 @@ body {
|
|
|
818
921
|
/* The two-band ring, outside the ink border, so the field being typed in is plain at a glance. */
|
|
819
922
|
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
923
|
: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; }
|
|
924
|
+
:where(input, select, textarea):disabled { background-color: var(--ik-surface-inset); cursor: not-allowed; }
|
|
822
925
|
/* An error thickens the border as well as turning it red, and the message says it in words. */
|
|
823
926
|
:where(input, select, textarea)[aria-invalid="true"] { border-color: var(--ik-danger); border-width: 2px; }
|
|
824
927
|
:where(textarea) { min-height: 120px; resize: vertical; }
|
|
825
928
|
:where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; accent-color: var(--ik-brand); }
|
|
929
|
+
/*
|
|
930
|
+
* The browser's own controls. The G2 kit draws a drop zone for files (.ik-drop) and nothing for the rest, so a
|
|
931
|
+
* checkbox and a radio stay the browser's, in the action colour with the browser's own tick, which keeps its contrast
|
|
932
|
+
* in light, dark and forced colours. A date or month field keeps the browser's picker, drawn in the page's colour
|
|
933
|
+
* scheme so its calendar mark is ink in light and paper in dark.
|
|
934
|
+
*/
|
|
935
|
+
:where(input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"])) { color-scheme: inherit; }
|
|
936
|
+
:where(input:is([type="date"], [type="month"], [type="week"], [type="time"], [type="datetime-local"]))::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 1; }
|
|
937
|
+
/* A details element opens with the accordion's "+", which turns to "−", in place of the browser's triangle. */
|
|
938
|
+
:where(details:not(.ik-account)) > :where(summary) { list-style: none; cursor: pointer; }
|
|
939
|
+
:where(details:not(.ik-account)) > :where(summary)::-webkit-details-marker { display: none; }
|
|
940
|
+
:where(details:not(.ik-account)) > :where(summary)::before { content: "+"; display: inline-block; width: 1.25em; font-family: var(--ik-font-mono); font-weight: 500; }
|
|
941
|
+
:where(details[open]:not(.ik-account)) > :where(summary)::before { content: "\2212"; }
|
|
826
942
|
:where(input[type="file"]) { max-width: 100%; font: inherit; font-size: var(--ik-text-sm); color: var(--ik-ink-muted); }
|
|
827
943
|
:where(input[type="file"])::file-selector-button {
|
|
828
|
-
margin-right: var(--ik-space-3); min-height:
|
|
829
|
-
font: inherit; font-weight: 500; color: var(--ik-ink); background: var(--ik-surface-card);
|
|
944
|
+
margin-right: var(--ik-space-3); min-height: 47px; padding: 14px 20px;
|
|
945
|
+
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
946
|
border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-md); cursor: pointer;
|
|
831
947
|
}
|
|
948
|
+
/*
|
|
949
|
+
* A select drawn as impakt-select is: the same box, and under the Impakt brand a small "▾" in the
|
|
950
|
+
* text colour after the words in place of the browser's arrow (G2, frame 37:492). The marker is
|
|
951
|
+
* two halves of a square drawn in currentColor, so it follows the text in light and in dark; in
|
|
952
|
+
* 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
|
|
953
|
+
* select.marker-size of 0px draws nothing.
|
|
954
|
+
*/
|
|
955
|
+
:where(select:not([multiple], [size])) {
|
|
956
|
+
min-height: var(--impakt-field-height, 44px); line-height: var(--impakt-field-line-height, 1.2);
|
|
957
|
+
padding-right: var(--impakt-select-padding-end, 14px);
|
|
958
|
+
appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto);
|
|
959
|
+
background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
|
|
960
|
+
background-position: right calc(14px + var(--impakt-select-marker-size, 0px)) center, right 14px center;
|
|
961
|
+
background-size: var(--impakt-select-marker-size, 0px) var(--impakt-select-marker-size, 0px);
|
|
962
|
+
background-repeat: no-repeat;
|
|
963
|
+
cursor: pointer;
|
|
964
|
+
}
|
|
965
|
+
:where(select:not([multiple], [size])):disabled { cursor: not-allowed; }
|
|
966
|
+
/* Forced colours drop a drawn gradient, so there the browser draws its own arrow, in the system's colours. */
|
|
967
|
+
@media (forced-colors: active) { :where(select:not([multiple], [size])) { appearance: auto; -webkit-appearance: auto; background-image: none; } }
|
|
832
968
|
.ik-field { display: grid; gap: 8px; margin-bottom: var(--ik-space-4); }
|
|
969
|
+
/*
|
|
970
|
+
* 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:
|
|
971
|
+
* 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
|
|
972
|
+
* the same.
|
|
973
|
+
*/
|
|
974
|
+
.ik-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 var(--ik-space-4); align-items: end; }
|
|
975
|
+
:where(.grid) > :has(> label + :is(input, select, textarea)) { align-self: end; }
|
|
833
976
|
.ik-hint { font-size: var(--ik-text-xs); color: var(--ik-ink-muted); font-weight: 400; }
|
|
834
977
|
/* A phone zooms into any field under 16px, so fields stay at 16px there. */
|
|
835
978
|
@media (max-width: 640px) { :where(input, select, textarea) { font-size: 16px; } }
|
|
@@ -893,8 +1036,10 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
893
1036
|
.pill, .ik-pill {
|
|
894
1037
|
display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline;
|
|
895
1038
|
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;
|
|
1039
|
+
font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.4;
|
|
897
1040
|
color: var(--ik-ink); background: var(--ik-surface-card); border: 1px solid var(--ik-ink);
|
|
1041
|
+
/* 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. */
|
|
1042
|
+
max-width: 100%; overflow-wrap: anywhere; text-align: start;
|
|
898
1043
|
}
|
|
899
1044
|
.pill:is(.ok, .warn, .bad, .info, .brand)::before, .ik-pill:is(.ok, .warn, .bad, .info, .brand)::before {
|
|
900
1045
|
content: ""; flex: none; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; background: var(--ik-ink);
|
|
@@ -910,19 +1055,53 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
910
1055
|
@media (forced-colors: active) { .pill, .ik-pill { border-color: CanvasText; } .pill::before, .ik-pill::before { forced-color-adjust: none; background: CanvasText !important; } }
|
|
911
1056
|
|
|
912
1057
|
/* --------------------------------------------------------------- alerts */
|
|
913
|
-
/*
|
|
914
|
-
|
|
1058
|
+
/*
|
|
1059
|
+
* 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
|
|
1060
|
+
* code face before them, such as "Check". Inside a tool yellow means "this needs your attention", so .warn is the solid
|
|
1061
|
+
* accent, and it stays yellow with ink words in dark too (48:696). The other tones keep the shape on the card colour and
|
|
1062
|
+
* carry their tone in the tag's word and dot, never in a tint alone.
|
|
1063
|
+
*
|
|
1064
|
+
* <div class="alert warn"><span class="ik-alert-tag">Check</span><p>The deposit is more than five weeks of rent.</p></div>
|
|
1065
|
+
*
|
|
1066
|
+
* 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
|
|
1067
|
+
* actions at the far end. Hold the words in one element then, such as a <p>.
|
|
1068
|
+
*/
|
|
915
1069
|
.alert, .ik-alert {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
1070
|
+
--ik-alert-ink: var(--ik-ink);
|
|
1071
|
+
padding: 14px 16px; margin: var(--ik-space-2) 0;
|
|
1072
|
+
border: 1px solid var(--ik-alert-ink); border-radius: 0;
|
|
1073
|
+
background: var(--ik-surface-card); color: var(--ik-alert-ink);
|
|
1074
|
+
font-size: var(--ik-text-md); line-height: 1.45;
|
|
919
1075
|
box-shadow: none;
|
|
920
1076
|
}
|
|
921
|
-
.alert.
|
|
922
|
-
.alert.
|
|
923
|
-
.alert
|
|
924
|
-
.alert
|
|
925
|
-
|
|
1077
|
+
.alert.small, .ik-alert.small { font-size: var(--ik-text-sm); }
|
|
1078
|
+
.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; }
|
|
1079
|
+
:where(.alert, .ik-alert) > :where(p) { margin: 0; }
|
|
1080
|
+
: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; }
|
|
1081
|
+
.ik-alert-tag {
|
|
1082
|
+
display: inline-flex; align-items: center; gap: 6px; flex: none; vertical-align: baseline;
|
|
1083
|
+
padding: 3px 8px; margin-inline-end: 4px;
|
|
1084
|
+
font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.4; white-space: nowrap;
|
|
1085
|
+
color: var(--ik-surface-card); background: var(--ik-alert-ink); border: 1px solid var(--ik-alert-ink);
|
|
1086
|
+
}
|
|
1087
|
+
.ik-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
|
|
1088
|
+
/* Yellow: the one thing a person must read. The accent and the ink are the same in light and dark. */
|
|
1089
|
+
.alert.warn, .ik-alert.warn { --ik-alert-ink: var(--ik-on-accent); background: var(--ik-accent); }
|
|
1090
|
+
.alert.warn .ik-alert-tag, .ik-alert.warn .ik-alert-tag { color: #FFFFFF; }
|
|
1091
|
+
:where(.alert.warn, .ik-alert.warn) :where(a) { color: var(--ik-on-accent); }
|
|
1092
|
+
/* An action on the yellow is the filled ink button (37:526), in both themes. */
|
|
1093
|
+
:where(.alert.warn, .ik-alert.warn) :where(button, .ik-btn) { color: #FFFFFF; background: var(--ik-on-accent); border-color: var(--ik-on-accent); }
|
|
1094
|
+
:where(.alert.warn, .ik-alert.warn) :where(button, .ik-btn):hover:not(:disabled) { color: #FFFFFF; background: #2A2A2A; border-color: #2A2A2A; }
|
|
1095
|
+
: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); }
|
|
1096
|
+
/* The other tones: the same shape on the card, the tone in the tag's dot. A failure ("Failed") is red, done is green. */
|
|
1097
|
+
.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); }
|
|
1098
|
+
.alert.bad .ik-alert-tag::before, .ik-alert.bad .ik-alert-tag::before { background: var(--ik-danger); }
|
|
1099
|
+
.alert.ok .ik-alert-tag::before, .ik-alert.ok .ik-alert-tag::before { background: var(--ik-verified); }
|
|
1100
|
+
.alert.bad, .ik-alert.bad { border-width: 2px; padding: 13px 15px; }
|
|
1101
|
+
@media (forced-colors: active) {
|
|
1102
|
+
.alert, .ik-alert { border: 1px solid CanvasText; }
|
|
1103
|
+
.ik-alert-tag { forced-color-adjust: none; color: Canvas; background: CanvasText; border-color: CanvasText; }
|
|
1104
|
+
}
|
|
926
1105
|
|
|
927
1106
|
/* --------------------------------------------------------------- tables */
|
|
928
1107
|
:where(table) { width: 100%; border-collapse: collapse; font-size: var(--ik-text-sm); }
|
|
@@ -984,8 +1163,11 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
984
1163
|
.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
1164
|
.ik-back::before { content: "\2190"; }
|
|
986
1165
|
.ik-back:hover { color: var(--ik-ink); text-decoration: underline; }
|
|
987
|
-
|
|
988
|
-
|
|
1166
|
+
/* The facts are divided by a "·". Every fact carries one before it, pulled back into the gap, and the line clips what
|
|
1167
|
+
falls before its start, so a fact that wraps to a new line starts the line clean, with no dangling "·". */
|
|
1168
|
+
.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); }
|
|
1169
|
+
.ik-facts > * { margin-inline-start: -28px; }
|
|
1170
|
+
.ik-facts > *::before { content: "\00B7"; display: inline-block; width: 28px; text-align: center; }
|
|
989
1171
|
.ik-facts strong { color: var(--ik-ink-muted); font-weight: 400; }
|
|
990
1172
|
.ik-page-head .ik-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }
|
|
991
1173
|
|
|
@@ -997,32 +1179,39 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
997
1179
|
/* ---------------------------------------------------------------- steps */
|
|
998
1180
|
/* The stages of a job, in order, each numbered, with done, current and waiting told apart by
|
|
999
1181
|
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
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
.
|
|
1004
|
-
|
|
1182
|
+
and aria-current="step" on the current one. */
|
|
1183
|
+
/*
|
|
1184
|
+
* G2 stage stepper (33:471): a two-digit mono number and the stage's name, a soft rule under each stage that ends with
|
|
1185
|
+
* the last one, and the current stage underlined in ink. A done stage keeps a "√" before its number. A .ik-step-hint,
|
|
1186
|
+
* such as "5 of 9 sections", is read to a screen reader but not drawn; .ik-steps.hints draws it under the name.
|
|
1187
|
+
* On a narrow screen the stages wrap onto a second row, each with its own rule, so every stage shows.
|
|
1188
|
+
*/
|
|
1189
|
+
.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; }
|
|
1190
|
+
.ik-steps > li { flex: none; counter-increment: ik-step; border-bottom: 1px solid var(--ik-line-soft); }
|
|
1005
1191
|
.ik-steps > li > :where(a, button) {
|
|
1006
1192
|
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;
|
|
1193
|
+
min-height: 44px; min-width: 0; padding: 14px 28px 14px 0; margin-bottom: -1px; text-align: left;
|
|
1008
1194
|
font: 500 16px/1.2 var(--ik-font, inherit); color: var(--ik-ink-muted); text-decoration: none;
|
|
1009
1195
|
background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none;
|
|
1010
1196
|
}
|
|
1011
1197
|
.ik-steps > li > :where(a, button)::before {
|
|
1012
1198
|
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
1199
|
}
|
|
1014
|
-
.ik-steps .ik-step-hint {
|
|
1015
|
-
|
|
1016
|
-
|
|
1200
|
+
.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; }
|
|
1201
|
+
.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); }
|
|
1202
|
+
/* 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. */
|
|
1203
|
+
.ik-steps > li.done > :where(a, button)::before { content: "\221A\00a0" counter(ik-step, decimal-leading-zero); color: var(--ik-ink); }
|
|
1017
1204
|
.ik-steps > li > [aria-current="step"], .ik-steps > li > [aria-selected="true"] { color: var(--ik-ink); border-bottom-color: var(--ik-ink); }
|
|
1018
1205
|
.ik-steps > li > [aria-current="step"]::before, .ik-steps > li > [aria-selected="true"]::before { color: var(--ik-ink); }
|
|
1019
|
-
|
|
1020
|
-
.ik-steps > li > :where(a, button):disabled, .ik-steps > li >
|
|
1206
|
+
/* Pointing or clicking changes only the words, never the fill: the kit has no filled stage. */
|
|
1207
|
+
.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; }
|
|
1208
|
+
.ik-steps > li > :is([aria-current="step"], [aria-selected="true"]):is(:hover, :active) { border-bottom-color: var(--ik-ink); }
|
|
1209
|
+
.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
1210
|
.ik-steps > li > :focus-visible { outline: 2px solid var(--ik-ink); outline-offset: -2px; box-shadow: none; }
|
|
1022
1211
|
@media (max-width: 640px) {
|
|
1023
1212
|
.ik-steps > li > :where(a, button) { padding-right: 20px; font-size: 14px; }
|
|
1024
|
-
.ik-steps .ik-step-hint { display: none; }
|
|
1025
1213
|
}
|
|
1214
|
+
@media (forced-colors: active) { .ik-steps > li > [aria-current="step"] { border-bottom-color: CanvasText; } }
|
|
1026
1215
|
|
|
1027
1216
|
/* --------------------------------------------------------------- empty */
|
|
1028
1217
|
/* What a screen says before there is anything on it: what this place is for, and the one
|
|
@@ -1053,18 +1242,20 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
1053
1242
|
.ik-files .ik-file-name { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
|
|
1054
1243
|
|
|
1055
1244
|
/* ------------------------------------------------------------ progress */
|
|
1056
|
-
/* A long AI step: what it is doing, how far it has got when that is known, and a bar that
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
.ik-progress
|
|
1245
|
+
/* 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
|
|
1246
|
+
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
|
|
1247
|
+
code-face meta. Without a value the bar sweeps; reduced motion keeps it still. */
|
|
1248
|
+
.ik-progress { display: grid; gap: 8px; padding: 0; background: none; border-radius: 0; }
|
|
1249
|
+
.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
1250
|
.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:
|
|
1062
|
-
.ik-progress progress::-webkit-progress-bar { background: var(--ik-
|
|
1063
|
-
.ik-progress progress::-webkit-progress-value { background: var(--ik-
|
|
1064
|
-
.ik-progress progress::-moz-progress-bar { background: var(--ik-
|
|
1065
|
-
.ik-progress progress:indeterminate { background: linear-gradient(90deg, var(--ik-
|
|
1251
|
+
.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); }
|
|
1252
|
+
.ik-progress progress::-webkit-progress-bar { background: var(--ik-line-soft); border-radius: 0; }
|
|
1253
|
+
.ik-progress progress::-webkit-progress-value { background: var(--ik-ink); border-radius: 0; }
|
|
1254
|
+
.ik-progress progress::-moz-progress-bar { background: var(--ik-ink); border-radius: 0; }
|
|
1255
|
+
.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
1256
|
.ik-progress progress:indeterminate::-webkit-progress-bar { background: transparent; }
|
|
1067
1257
|
@keyframes ik-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
|
|
1258
|
+
@media (forced-colors: active) { .ik-progress progress { border: 1px solid CanvasText; } }
|
|
1068
1259
|
/* A small turning ring for a button or a status word that is busy. */
|
|
1069
1260
|
.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
1261
|
@keyframes ik-spin { to { transform: rotate(360deg); } }
|
|
@@ -1079,15 +1270,27 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
|
|
|
1079
1270
|
.ik-prose :where(ul, ol) { padding-inline-start: 1.25em; }
|
|
1080
1271
|
.ik-prose li + li { margin-top: 0.35em; }
|
|
1081
1272
|
.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
|
-
/*
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1273
|
+
/*
|
|
1274
|
+
* Curly quotes round what was quoted (33:393, 39:678): one pair, then the source chip on its own line under the words.
|
|
1275
|
+
* The theme adds the marks, so write the words without them:
|
|
1276
|
+
* - words held in a <p> (or several): the first opens the quote and the last closes it, and a chip after them sits
|
|
1277
|
+
* outside the marks;
|
|
1278
|
+
* - words straight in the quote, with no chip: the quote opens and closes round them;
|
|
1279
|
+
* - words straight in the quote with a chip after them: the theme adds no marks, since it could only close the quote
|
|
1280
|
+
* after the chip, so write the marks in the words, or hold the words in a <p>;
|
|
1281
|
+
* - .has-marks: the words already carry their marks, so the theme adds none.
|
|
1282
|
+
*/
|
|
1283
|
+
:is(.ik-quote, .ik-prose blockquote):not(.has-marks):not(:has(> :is(p, .ik-source, impakt-source)))::before { content: open-quote; }
|
|
1284
|
+
:is(.ik-quote, .ik-prose blockquote):not(.has-marks):not(:has(> :is(p, .ik-source, impakt-source)))::after { content: close-quote; }
|
|
1285
|
+
:is(.ik-quote, .ik-prose blockquote):not(.has-marks) > p:first-of-type::before { content: open-quote; }
|
|
1286
|
+
:is(.ik-quote, .ik-prose blockquote):not(.has-marks) > p:last-of-type::after { content: close-quote; }
|
|
1087
1287
|
.ik-quote > p { margin: 0; }
|
|
1088
|
-
.ik-quote >
|
|
1288
|
+
.ik-quote > p + p { margin-top: 0.6em; }
|
|
1289
|
+
/* The source chip sits under the words, outside the marks. */
|
|
1290
|
+
:is(.ik-quote, .ik-prose blockquote) > :where(impakt-source, .ik-source) { display: flex; width: fit-content; margin-top: 8px; }
|
|
1089
1291
|
.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
|
|
1292
|
+
/* 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,
|
|
1293
|
+
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
1294
|
.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
1295
|
a.ik-source:hover, button.ik-source:hover { color: var(--ik-ink); text-decoration: underline; }
|
|
1093
1296
|
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.
|
|
3
|
+
"version": "0.13.0",
|
|
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.
|
|
25
|
+
"@atomic-ui/design-tokens": "^0.13.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|