@finstack-com-public/design 0.5.0 → 0.6.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/CHANGELOG.md +69 -0
- package/dist/css/blocks.css +47 -0
- package/dist/css/blocks.md +18 -0
- package/dist/css/card.css +18 -4
- package/dist/css/card.md +2 -1
- package/dist/css/glass.css +30 -0
- package/dist/css/glass.md +18 -0
- package/dist/css/sweep.css +55 -0
- package/dist/css/sweep.md +20 -0
- package/dist/css/tokens.css +85 -50
- package/dist/css/wave.css +36 -0
- package/dist/css/wave.md +39 -0
- package/dist/css-text/blocks.d.ts +2 -0
- package/dist/css-text/blocks.js +1 -0
- package/dist/css-text/card.js +1 -1
- package/dist/css-text/glass.d.ts +2 -0
- package/dist/css-text/glass.js +1 -0
- package/dist/css-text/kit.js +5574 -1
- package/dist/css-text/sweep.d.ts +2 -0
- package/dist/css-text/sweep.js +1 -0
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/wave.d.ts +2 -0
- package/dist/css-text/wave.js +37 -0
- package/dist/dom/dialog.js +13 -2
- package/dist/kit.css +275 -54
- package/dist/motifs/wave.webp +0 -0
- package/dist/react/util.d.ts +5 -1
- package/dist/react/util.js +10 -2
- package/dist/tokens/color.d.ts +5 -0
- package/dist/tokens/color.js +9 -0
- package/dist/tokens/contrast-pairs.js +20 -0
- package/dist/tokens/contrast.js +2 -0
- package/dist/tokens/grid.js +18 -17
- package/dist/tokens/index.d.ts +5 -4
- package/dist/tokens/scale.d.ts +3 -2
- package/dist/tokens/scale.js +6 -5
- package/dist/tokens.json +29 -18
- package/package.json +4 -2
package/dist/kit.css
CHANGED
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
--fs-brand-wash-start: #e8f0fe;
|
|
55
55
|
--fs-brand-wash-end: #e3f8fb;
|
|
56
56
|
--fs-ring-halo: #ffffff;
|
|
57
|
+
--fs-glass-bg: rgba(255,255,255,0.72);
|
|
58
|
+
--fs-glass-line: rgba(255,255,255,0.85);
|
|
59
|
+
--fs-sweep-1: rgba(43,124,246,0.10);
|
|
60
|
+
--fs-sweep-2: rgba(20,212,224,0.16);
|
|
61
|
+
--fs-wave-glow: transparent;
|
|
57
62
|
--fs-neutral-ink: #3b4a6b;
|
|
58
63
|
--fs-neutral-wash: #eef3fa;
|
|
59
64
|
--fs-neutral-edge: #7a88a6;
|
|
@@ -251,6 +256,7 @@
|
|
|
251
256
|
--fs-size-content-sm: 736px;
|
|
252
257
|
--fs-size-touch: 24px;
|
|
253
258
|
--fs-size-input-sm: 10em;
|
|
259
|
+
--fs-glass-blur: 16px;
|
|
254
260
|
--fs-line-width: 1px;
|
|
255
261
|
--fs-ring-width: 2px;
|
|
256
262
|
--fs-ring-halo-width: 2px;
|
|
@@ -268,8 +274,8 @@
|
|
|
268
274
|
--fs-z-toast: 400;
|
|
269
275
|
--fs-gap-hatch: repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 6px, transparent 6px 14px);
|
|
270
276
|
--fs-gap-hatch-sm: repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px);
|
|
271
|
-
--fs-gradient-brand: linear-gradient(135deg, var(--fs-brand-
|
|
272
|
-
--fs-gradient-brand-soft: linear-gradient(135deg, var(--fs-brand-wash-
|
|
277
|
+
--fs-gradient-brand: linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start));
|
|
278
|
+
--fs-gradient-brand-soft: linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start));
|
|
273
279
|
--fs-chart-area-alpha: 0.18;
|
|
274
280
|
--fs-text-body-size: 13px;
|
|
275
281
|
--fs-text-body-line: 20px;
|
|
@@ -317,6 +323,11 @@
|
|
|
317
323
|
--fs-brand-wash-start: #13244f;
|
|
318
324
|
--fs-brand-wash-end: #0f3358;
|
|
319
325
|
--fs-ring-halo: var(--fs-p-navy-950);
|
|
326
|
+
--fs-glass-bg: rgba(14,29,69,0.72);
|
|
327
|
+
--fs-glass-line: rgba(141,184,255,0.18);
|
|
328
|
+
--fs-sweep-1: rgba(43,124,246,0.20);
|
|
329
|
+
--fs-sweep-2: rgba(20,212,224,0.14);
|
|
330
|
+
--fs-wave-glow: rgba(20,212,224,0.55);
|
|
320
331
|
--fs-neutral-ink: #b9c6e2;
|
|
321
332
|
--fs-neutral-wash: #152a5a;
|
|
322
333
|
--fs-neutral-edge: #6f81ad;
|
|
@@ -365,31 +376,31 @@
|
|
|
365
376
|
--fs-shadow-1: 0 1px 2px rgba(2,6,20,0.10), 0 8px 28px rgba(2,6,20,0.16);
|
|
366
377
|
--fs-shadow-2: 0 4px 20px rgba(2,6,20,0.24);
|
|
367
378
|
--fs-shadow-3: 0 24px 64px rgba(2,6,20,0.44);
|
|
368
|
-
--fs-grid-line: #
|
|
369
|
-
--fs-grid-header-bg: #
|
|
370
|
-
--fs-grid-label-bg: #
|
|
371
|
-
--fs-grid-row-hover: rgba(
|
|
372
|
-
--fs-grid-subtotal-bg: #
|
|
373
|
-
--fs-grid-input-bg: #
|
|
374
|
-
--fs-grid-locked-ink: #
|
|
375
|
-
--fs-grid-locked-bg: #
|
|
379
|
+
--fs-grid-line: #22356a;
|
|
380
|
+
--fs-grid-header-bg: #152a5a;
|
|
381
|
+
--fs-grid-label-bg: #13244f;
|
|
382
|
+
--fs-grid-row-hover: rgba(232,238,252,0.06);
|
|
383
|
+
--fs-grid-subtotal-bg: #182f68;
|
|
384
|
+
--fs-grid-input-bg: #10394a;
|
|
385
|
+
--fs-grid-locked-ink: #93a1c2;
|
|
386
|
+
--fs-grid-locked-bg: #050d26;
|
|
376
387
|
--fs-grid-error-ink: #ff8a80;
|
|
377
|
-
--fs-grid-error-bg: #
|
|
388
|
+
--fs-grid-error-bg: #3d1a26;
|
|
378
389
|
--fs-grid-negative-ink: #ff8a80;
|
|
379
|
-
--fs-grid-stale-ink: #
|
|
390
|
+
--fs-grid-stale-ink: #93a1c2;
|
|
380
391
|
--fs-grid-stale-dot: #f9a825;
|
|
381
392
|
--fs-grid-dirty-ink: #a5a5ff;
|
|
382
393
|
--fs-grid-invalid-ink: #ff8a80;
|
|
383
394
|
--fs-grid-selected: #8c8cff;
|
|
384
395
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
385
|
-
--fs-grid-editing-bg: #
|
|
386
|
-
--fs-grid-nodata-bg: rgba(
|
|
387
|
-
--fs-grid-chevron: #
|
|
388
|
-
--fs-grid-tree-guide: #
|
|
396
|
+
--fs-grid-editing-bg: #223a7e;
|
|
397
|
+
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
398
|
+
--fs-grid-chevron: #6f81ad;
|
|
399
|
+
--fs-grid-tree-guide: #22356a;
|
|
389
400
|
--fs-grid-lock-mine-ink: #7fc98a;
|
|
390
|
-
--fs-grid-lock-mine-bg: #
|
|
401
|
+
--fs-grid-lock-mine-bg: #13382b;
|
|
391
402
|
--fs-grid-lock-other-ink: #ff8a80;
|
|
392
|
-
--fs-grid-lock-other-bg: #
|
|
403
|
+
--fs-grid-lock-other-bg: #3d1a26;
|
|
393
404
|
--fs-syntax-keyword: #e3a3de;
|
|
394
405
|
--fs-syntax-operator: #b9c6e2;
|
|
395
406
|
--fs-syntax-function: #8ab8f0;
|
|
@@ -447,6 +458,11 @@
|
|
|
447
458
|
--fs-brand-wash-start: #13244f;
|
|
448
459
|
--fs-brand-wash-end: #0f3358;
|
|
449
460
|
--fs-ring-halo: var(--fs-p-navy-950);
|
|
461
|
+
--fs-glass-bg: rgba(14,29,69,0.72);
|
|
462
|
+
--fs-glass-line: rgba(141,184,255,0.18);
|
|
463
|
+
--fs-sweep-1: rgba(43,124,246,0.20);
|
|
464
|
+
--fs-sweep-2: rgba(20,212,224,0.14);
|
|
465
|
+
--fs-wave-glow: rgba(20,212,224,0.55);
|
|
450
466
|
--fs-neutral-ink: #b9c6e2;
|
|
451
467
|
--fs-neutral-wash: #152a5a;
|
|
452
468
|
--fs-neutral-edge: #6f81ad;
|
|
@@ -495,31 +511,31 @@
|
|
|
495
511
|
--fs-shadow-1: 0 1px 2px rgba(2,6,20,0.10), 0 8px 28px rgba(2,6,20,0.16);
|
|
496
512
|
--fs-shadow-2: 0 4px 20px rgba(2,6,20,0.24);
|
|
497
513
|
--fs-shadow-3: 0 24px 64px rgba(2,6,20,0.44);
|
|
498
|
-
--fs-grid-line: #
|
|
499
|
-
--fs-grid-header-bg: #
|
|
500
|
-
--fs-grid-label-bg: #
|
|
501
|
-
--fs-grid-row-hover: rgba(
|
|
502
|
-
--fs-grid-subtotal-bg: #
|
|
503
|
-
--fs-grid-input-bg: #
|
|
504
|
-
--fs-grid-locked-ink: #
|
|
505
|
-
--fs-grid-locked-bg: #
|
|
514
|
+
--fs-grid-line: #22356a;
|
|
515
|
+
--fs-grid-header-bg: #152a5a;
|
|
516
|
+
--fs-grid-label-bg: #13244f;
|
|
517
|
+
--fs-grid-row-hover: rgba(232,238,252,0.06);
|
|
518
|
+
--fs-grid-subtotal-bg: #182f68;
|
|
519
|
+
--fs-grid-input-bg: #10394a;
|
|
520
|
+
--fs-grid-locked-ink: #93a1c2;
|
|
521
|
+
--fs-grid-locked-bg: #050d26;
|
|
506
522
|
--fs-grid-error-ink: #ff8a80;
|
|
507
|
-
--fs-grid-error-bg: #
|
|
523
|
+
--fs-grid-error-bg: #3d1a26;
|
|
508
524
|
--fs-grid-negative-ink: #ff8a80;
|
|
509
|
-
--fs-grid-stale-ink: #
|
|
525
|
+
--fs-grid-stale-ink: #93a1c2;
|
|
510
526
|
--fs-grid-stale-dot: #f9a825;
|
|
511
527
|
--fs-grid-dirty-ink: #a5a5ff;
|
|
512
528
|
--fs-grid-invalid-ink: #ff8a80;
|
|
513
529
|
--fs-grid-selected: #8c8cff;
|
|
514
530
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
515
|
-
--fs-grid-editing-bg: #
|
|
516
|
-
--fs-grid-nodata-bg: rgba(
|
|
517
|
-
--fs-grid-chevron: #
|
|
518
|
-
--fs-grid-tree-guide: #
|
|
531
|
+
--fs-grid-editing-bg: #223a7e;
|
|
532
|
+
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
533
|
+
--fs-grid-chevron: #6f81ad;
|
|
534
|
+
--fs-grid-tree-guide: #22356a;
|
|
519
535
|
--fs-grid-lock-mine-ink: #7fc98a;
|
|
520
|
-
--fs-grid-lock-mine-bg: #
|
|
536
|
+
--fs-grid-lock-mine-bg: #13382b;
|
|
521
537
|
--fs-grid-lock-other-ink: #ff8a80;
|
|
522
|
-
--fs-grid-lock-other-bg: #
|
|
538
|
+
--fs-grid-lock-other-bg: #3d1a26;
|
|
523
539
|
--fs-syntax-keyword: #e3a3de;
|
|
524
540
|
--fs-syntax-operator: #b9c6e2;
|
|
525
541
|
--fs-syntax-function: #8ab8f0;
|
|
@@ -577,6 +593,11 @@
|
|
|
577
593
|
--fs-brand-wash-start: #e8f0fe;
|
|
578
594
|
--fs-brand-wash-end: #e3f8fb;
|
|
579
595
|
--fs-ring-halo: #ffffff;
|
|
596
|
+
--fs-glass-bg: rgba(255,255,255,0.72);
|
|
597
|
+
--fs-glass-line: rgba(255,255,255,0.85);
|
|
598
|
+
--fs-sweep-1: rgba(43,124,246,0.10);
|
|
599
|
+
--fs-sweep-2: rgba(20,212,224,0.16);
|
|
600
|
+
--fs-wave-glow: transparent;
|
|
580
601
|
--fs-neutral-ink: #3b4a6b;
|
|
581
602
|
--fs-neutral-wash: #eef3fa;
|
|
582
603
|
--fs-neutral-edge: #7a88a6;
|
|
@@ -709,6 +730,11 @@
|
|
|
709
730
|
--fs-brand-wash-start: #13244f;
|
|
710
731
|
--fs-brand-wash-end: #0f3358;
|
|
711
732
|
--fs-ring-halo: var(--fs-p-navy-950);
|
|
733
|
+
--fs-glass-bg: rgba(14,29,69,0.72);
|
|
734
|
+
--fs-glass-line: rgba(141,184,255,0.18);
|
|
735
|
+
--fs-sweep-1: rgba(43,124,246,0.20);
|
|
736
|
+
--fs-sweep-2: rgba(20,212,224,0.14);
|
|
737
|
+
--fs-wave-glow: rgba(20,212,224,0.55);
|
|
712
738
|
--fs-neutral-ink: #b9c6e2;
|
|
713
739
|
--fs-neutral-wash: #152a5a;
|
|
714
740
|
--fs-neutral-edge: #6f81ad;
|
|
@@ -791,31 +817,31 @@
|
|
|
791
817
|
--fs-shadow-1: 0 1px 2px rgba(2,6,20,0.10), 0 8px 28px rgba(2,6,20,0.16);
|
|
792
818
|
--fs-shadow-2: 0 4px 20px rgba(2,6,20,0.24);
|
|
793
819
|
--fs-shadow-3: 0 24px 64px rgba(2,6,20,0.44);
|
|
794
|
-
--fs-grid-line: #
|
|
795
|
-
--fs-grid-header-bg: #
|
|
796
|
-
--fs-grid-label-bg: #
|
|
797
|
-
--fs-grid-row-hover: rgba(
|
|
798
|
-
--fs-grid-subtotal-bg: #
|
|
799
|
-
--fs-grid-input-bg: #
|
|
800
|
-
--fs-grid-locked-ink: #
|
|
801
|
-
--fs-grid-locked-bg: #
|
|
820
|
+
--fs-grid-line: #22356a;
|
|
821
|
+
--fs-grid-header-bg: #152a5a;
|
|
822
|
+
--fs-grid-label-bg: #13244f;
|
|
823
|
+
--fs-grid-row-hover: rgba(232,238,252,0.06);
|
|
824
|
+
--fs-grid-subtotal-bg: #182f68;
|
|
825
|
+
--fs-grid-input-bg: #10394a;
|
|
826
|
+
--fs-grid-locked-ink: #93a1c2;
|
|
827
|
+
--fs-grid-locked-bg: #050d26;
|
|
802
828
|
--fs-grid-error-ink: #ff8a80;
|
|
803
|
-
--fs-grid-error-bg: #
|
|
829
|
+
--fs-grid-error-bg: #3d1a26;
|
|
804
830
|
--fs-grid-negative-ink: #ff8a80;
|
|
805
|
-
--fs-grid-stale-ink: #
|
|
831
|
+
--fs-grid-stale-ink: #93a1c2;
|
|
806
832
|
--fs-grid-stale-dot: #f9a825;
|
|
807
833
|
--fs-grid-dirty-ink: #a5a5ff;
|
|
808
834
|
--fs-grid-invalid-ink: #ff8a80;
|
|
809
835
|
--fs-grid-selected: #8c8cff;
|
|
810
836
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
811
|
-
--fs-grid-editing-bg: #
|
|
812
|
-
--fs-grid-nodata-bg: rgba(
|
|
813
|
-
--fs-grid-chevron: #
|
|
814
|
-
--fs-grid-tree-guide: #
|
|
837
|
+
--fs-grid-editing-bg: #223a7e;
|
|
838
|
+
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
839
|
+
--fs-grid-chevron: #6f81ad;
|
|
840
|
+
--fs-grid-tree-guide: #22356a;
|
|
815
841
|
--fs-grid-lock-mine-ink: #7fc98a;
|
|
816
|
-
--fs-grid-lock-mine-bg: #
|
|
842
|
+
--fs-grid-lock-mine-bg: #13382b;
|
|
817
843
|
--fs-grid-lock-other-ink: #ff8a80;
|
|
818
|
-
--fs-grid-lock-other-bg: #
|
|
844
|
+
--fs-grid-lock-other-bg: #3d1a26;
|
|
819
845
|
--fs-syntax-keyword: #e3a3de;
|
|
820
846
|
--fs-syntax-operator: #b9c6e2;
|
|
821
847
|
--fs-syntax-function: #8ab8f0;
|
|
@@ -837,6 +863,10 @@
|
|
|
837
863
|
--fs-syntax-meta: #93a1c2;
|
|
838
864
|
--fs-syntax-invalid: #ff8a80;
|
|
839
865
|
--fs-bg-surface: var(--fs-p-navy-900);
|
|
866
|
+
--fs-gap-hatch: repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 6px, transparent 6px 14px);
|
|
867
|
+
--fs-gap-hatch-sm: repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px);
|
|
868
|
+
--fs-gradient-brand: linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start));
|
|
869
|
+
--fs-gradient-brand-soft: linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start));
|
|
840
870
|
}
|
|
841
871
|
|
|
842
872
|
/* Density classes work on any element (spec 01 §5). */
|
|
@@ -917,6 +947,11 @@
|
|
|
917
947
|
--fs-brand-wash-start: #e8f0fe;
|
|
918
948
|
--fs-brand-wash-end: #e3f8fb;
|
|
919
949
|
--fs-ring-halo: #ffffff;
|
|
950
|
+
--fs-glass-bg: rgba(255,255,255,0.72);
|
|
951
|
+
--fs-glass-line: rgba(255,255,255,0.85);
|
|
952
|
+
--fs-sweep-1: rgba(43,124,246,0.10);
|
|
953
|
+
--fs-sweep-2: rgba(20,212,224,0.16);
|
|
954
|
+
--fs-wave-glow: transparent;
|
|
920
955
|
--fs-neutral-ink: #3b4a6b;
|
|
921
956
|
--fs-neutral-wash: #eef3fa;
|
|
922
957
|
--fs-neutral-edge: #7a88a6;
|
|
@@ -1070,6 +1105,54 @@
|
|
|
1070
1105
|
}
|
|
1071
1106
|
}
|
|
1072
1107
|
|
|
1108
|
+
/* Blocks (spec 02 I). Usage: blocks.md. */
|
|
1109
|
+
@layer fs.components {
|
|
1110
|
+
/* An empty-looking aria-hidden square of four rounded squares in a regular 2x2 grid, coloured
|
|
1111
|
+
along the brand gradient from the first block to the fourth. */
|
|
1112
|
+
.fs-blocks {
|
|
1113
|
+
display: grid;
|
|
1114
|
+
grid-template-columns: 1fr 1fr;
|
|
1115
|
+
grid-template-rows: 1fr 1fr;
|
|
1116
|
+
gap: 10%;
|
|
1117
|
+
width: var(--fs-blocks-size, 48px);
|
|
1118
|
+
height: var(--fs-blocks-size, 48px);
|
|
1119
|
+
pointer-events: none;
|
|
1120
|
+
flex: none;
|
|
1121
|
+
}
|
|
1122
|
+
.fs-blocks__block {
|
|
1123
|
+
display: block;
|
|
1124
|
+
border-radius: 28%;
|
|
1125
|
+
background: var(--fs-brand-start);
|
|
1126
|
+
}
|
|
1127
|
+
.fs-blocks__block:nth-child(2) {
|
|
1128
|
+
background: color-mix(in oklab, var(--fs-brand-start) 66%, var(--fs-brand-end));
|
|
1129
|
+
}
|
|
1130
|
+
.fs-blocks__block:nth-child(3) {
|
|
1131
|
+
background: color-mix(in oklab, var(--fs-brand-start) 33%, var(--fs-brand-end));
|
|
1132
|
+
}
|
|
1133
|
+
.fs-blocks__block:nth-child(4) {
|
|
1134
|
+
background: var(--fs-brand-end);
|
|
1135
|
+
}
|
|
1136
|
+
/* Hero decoration: the cluster tilts and the last block steps outward. Still a square grid. */
|
|
1137
|
+
.fs-blocks--loose {
|
|
1138
|
+
rotate: -12deg;
|
|
1139
|
+
}
|
|
1140
|
+
.fs-blocks--loose .fs-blocks__block:nth-child(4) {
|
|
1141
|
+
translate: 15% 15%;
|
|
1142
|
+
}
|
|
1143
|
+
/* Decoration: nothing to show in forced colours, nothing to print. */
|
|
1144
|
+
@media (forced-colors: active) {
|
|
1145
|
+
.fs-blocks {
|
|
1146
|
+
display: none;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
@media print {
|
|
1150
|
+
.fs-blocks {
|
|
1151
|
+
display: none;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1073
1156
|
/* Breadcrumbs (spec 02 C). Usage: breadcrumbs.md. */
|
|
1074
1157
|
@layer fs.components {
|
|
1075
1158
|
.fs-breadcrumbs__list {
|
|
@@ -1320,7 +1403,10 @@
|
|
|
1320
1403
|
border-radius: var(--fs-radius-xl);
|
|
1321
1404
|
box-shadow: var(--fs-shadow-1);
|
|
1322
1405
|
cursor: pointer;
|
|
1323
|
-
transition:
|
|
1406
|
+
transition:
|
|
1407
|
+
border-color var(--fs-dur) var(--fs-ease),
|
|
1408
|
+
box-shadow var(--fs-dur) var(--fs-ease),
|
|
1409
|
+
translate var(--fs-dur) var(--fs-ease);
|
|
1324
1410
|
}
|
|
1325
1411
|
.fs-card__kicker {
|
|
1326
1412
|
display: block;
|
|
@@ -1353,14 +1439,25 @@
|
|
|
1353
1439
|
color: var(--fs-ink-muted);
|
|
1354
1440
|
}
|
|
1355
1441
|
|
|
1356
|
-
/*
|
|
1442
|
+
/* Hover is a soft lift: the stronger shadow, a 2 px rise and a neutral stronger edge (never the accent), no fill (T56).
|
|
1443
|
+
Press settles back with a faint tint over the surface as an image, so the card never turns
|
|
1444
|
+
see-through. */
|
|
1357
1445
|
@media (hover: hover) {
|
|
1358
1446
|
.fs-card:hover {
|
|
1359
|
-
border-color: var(--fs-
|
|
1360
|
-
|
|
1447
|
+
border-color: var(--fs-line-strong);
|
|
1448
|
+
box-shadow: var(--fs-shadow-2);
|
|
1449
|
+
translate: 0 -2px;
|
|
1450
|
+
}
|
|
1451
|
+
/* Reduced motion: the shadow still changes, but the card does not move. */
|
|
1452
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1453
|
+
.fs-card:hover {
|
|
1454
|
+
translate: none;
|
|
1455
|
+
}
|
|
1361
1456
|
}
|
|
1362
1457
|
}
|
|
1363
1458
|
.fs-card:active {
|
|
1459
|
+
box-shadow: var(--fs-shadow-1);
|
|
1460
|
+
translate: none;
|
|
1364
1461
|
background-image: linear-gradient(var(--fs-bg-active), var(--fs-bg-active));
|
|
1365
1462
|
}
|
|
1366
1463
|
|
|
@@ -2577,6 +2674,37 @@
|
|
|
2577
2674
|
}
|
|
2578
2675
|
}
|
|
2579
2676
|
|
|
2677
|
+
/* Glass (spec 02 I). Usage: glass.md. */
|
|
2678
|
+
@layer fs.components {
|
|
2679
|
+
/* A modifier on a container block. It is doubled so it beats the block's own surface, whichever
|
|
2680
|
+
file comes later in kit.css (the files load alphabetically: card, glass, panel, widget). */
|
|
2681
|
+
.fs-glass.fs-glass {
|
|
2682
|
+
background-color: var(--fs-glass-bg);
|
|
2683
|
+
border-color: var(--fs-glass-line);
|
|
2684
|
+
-webkit-backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);
|
|
2685
|
+
backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);
|
|
2686
|
+
}
|
|
2687
|
+
/* The doubled rule above would beat the card's hover edge (same specificity, later file). */
|
|
2688
|
+
@media (hover: hover) {
|
|
2689
|
+
.fs-glass.fs-card:hover {
|
|
2690
|
+
border-color: var(--fs-line-strong);
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
/* Without backdrop-filter the fill would let the ground show through unblurred. */
|
|
2694
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
2695
|
+
.fs-glass.fs-glass {
|
|
2696
|
+
background-color: var(--fs-bg-surface);
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
/* Not decoration: a surface that holds text. Forced colours use the system colours. */
|
|
2700
|
+
@media (forced-colors: active) {
|
|
2701
|
+
.fs-glass.fs-glass {
|
|
2702
|
+
background-color: Canvas;
|
|
2703
|
+
border-color: CanvasText;
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2580
2708
|
/* BI App's slice grid (spec 02 F; KEEP, D7): CSS over BI App's own table. Usage: grid.md.
|
|
2581
2709
|
Every value is a --fs-grid-* token (01-tokens §3.10). Put the grid in a .fs-dense subtree. */
|
|
2582
2710
|
@layer fs.components {
|
|
@@ -4312,6 +4440,62 @@
|
|
|
4312
4440
|
}
|
|
4313
4441
|
}
|
|
4314
4442
|
|
|
4443
|
+
/* Sweep (spec 02 I). Usage: sweep.md. */
|
|
4444
|
+
@layer fs.components {
|
|
4445
|
+
/* A section or page wrapper that carries two soft curved bands behind its content, like the
|
|
4446
|
+
concept backgrounds: a thin crescent off the top-left corner and a large band off the
|
|
4447
|
+
bottom-right. The band is an ellipse with a soft fill and a brighter rim (the border is drawn
|
|
4448
|
+
over the same translucent fill, so it reads as a thin brighter edge). The crescent is an
|
|
4449
|
+
ellipse with no fill and only a bottom border, which tapers to nothing at both ends, turned so
|
|
4450
|
+
its thick middle faces the content. The host isolates its stacking so the bands sit behind the
|
|
4451
|
+
content but above the host's own background. */
|
|
4452
|
+
.fs-sweep {
|
|
4453
|
+
position: relative;
|
|
4454
|
+
isolation: isolate;
|
|
4455
|
+
overflow: clip;
|
|
4456
|
+
}
|
|
4457
|
+
.fs-sweep::before,
|
|
4458
|
+
.fs-sweep::after {
|
|
4459
|
+
content: '';
|
|
4460
|
+
position: absolute;
|
|
4461
|
+
z-index: -1;
|
|
4462
|
+
box-sizing: border-box;
|
|
4463
|
+
width: 140%;
|
|
4464
|
+
height: 90%;
|
|
4465
|
+
border: 2px solid var(--fs-sweep-1);
|
|
4466
|
+
border-radius: 50%;
|
|
4467
|
+
pointer-events: none;
|
|
4468
|
+
}
|
|
4469
|
+
.fs-sweep::before {
|
|
4470
|
+
top: -48%;
|
|
4471
|
+
left: -22%;
|
|
4472
|
+
width: 50%;
|
|
4473
|
+
height: 80%;
|
|
4474
|
+
border: 0 solid var(--fs-sweep-1);
|
|
4475
|
+
border-bottom-width: 18px;
|
|
4476
|
+
rotate: -55deg;
|
|
4477
|
+
}
|
|
4478
|
+
.fs-sweep::after {
|
|
4479
|
+
bottom: -52%;
|
|
4480
|
+
right: -58%;
|
|
4481
|
+
background: var(--fs-sweep-2);
|
|
4482
|
+
border-color: var(--fs-sweep-2);
|
|
4483
|
+
}
|
|
4484
|
+
/* Decoration: nothing to show in forced colours, nothing to print. */
|
|
4485
|
+
@media (forced-colors: active) {
|
|
4486
|
+
.fs-sweep::before,
|
|
4487
|
+
.fs-sweep::after {
|
|
4488
|
+
display: none;
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
@media print {
|
|
4492
|
+
.fs-sweep::before,
|
|
4493
|
+
.fs-sweep::after {
|
|
4494
|
+
display: none;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4315
4499
|
/* Tab bar of open objects (spec 02 C, BI App). Usage: tabbar.md. Behaviour: createTabs, closable. */
|
|
4316
4500
|
@layer fs.components {
|
|
4317
4501
|
.fs-tabbar {
|
|
@@ -5287,6 +5471,43 @@
|
|
|
5287
5471
|
}
|
|
5288
5472
|
}
|
|
5289
5473
|
|
|
5474
|
+
/* Wave (spec 02 I). Usage: wave.md. */
|
|
5475
|
+
@layer fs.components {
|
|
5476
|
+
/* An empty, aria-hidden band: a wave of dots, cyan at the left to blue at the right. The
|
|
5477
|
+
wave is an image (motifs/wave.webp, D33): the owner's ChatGPT image as white on transparent,
|
|
5478
|
+
used as a mask over the brand colours, so its colour comes from the roles. It covers the band
|
|
5479
|
+
from the bottom up: a band shorter than the image loses the far rows at the top, a narrow one
|
|
5480
|
+
the sides. `--fs-wave-image` points it at a self-hosted copy. */
|
|
5481
|
+
.fs-wave {
|
|
5482
|
+
display: block;
|
|
5483
|
+
height: var(--fs-wave-height, 160px);
|
|
5484
|
+
pointer-events: none;
|
|
5485
|
+
/* The dark scheme's glow. A filter is drawn before the element's own mask, so on the layer
|
|
5486
|
+
itself the mask would cut the glow away; on the host it glows around what the mask leaves.
|
|
5487
|
+
In light the glow role is transparent, so the same rule draws nothing. */
|
|
5488
|
+
filter: drop-shadow(0 0 3px var(--fs-wave-glow));
|
|
5489
|
+
}
|
|
5490
|
+
.fs-wave::before {
|
|
5491
|
+
content: '';
|
|
5492
|
+
display: block;
|
|
5493
|
+
height: 100%;
|
|
5494
|
+
background: linear-gradient(90deg, var(--fs-brand-end), var(--fs-brand-start) 65%);
|
|
5495
|
+
-webkit-mask: var(--fs-wave-image, url('./motifs/wave.webp')) center bottom / cover no-repeat;
|
|
5496
|
+
mask: var(--fs-wave-image, url('./motifs/wave.webp')) center bottom / cover no-repeat;
|
|
5497
|
+
}
|
|
5498
|
+
/* Decoration: nothing to show in forced colours, nothing to print. */
|
|
5499
|
+
@media (forced-colors: active) {
|
|
5500
|
+
.fs-wave {
|
|
5501
|
+
display: none;
|
|
5502
|
+
}
|
|
5503
|
+
}
|
|
5504
|
+
@media print {
|
|
5505
|
+
.fs-wave {
|
|
5506
|
+
display: none;
|
|
5507
|
+
}
|
|
5508
|
+
}
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5290
5511
|
/* Widget frame (spec 02 D; BI App's page widgets). Usage: widget.md. */
|
|
5291
5512
|
@layer fs.components {
|
|
5292
5513
|
.fs-widget {
|
|
Binary file
|
package/dist/react/util.d.ts
CHANGED
|
@@ -5,7 +5,11 @@ export declare function cx(...parts: (string | false | null | undefined)[]): str
|
|
|
5
5
|
export declare const useIsoLayoutEffect: typeof useEffect;
|
|
6
6
|
/** The latest value, readable from handlers registered once. */
|
|
7
7
|
export declare function useLatest<T>(value: T): RefObject<T>;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Calls `handler` with each `type` CustomEvent's detail dispatched on `target` itself. The helpers'
|
|
10
|
+
* events bubble, so one from a nested block (a loader or popover inside a dialog) passes through
|
|
11
|
+
* here too: it is ignored (T53).
|
|
12
|
+
*/
|
|
9
13
|
export declare function useFsEvent<D>(target: RefObject<HTMLElement | null>, type: string, handler: ((detail: D) => void) | undefined): void;
|
|
10
14
|
/** Puts one element into several refs: the wrapper's own and the one passed in. */
|
|
11
15
|
export declare function useMergedRef<T>(...refs: (Ref<T> | undefined)[]): (el: T | null) => void;
|
package/dist/react/util.js
CHANGED
|
@@ -15,14 +15,22 @@ export function useLatest(value) {
|
|
|
15
15
|
});
|
|
16
16
|
return ref;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Calls `handler` with each `type` CustomEvent's detail dispatched on `target` itself. The helpers'
|
|
20
|
+
* events bubble, so one from a nested block (a loader or popover inside a dialog) passes through
|
|
21
|
+
* here too: it is ignored (T53).
|
|
22
|
+
*/
|
|
19
23
|
export function useFsEvent(target, type, handler) {
|
|
20
24
|
const latest = useLatest(handler);
|
|
21
25
|
useEffect(() => {
|
|
22
26
|
const el = target.current;
|
|
23
27
|
if (!el)
|
|
24
28
|
return;
|
|
25
|
-
const listener = (e) =>
|
|
29
|
+
const listener = (e) => {
|
|
30
|
+
if (e.target !== el)
|
|
31
|
+
return;
|
|
32
|
+
latest.current?.(e.detail);
|
|
33
|
+
};
|
|
26
34
|
el.addEventListener(type, listener);
|
|
27
35
|
return () => el.removeEventListener(type, listener);
|
|
28
36
|
}, [target, type, latest]);
|
package/dist/tokens/color.d.ts
CHANGED
|
@@ -91,6 +91,11 @@ export declare const colorRoles: {
|
|
|
91
91
|
'brand-wash-start': Schemed;
|
|
92
92
|
'brand-wash-end': Schemed;
|
|
93
93
|
'ring-halo': Schemed;
|
|
94
|
+
'glass-bg': Schemed;
|
|
95
|
+
'glass-line': Schemed;
|
|
96
|
+
'sweep-1': Schemed;
|
|
97
|
+
'sweep-2': Schemed;
|
|
98
|
+
'wave-glow': Schemed;
|
|
94
99
|
'bg-surface': Schemed;
|
|
95
100
|
'bg-page': Schemed;
|
|
96
101
|
'bg-plane': Schemed;
|
package/dist/tokens/color.js
CHANGED
|
@@ -35,11 +35,20 @@ const accent = {
|
|
|
35
35
|
// Darker than the accent: ring/halo stays ≥9:1 so the pair reaches 3:1 on any ground (spec 06 §3).
|
|
36
36
|
ring: s(p('blue-800'), p('blue-300')),
|
|
37
37
|
// The brand gradient's stops (spec 01 §3.1): decoration only, read by `--fs-gradient-brand*`.
|
|
38
|
+
// `start` is the deep blue and `end` the cyan; since T50 the gradient runs from `end` (top left)
|
|
39
|
+
// to `start`. The names stay (public API); `.fs-blocks` still runs start to end.
|
|
38
40
|
'brand-start': s(p('blue-600'), p('blue-500')),
|
|
39
41
|
'brand-end': both(p('cyan-400')),
|
|
40
42
|
'brand-wash-start': s('#e8f0fe', '#13244f'),
|
|
41
43
|
'brand-wash-end': s('#e3f8fb', '#0f3358'),
|
|
42
44
|
'ring-halo': s('#ffffff', p('navy-950')),
|
|
45
|
+
// The motifs' translucent layers (spec 01 §7, 02 I): a glass panel's fill and edge, two soft
|
|
46
|
+
// sweeps of blue and cyan, and the glow of the wave's dots (dark only).
|
|
47
|
+
'glass-bg': s('rgba(255,255,255,0.72)', 'rgba(14,29,69,0.72)'),
|
|
48
|
+
'glass-line': s('rgba(255,255,255,0.85)', 'rgba(141,184,255,0.18)'),
|
|
49
|
+
'sweep-1': s('rgba(43,124,246,0.10)', 'rgba(43,124,246,0.20)'),
|
|
50
|
+
'sweep-2': s('rgba(20,212,224,0.16)', 'rgba(20,212,224,0.14)'),
|
|
51
|
+
'wave-glow': s('transparent', 'rgba(20,212,224,0.55)'),
|
|
43
52
|
};
|
|
44
53
|
// Seven tones, each ink / wash / edge / fill (spec 01 §3.3).
|
|
45
54
|
const tones = {
|
|
@@ -35,6 +35,13 @@ export function contrastPairs() {
|
|
|
35
35
|
role('text', 'ink', 'brand-wash-end');
|
|
36
36
|
role('text', 'ink-2', 'brand-wash-start');
|
|
37
37
|
role('text', 'ink-2', 'brand-wash-end');
|
|
38
|
+
// The glass panel (spec 02 I): translucent, so over the page and over both ends of the wash.
|
|
39
|
+
// ink-muted too: fs-card__meta and fs-widget__subtitle use it on glass.
|
|
40
|
+
for (const fg of ['ink', 'ink-2', 'ink-muted']) {
|
|
41
|
+
for (const under of ['bg-page', 'brand-wash-start', 'brand-wash-end']) {
|
|
42
|
+
role('text', fg, 'glass-bg', under);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
38
45
|
role('text', 'ink', 'bg-highlight');
|
|
39
46
|
role('text', 'ink', 'computed-bg');
|
|
40
47
|
role('text', 'primary-ink', 'primary-bg');
|
|
@@ -96,6 +103,19 @@ export function contrastPairs() {
|
|
|
96
103
|
grid('text', 'lock-other-ink', 'lock-other-bg');
|
|
97
104
|
grid('non-text', 'selected', 'bg-surface');
|
|
98
105
|
grid('non-text', 'chevron', 'bg-surface');
|
|
106
|
+
// D32: the navy input teal and editing blue carry the selection outline and the dirty/negative inks.
|
|
107
|
+
grid('non-text', 'selected', 'input-bg');
|
|
108
|
+
grid('non-text', 'selected', 'editing-bg');
|
|
109
|
+
grid('text', 'dirty-ink', 'editing-bg');
|
|
110
|
+
grid('non-text', 'chevron', 'subtotal-bg');
|
|
111
|
+
for (const ink of ['negative-ink', 'error-ink']) {
|
|
112
|
+
// Light editing-bg is BI App's own (red on it is 4.2:1, unchanged by D32), so only dark is held.
|
|
113
|
+
if (scheme === 'dark')
|
|
114
|
+
grid('text', ink, 'editing-bg');
|
|
115
|
+
grid('text', ink, 'subtotal-bg');
|
|
116
|
+
}
|
|
117
|
+
grid('text', 'invalid-ink', 'subtotal-bg');
|
|
118
|
+
grid('text', 'stale-ink', 'input-bg');
|
|
99
119
|
// Non-text: edges that identify a control, the ring, meaningful icons, fills.
|
|
100
120
|
for (const bg of ['bg-surface', 'bg-chrome', 'bg-page'])
|
|
101
121
|
role('non-text', 'line-control', bg);
|
package/dist/tokens/contrast.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// WCAG 2.1 relative-luminance contrast, for the contrast test and the gallery's ratios.
|
|
2
2
|
export function parseColor(input) {
|
|
3
3
|
const c = input.trim().toLowerCase();
|
|
4
|
+
if (c === 'transparent')
|
|
5
|
+
return { r: 0, g: 0, b: 0, a: 0 };
|
|
4
6
|
const hex = /^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(c);
|
|
5
7
|
if (hex?.[1]) {
|
|
6
8
|
const h = hex[1].length === 3 ? [...hex[1]].map((x) => x + x).join('') : hex[1];
|
package/dist/tokens/grid.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
// BI App's grid tokens (KEEP, D7; spec 01 §3.10). CSS name: `--fs-grid-<role>`.
|
|
2
2
|
// Light values are BI App's own, except the three contrast fixes BI §10 asks for (marked ✱) and the
|
|
3
|
-
// selected-invalid fill (D20).
|
|
3
|
+
// selected-invalid fill (D20). The dark values are the kit's navy neutrals (D32, T51): a comment names
|
|
4
|
+
// the role where one matches exactly; roles can't be referenced across token tables, so values are literals.
|
|
4
5
|
import { s } from "./values.js";
|
|
5
6
|
export const gridRoles = {
|
|
6
|
-
line: s('#dddddd', '#
|
|
7
|
-
'header-bg': s('#f2f2f2', '#
|
|
8
|
-
'label-bg': s('#f4f4f4', '#
|
|
9
|
-
'row-hover': s('rgba(0,0,255,0.03)', 'rgba(
|
|
10
|
-
'subtotal-bg': s('#eef2f7', '#
|
|
11
|
-
'input-bg': s('#fffde7', '#
|
|
12
|
-
'locked-ink': s('#5f5e5a', '#
|
|
13
|
-
'locked-bg': s('#f5f5f5', '#
|
|
7
|
+
line: s('#dddddd', '#22356a'), // dark = --fs-line
|
|
8
|
+
'header-bg': s('#f2f2f2', '#152a5a'), // dark = --fs-bg-sunken
|
|
9
|
+
'label-bg': s('#f4f4f4', '#13244f'), // dark = --fs-bg-chrome
|
|
10
|
+
'row-hover': s('rgba(0,0,255,0.03)', 'rgba(232,238,252,0.06)'), // dark = --fs-bg-hover
|
|
11
|
+
'subtotal-bg': s('#eef2f7', '#182f68'), // dark: a step above bg-sunken, not a role (bg-selected #172d64 means selection)
|
|
12
|
+
'input-bg': s('#fffde7', '#10394a'), // dark: desaturated teal on navy, cooler than the old amber
|
|
13
|
+
'locked-ink': s('#5f5e5a', '#93a1c2'), // ✱ was #757575; dark = --fs-ink-muted
|
|
14
|
+
'locked-bg': s('#f5f5f5', '#050d26'), // dark = --fs-bg-plane
|
|
14
15
|
'error-ink': s('#c62828', '#ff8a80'),
|
|
15
|
-
'error-bg': s('#fdecea', '#
|
|
16
|
+
'error-bg': s('#fdecea', '#3d1a26'), // dark = --fs-danger-wash
|
|
16
17
|
'negative-ink': s('#c62828', '#ff8a80'),
|
|
17
|
-
'stale-ink': s('#5f5e5a', '#
|
|
18
|
+
'stale-ink': s('#5f5e5a', '#93a1c2'), // ✱ was #757575; dark = --fs-ink-muted
|
|
18
19
|
'stale-dot': s('#f9a825', '#f9a825'),
|
|
19
20
|
'dirty-ink': s('#3d3db4', '#a5a5ff'),
|
|
20
21
|
'invalid-ink': s('#c62828', '#ff8a80'),
|
|
21
22
|
selected: s('#3d3db4', '#8c8cff'),
|
|
22
23
|
'selected-invalid-bg': s('rgba(252,0,0,0.10)', 'rgba(255,138,128,0.08)'), // D20: was 0.25, failed AA
|
|
23
|
-
'editing-bg': s('rgb(221,221,244)', '#
|
|
24
|
-
'nodata-bg': s('rgba(0,0,0,0.03)', 'rgba(
|
|
25
|
-
chevron: s('#8a8983', '#
|
|
26
|
-
'tree-guide': s('#d9d9d9', '#
|
|
24
|
+
'editing-bg': s('rgb(221,221,244)', '#223a7e'), // dark: brighter blue than the input teal, under the selected outline
|
|
25
|
+
'nodata-bg': s('rgba(0,0,0,0.03)', 'rgba(232,238,252,0.04)'),
|
|
26
|
+
chevron: s('#8a8983', '#6f81ad'), // ✱ was #9e9e9e; dark = --fs-line-control
|
|
27
|
+
'tree-guide': s('#d9d9d9', '#22356a'), // dark = --fs-line
|
|
27
28
|
'lock-mine-ink': s('#2e7d32', '#7fc98a'),
|
|
28
|
-
'lock-mine-bg': s('#e8f5e9', '#
|
|
29
|
+
'lock-mine-bg': s('#e8f5e9', '#13382b'), // dark = --fs-positive-wash
|
|
29
30
|
'lock-other-ink': s('#c62828', '#ff8a80'),
|
|
30
|
-
'lock-other-bg': s('#fdecea', '#
|
|
31
|
+
'lock-other-bg': s('#fdecea', '#3d1a26'), // dark = --fs-danger-wash
|
|
31
32
|
};
|